import PermissionStatus from "../permissions/PermissionStatus"; import Event from "./Event"; declare namespace openfl.events { /** * This event is dispatched when permission status changes for certain * operations. * * _OpenFL target support:_ Not currently supported, except when targeting AIR. * */ export class PermissionEvent extends Event { /** * Creates an PermissionEvent object that contains information about the name of the permission and its status. * * @param type The type of the event. Event listeners can access this * information through the inherited `type` * property. There is only one type of Permission event: * `PermissionEvent.PERMISSION_STATUS`. * @param bubbles Determines whether the Event object participates in the * bubbling stage 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 status Permission status. Event listeners can access this * information through the `status` property. * */ constructor(type: string, bubbles?: boolean, cancelable?: boolean, status?: PermissionStatus); static readonly PERMISSION_STATUS = "permissionStatus"; /** * Check whether the permission has been granted or denied. * * @see `openfl.permissions.PermissionStatus.GRANTED` * @see `openfl.permissions.PermissionStatus.DENIED` * */ status: PermissionStatus; override clone(): PermissionEvent; override toString(): string; } } export default openfl.events.PermissionEvent;