TorchKit

public class TorchKit : NSObject

The TorchKit class is used for global initialization and teardown.

  • Singleton accessor to TorchKit class.

    Declaration

    Swift

    @objc
    public static let shared: TorchKit
  • initSDK must be called before using any other classes, functions or methods in TorchKit, unless otherwise noted

    Declaration

    Swift

    @objc
    public func initSDK(apiKey: String) throws
  • shutdownSDK must be called before the application shutdown to perform cleanup.

    Declaration

    Swift

    @objc
    public func shutdownSDK()