Angular directive

pxlSensorTriggered source

  • Attribute

Expression that is evaluated when a sensor state become triggered (i.e. active).

The ID of the sensor and the type of sensor are passed as parameters. The types and IDs are defined hereafter.

Three types of sensors are defined:

  1. Vision
    Corresponds to an image that has been recognized. As of today, the sensor ID corresponds to the context ID to which the sensor is linked but this might change in the future as the PixLive SDK does support any kind of IDs.
  2. iBeacon
    Corresponds to an iBeacon that is in the required proximity of the smartphone. The ID is defined to be:
     BeaconUUID_Major_Minor
  3. VidiBeacon
    Corresponds to a VidiBeacon that is in the required proximity of the smartphone. The ID is defined to be the VidiBeacon serial.
Parameters
NameTypeDescription
PxlEventService service

PixLive SDK Event service

Example
<div pxl-sensor-triggered="sensorTriggered(sensorId, sensorType)">
 ...
</div>