class FullScreenEvent
package openfl.events
extends ActivityEvent › Event
Available on all platforms
The Stage object dispatches a FullScreenEvent object whenever the Stage
enters or leaves full-screen display mode. There is only one type of
fullScreen
event: FullScreenEvent.FULL_SCREEN
.
Static variables
staticinlineread onlyFULL_SCREEN:EventType<FullScreenEvent> = "fullScreen"
The FullScreenEvent.FULL_SCREEN
constant defines the value of the
type
property of a fullScreen
event object.
This event has the following properties:
Property | Value |
---|---|
fullScreen | true if the display state is full screen or false if it is normal. |
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 Stage object. |
staticinlineread onlyFULL_SCREEN_INTERACTIVE_ACCEPTED:EventType<FullScreenEvent> = "fullScreenInteractiveAccepted"
The FULL_SCREEN_INTERACTIVE_ACCEPTED:String
constant defines the value of the
type property of a fullScreenInteractiveAccepted
event object.
This event has the following properties:
Property | Value |
---|---|
fullScreen | true if the display state is full screen or false if it is normal. |
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 Stage object. |
Constructor
new(type:String, bubbles:Bool = false, cancelable:Bool = false, fullScreen:Bool = false, interactive:Bool = false)
Creates an event object that contains information about fullScreen
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 |
fullScreen | Indicates whether the device is activating ( |
Variables
interactive:Bool
Indicates whether the Stage object is in full-screen interactive mode (true
) or
not (false
).