Düzenle

Aracılığıyla paylaş


ACAccountStore.RequestAccess Method

Definition

Overloads

RequestAccess(ACAccountType, ACRequestCompletionHandler)

Developers should not use this deprecated method. Developers should use 'RequestAccess (ACAccountType, AccountStoreOptions, ACRequestCompletionHandler)' instead.

RequestAccess(ACAccountType, AccountStoreOptions, ACRequestCompletionHandler)

Requests access to a type of social account.

RequestAccess(ACAccountType, NSDictionary, ACRequestCompletionHandler)

Requests access to a type of social account.

RequestAccess(ACAccountType, ACRequestCompletionHandler)

Developers should not use this deprecated method. Developers should use 'RequestAccess (ACAccountType, AccountStoreOptions, ACRequestCompletionHandler)' instead.

[Foundation.Export("requestAccessToAccountsWithType:withCompletionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'RequestAccess (ACAccountType, AccountStoreOptions, ACRequestCompletionHandler)' instead.")]
public virtual void RequestAccess (Accounts.ACAccountType accountType, Accounts.ACRequestCompletionHandler completionHandler);
abstract member RequestAccess : Accounts.ACAccountType * Accounts.ACRequestCompletionHandler -> unit
override this.RequestAccess : Accounts.ACAccountType * Accounts.ACRequestCompletionHandler -> unit

Parameters

accountType
ACAccountType

The type of account for which access is being requested.

completionHandler
ACRequestCompletionHandler

The handler to be called when the method completes.

Attributes

Applies to

RequestAccess(ACAccountType, AccountStoreOptions, ACRequestCompletionHandler)

Requests access to a type of social account.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public void RequestAccess (Accounts.ACAccountType accountType, Accounts.AccountStoreOptions options, Accounts.ACRequestCompletionHandler completion);
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)

Requests access to a type of social account.

[Foundation.Export("requestAccessToAccountsWithType:options:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
protected virtual void RequestAccess (Accounts.ACAccountType accountType, Foundation.NSDictionary options, Accounts.ACRequestCompletionHandler completion);
abstract member RequestAccess : Accounts.ACAccountType * Foundation.NSDictionary * Accounts.ACRequestCompletionHandler -> unit
override this.RequestAccess : Accounts.ACAccountType * Foundation.NSDictionary * Accounts.ACRequestCompletionHandler -> unit

Parameters

accountType
ACAccountType

The type of account for which access is being requested.

options
NSDictionary

Options for accessing Facebook accounts or null.

This parameter can be null.

completion
ACRequestCompletionHandler

The handler to be called when the method completes.

Attributes

Applies to