ContactsContract.DataColumns.PreferredPhoneAccountComponentName Field

Definition

Caution

Use 'Android.Provider.ContactsContract.IDataColumns.PreferredPhoneAccountComponentName'. This class will be removed in a future release.

The flattened android.content.ComponentName of a android.telecom.PhoneAccountHandle that is the preferred PhoneAccountHandle to call the contact with.

[Android.Runtime.Register("PREFERRED_PHONE_ACCOUNT_COMPONENT_NAME", ApiSince=28)]
[System.Obsolete("Use 'Android.Provider.ContactsContract.IDataColumns.PreferredPhoneAccountComponentName'. This class will be removed in a future release.")]
public const string PreferredPhoneAccountComponentName;
[<Android.Runtime.Register("PREFERRED_PHONE_ACCOUNT_COMPONENT_NAME", ApiSince=28)>]
[<System.Obsolete("Use 'Android.Provider.ContactsContract.IDataColumns.PreferredPhoneAccountComponentName'. This class will be removed in a future release.")>]
val mutable PreferredPhoneAccountComponentName : string

Field Value

Attributes

Remarks

The flattened android.content.ComponentName of a android.telecom.PhoneAccountHandle that is the preferred PhoneAccountHandle to call the contact with.

On a multi-SIM device this field can be used in a CommonDataKinds.Phone row to indicate the PhoneAccountHandle to call the number with, instead of using android.telecom.TelecomManager#getDefaultOutgoingPhoneAccount(String) or asking every time.

android.telecom.TelecomManager#placeCall(Uri, android.os.Bundle) should be called with android.telecom.TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE set to the PhoneAccountHandle using the ComponentName from this field.

Java documentation for android.provider.ContactsContract.DataColumns.PREFERRED_PHONE_ACCOUNT_COMPONENT_NAME.

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