CredentialManager.PrepareGetCredential メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
資格情報の取得操作を準備します。
[Android.Runtime.Register("prepareGetCredential", "(Landroid/credentials/GetCredentialRequest;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
public void PrepareGetCredential(Android.Credentials.GetCredentialRequest request, Android.OS.CancellationSignal? cancellationSignal, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("prepareGetCredential", "(Landroid/credentials/GetCredentialRequest;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)>]
member this.PrepareGetCredential : Android.Credentials.GetCredentialRequest * Android.OS.CancellationSignal * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
パラメーター
- request
- GetCredentialRequest
ユーザーから取得する資格情報の種類を指定する要求
- cancellationSignal
- CancellationSignal
この呼び出しをキャンセルできるオプションのシグナル
- executor
- IExecutor
コールバックはこれに対して行われます Executor
- callback
- IOutcomeReceiver
要求が成功または失敗したときに呼び出されるコールバック
- 属性
注釈
資格情報の取得操作を準備します。 資格情報取得 UI フローを起動してアプリのユーザー資格情報を要求できる PrepareGetCredentialResponse を返します。
この API は UI を呼び出しません。 準備作業のみを実行するため、 #getCredential(Context, PrepareGetCredentialResponse.PendingGetCredentialHandle, CancellationSignal, Executor, OutcomeReceiver) API を介して残りの資格情報取得操作 (UI を含む) を後で起動できます。これは、1 回の呼び出しで操作全体を実行する #getCredential(Context, GetCredentialRequest, CancellationSignal, Executor, OutcomeReceiver) API と比較して待機時間が短くなります。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。