Configuration

public struct Configuration

Configuration struct used within the SDK.

  • Color configuration struct for colors used within the SDK.

    See more

    Declaration

    Swift

    public struct Colors
  • Image configuration struct for images used within the SDK.

    See more

    Declaration

    Swift

    public struct Images
  • Initializes SDK Configuration struct.

    Product name, colors and images are optional. If not provided default will be used.

    Precondition

    apiToken can not be empty.

    Declaration

    Swift

    public init(apiToken: String, hostName: String, productName: String? = nil, colors: Colors = Colors(), images: Images = Images())

    Parameters

    apiToken

    Static API Token generated by TechCentrix backend

    hostName

    Host app name

    productName

    Product name e.g. wristband, bottle

    colors

    Color configuration struct for colors used within the SDK.

    images

    Image configuration struct for images used within the SDK.