HyperTrack.setTrackingNotificationConfig(ServiceNotificationConfig)
Updates notification, that SDK will show once tracking is active.HyperTrack.setTrackingNotificationConfig(ServiceNotificationConfig)
Updates notification, that SDK will show once tracking is active.HyperTrack.addTrackingListener(TrackingStateObserver.OnTrackingStateChangeListener)
instead.
Registers a tracking state callback. SDK reinitialization removes all listeners.Config
TrackingError
.Config
to setup Sdk initialization.Config
.HyperTrack.addTripMarker(Map)
instead.HyperTrack.allowMockLocations()
instead.
Allows you to use mock provider to generate location data for tests etc.HyperTrack.getDeviceID()
instead.HyperTrack.getInstance(Context, String)
instead.
Convenience method that calls HyperTrack.initialize(Context, String, Config)
with default config and auto start tracking. See aforementioned method description for details.HyperTrack.getInstance(Context, String)
and HyperTrack.start()
instead.
E.g.:
HyperTrack sdk = HyperTrack.getInstance(context, myPublishableKey)
.start();
// retain sdk reference to get device id or stop tracking.
Convenience method that calls HyperTrack.initialize(Context, String, Config)
with default config and selected shouldStartTracking. See aforementioned method description for details.HyperTrack.getInstance(Context, String)
and HyperTrack.start()
E.g.
HyperTrack sdk = HyperTrack.getInstance(context, myPublishableKey)
.start();
// retain sdk reference to get device id or stop tracking.
Most custom way to initialize HyperTrack SDK with configConfig
.HyperTrack.getInstance(Context, String)
instead.HyperTrack.getInstance(Context, String)
HyperTrack.isRunning()
instead
Check tracking status.HyperTrack.removeTrackingListener(TrackingStateObserver.OnTrackingStateChangeListener)
instead.
Removes a tracking state callback.HyperTrack.setDeviceName(String)
and HyperTrack.setDeviceMetadata(Map)
instead.
Sets current device data, that can be used for easier dashboard navigation.
Use only after you've initialized the SDK.
This setter is intended to be used for static data, that doesn't change during tracking
sessions, as no SLA regarding this data propagation provided. In case of frequent changes,
it is possible, that intermediate states could be lost, so if more real-time responsiveness
is required it is recommended to use HyperTrack.addTripMarker(Map)
for passing that data.HyperTrack.getInstance(Context, String)
()} and
HyperTrack.start()
instead.HyperTrack.start()
instead.
Resumes tracking, that was previously paused by HyperTrack.stopTracking()
invocation.
This should not be called, if you haven't paused tracking previously, since it default state
is enabled.
Please note, that if user hasn't granted location data access permission tracking service
won't actually run. Use HyperTrack.isTracking()
to determine current tracking state.HyperTrack.stop()
instead.
Pauses tracking. Use HyperTrack.startTracking(boolean, TrackingInitDelegate)
to start tracking service again.TrackingError
insteadHyperTrack.addTripMarker(Map)
instead.
Creates marker in trip with configurable payload.
Please, bear in mind that this will be serialized as json so passing in recursive
datastructure could lead to unpredictable results.