public class TelemetryImpl extends java.lang.Object implements TelemetryDefinition
Constructor and Description |
---|
TelemetryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
disableTelemetrySession()
Disables a started telemetry service for this session only.
|
void |
onAppUserTurnstileEvent()
Register the app user turnstile event
|
void |
onCreateOfflineRegion(OfflineRegionDefinition offlineDefinition)
Register an offline region creation event.
|
void |
onGestureInteraction(java.lang.String eventType,
double latitude,
double longitude,
double zoom)
Deprecated.
since 7.5.0, this event is no longer supported
|
void |
onPerformanceEvent(android.os.Bundle data)
Register a performance event
|
void |
setDebugLoggingEnabled(boolean debugLoggingEnabled)
Set the debug logging state of telemetry.
|
boolean |
setSessionIdRotationInterval(int interval)
Set the telemetry rotation session id interval
|
void |
setUserTelemetryRequestState(boolean enabledTelemetry)
Set the end-user selected state to participate or opt-out in telemetry collection.
|
public void onAppUserTurnstileEvent()
onAppUserTurnstileEvent
in interface TelemetryDefinition
@Deprecated public void onGestureInteraction(java.lang.String eventType, double latitude, double longitude, @FloatRange(from=0.0,to=25.5) double zoom)
onGestureInteraction
in interface TelemetryDefinition
eventType
- type of gesture event occurredlatitude
- the latitude value of the gesture focal pointlongitude
- the longitude value of the gesture focal pointzoom
- current zoom of the mappublic void setUserTelemetryRequestState(boolean enabledTelemetry)
setUserTelemetryRequestState
in interface TelemetryDefinition
enabledTelemetry
- true if enabled, false otherwisepublic void disableTelemetrySession()
TelemetryDefinition
disableTelemetrySession
in interface TelemetryDefinition
public void setDebugLoggingEnabled(boolean debugLoggingEnabled)
setDebugLoggingEnabled
in interface TelemetryDefinition
debugLoggingEnabled
- true to enable loggingpublic boolean setSessionIdRotationInterval(int interval)
setSessionIdRotationInterval
in interface TelemetryDefinition
interval
- the selected session intervalpublic void onCreateOfflineRegion(@NonNull OfflineRegionDefinition offlineDefinition)
onCreateOfflineRegion
in interface TelemetryDefinition
offlineDefinition
- the offline region definitionpublic void onPerformanceEvent(android.os.Bundle data)
onPerformanceEvent
in interface TelemetryDefinition
data
- performance event data