Package | com.distriqt.extension.beacon.events |
Class | public class BeaconEvent |
Inheritance | BeaconEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
beacons : Array
The array of detected BeaconObject's
| BeaconEvent | ||
region : Region | BeaconEvent |
Method | Defined By | ||
---|---|---|---|
BeaconEvent(type:String, region:Region, beacons:Array = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
| BeaconEvent | ||
clone():Event [override] | BeaconEvent |
Constant | Defined By | ||
---|---|---|---|
BEACON_UPDATE : String = beacon:update [static]
Dispatched when an update occurs about the available beacons. | BeaconEvent | ||
BLUETOOTH_STATE_DISABLED : String = bluetooth:state:disabled [static]
Dispatched when the bluetooth adapter changes state to disabled. | BeaconEvent | ||
BLUETOOTH_STATE_ENABLED : String = bluetooth:state:enabled [static]
Dispatched when the bluetooth adapter changes state to enabled. | BeaconEvent | ||
REGION_ENTER : String = region:enter [static]
Dispatched when the device enters a monitored region. | BeaconEvent | ||
REGION_EXIT : String = region:exit [static]
Dispatched when it appears the device has exitted the region. | BeaconEvent | ||
REGION_MONITORING_START : String = region:monitoring:start [static]
Dispatched when a region is started monitoring for entry and exit. | BeaconEvent |
beacons | property |
public var beacons:Array
The array of detected BeaconObject's
See also
region | property |
BeaconEvent | () | Constructor |
public function BeaconEvent(type:String, region:Region, beacons:Array = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
Parameterstype:String | |
region:Region | |
beacons:Array (default = null )
| |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
BEACON_UPDATE | Constant |
public static const BEACON_UPDATE:String = beacon:update
Dispatched when an update occurs about the available beacons.
The beacons
will contain the list of available beacons.
BLUETOOTH_STATE_DISABLED | Constant |
public static const BLUETOOTH_STATE_DISABLED:String = bluetooth:state:disabled
Dispatched when the bluetooth adapter changes state to disabled.
BLUETOOTH_STATE_ENABLED | Constant |
public static const BLUETOOTH_STATE_ENABLED:String = bluetooth:state:enabled
Dispatched when the bluetooth adapter changes state to enabled.
REGION_ENTER | Constant |
public static const REGION_ENTER:String = region:enter
Dispatched when the device enters a monitored region. The event will contain a valid region describing the region that has been entered/discovered.
Once this event is dispatched you can expect to get updates about the beacons in the region in periodic intervals
REGION_EXIT | Constant |
public static const REGION_EXIT:String = region:exit
Dispatched when it appears the device has exitted the region. You should stop receiving beacon update events.
REGION_MONITORING_START | Constant |
public static const REGION_MONITORING_START:String = region:monitoring:start
Dispatched when a region is started monitoring for entry and exit. This usually occurs almost immediately after a call startMonitoringRegionWithUUID