vector / com.haroldadmin.vector / context
context¶
fun
ViewModelOwner
.context():
Context
Get access to Context from a ViewModelOwner.
When this is an ActivityViewModelOwner, it returns the wrapped activity itself. When this is a FragmentViewModelOwner, returns the context from the wrapped fragment.