Accounts.ACAccount Class
Represents a user account stored in the Accounts database.

See Also: ACAccount Members

Syntax

[Foundation.Register("ACAccount", 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 ACAccount : Foundation.NSObject, Foundation.INSSecureCoding, IDisposable

See Also

ACAccountStore

Remarks

iOS stores account information for certain social-network accounts in a system-wide database. A Accounts.ACAccount represents a single account.

Accounts can either be retrieved based on account-type or via a known identifier (see ACAccount.Identifier):

C# Example

          var store = new ACAccountStore();
          var type = store.FindAccountType(ACAccountType.Twitter);
          var accounts = store.FindAccounts(type));
          if(accounts != null && accounts.Count() > 0){...}
          
          var account = store.FindAccount("21A78660-FFFF-FFFF-FFFF-027EB7E3FF5F");
        

Related content

Requirements

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