public class BranchUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BranchUtil.JsonReader |
Constructor and Description |
---|
BranchUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
dpToPx(android.content.Context context,
int dp) |
static org.json.JSONObject |
getDeepLinkSchemes(android.content.Context context) |
static android.graphics.drawable.Drawable |
getDrawable(android.content.Context context,
int drawableID) |
static boolean |
isLowOnMemory(android.content.Context context)
Checks the current device's
ActivityManager system service and returns the value
of the lowMemory flag. |
static boolean |
isTestModeEnabled(android.content.Context context)
Get the value of "io.branch.sdk.TestMode" entry in application manifest or from String res.
|
public static boolean isTestModeEnabled(android.content.Context context)
public static android.graphics.drawable.Drawable getDrawable(android.content.Context context, int drawableID)
public static int dpToPx(android.content.Context context, int dp)
public static boolean isLowOnMemory(android.content.Context context)
Checks the current device's ActivityManager
system service and returns the value
of the lowMemory flag.
A Boolean
value representing the low memory flag of the current device.
public static org.json.JSONObject getDeepLinkSchemes(android.content.Context context)