Accounts Changes for Swift
Accounts
Removed ACErrorCode.value
Added ACErrorCode.init(rawValue: UInt32)
Added ACErrorCode.rawValue
Added ACErrorDeniedByPlugin
Added ACErrorInvalidCommand
Modified ACAccount
Declaration | |
---|---|
From | class ACAccount : NSObject { init!(accountType type: ACAccountType!) var identifier: String! { get } var accountType: ACAccountType! var accountDescription: String! var username: String! var userFullName: String! { get } var credential: ACAccountCredential! } |
To | class ACAccount : NSObject { init!(accountType type: ACAccountType!) var identifier: String? { get } var accountType: ACAccountType! var accountDescription: String! var username: String! var userFullName: String! { get } var credential: ACAccountCredential! } |
Modified ACAccount.identifier
Declaration | |
---|---|
From | var identifier: String! { get } |
To | var identifier: String? { get } |
Raw Value Type | |
---|---|
From | -- |
To | Int |
Modified ACAccountStore
Declaration | |
---|---|
From | class ACAccountStore : NSObject { var accounts: [AnyObject]! { get } func accountWithIdentifier(_ identifier: String!) -> ACAccount! func accountTypeWithAccountTypeIdentifier(_ typeIdentifier: String!) -> ACAccountType! func accountsWithAccountType(_ accountType: ACAccountType!) -> [AnyObject]! func saveAccount(_ account: ACAccount!, withCompletionHandler completionHandler: ACAccountStoreSaveCompletionHandler!) func requestAccessToAccountsWithType(_ accountType: ACAccountType!, withCompletionHandler handler: ACAccountStoreRequestAccessCompletionHandler!) func requestAccessToAccountsWithType(_ accountType: ACAccountType!, options options: [NSObject : AnyObject]!, completion completion: ACAccountStoreRequestAccessCompletionHandler!) func renewCredentialsForAccount(_ account: ACAccount!, completion completionHandler: ACAccountStoreCredentialRenewalHandler!) func removeAccount(_ account: ACAccount!, withCompletionHandler completionHandler: ACAccountStoreRemoveCompletionHandler!) } |
To | class ACAccountStore : NSObject { var accounts: [AnyObject]? { get } func accountWithIdentifier(_ identifier: String!) -> ACAccount! func accountTypeWithAccountTypeIdentifier(_ typeIdentifier: String!) -> ACAccountType! func accountsWithAccountType(_ accountType: ACAccountType!) -> [AnyObject]! func saveAccount(_ account: ACAccount!, withCompletionHandler completionHandler: ACAccountStoreSaveCompletionHandler!) func requestAccessToAccountsWithType(_ accountType: ACAccountType!, withCompletionHandler handler: ACAccountStoreRequestAccessCompletionHandler!) func requestAccessToAccountsWithType(_ accountType: ACAccountType!, options options: [NSObject : AnyObject]!, completion completion: ACAccountStoreRequestAccessCompletionHandler!) func renewCredentialsForAccount(_ account: ACAccount!, completion completionHandler: ACAccountStoreCredentialRenewalHandler!) func removeAccount(_ account: ACAccount!, withCompletionHandler completionHandler: ACAccountStoreRemoveCompletionHandler!) } |
Modified ACAccountStore.accounts
Declaration | |
---|---|
From | var accounts: [AnyObject]! { get } |
To | var accounts: [AnyObject]? { get } |
Modified ACErrorCode [struct]
Declaration | Protocols | |
---|---|---|
From | struct ACErrorCode { init(_ value: UInt32) var value: UInt32 } | -- |
To | struct ACErrorCode : RawRepresentable { init(_ rawValue: UInt32) init(rawValue rawValue: UInt32) var rawValue: UInt32 } | RawRepresentable |