get

inline suspend fun <T : Any> SharedObjectContext.get(key: String): T?


@ApiStatus.Experimental
inline suspend fun <T : Any> KotlinState.get(key: String): T?

Gets the state stored under key.

Return

the value containing the stored state deserialized, or null if not set.

Parameters

key

the name of the state key.