Single Contact Picker Delegate
private class SingleContactPickerDelegate(val onContactSelected: (Contact?) -> Unit) : NSObject, CNContactPickerDelegateProtocol(source)
Delegate for single contact selection.
This delegate implements the CNContactPickerDelegateProtocol to handle the selection of a single contact from the native iOS contact picker.
Note: It only overrides the contactPicker(_:didSelectContact:) method. This is crucial because providing an implementation for contactPicker(_:didSelectContacts:) (plural) would cause the iOS picker to switch to multi-selection mode, even if only one contact is desired.
Parameters
on Contact Selected
Callback invoked when a contact is selected or the picker is cancelled.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
expect open fun contactPicker(picker: CNContactPickerViewController, didSelectContactProperties: List<*>)
expect open fun contactPicker(picker: CNContactPickerViewController, didSelectContactProperty: CNContactProperty)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect open fun methodSignatureForSelector(aSelector: COpaquePointer?): objcnames/classes/NSMethodSignature??
Link copied to clipboard
Link copied to clipboard
expect open override fun performSelector(aSelector: COpaquePointer?, withObject: Any?, _withObject: Any?): Any?
Link copied to clipboard
Link copied to clipboard