Skip to content

Commit d24da85

Browse files
authored
Merge pull request #5 from Lilytreasure/development
documentation
2 parents f83a0ed + 51064c6 commit d24da85

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

  • multiplatformContact/src

multiplatformContact/src/androidMain/kotlin/multiContacts/Picker.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ import androidx.compose.runtime.remember
1717
import androidx.compose.runtime.setValue
1818
import 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
2227
actual fun pickMultiplatformContacts(onResult: (String) -> Unit): Launcher {

multiplatformContact/src/iosMain/kotlin/multiContacts/Picker.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ import platform.ContactsUI.CNContactPickerViewController
88
import platform.UIKit.UIApplication
99
import 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+
1118
typealias ContactPickedCallback = (String) -> Unit
1219

1320
@Composable

0 commit comments

Comments
 (0)