| Package | com.distriqt.extension.bluetoothle.events |
| Class | public class CentralEvent |
| Inheritance | CentralEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| central : Central
The central device that is subscribing (or unsubscribing)
| CentralEvent | ||
| characteristic : Characteristic
The characteristic that the central is subscribing (or unsubscribing) to
| CentralEvent | ||
| Method | Defined By | ||
|---|---|---|---|
CentralEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, central:Central = null, characteristic:Characteristic = null)
Constructor
| CentralEvent | ||
clone():Event [override] | CentralEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| SUBSCRIBE : String = central:subscribe [static]
Disptached when a central subscribes to a peripheral's characteristic
| CentralEvent | ||
| UNSUBSCRIBE : String = central:unsubscribe [static]
Disptached when a central unsubscribes from a peripheral's characteristic
| CentralEvent | ||
| central | property |
| characteristic | property |
public var characteristic:Characteristic
The characteristic that the central is subscribing (or unsubscribing) to
| CentralEvent | () | Constructor |
public function CentralEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, central:Central = null, characteristic:Characteristic = null)Constructor
Parameterstype:String | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) | |
central:Central (default = null) | |
characteristic:Characteristic (default = null) |
| clone | () | method |
override public function clone():EventReturnsEvent |
| SUBSCRIBE | Constant |
public static const SUBSCRIBE:String = central:subscribe
Disptached when a central subscribes to a peripheral's characteristic
| UNSUBSCRIBE | Constant |
public static const UNSUBSCRIBE:String = central:unsubscribe
Disptached when a central unsubscribes from a peripheral's characteristic