CustomObjects
public class CustomObjects : NSObject
Wrapper class to manage custom objects instances
-
Add a custom object
Declaration
Swift
@discardableResult @objc(addString:) public func add(_ customObject: String) -> CustomObject
Parameters
customObject
customObject json string value
Return Value
the custom object instance
-
Add a custom object
Declaration
Swift
@discardableResult @objc(addDictionary:) 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
@objc public func removeAll()