AccountManager.Get(Context) Method
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.
Gets an AccountManager instance associated with a Context.
[Android.Runtime.Register("get", "(Landroid/content/Context;)Landroid/accounts/AccountManager;", "")]
public static Android.Accounts.AccountManager? Get (Android.Content.Context? context);
[<Android.Runtime.Register("get", "(Landroid/content/Context;)Landroid/accounts/AccountManager;", "")>]
static member Get : Android.Content.Context -> Android.Accounts.AccountManager
Parameters
- context
- Context
The Context
to use when necessary
Returns
An AccountManager
instance
- Attributes
Remarks
Gets an AccountManager instance associated with a Context. The Context
will be used as long as the AccountManager is active, so make sure to use a Context
whose lifetime is commensurate with any listeners registered to #addOnAccountsUpdatedListener
or similar methods.
It is safe to call this method from the main thread.
No permission is required to call this method.
Java documentation for android.accounts.AccountManager.get(android.content.Context)
.
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.