Protocols

The following protocols are available globally.

  • Delegate protocol for controlling the Mixpanel API’s network behavior.

    See more

    Declaration

    Swift

    public protocol MixpanelDelegate
  • This protocol allows for easy initialization of TweakStore. It allows you to combine one-off Tweak‘s with TweakGroupTemplates into a single array without hassle. (For example, a single Tweak can conform by returning itself wrapped in an array!)

    See more

    Declaration

    Swift

    public protocol TweakClusterType
  • To add a new to our Tweak, make T conform to this protocol.

    See more

    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 more

    Declaration

    Swift

    public protocol MixpanelType: Any
  • Create a public struct in your application that conforms to this protocol to declare your own tweaks!

    See more

    Declaration

    Swift

    public protocol TweakLibraryType