Language

ContactsContract.RawContacts.DefaultAccount.DefaultAccountAndState.OfCloud Method

Definition

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

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

Parameters

cloudAccount
Account

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

Returns

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

Attributes

Remarks

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

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

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