AlarmListener

Alarm listener interface. The implementation of this interface have to be registered to the AlarmService. If it is registered, it will receives all the notification issued by the alarm service.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

AlarmListener's companion object

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard

Notify that the boundary of some areas was crossed. Use AlarmService.crossedBoundaries to get the list of affected geographic areas

Link copied to clipboard
open fun onEnterDayMode()

Notifies that the outside luminosity meets the "day" conditions

Link copied to clipboard
open fun onEnterNightMode()

Notifies that the outside luminosity meets the "night" conditions

Link copied to clipboard
open fun onHighSpeed(limit: Double, insideCityArea: Boolean)

Notifies that the current speed is too high. Normally the UI should warn the user about this. The highest recommended speed is provided as parameter.

Link copied to clipboard

Landmark alarms passed over notifications Use AlarmService.landmarkAlarmsPassedOver to get the list of deactivated landmark alarms

Link copied to clipboard

Landmark alarms updated notifications Use AlarmService.landmarkAlarms to get the list of active landmark alarms

Link copied to clipboard
open fun onMonitoringStateChanged(isMonitoringActive: Boolean)

Notifies that the state of the monitoring has changed. When the state of the location provider is changed to either TEMPORARILY_UNAVAILABLE or OUT_OF_SERVICE, the API implementation must send this notification with isMonitoringActive set to false. When the state of the location provider changes to AVAILABLE, the API implementation must send this notification with isMonitoringActive set to true.

Link copied to clipboard
open fun onNormalSpeed(limit: Double, insideCityArea: Boolean)

Notifies that the current speed is in the recommended range. No speed alarm should be displayed to the user.

Link copied to clipboard

OverlayItem alarms passed over notifications Use AlarmService.overlayItemAlarmsPassedOver to get the list of deactivated OverlayItem alarms

Link copied to clipboard

OverlayItem alarms updated notifications Use AlarmService.overlayItemAlarms to get the list of active OverlayItem alarms

Link copied to clipboard
open fun onSpeedLimit(speed: Double, limit: Double, insideCityArea: Boolean)

Notifies that the current speed limit status has changed By comparing the current speed and the speed limit a speed limit alarm can be enabled / disable for the user

Link copied to clipboard
open fun onTunnelEntered()

Notification received when entering into a tunnel. This notification may be used by the UI to switch the map colors to night.

Link copied to clipboard
open fun onTunnelLeft()

Notification received when leaving a tunnel. This notification may be used by the UI to switch the map colors to day.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if: