vector / com.haroldadmin.vector / ActivityViewModelOwner

ActivityViewModelOwner

class ActivityViewModelOwner :ViewModelOwner

A ViewModelOwner wrapping an Activity

Constructors

Name Summary
<init> ActivityViewModelOwner(activity:ComponentActivity)
Creates a ViewModelOwner wrapping the given Activity

Properties

Name Summary
activity val activity:ComponentActivity
The underlying activity of this ViewModelOwner

Functions

Name Summary
activity fun <A :FragmentActivity> activity():A
Get a type-casted version of the wrapped activity

Extension Functions

Name Summary
context funViewModelOwner.context():Context
Get access to Context from a ViewModelOwner.