vector / com.haroldadmin.vector / ActivityViewModelOwner / activity
activity¶
fun <A :FragmentActivity> activity():A
Get a type-casted version of the wrapped activity
Parameters¶
A - The type of your Activity
Exceptions¶
ClassCastException - If the wrapped activity can not be casted to given activity typeval activity:ComponentActivity
The underlying activity of this ViewModelOwner
Property¶
activity - The underlying activity of this ViewModelOwner