Other Protocols
The following protocols are available globally.
-
Protocol indicting a type can be converted into an LDValue.
Types used with the
LDClient.variation(forKey: defaultValue:)
orLDClient.variationDetail(forKey: detailValue:)
methods are required to implement this protocol. This protocol has already been implemented for Bool, Int, Double, String, and LDValue types.This allows custom types as evaluation result types while retaining the LDValue type throughout the event processing system.
See moreDeclaration
Swift
public protocol LDValueConvertible
-
Protocol for extending SDK functionality via hooks.
See moreDeclaration
Swift
public protocol Hook