File tree Expand file tree Collapse file tree
androidMain/kotlin/multiContacts
iosMain/kotlin/multiContacts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ import androidx.compose.runtime.remember
1717import androidx.compose.runtime.setValue
1818import androidx.compose.ui.platform.LocalContext
1919
20+ /* *
21+ * @param Launcher used to invoke the contacts picker
22+ * @param getPhoneNumberFromUriData is used to extract phone number from the uri
23+ */
24+
2025
2126@Composable
2227actual fun pickMultiplatformContacts (onResult : (String ) -> Unit ): Launcher {
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ import platform.ContactsUI.CNContactPickerViewController
88import platform.UIKit.UIApplication
99import platform.darwin.NSObject
1010
11+
12+
13+ /* *
14+ * @param Launcher used to invoke the contacts picker
15+ * @param extractPhoneNumber is used to extract phone number, can be modified to extract phone number data of your choice
16+ */
17+
1118typealias ContactPickedCallback = (String ) -> Unit
1219
1320@Composable
You can’t perform that action at this time.
0 commit comments