current

suspend fun current(): Context

Gets the activity associated with the coroutine.

Return

the activity context, ie. a Context for which Context.getActivity will return the associated android.app.Activity.

Throws

if no context is bound to the coroutine.