AccountManager.NewChooseAccountIntent メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
NewChooseAccountIntent(Account, IList<Account>, String[], String, String, String[], Bundle) |
アカウントの一覧から選択するようにユーザーに求める意図 |
NewChooseAccountIntent(Account, IList<Account>, String[], Boolean, String, String, String[], Bundle) |
を優先 |
NewChooseAccountIntent(Account, IList<Account>, String[], String, String, String[], Bundle)
アカウントの一覧から選択するようにユーザーに求める意図 Activity
を に返します。
[Android.Runtime.Register("newChooseAccountIntent", "(Landroid/accounts/Account;Ljava/util/List;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;", "", ApiSince=23)]
public static Android.Content.Intent? NewChooseAccountIntent (Android.Accounts.Account? selectedAccount, System.Collections.Generic.IList<Android.Accounts.Account>? allowableAccounts, string[]? allowableAccountTypes, string? descriptionOverrideText, string? addAccountAuthTokenType, string[]? addAccountRequiredFeatures, Android.OS.Bundle? addAccountOptions);
[<Android.Runtime.Register("newChooseAccountIntent", "(Landroid/accounts/Account;Ljava/util/List;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;", "", ApiSince=23)>]
static member NewChooseAccountIntent : Android.Accounts.Account * System.Collections.Generic.IList<Android.Accounts.Account> * string[] * string * string * string[] * Android.OS.Bundle -> Android.Content.Intent
パラメーター
- selectedAccount
- Account
が指定されている場合、 は、選択されているの呼び出し元の定義に従って、 が現在選択されていることを示 Account
します。
- allowableAccountTypes
- String[]
アカウント型の省略可能な文字列配列。 これらは、表示されているアカウントのフィルター処理と、アカウントの追加時に表示されるアカウントの種類の一覧のフィルター処理の両方に使用されます。 指定しない場合、このフィールドは、アカウントを追加するときに表示されるアカウントの種類を制限しません。
- descriptionOverrideText
- String
null 以外の場合、この文字列は、既定ではなくアカウント選択画面の説明として使用されます
- addAccountAuthTokenType
- String
この文字列は authTokenType パラメーターとして #addAccount
渡されます
- addAccountRequiredFeatures
- String[]
この文字列配列は requiredFeatures パラメーターとして #addAccount
渡されます
- addAccountOptions
- Bundle
これは Bundle
options パラメーターとして #addAccount
渡されます
戻り値
ChooseAccount Intent
アクティビティ フローを起動するために使用できる 。
- 属性
注釈
アカウントの一覧から選択するようにユーザーに求める意図 Activity
を に返します。 その後、呼び出し元は通常、 を呼び出 startActivityForResult(intent, ...);
してアクティビティを開始します。
成功すると、アクティビティは、キー #KEY_ACCOUNT_NAME
#KEY_ACCOUNT_TYPE
と を使用して指定されたアカウント名と種類を持つ Bundle を返します。 選択したアカウントは呼び出し元に対して として #VISIBILITY_USER_MANAGED_VISIBLE
マークされ (「」を参照 #setAccountVisibility
) 呼び出しで #getAccountsByType
返されます。
最も一般的なケースは、次のように、1 つのアカウントの種類でこれを呼び出す方法です。
newChooseAccountIntent(null, null, new String[]{"com.google"}, null, null, null,
null);
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
NewChooseAccountIntent(Account, IList<Account>, String[], Boolean, String, String, String[], Bundle)
を優先 #newChooseAccountIntent(Account, List, String[], String,
String, String[], Bundle)
して非推奨になりました。
[Android.Runtime.Register("newChooseAccountIntent", "(Landroid/accounts/Account;Ljava/util/ArrayList;[Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;", "")]
public static Android.Content.Intent? NewChooseAccountIntent (Android.Accounts.Account? selectedAccount, System.Collections.Generic.IList<Android.Accounts.Account>? allowableAccounts, string[]? allowableAccountTypes, bool alwaysPromptForAccount, string? descriptionOverrideText, string? addAccountAuthTokenType, string[]? addAccountRequiredFeatures, Android.OS.Bundle? addAccountOptions);
[<Android.Runtime.Register("newChooseAccountIntent", "(Landroid/accounts/Account;Ljava/util/ArrayList;[Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;", "")>]
static member NewChooseAccountIntent : Android.Accounts.Account * System.Collections.Generic.IList<Android.Accounts.Account> * string[] * bool * string * string * string[] * Android.OS.Bundle -> Android.Content.Intent
パラメーター
- selectedAccount
- Account
が指定されている場合、 は、選択されているの呼び出し元の定義に従って、 が現在選択されていることを示 Account
します。
- allowableAccountTypes
- String[]
アカウント型の省略可能な文字列配列。 これらは、表示されているアカウントのフィルター処理と、アカウントの追加時に表示されるアカウントの種類の一覧のフィルター処理の両方に使用されます。 指定しない場合、このフィールドは、アカウントを追加するときに表示されるアカウントの種類を制限しません。
- alwaysPromptForAccount
- Boolean
無視されるブール値。
- descriptionOverrideText
- String
null 以外の場合、この文字列は、既定ではなくアカウント選択画面の説明として使用されます
- addAccountAuthTokenType
- String
この文字列は authTokenType パラメーターとして #addAccount
渡されます
- addAccountRequiredFeatures
- String[]
この文字列配列は requiredFeatures パラメーターとして #addAccount
渡されます
- addAccountOptions
- Bundle
これは Bundle
options パラメーターとして #addAccount
渡されます
戻り値
ChooseAccount Intent
アクティビティ フローを起動するために使用できる 。
- 属性
注釈
を優先 #newChooseAccountIntent(Account, List, String[], String, String, String[], Bundle)
して非推奨になりました。
アカウントの一覧から選択するようにユーザーに求める意図 Activity
を に返します。 その後、呼び出し元は通常、 を呼び出 startActivityForResult(intent, ...);
してアクティビティを開始します。
成功すると、アクティビティは、キー #KEY_ACCOUNT_NAME
#KEY_ACCOUNT_TYPE
と を使用して指定されたアカウント名と種類を持つ Bundle を返します。 選択したアカウントは呼び出し元に対して として #VISIBILITY_USER_MANAGED_VISIBLE
マークされ (「」を参照 #setAccountVisibility
) 呼び出しで #getAccountsByType
返されます。
最も一般的なケースは、次のように、1 つのアカウントの種類でこれを呼び出す方法です。
newChooseAccountIntent(null, null, new String[]{"com.google"}, false, null,
null, null, null);
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。