ContactsContract.CommonDataKinds.Identity.InterfaceConsts.PreferredPhoneAccountComponentName Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)]
public const string PreferredPhoneAccountComponentName;
[<Android.Runtime.Register("PREFERRED_PHONE_ACCOUNT_COMPONENT_NAME", ApiSince=28)>]
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.
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.