RegisterContactPicker

actual fun RegisterContactPicker(onContactSelected: (Contact?) -> Unit)(source)
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 for single contact selection.