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 |
isDebugEnabled()
Determine if Debug Mode is enabled.
|
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()
Get the value of "io.branch.sdk.TestMode" entry in application manifest or from String res.
|
static java.lang.String |
readBranchKey(android.content.Context context) |
public static java.lang.String readBranchKey(android.content.Context context)
public static boolean isTestModeEnabled()
Branch.enableTestMode()public static boolean isDebugEnabled()
true if Debug is enabled, or if isTestModeEnabled()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)