Packagecom.distriqt.extension.bluetoothle.events
Classpublic class CentralEvent
InheritanceCentralEvent Inheritance flash.events.Event

Disptached from the peripheral manager when a central subscribes or unsubscribes from a peripheral's characteristic



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
CentralEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, central:Central = null, characteristic:Characteristic = null)
Constructor
CentralEvent
  
clone():Event
[override]
CentralEvent
Public Constants
 ConstantDefined 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
Property Detail
centralproperty
public var central:Central

The central device that is subscribing (or unsubscribing)

characteristicproperty 
public var characteristic:Characteristic

The characteristic that the central is subscribing (or unsubscribing) to

Constructor Detail
CentralEvent()Constructor
public function CentralEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, central:Central = null, characteristic:Characteristic = null)

Constructor

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
 
central:Central (default = null)
 
characteristic:Characteristic (default = null)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
SUBSCRIBEConstant
public static const SUBSCRIBE:String = central:subscribe

Disptached when a central subscribes to a peripheral's characteristic

UNSUBSCRIBEConstant 
public static const UNSUBSCRIBE:String = central:unsubscribe

Disptached when a central unsubscribes from a peripheral's characteristic