addTrackingListener

Sets listener that will be notified when tracking starts/stops or significant error occurred. E.g. in case if SDK was initialized with incorrect publishable key, INVALID_PUBLISHABLE_KEY_ERROR will be delivered to listener's onError callback. Does nothing when invoked with null argument.

All listener methods will be called in the Main thread regardless of the thread this method was called in.

See also

Parameters

listener

that will be used to deliver notifications.