ACAccountStore.RequestAccess Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| RequestAccess(ACAccountType, ACRequestCompletionHandler) | |
| RequestAccess(ACAccountType, AccountStoreOptions, ACRequestCompletionHandler) |
Requests access to a type of social account. |
| RequestAccess(ACAccountType, NSDictionary, ACRequestCompletionHandler) |
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
- completion
- ACRequestCompletionHandler
- Attributes