CredentialManager.GetCredential 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
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 오픈 소스 프로젝트에서 만들고 공유하고 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
- pendingGetCredentialHandle
- PrepareGetCredentialResponse.PendingGetCredentialHandle
- cancellationSignal
- CancellationSignal
- executor
- IExecutor
- callback
- IOutcomeReceiver
- 특성