Package-level declarations

Contains the PlatformHelperContacts class to add and remove contacts in Android ContactsProvider using a contentResolver. It also contains the data classes TypedPhoneNumber that will be linked to contacts.

Types

Link copied to clipboard
@IviExperimental(reasons = [])
class PlatformHelperContacts(context: Context, account: Account? = Account(ACCOUNT_SOURCE_NAME, ACCOUNT_SOURCE_TYPE))

Util class to add and remove contacts in Android ContactsProvider using a contentResolver. Each contact added to the specified Account.

Link copied to clipboard
@IviExperimental(reasons = [])
data class TypedAddress(val address: String, val type: Int)

TypedAddress is a pair value address and a type. type shall be a value from the list provided by Android, see ContactsContract.CommonDataKinds.StructuredPostal.TYPE_HOME.

Link copied to clipboard
@IviExperimental(reasons = [])
data class TypedPhoneNumber(val phoneNumber: String, val type: Int)

TypedPhoneNumber is a pair value phoneNumber and a type. type shall be a value from the list provided by Android, see ContactsContract.CommonDataKinds.Phone.TYPE_HOME.