rememberContactPickerState

Creates and remembers a ContactPickerState instance across recompositions.

This function is the primary entry point for using the contact picker in a Composable. It automatically initializes the underlying platform-specific picker infrastructure within the composition lifecycle.

Return

A stable ContactPickerState to manage and trigger contact picking.

Parameters

contactPicked

An optional callback triggered whenever a contact is selected or the selection process is terminated.