Platform

@objc public class Platform: NSObject

This class will be used to initialize/uninitialize the whole SDK platform.

  • Initialize SDK platform.

    This function should only be invoked once at the app startup. App shouldn’t invoke any functions before invoking this function.

    • Parameters:
      • logger: The log interface (app need implements this interface) used by the whole SDK platform. Pass nil will turn off the log.

    Declaration

    Swift

    static public func initialize(logger logger: Logger?)

    Parameters

    logger

    The log interface (app need implements this interface) used by the whole SDK platform. Pass nil will turn off the log.

  • Uninitialize SDK platform.

    This function should only be invoked once at the app ended. App shouldn’t invoke any functions after invoking this function.

    Declaration

    Swift

    static public func uninitialize()