Package com.moengage.core.internal.utils

Types

ApiUtility
Link copied to clipboard
open class ApiUtility
Umang Chamaria
ISO8601Utils
Link copied to clipboard
class ISO8601Utils
JsonBuilder
Link copied to clipboard
open class JsonBuilder
MoEUtils
Link copied to clipboard
class MoEUtils
MoEngage (abhishek@moenegage.
ReflectionUtils
Link copied to clipboard
class ReflectionUtils
A Utility class which helps to invoke methods using Java Reflection API in order to avoid
RestUtils
Link copied to clipboard
open class RestUtils

Functions

getAppVersionMeta
Link copied to clipboard
fun getAppVersionMeta(context: Context): AppMeta
getDeviceType
Link copied to clipboard
fun getDeviceType(context: Context): DeviceType
getLauncherActivityIntent
Link copied to clipboard
fun getLauncherActivityIntent(context: Context): Intent?
getPendingIntentActivity
Link copied to clipboard
fun getPendingIntentActivity(context: Context, requestCode: Int, intent: Intent, flags: Int = PendingIntent.FLAG_UPDATE_CURRENT): PendingIntent
getPendingIntentBroadcast
Link copied to clipboard
fun getPendingIntentBroadcast(context: Context, requestCode: Int, intent: Intent, flags: Int = PendingIntent.FLAG_UPDATE_CURRENT): PendingIntent
getPendingIntentService
Link copied to clipboard
fun getPendingIntentService(context: Context, requestCode: Int, intent: Intent, flags: Int = PendingIntent.FLAG_UPDATE_CURRENT): PendingIntent
getTargetSdkVersion
Link copied to clipboard
fun getTargetSdkVersion(context: Context): Int
getTrimmedLength
Link copied to clipboard
fun getTrimmedLength(s: CharSequence): Int
getUniqueNumber
Link copied to clipboard
fun getUniqueNumber(): Int
isIsoDate
Link copied to clipboard
fun isIsoDate(isoString: String): Boolean
isLandscapeMode
Link copied to clipboard
fun isLandscapeMode(context: Context): Boolean
Returns true if the device is in landscape mode, else false.
isLargeDevice
Link copied to clipboard
fun isLargeDevice(context: Context): Boolean
isMainThread
Link copied to clipboard
fun isMainThread(): Boolean
isNullOrEmpty
Link copied to clipboard
fun isNullOrEmpty(text: CharSequence?): Boolean
Returns true if the string is null, or empty (once trimmed).
fun isNullOrEmpty(json: JSONObject?): Boolean
isTablet
Link copied to clipboard
fun isTablet(context: Context): Boolean
Returns true if the device is a tablet, else false.
isTelevision
Link copied to clipboard
fun isTelevision(context: Context): Boolean
jsonArrayToStringSet
Link copied to clipboard
fun jsonArrayToStringSet(jsonArray: JSONArray?, shouldConvertToUpperCase: Boolean = false): Set<String>
logJsonArray
Link copied to clipboard
fun logJsonArray(tag: String, jsonArray: JSONArray)