Conforms to NSObject
Declared in VDARSDKController.h

Overview

The protocol which should be implemented by delegates of the VDARSDKController which want to receive events when a sensor is updated.

A sensor is defined as a trigger to enable/disable context. Therefore when a sensor is activated the linked context is usually also activated.

A sensor can be an image recognition, an iBeacon or a VidiBeacon.

This protocol must be implemented by delegates added to [VDARSDKController sensorDelegates].

Tasks

Instance Methods

didTriggerSensor:forContext:

Called when a sensor is triggered (i.e. either it became activated or became non activated)

- (void)didTriggerSensor:(VDARSensor *)sensor forContext:(VDARContext *)context

Parameters

sensor

The sensor which has been triggered.

context

The context that has generated and created the sensor.

Availability

Version 5.2.0

Discussion

Called when a sensor is triggered (i.e. either it became activated or became non activated)

Declared In

VDARSDKController.h

didUpdateSensorValues:forContext:

Called when some values of the sensor have changed. Note that when this method is called the state of the sensor do not change (i.e. if it was triggered, it stays triggered).

- (void)didUpdateSensorValues:(VDARSensor *)sensor forContext:(VDARContext *)context

Parameters

sensor

The sensor whose parameters have changed

context

The context that has generated and created the sensor.

Availability

Version 5.2.0

Discussion

Called when some values of the sensor have changed. Note that when this method is called the state of the sensor do not change (i.e. if it was triggered, it stays triggered).

It can be used to monitor the distance value of beacons for example.

Declared In

VDARSDKController.h