import Event from "./Event"; declare namespace openfl.events { /** * 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`. * * */ export class ActivityEvent extends Event { /** * Creates an event object that contains information about activity * events. Event objects are passed as parameters to Event listeners. * * @param type The type of the event. Event listeners can access * this information through the inherited `type` * property. There is only one type of activity event: * `ActivityEvent.ACTIVITY`. * @param bubbles Determines whether the Event object participates in * the bubbling phase of the event flow. Event * listeners can access this information through the * inherited `bubbles` property. * @param cancelable Determines whether the Event object can be canceled. * Event listeners can access this information through * the inherited `cancelable` property. * @param activating Indicates whether the device is activating (`true`) * or deactivating (`false`). Event listeners can * access this information through the `activating` * property. * */ constructor(type: string, bubbles?: boolean, cancelable?: boolean, activating?: boolean); /** * 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. | * */ static readonly ACTIVITY = "activity"; /** * Indicates whether the device is activating (`true`) or deactivating * (`false`). * */ activating: boolean; override clone(): ActivityEvent; override toString(): string; } } export default openfl.events.ActivityEvent;