ZiwoSDK

public class ZiwoSDK

The ZiwoSDK class is a singleton that is mainly use to retrieve Ziwo related datas once the Agent is logged.

Singleton

  • Easy way to access the class.

    Declaration

    Swift

    public static var shared: ZiwoSDK

Vars

  • Ziwo domain to which the agent is logged on.

    Declaration

    Swift

    public var domain: String? { get set }
  • Access token of the logged agent.

    Declaration

    Swift

    public var accessToken: String? { get set }
  • Logged agent.

    Declaration

    Swift

    public var agent: Agent?

Initialization Methods

  • Public initialization

    Declaration

    Swift

    public init()
  • Sets the agent in both UserDefaults and ZiwoSDK singleton class.

    Declaration

    Swift

    public func setAgent(agent: Agent)
  • Method that will have to be called after logging out an agent to clear all datas.

    Declaration

    Swift

    public func clearAgent()