Add contact plugin settings
This commit is contained in:
@@ -23,7 +23,7 @@ data class PostalAddress(
|
||||
)
|
||||
|
||||
/**
|
||||
* Custom contact channel, for example, WhatsApp message, Telegram video call, etc.
|
||||
* Custom contact action, for example, WhatsApp message, Telegram video call, etc.
|
||||
*/
|
||||
@Serializable
|
||||
data class CustomContactAction(
|
||||
@@ -35,18 +35,33 @@ data class CustomContactAction(
|
||||
/**
|
||||
* Type that is passed to the Intent.
|
||||
*/
|
||||
val mimeType: String,
|
||||
val mimeType: String? = null,
|
||||
/**
|
||||
* Package name of the app that handles this channel.
|
||||
* Used to get the app icon, and label, and to group channels by app.
|
||||
* If the app is not installed, the channel will be ignored.
|
||||
* Used to get the app icon, and label, and to group actions by app.
|
||||
* If the app is not installed, the action will be ignored.
|
||||
*/
|
||||
val packageName: String,
|
||||
)
|
||||
|
||||
enum class ContactInfoType {
|
||||
/**
|
||||
* Home or private number/address.
|
||||
*/
|
||||
Home,
|
||||
|
||||
/**
|
||||
* Cell phone number, only applicable for phone numbers.
|
||||
*/
|
||||
Mobile,
|
||||
|
||||
/**
|
||||
* Work or business number/address.
|
||||
*/
|
||||
Work,
|
||||
|
||||
/**
|
||||
* Other
|
||||
*/
|
||||
Other,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user