You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// add a hook on this client, to run on all evaluations made by this client
165
-
val client = OpenFeatureAPI.shared.getClient()
165
+
let client = OpenFeatureAPI.shared.getClient()
166
166
client.addHooks(ExampleHook())
167
167
168
168
// add a hook for this evaluation only
@@ -173,7 +173,21 @@ _ = client.getValue(
173
173
```
174
174
### Tracking
175
175
176
-
Tracking is not yet available in the iOS SDK.
176
+
The tracking API allows you to use OpenFeature abstractions and objects to associate user actions with feature flag evaluations.
177
+
This is essential for robust experimentation powered by feature flags.
178
+
For example, a flag enhancing the appearance of a UI component might drive user engagement to a new feature; to test this hypothesis, telemetry collected by a [hook](#hooks) or [provider](#providers) can be associated with telemetry reported in the client's `track` function.
0 commit comments