Share via


ContactsContract.Intents.ExtraRecipientContactChatId Field

Definition

This extra specifies a messaging app’s unique ID(s) for the contact(s), used with #ACTION_VOICE_SEND_MESSAGE_TO_CONTACTS to supply the recipient(s).

[Android.Runtime.Register("EXTRA_RECIPIENT_CONTACT_CHAT_ID", ApiSince=24)]
public const string ExtraRecipientContactChatId;
[<Android.Runtime.Register("EXTRA_RECIPIENT_CONTACT_CHAT_ID", ApiSince=24)>]
val mutable ExtraRecipientContactChatId : string

Field Value

Attributes

Remarks

This extra specifies a messaging app’s unique ID(s) for the contact(s), used with #ACTION_VOICE_SEND_MESSAGE_TO_CONTACTS to supply the recipient(s). The value of this extra is a String[]. The number of elements in the array should be equal to number of recipients (and consistent with #EXTRA_RECIPIENT_CONTACT_URI and #EXTRA_RECIPIENT_CONTACT_NAME). When the value of the element for the particular recipient is absent, it will be set to null.

The value of the elements comes from the DataColumns#DATA1 column in Contacts Provider with DataColumns#MIMETYPE from #METADATA_MIMETYPE (if both #METADATA_ACCOUNT_TYPE and #METADATA_MIMETYPE are specified by the app; otherwise, the value will be a phone number), and should be the unambiguous contact endpoint. This value is app-specific, it could be some proprietary ID or a phone number.

Java documentation for android.provider.ContactsContract.Intents.EXTRA_RECIPIENT_CONTACT_CHAT_ID.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to