Accounts.ACAccountStore Class
Encapsulates the Accounts database, providing access to Accounts.ACAccount objects.

See Also: ACAccountStore Members

Syntax

[Foundation.Register("ACAccountStore", true)]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.Mac_10_0 | ObjCRuntime.Platform.Mac_10_1 | ObjCRuntime.Platform.Mac_10_2 | ObjCRuntime.Platform.Mac_10_3 | ObjCRuntime.Platform.Mac_10_4 | ObjCRuntime.Platform.Mac_10_5 | ObjCRuntime.Platform.Mac_10_6 | ObjCRuntime.Platform.Mac_10_7 | ObjCRuntime.Platform.Mac_10_8 | ObjCRuntime.Platform.Mac_10_9 | ObjCRuntime.Platform.Mac_10_10 | ObjCRuntime.Platform.Mac_Version | ObjCRuntime.Platform.Mac_Arch64 | ObjCRuntime.Platform.Mac_Arch)]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public class ACAccountStore : Foundation.NSObject

See Also

ACAccount

Remarks

The Accounts database on iOS provides account information for social networks. The social networks stored in the database are:

The following example shows the basic structure of code accessing the Accounts.ACAccountStore object, requesting access to a specific account, and retrieving credentials:

C# Example

          var store = new ACAccountStore();
          var type = store.FindAccountType(ACAccountType.Twitter);
          
          store.RequestAccess(type, null, (granted, error) => {
          if(granted){
        

Related content

Requirements

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