Hook
public protocol Hook
Protocol for extending SDK functionality via hooks.
-
metadata()
Default implementationGet metadata about the hook implementation.
Default Implementation
Declaration
Swift
func metadata() -> Metadata
-
beforeEvaluation(seriesContext:
Default implementationseriesData: ) The before method is called during the execution of a variation method before the flag value has been determined. The method is executed synchronously.
Default Implementation
Declaration
Swift
func beforeEvaluation(seriesContext: EvaluationSeriesContext, seriesData: EvaluationSeriesData) -> EvaluationSeriesData
-
afterEvaluation(seriesContext:
Default implementationseriesData: evaluationDetail: ) The after method is called during the execution of the variation method after the flag value has been determined. The method is executed synchronously.
Default Implementation
Declaration
Swift
func afterEvaluation(seriesContext: EvaluationSeriesContext, seriesData: EvaluationSeriesData, evaluationDetail: LDEvaluationDetail<LDValue>) -> EvaluationSeriesData