GatewayAPIBuilder

Undocumented

  • Set tag to this GatewayAPI instance. tag is used to distinguish storage area of instance.
    If the api instance is tagged with same string, It will be overwritten.
    If the api instance is tagged with different string, Different key is used to store the instance.

    Please refer to {@link GatewayAPI#loadFromStoredInstance(Context, String)} as well.

    Parameter

    Parameter tag: If null or empty String us passed, it will be ignored.

    Returns

    builder instance for chaining call.

    Declaration

    Swift

    public func setTag(tag: String?) -> GatewayAPIBuilder
  • Initialize builder. - Parameter app: Kii Cloud Application. - Parameter gatewayAddress: address information for the gateway - Parameter tag: tag of the GatewayAPI instance.

    Declaration

    Swift

    public init(app:App, address:NSURL, tag:String?=nil)
  • Build GatewayAPI instance. - Returns: GatewayAPI instance.

    Declaration

    Swift

    public func build() -> GatewayAPI

    Return Value

    GatewayAPI instance.