ClientFeatures
public struct ClientFeatures : Equatable
The struct that represent key-value data.
-
Initializes the struct with empty features.
Declaration
Swift
public init()
-
Initializes the struct with a dictionary.
Declaration
Swift
public init(dictionary: [String : String])
-
Returns features dictionary.
Declaration
Swift
public var features: [String : String] { get }
-
Adds or replaces the client feature used for experiment filtering.
Declaration
Swift
public mutating func setFeature(_ feature: String, forKey key: String)
-
Removes the client feature used for experiment filtering.
Declaration
Swift
public mutating func removeFeature(forKey key: String)
-
Appends the client feature with the dictionary.
Declaration
Swift
public mutating func mergeWith(_ other: [String : String])
-
Clears all previously added client features.
Declaration
Swift
public mutating func clearFeatures()