API reference
API reference
Select your platform
No SDKs available
No versions available

PanelViewLifecycleOwner Class

Modifiers: final
Provides Android lifecycle, ViewModel, and SavedStateRegistry ownership for Compose-based spatial panels. Implements LifecycleOwner, ViewModelStoreOwner, and SavedStateRegistryOwner to enable standard Compose APIs (collectAsState, LaunchedEffect, rememberSaveable) within panels rendered in the Spatial SDK. Managed internally by ComposeFeature — typically not instantiated directly.

Signature

class PanelViewLifecycleOwner

Constructors

PanelViewLifecycleOwner ()
Signature
constructor()

Properties

lifecycle : Lifecycle
[Get]
Signature
open val lifecycle: Lifecycle
savedStateRegistry : SavedStateRegistry
[Get]
Signature
open val savedStateRegistry: SavedStateRegistry
viewModelStore : ViewModelStore
[Get]
Signature
open val viewModelStore: ViewModelStore

Methods

onCreate ()
Signature
fun onCreate()
onDestroy ()
Signature
fun onDestroy()
onPause ()
Signature
fun onPause()
onResume ()
Signature
fun onResume()
onStart ()
Signature
fun onStart()
onStop ()
Signature
fun onStop()