Add contact plugin settings

This commit is contained in:
MM20
2025-04-06 14:10:48 +02:00
parent 02cec92d72
commit ee9312a887
11 changed files with 200 additions and 46 deletions
@@ -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,
}