Composable Function

rememberSpatialActivityPanelController

Creates and remembers a SpatialActivityPanelController across recompositions.

rememberSpatialActivityPanelController

Source set: Android
@Composable
public fun rememberSpatialActivityPanelController(
    initialIntent: Intent
): SpatialActivityPanelController

Creates and remembers a SpatialActivityPanelController across recompositions.

The provided initialIntent is only queued when the controller is initially created. Subsequent recompositions with a different intent will be ignored. To add new intents dynamically after creation, use SpatialActivityPanelController.startActivity. To replace the panel and its task stack with a new intent entirely, key the composition on the intent (e.g., using key(intent)).

Parameters

initialIntent The initial Intent to queue for execution inside the activity panel.

Return

A remembered instance of SpatialActivityPanelController.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: