ContactPickerStateImpl

internal class ContactPickerStateImpl(val contactPicked: (Contact?) -> Unit) : ContactPickerState(source)

Concrete implementation of ContactPickerState responsible for bridging the common state management with platform-specific contact picking logic.

This class maintains the reactive state of the currently selected contact and orchestrates the interaction with the underlying ContactPicker implementation.

Parameters

contactPicked

A callback that is triggered every time a contact is successfully picked or the selection is cleared.

Constructors

Link copied to clipboard
constructor(contactPicked: (Contact?) -> Unit)

Properties

Link copied to clipboard
private val _value: MutableState<Contact?>
Link copied to clipboard
private val contactPicked: (Contact?) -> Unit
Link copied to clipboard
Link copied to clipboard
open override val value: State<Contact?>

Exposes the currently selected Contact as a read-only State.

Functions

Link copied to clipboard
open override fun InitContactPicker()

Initializes the underlying contact picker mechanism.

Link copied to clipboard
open override fun launchContactPicker()

Requests the platform to display its native contact picker interface.