LocalActivityResultRegistryOwner

object LocalActivityResultRegistryOwner


Provides a ActivityResultRegistryOwner that can be used by Composables hosted in a androidx.activity.ComponentActivity.

Summary

Public functions

infix ProvidedValue<ActivityResultRegistryOwner?>

Associates a LocalActivityResultRegistryOwner key to a value in a call to CompositionLocalProvider.

Public properties

ActivityResultRegistryOwner?

Returns current composition local value for the owner or null if one has not been provided nor is one available by looking at the LocalContext.

Public functions

provides

Added in 1.3.0
infix fun provides(registryOwner: ActivityResultRegistryOwner): ProvidedValue<ActivityResultRegistryOwner?>

Associates a LocalActivityResultRegistryOwner key to a value in a call to CompositionLocalProvider.

Public properties

current

Added in 1.3.0
val currentActivityResultRegistryOwner?

Returns current composition local value for the owner or null if one has not been provided nor is one available by looking at the LocalContext.