# Package-level declarations

## Types

ApplicationUtil
Link copied to clipboard
open class ApplicationUtil
ClassUtil
Link copied to clipboard
open class ClassUtil
CoroutineUtil
Link copied to clipboard
class CoroutineUtil
DeviceUtil
Link copied to clipboard
open class DeviceUtil
Either
Link copied to clipboard
sealed class Either<out F, out S>
LimitedSizeQueue
Link copied to clipboard
class LimitedSizeQueue<E>(maxSize: Int)
LocaleUtil
Link copied to clipboard
open class LocaleUtil
MavenVersionUnit
Link copied to clipboard
class MavenVersionUnit(input: String = "0")

Semantic Version 2.0.0 ( https://semver.org/ ) : {MAJOR}.{MINOR}.{PATCH}

PermissionsUtil
Link copied to clipboard
open class PermissionsUtil
Helps getting permissions
Resource
Link copied to clipboard
sealed class Resource
StackWithLog
Link copied to clipboard
class StackWithLog<E>(logQueue: LimitedSizeQueue<String>)
StringUtil
Link copied to clipboard
class StringUtil
Utility
Link copied to clipboard
open class Utility

## Functions

executeIfNotUnitTest
Link copied to clipboard
fun executeIfNotUnitTest(context: Context, block: () -> Unit)
getBooleanMetaData
Link copied to clipboard
fun getBooleanMetaData(context: Context, key: String, defaultValue: Boolean, showErrorLog: Boolean = true): Pair<Boolean, GamebaseException?>
getManifestMetaData
Link copied to clipboard
fun getManifestMetaData(context: Context, res: Resource, showErrorLog: Boolean = true): Resource
getStringMetaData
Link copied to clipboard
fun getStringMetaData(context: Context, key: String, defaultValue: String?, showErrorLog: Boolean = true): Pair<String?, GamebaseException?>
getValueIgnoreCase
Link copied to clipboard
fun <T> Map<String?, T?>.getValueIgnoreCase(key: String?): T?
isVersionGreaterEqualThan
Link copied to clipboard
fun String.isVersionGreaterEqualThan(other: String): Boolean
loadBooleanResource
Link copied to clipboard
fun loadBooleanResource(context: Context, key: String, defaultValue: Boolean, showErrorLog: Boolean = true): Pair<Boolean, GamebaseException?>
loadResource
Link copied to clipboard
fun loadResource(context: Context, res: Resource, showErrorLog: Boolean = true): Resource
loadStringResource
Link copied to clipboard
fun loadStringResource(context: Context, key: String, defaultValue: String?, showErrorLog: Boolean = true): Pair<String?, GamebaseException?>
safeGetOrDefault
Link copied to clipboard
fun <K, V> Map<out K, V>.safeGetOrDefault(key: K, defaultValue: V): V
toJson
Link copied to clipboard
fun Throwable?.toJson(): JSONObject
toJsonString
Link copied to clipboard
fun Throwable?.toJsonString(): String