class ActivityEvent
package openfl.events
extends Event
extended by FullScreenEvent
Available on all platforms
A Camera or Microphone object dispatches an ActivityEvent object whenever
a camera or microphone reports that it has become active or inactive.
There is only one type of activity event: ActivityEvent.ACTIVITY.
Static variables
staticinlineread onlyACTIVITY:EventType<ActivityEvent> = "activity"
The ActivityEvent.ACTIVITY constant defines the value of the type
property of an activity event object.
This event has the following properties:
| Property | Value |
|---|---|
activating | true if the device is activating or false if it is deactivating. |
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object beginning or ending a session, such as a Camera or Microphone object. |
Constructor
new(type:String, bubbles:Bool = false, cancelable:Bool = false, activating:Bool = false)
Creates an event object that contains information about activity events. Event objects are passed as parameters to Event listeners.
Parameters:
type | The type of the event. Event listeners can access
this information through the inherited |
|---|---|
bubbles | Determines whether the Event object participates in
the bubbling phase of the event flow. Event
listeners can access this information through the
inherited |
cancelable | Determines whether the Event object can be canceled.
Event listeners can access this information through
the inherited |
activating | Indicates whether the device is activating ( |