SpatialContainerStateObservable

Used to receive SpatialContainer's SpatialContainerState change and dispatch it to observers.

Constructors

Link copied to clipboard
constructor(owner: SpatialContainerStateOwner)

Properties

Functions

Link copied to clipboard

Add an observer for a spatial container's state.

Link copied to clipboard

Override this function to get the new SpatialContainerState when it changes.

Link copied to clipboard
fun refreshState(context: Context)

Manually refreshes the state of the SpatialContainer when state change events are missed. For example, you can call this function when default WindowContainer's state has changed before the first android.app.Activity listens to it.

Link copied to clipboard