Accounts.ACAccountStore.RequestAccess Method
Requests access to a type of social account.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public void RequestAccess (ACAccountType accountType, AccountStoreOptions options, [ObjCRuntime.BlockProxy(typeof(ObjCRuntime.Trampolines/NIDACRequestCompletionHandler))] ACRequestCompletionHandler completion)

See Also

AccountStoreOptions

Parameters

accountType
The type of account for which access is being requested.
options
Options for accessing Facebook accounts or null.
completion
The handler to be called when the method completes.

Remarks

Application developers can retrieve the accountType object with the ACAccountStore.FindAccountType method.

C# Example

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

Requirements

Namespace: Accounts
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0