MixpanelDelegate Protocol Reference

Conforms to NSObject
Declared in Mixpanel.h

Overview

@protocol

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

Creating a delegate for the Mixpanel object is entirely optional. It is only necessary when you want full control over when data is uploaded to the server, beyond simply calling stop: and start: before and after a particular block of your code.

– mixpanelWillFlush:

Asks the delegate if data should be uploaded to the server.

- (BOOL)mixpanelWillFlush:(Mixpanel *)mixpanel

Parameters

mixpanel

Mixpanel API instance

Discussion

Return YES to upload now, NO to defer until later.

Declared In

Mixpanel.h