RegisterContactPicker

actual fun RegisterContactPicker(onContactSelected: (Contact?) -> Unit)(source)

Registers the ManagedActivityResultLauncher within the Compose composition.

This method must be called within a Composable context. It initializes the launcher once and sets up the callback to process the resulting Uri into a Contact object.

Parameters

onContactSelected

Callback invoked with the mapped Contact or null if the selection failed or was cancelled.

expect fun RegisterContactPicker(onContactSelected: (Contact?) -> Unit)(source)

Registers the contact picker within the Compose composition.

This method must be called from a Composable function. It sets up any necessary infrastructure (like activity launchers or delegates) required to receive the result of a contact selection.

Parameters

onContactSelected

Callback invoked with the selected Contact object, or null if the selection was cancelled or failed.

actual fun RegisterContactPicker(onContactSelected: (Contact?) -> Unit)(source)

Registers the callback to be invoked when a contact is selected.

In the iOS implementation, this stores the provided onContactSelected lambda which will be triggered by the delegate methods once the user interacts with the picker.

Parameters

onContactSelected

Callback invoked with the selected Contact or null if cancelled.