Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class Key<T>(val keyName: String, val valueType: KeyType<T>)

Application context key with type safety.

Link copied to clipboard
abstract class KeyType<T>

The purpose of this class is to enable capturing and passing a generic Type. In order to capture the generic type and retain it at runtime, you need to create a subclass (ideally as anonymous inline class) as follows: