Freigeben über


ContactsContract.Intents.ExtraRecipientContactUri Field

Definition

This extra specifies a content provider uri(s) for the contact(s) (if the contacts were located in the Contacts Provider), used with #ACTION_VOICE_SEND_MESSAGE_TO_CONTACTS to supply the recipient(s).

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

Field Value

Attributes

Remarks

This extra specifies a content provider uri(s) for the contact(s) (if the contacts were located in the Contacts Provider), 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_CHAT_ID and #EXTRA_RECIPIENT_CONTACT_NAME). When the value of the element for the particular recipient is absent, it will be set to null.

<em>Note: one contact may have multiple accounts (e.g. Chat IDs) on a specific messaging platform, so this may be ambiguous. E.g., one contact “John Smith” could have two accounts on the same messaging app.</em>

<em>Example value: {"content://com.android.contacts/contacts/16"}</em>

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

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