Package-level declarations

Types

Link copied to clipboard
class Expirable<T : KClass<T>>(variable: T, expirationDate: Date)
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getCountryCode(countryName: String): String?
Link copied to clipboard

https://android.googlesource.com/platform/cts/+/2b87267/tests/tests/graphics/src/android/opengl/cts/OpenGlEsVersionTest.java

Link copied to clipboard
inline fun <K, V> LruCache<K, V>.getOrPut(key: K, defaultValue: () -> V): V

Gets value with specific key from the cache. If the value is not present, calls defaultValue to obtain a non-null value which is placed into the cache, then returned.

Link copied to clipboard
inline fun <K, V> LruCache<K, V>.getOrPutNotNull(key: K, defaultValue: () -> V?): V?

Gets value with specific key from the cache. If the value is not present, calls defaultValue to obtain a value which is placed into the cache if not null, then returned.

Link copied to clipboard
Link copied to clipboard
inline fun <T, R> T.ifThis(predicate: T.() -> Boolean, trueFun: () -> R, elseFun: () -> R): R
Link copied to clipboard
inline fun <K, V> LruCache<K, V>.keys(): Array<K>

Returns an array containing the keys in the cache.

Link copied to clipboard
fun <T> lazyNonSynchronized(initializer: () -> T): Lazy<T>
Link copied to clipboard

Reads a boolean value from the Parcel (converted from a byte).

Link copied to clipboard

Reified version of Parcel.readParcelable that allows classloader argument to be omitted.

Link copied to clipboard
@RequiresPermission(value = "android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS")
fun Context.requestBatteryOptimizations()
Link copied to clipboard
fun safeSleep(millisecond: Int)
Link copied to clipboard
Link copied to clipboard
fun setThreadPriority(priority: Int)
Link copied to clipboard
fun <T : Any> KClass<T>.start(context: Context, with: (bundle: Bundle) -> Unit? = null)

Start an activity from the class

Link copied to clipboard
fun <T : Any> KClass<T>.startClearStack(context: Context, with: (bundle: Bundle) -> Unit? = null)

Start an activity from the class and clear the stack

Link copied to clipboard
fun <T : Any> KClass<T>.startForResult(context: Activity, requestCode: Int, with: (bundle: Bundle) -> Unit? = null)

Start an activity from the class for the result

Link copied to clipboard
fun startNewThread(runnable: Runnable)
Link copied to clipboard

Writes a boolean value to the Parcel (as a byte).