-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathExampleSwitchboardAnalytics.swift
More file actions
33 lines (25 loc) · 1.13 KB
/
ExampleSwitchboardAnalytics.swift
File metadata and controls
33 lines (25 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// ExampleSwitchboardAnalytics.swift
// SwitchboardExample
//
// Created by Rob Phillips on 10/3/17.
// Copyright © 2017 Keepsafe Software Inc. All rights reserved.
//
import Switchboard
final class ExampleSwitchboardAnalytics: SwitchboardAnalyticsProvider {
func entitled(experiments: Set<SwitchboardExperiment>, features: Set<SwitchboardFeature>) {
// Track these to know which experiments are entitled to be started or which features are enabled
}
func trackStarted(for experiment: SwitchboardExperiment) {
// Know when an experiment starts
}
func trackCompleted(for experiment: SwitchboardExperiment) {
// Know when an experiment completes
}
func track(event: String, for feature: SwitchboardFeature, properties: [String : Any]?) {
// Generic tracking for a feature, called from the tracking(event...) method on a SwitchboardFeature subclass
}
func track(event: String, for experiment: SwitchboardExperiment, properties: [String : Any]?) {
// Generic tracking for a feature, called from the tracking(event...) method on a SwitchboardExperiment subclass
}
}