UserManager.CreateUserCreationIntent(String, String, String, PersistableBundle) Method

Definition

Returns an intent to create a user for the provided name and account name.

[Android.Runtime.Register("createUserCreationIntent", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/PersistableBundle;)Landroid/content/Intent;", "", ApiSince=24)]
public static Android.Content.Intent? CreateUserCreationIntent (string? userName, string? accountName, string? accountType, Android.OS.PersistableBundle? accountOptions);
[<Android.Runtime.Register("createUserCreationIntent", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/PersistableBundle;)Landroid/content/Intent;", "", ApiSince=24)>]
static member CreateUserCreationIntent : string * string * string * Android.OS.PersistableBundle -> Android.Content.Intent

Parameters

userName
String

Optional name to assign to the user.

accountName
String

Optional account name that will be used by the setup wizard to initialize the user.

accountType
String

Optional account type for the account to be created. This is required if the account name is specified.

accountOptions
PersistableBundle

Optional bundle of data to be passed in during account creation in the new user via AccountManager#addAccount(String, String, String[], Bundle, android.app.Activity, android.accounts.AccountManagerCallback, Handler).

Returns

Intent

An Intent that can be launched from an Activity.

Attributes

Remarks

Java documentation for android.os.UserManager.createUserCreationIntent(java.lang.String, java.lang.String, java.lang.String, android.os.PersistableBundle).

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