subscribe To Is Tracking
final static HyperTrack.Cancellable subscribeToIsTracking(Function1<Boolean, Unit> callback)
Content copied to clipboard
Subscribe to the changes in the isTracking property (that indicates the tracking intent for the worker)
Note: The
callbackis called immediately after subscribing with the initial value, and then each time the value changes.
Return
an HyperTrack.Cancellable object that can be used to unsubscribe from the event
Parameters
callback
callback function to invoke when the tracking intent changes