Protocols
The following protocols are available globally.
-
Delegate protocol for controlling the Mixpanel API’s network behavior.
See moreDeclaration
Swift
public protocol MixpanelDelegate
-
This protocol allows for easy initialization of TweakStore. It allows you to combine one-off Tweak
See more‘s with TweakGroupTemplates into a single array without hassle. (For example, a single Tweak can conform by returning itself wrapped in an array!) Declaration
Swift
public protocol TweakClusterType
-
To add a new
See moreto our Tweak , make T conform to this protocol. Declaration
Swift
public protocol TweakableType
-
Property keys must be String objects and the supported value types need to conform to MixpanelType. MixpanelType can be either String, Int, UInt, Double, Float, Bool, [MixpanelType], [String: MixpanelType], Date, URL, or NSNull.
See moreDeclaration
Swift
public protocol MixpanelType: Any
-
Create a public struct in your application that conforms to this protocol to declare your own tweaks!
See moreDeclaration
Swift
public protocol TweakLibraryType