CustomObjects

public class CustomObjects: NSObject

Wrapper class to manage custom objects instances

  • Add a custom object

    Declaration

    Swift

    public func add(_ customObject: String) -> CustomObject

    Parameters

    customObject

    customObject json string value

    Return Value

    the custom object instance

  • Add a custom object

    Declaration

    Swift

    public func add(_ customObject: [String: Any]) -> CustomObject

    Parameters

    customObject

    customObject in key-value format

    Return Value

    the custom object instance

  • Remove a custom object

    Declaration

    Swift

    public func remove(_ customObjectId: String)

    Parameters

    customObjectId

    the custom object identifier

  • Remove all custom objects

    Declaration

    Swift

    public func removeAll()