java.lang.Object | |
↳ | com.applovin.sdk.AppLovinSdkUtils |
This class contains a set of shared SDK utility methods.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TAG |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AppLovinSdkUtils() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static int |
dpToPx(Context context, int px)
Convert a size in pixels to DP.
| ||||||||||
static boolean |
openUri(Context context, Uri uri, AppLovinSdk sdk)
Launch an appropriate intent to handle a click on a given ad.
| ||||||||||
static boolean |
openUrl(Context context, String url, AppLovinSdk sdk)
Launch an appropriate intent to handle a click on a given ad.
| ||||||||||
static void |
runOnUiThread(Runnable runnable)
Performs the given runnable on the main thread.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Convert a size in pixels to DP.
context | Context to use. |
---|---|
px | Size in raw pixels. |
Launch an appropriate intent to handle a click on a given ad.
context | Context to use. |
---|---|
uri | Click uri to open. |
sdk | The sdk. |
Launch an appropriate intent to handle a click on a given ad.
context | Context to use. |
---|---|
url | Click url to open. |
sdk | The sdk. |
Performs the given runnable on the main thread.