Share via


ACAccountStore.RequestAccess Method

Definition

Overloads

RequestAccess(ACAccountType, ACRequestCompletionHandler)

[Foundation.Export("requestAccessToAccountsWithType:withCompletionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void RequestAccess(Accounts.ACAccountType accountType, Accounts.ACRequestCompletionHandler completionHandler);
[<Foundation.Export("requestAccessToAccountsWithType:withCompletionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestAccess : Accounts.ACAccountType * Accounts.ACRequestCompletionHandler -> unit
override this.RequestAccess : Accounts.ACAccountType * Accounts.ACRequestCompletionHandler -> unit

Parameters

accountType
ACAccountType
completionHandler
ACRequestCompletionHandler
Attributes

Applies to

RequestAccess(ACAccountType, AccountStoreOptions, ACRequestCompletionHandler)

Requests access to a type of social account.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public void RequestAccess(Accounts.ACAccountType accountType, Accounts.AccountStoreOptions? options, Accounts.ACRequestCompletionHandler completion);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.RequestAccess : Accounts.ACAccountType * Accounts.AccountStoreOptions * Accounts.ACRequestCompletionHandler -> unit

Parameters

accountType
ACAccountType

The type of account for which access is being requested.

options
AccountStoreOptions

Options for accessing Facebook accounts or null.

completion
ACRequestCompletionHandler

The handler to be called when the method completes.

Attributes

Remarks

Application developers can retrieve the accountType object with the FindAccountType(String) method.

var objStore = new ACAccountStore();
var options = new AccountStoreOptions();
objStore.RequestAccess(objStore.FindAccountType(ACAccountType.Facebook), options, (granted, error) => { });

See also

Applies to

RequestAccess(ACAccountType, NSDictionary, ACRequestCompletionHandler)

[Foundation.Export("requestAccessToAccountsWithType:options:completion:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual void RequestAccess(Accounts.ACAccountType accountType, Foundation.NSDictionary? options, Accounts.ACRequestCompletionHandler completion);
[<Foundation.Export("requestAccessToAccountsWithType:options:completion:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestAccess : Accounts.ACAccountType * Foundation.NSDictionary * Accounts.ACRequestCompletionHandler -> unit
override this.RequestAccess : Accounts.ACAccountType * Foundation.NSDictionary * Accounts.ACRequestCompletionHandler -> unit

Parameters

accountType
ACAccountType
options
NSDictionary
Attributes

Applies to