다음을 통해 공유


CredentialManager.GetCredential 메서드

정의

오버로드

GetCredential(Context, GetCredentialRequest, CancellationSignal, IExecutor, IOutcomeReceiver)

사용자로부터 앱 자격 증명을 검색하는 데 필요한 흐름을 시작합니다.

GetCredential(Context, PrepareGetCredentialResponse+PendingGetCredentialHandle, CancellationSignal, IExecutor, IOutcomeReceiver)

GetCredential(Context, GetCredentialRequest, CancellationSignal, IExecutor, IOutcomeReceiver)

사용자로부터 앱 자격 증명을 검색하는 데 필요한 흐름을 시작합니다.

[Android.Runtime.Register("getCredential", "(Landroid/content/Context;Landroid/credentials/GetCredentialRequest;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
public void GetCredential (Android.Content.Context context, Android.Credentials.GetCredentialRequest request, Android.OS.CancellationSignal? cancellationSignal, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("getCredential", "(Landroid/content/Context;Landroid/credentials/GetCredentialRequest;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)>]
member this.GetCredential : Android.Content.Context * Android.Credentials.GetCredentialRequest * Android.OS.CancellationSignal * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

매개 변수

context
Context

필요한 UI를 시작하는 데 사용되는 컨텍스트입니다. 작업 컨텍스트를 사용하여 동일한 작업 스택 내에서 UI가 시작되도록 합니다.

request
GetCredentialRequest

사용자로부터 가져올 자격 증명 유형을 지정하는 요청

cancellationSignal
CancellationSignal

이 호출을 취소할 수 있는 선택적 신호

executor
IExecutor

콜백은 이에 대해 수행됩니다. Executor

callback
IOutcomeReceiver

요청이 성공하거나 실패할 때 호출되는 콜백

특성

설명

사용자로부터 앱 자격 증명을 검색하는 데 필요한 흐름을 시작합니다.

실행은 잠재적으로 UI 흐름을 시작하여 자격 증명을 사용하는 사용자 동의를 수집하고, 여러 자격 증명이 있을 때 선택기를 표시할 수 있습니다. 호출자(예: 브라우저)는 필요에 따라 해당 앱을 대신하여 자격 증명을 가져올 수 있도록 자신의 앱과 다른 앱의 원본 GetCredentialRequest 을 설정할 수 있습니다. 이 기능을 사용하려면 추가 권한이 CREDENTIAL_MANAGER_SET_ORIGIN 필요합니다.

에 대한 android.credentials.CredentialManager.getCredential(android.content.Context, android.credentials.GetCredentialRequest, android.os.CancellationSignal, java.util.concurrent.Executor, android.os.OutcomeReceiver<android.credentials.GetCredentialResponse, android.credentials.GetCredentialException>)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

GetCredential(Context, PrepareGetCredentialResponse+PendingGetCredentialHandle, CancellationSignal, IExecutor, IOutcomeReceiver)

[Android.Runtime.Register("getCredential", "(Landroid/content/Context;Landroid/credentials/PrepareGetCredentialResponse$PendingGetCredentialHandle;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
public void GetCredential (Android.Content.Context context, Android.Credentials.PrepareGetCredentialResponse.PendingGetCredentialHandle pendingGetCredentialHandle, Android.OS.CancellationSignal? cancellationSignal, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("getCredential", "(Landroid/content/Context;Landroid/credentials/PrepareGetCredentialResponse$PendingGetCredentialHandle;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)>]
member this.GetCredential : Android.Content.Context * Android.Credentials.PrepareGetCredentialResponse.PendingGetCredentialHandle * Android.OS.CancellationSignal * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

매개 변수

context
Context
cancellationSignal
CancellationSignal
executor
IExecutor
callback
IOutcomeReceiver
특성

적용 대상