TradableAuthDelegate
@objc public protocol TradableAuthDelegate: class
A delegate protocol for authentication/authorization events.
-
A delegate hook for knowing when the SDK methods are ready to be used. Called when the access token has been updated for specified account.
Declaration
Swift
@objc func tradableReady(for account: TradableAccount)
-
A delegate hook for authentication error handling.
Declaration
Swift
@objc func tradableAuthenticationError(error: TradableError)
Parameters
error
A TradableError object that contains detailed information about the error.
-
A delegate hook for two factor authentication challenges handling.
Declaration
Swift
@objc func tradableTwoFactorAuthenticationChallenge(challenge: TradableTwoFactorAuthenticationChallenge)
Parameters
challenge
A TradableTwoFactorAuthenticationChallenge object that contains detailed information about the challenge.
-
A delegate hook for knowing when the SDK has been deactivated and trading has been disabled. Called when the SDK has gone from an active state to an inactive state (by removing all access tokens).
Declaration
Swift
@objc optional func tradableDeactivated()