AlarmContextDelegate
Objective-C
@protocol AlarmContextDelegate <NSObject>
Swift
protocol AlarmContextDelegate : NSObjectProtocol
A set of delegate methods for alarm context objects.
-
Deprecated
Please use alarmContextOnBoundaryCrossed:enteredArea:exitedAreas:
Notifies the delegate that the boundary of some areas was crossed.
Declaration
Objective-C
- (void)alarmContextOnBoundaryCrossed:(nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onBoundaryCrossed alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.
-
Notifies the delegate that the boundary of some areas was crossed.
Declaration
Objective-C
- (void)alarmContextOnBoundaryCrossed:(nonnull AlarmContext *)alarmContext enteredArea: (nonnull NSArray<AlarmMonitoredAreaObject *> *) arrayIn exitedAreas: (nonnull NSArray<AlarmMonitoredAreaObject *> *) arrayOut;
Swift
optional func alarmContext(onBoundaryCrossed alarmContext: AlarmContext, enteredArea arrayIn: [AlarmMonitoredAreaObject], exitedAreas arrayOut: [AlarmMonitoredAreaObject])
Parameters
alarmContext
The alarm context informing the delegate of this event.
arrayIn
The new entered areas list.
arrayOut
The new exited areas list
-
Notifies the delegate that the state of the monitoring has changed.
Declaration
Objective-C
- (void)alarmContextOnMonitoringStateChanged: (nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onMonitoringStateChanged alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.
-
Notifies the delegate when entering into a tunnel.
Declaration
Objective-C
- (void)alarmContextOnTunnelEntered:(nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onTunnelEntered alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.
-
Notifies the delegate when leaving a tunnel.
Declaration
Objective-C
- (void)alarmContextOnTunnelLeft:(nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onTunnelLeft alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.
-
Notifies the delegate that the landmark alarms updated.
Declaration
Objective-C
- (void)alarmContextOnLandmarkAlarmsUpdated: (nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onLandmarkAlarmsUpdated alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.
-
Notifies the delegate that the overlay Item alarms updated.
Declaration
Objective-C
- (void)alarmContextOnOverlayItemAlarmsUpdated: (nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onOverlayItemAlarmsUpdated alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.
-
Notifies the delegate that the landmark alarms passed over.
Declaration
Objective-C
- (void)alarmContextOnLandmarkAlarmsPassedOver: (nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onLandmarkAlarmsPassedOver alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.
-
Notifies the delegate that the overlay item alarms passed over.
Declaration
Objective-C
- (void)alarmContextOnOverlayItemAlarmsPassedOver: (nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onOverlayItemAlarmsPassedOver alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.
-
Notifies the delegate that the current speed is too high than the recommended range.
Declaration
Objective-C
- (void)alarmContext:(nonnull AlarmContext *)alarmContext onHighSpeed:(double)limit insideCityArea:(_Bool)insideCityArea;
Swift
optional func alarmContext(_ alarmContext: AlarmContext, onHighSpeed limit: Double, insideCityArea: Bool)
Parameters
alarmContext
The alarm context informing the delegate of this event.
limit
The speed limit range in the current navigation position, in mps.
insideCityArea
The over-speed inside city area flag recommended speed is provided as parameter.
-
Notifies the delegate that the current speed is in the recommended range.
Declaration
Objective-C
- (void)alarmContext:(nonnull AlarmContext *)alarmContext onNormalSpeed:(double)limit insideCityArea:(_Bool)insideCityArea;
Swift
optional func alarmContext(_ alarmContext: AlarmContext, onNormalSpeed limit: Double, insideCityArea: Bool)
Parameters
alarmContext
The alarm context informing the delegate of this event.
limit
The speed limit range in the current navigation position, in mps.
insideCityArea
The normal speed inside city area flag. Undefined if speed limit is unavailable for the current position. @details A value of 0 means that a limit is not available for the current position but the notification is sent to silence a previous existing alarm.
-
Notifies the delegate about the current speed limit status.
Declaration
Objective-C
- (void)alarmContext:(nonnull AlarmContext *)alarmContext onSpeedLimit:(double)speed limit:(double)limit insideCityArea:(_Bool)insideCityArea;
Swift
optional func alarmContext(_ alarmContext: AlarmContext, onSpeedLimit speed: Double, limit: Double, insideCityArea: Bool)
Parameters
alarmContext
The alarm context informing the delegate of this event.
speed
The current navigation speed, in mps.
limit
The speed limit range in the current navigation position, in mps. A value of 0 means it is not available for the current position.
insideCityArea
The current navigation position city area flag. Undefined if speed limit is unavailable for the current position
-
Notifies the delegate that the outside luminosity meets the “day” conditions.
Declaration
Objective-C
- (void)alarmContextOnEnterDayMode:(nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onEnterDayMode alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.
-
Notifies the delegate that the outside luminosity meets the “night” conditions.
Declaration
Objective-C
- (void)alarmContextOnEnterNightMode:(nonnull AlarmContext *)alarmContext;
Swift
optional func alarmContext(onEnterNightMode alarmContext: AlarmContext)
Parameters
alarmContext
The alarm context informing the delegate of this event.