Language

ContactsContract.RawContacts.DefaultAccount.DefaultAccountAndState.OfSim Method

Definition

Creates a DefaultAccountAndState instance representing a default account that is set to the sim and associated with the specified sim account.

[Android.Runtime.Register("ofSim", "(Landroid/accounts/Account;)Landroid/provider/ContactsContract$RawContacts$DefaultAccount$DefaultAccountAndState;", "", ApiSince=36)]
public static Android.Provider.ContactsContract.RawContacts.DefaultAccount.DefaultAccountAndState OfSim(Android.Accounts.Account simAccount);
[<Android.Runtime.Register("ofSim", "(Landroid/accounts/Account;)Landroid/provider/ContactsContract$RawContacts$DefaultAccount$DefaultAccountAndState;", "", ApiSince=36)>]
static member OfSim : Android.Accounts.Account -> Android.Provider.ContactsContract.RawContacts.DefaultAccount.DefaultAccountAndState

Parameters

simAccount
Account

The non-null sim account associated with the default contacts account.

Returns

A new DefaultAccountAndState instance with state DEFAULT_ACCOUNT_STATE_SIM. This value cannot be null.

Attributes

Remarks

Creates a `DefaultAccountAndState` instance representing a default account that is set to the sim and associated with the specified sim account.

Android reference for android.provider.ContactsContract.RawContacts.DefaultAccount.DefaultAccountAndState.ofSim.

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