Skip to content
Vector Activity
Type to start searching
    Vector
    Vector
    • Overview
    • Introduction
    • Basics
    • Advanced Usage
      • Vector State
      • Vector Fragment
      • Vector ViewModel
      • SavedState VectorViewModel
      • Logging
      • Automatic ViewModel Creation
      • Coroutine Context for State Store
    • API Reference
    • Parameters
    • Exceptions
    • Property
    

    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

    powered by MkDocs and Material for MkDocs