public class Dependencies
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ANDROID |
static int |
STORE_VERSION |
static java.lang.String |
STORE_VERSION_NAME |
| Constructor and Description |
|---|
Dependencies() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getAppVersionCode(android.content.Context context)
Retrieves the Version of the App
|
static java.lang.String |
getAppVersionName(android.content.Context context)
Retrieves the Version of the App
|
static java.lang.String |
getCountryCode(android.content.Context context)
Retrieves the code of the Device's Country
|
static java.lang.String |
getDeviceId(android.content.Context context)
Retrieves the IMEI Number of the Device
|
static java.lang.String |
getDeviceManufacturer()
Retrieves the name of the Device
|
static java.lang.String |
getDeviceModel()
Retrieves the name of the Device
|
static java.lang.String |
getDeviceName()
Retrieves the name of the Device
|
static java.lang.String |
getDeviceOSVersion()
Retrieves the OS Version of device
|
static java.lang.String |
getDeviceToken(android.content.Context context)
Extracts or generates a device token of the Device
|
static java.lang.String |
getLocale() |
static long |
getTimeZoneInMinutes()
Method to get the TimeZone offset in minutes
|
static boolean |
isPermissionGranted(android.content.Context context,
java.lang.String permission) |
static void |
saveDeviceToken(android.content.Context context,
java.lang.String deviceToken)
Method to save the Device Token
|
public static final int ANDROID
public static final int STORE_VERSION
public static final java.lang.String STORE_VERSION_NAME
public static java.lang.String getDeviceToken(android.content.Context context)
context - public static java.lang.String getDeviceName()
public static java.lang.String getDeviceManufacturer()
public static java.lang.String getDeviceModel()
public static java.lang.String getDeviceOSVersion()
public static java.lang.String getDeviceId(android.content.Context context)
public static long getAppVersionCode(android.content.Context context)
context - android.content.pm.PackageManager.NameNotFoundExceptionpublic static java.lang.String getAppVersionName(android.content.Context context)
context - android.content.pm.PackageManager.NameNotFoundExceptionpublic static java.lang.String getCountryCode(android.content.Context context)
context - public static long getTimeZoneInMinutes()
public static void saveDeviceToken(android.content.Context context,
java.lang.String deviceToken)
context - deviceToken - public static java.lang.String getLocale()
public static boolean isPermissionGranted(android.content.Context context,
java.lang.String permission)