getFromContext

abstract fun <T : Any> getFromContext(type: Class<T>): T?

Retrieve an object of the specified type from the context.

Return

the object instance, or null if not available

Parameters

type

the class of the object to retrieve