ContactsContract.DataColumns.PreferredPhoneAccountId 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.
Caution
Use 'Android.Provider.ContactsContract.IDataColumns.PreferredPhoneAccountId'. This class will be removed in a future release.
The ID of a android.telecom.PhoneAccountHandle
that is the preferred PhoneAccountHandle
to
call the contact with.
[Android.Runtime.Register("PREFERRED_PHONE_ACCOUNT_ID", ApiSince=28)]
[System.Obsolete("Use 'Android.Provider.ContactsContract.IDataColumns.PreferredPhoneAccountId'. This class will be removed in a future release.")]
public const string PreferredPhoneAccountId;
[<Android.Runtime.Register("PREFERRED_PHONE_ACCOUNT_ID", ApiSince=28)>]
[<System.Obsolete("Use 'Android.Provider.ContactsContract.IDataColumns.PreferredPhoneAccountId'. This class will be removed in a future release.")>]
val mutable PreferredPhoneAccountId : string
Field Value
- Attributes
Remarks
The ID of a android.telecom.PhoneAccountHandle
that is the preferred PhoneAccountHandle
to call the contact with. Used by CommonDataKinds.Phone
.
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 id from this field.
Java documentation for android.provider.ContactsContract.DataColumns.PREFERRED_PHONE_ACCOUNT_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.