Share via


ACAccountStore.RequestAccessAsync Method

Definition

Overloads

RequestAccessAsync(ACAccountType)

Requests access to a type of social account.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> RequestAccessAsync(Accounts.ACAccountType accountType);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestAccessAsync : Accounts.ACAccountType -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.RequestAccessAsync : Accounts.ACAccountType -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

accountType
ACAccountType

The type of account for which access is being requested.

Returns

A task that represents the asynchronous RequestAccess operation. The value of the TResult parameter is a Accounts.ACRequestCompletionHandler.

Attributes

Applies to

RequestAccessAsync(ACAccountType, AccountStoreOptions)

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> RequestAccessAsync(Accounts.ACAccountType accountType, Accounts.AccountStoreOptions? options);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.RequestAccessAsync : Accounts.ACAccountType * Accounts.AccountStoreOptions -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

accountType
ACAccountType

Returns

Attributes

Applies to

RequestAccessAsync(ACAccountType, NSDictionary)

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> RequestAccessAsync(Accounts.ACAccountType accountType, Foundation.NSDictionary? options);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestAccessAsync : Accounts.ACAccountType * Foundation.NSDictionary -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.RequestAccessAsync : Accounts.ACAccountType * Foundation.NSDictionary -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

accountType
ACAccountType
options
NSDictionary

Returns

Attributes

Applies to