FlutterWindowManager class Null safety

A base class for manipulating Android WindowManager.LayoutParams.

The class does not need to be instantiated directly, as it provides all static flags and methods.

Constructors

FlutterWindowManager()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

addFlags(int flags) Future<bool>
Adds flags flags to the WindowManager.LayoutParams
clearFlags(int flags) Future<bool>
Clears flags flags from the WindowManager.LayoutParams

Constants

FLAG_ALLOW_LOCK_WHILE_SCREEN_ON → const int
Window flag: as long as this window is visible to the user, allow the lock screen to activate while the screen is on.
0x00000001
FLAG_ALT_FOCUSABLE_IM → const int
Window flag: when set, inverts the input method focusability of the window.
0x00020000
FLAG_BLUR_BEHIND → const int
Window flag: enable blur behind for this window.
0x00000004
FLAG_DIM_BEHIND → const int
Window flag: everything behind this window will be dimmed.
0x00000002
FLAG_DISMISS_KEYGUARD → const int
This constant was deprecated in API level 26. Use FLAG_SHOW_WHEN_LOCKED or KeyguardManager#requestDismissKeyguard instead. Since keyguard was dismissed all the time as long as an activity with this flag on its window was focused, keyguard couldn't guard against unintentional touches on the screen, which isn't desired.
0x00400000
FLAG_DITHER → const int
This constant was deprecated in API level 17. This flag is no longer used.
0x00001000
FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS → const int
Flag indicating that this Window is responsible for drawing the background for the system bars.
0x80000000
FLAG_FORCE_NOT_FULLSCREEN → const int
This constant was deprecated in API level 30. This value became API "by accident", and shouldn't be used by 3rd party applications.
0x00000800
FLAG_FULLSCREEN → const int
This constant was deprecated in API level 30. Use WindowInsetsController#hide(int) with Type#statusBars() instead.
0x00000400
FLAG_HARDWARE_ACCELERATED → const int
Indicates whether this window should be hardware accelerated.
0x01000000
FLAG_IGNORE_CHEEK_PRESSES → const int
Window flag: intended for windows that will often be used when the user is holding the screen against their face, it will aggressively filter the event stream to prevent unintended presses in this situation that may not be desired for a particular window, when such an event stream is detected, the application will receive a CANCEL motion event to indicate this so applications can handle this accordingly by taking no action on the event until the finger is released.
0x00008000
FLAG_KEEP_SCREEN_ON → const int
Window flag: as long as this window is visible to the user, keep the device's screen turned on and bright.
0x00000080
FLAG_LAYOUT_ATTACHED_IN_DECOR → const int
Window flag: When requesting layout with an attached window, the attached window may overlap with the screen decorations of the parent window such as the navigation bar. By including this flag, the window manager will layout the attached window within the decor frame of the parent window such that it doesn't overlap with screen decorations.
0x40000000
FLAG_LAYOUT_IN_OVERSCAN → const int
Window flag: allow window contents to extend in to the screen's overscan area, if there is one. The window should still correctly position its contents to take the overscan area into account.
0x02000000
FLAG_LAYOUT_IN_SCREEN → const int
Window flag for attached windows: Place the window within the entire screen, ignoring any constraints from the parent window.
0x00000100
FLAG_LAYOUT_INSET_DECOR → const int
This constant was deprecated in API level 30. Insets will always be delivered to your application.
0x00010000
FLAG_LAYOUT_NO_LIMITS → const int
Window flag: allow window to extend outside of the screen.
0x00000200
FLAG_LOCAL_FOCUS_MODE → const int
Flag for a window in local focus mode.
0x10000000
FLAG_NOT_FOCUSABLE → const int
Window flag: this window won't ever get key input focus, so the user can not send key or other button events to it.
0x00000008
FLAG_NOT_TOUCH_MODAL → const int
Window flag: even when this window is focusable (its FLAG_NOT_FOCUSABLE is not set), allow any pointer events outside of the window to be sent to the windows behind it.
0x00000020
FLAG_NOT_TOUCHABLE → const int
Window flag: this window can never receive touch events.
0x00000010
FLAG_SCALED → const int
Window flag: a special mode where the layout parameters are used to perform scaling of the surface when it is composited to the screen.
0x00004000
FLAG_SECURE → const int
Window flag: treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays.
0x00002000
FLAG_SHOW_WALLPAPER → const int
Window flag: ask that the system wallpaper be shown behind your window.
0x00100000
FLAG_SHOW_WHEN_LOCKED → const int
Window flag: special flag to let windows be shown when the screen is locked. This will let application windows take precedence over key guard or any other lock screens. Can be used with FLAG_KEEP_SCREEN_ON to turn screen on and display windows directly before showing the key guard window. Can be used with FLAG_DISMISS_KEYGUARD to automatically fully dismisss non-secure keyguards. This flag only applies to the top-most full-screen window.
0x00080000
FLAG_SPLIT_TOUCH → const int
Window flag: when set the window will accept for touch events outside of its bounds to be sent to other windows that also support split touch.
0x00800000
FLAG_TOUCHABLE_WHEN_WAKING → const int
Window flag: when set, if the device is asleep when the touch screen is pressed, you will receive this first touch event. Usually the first touch event is consumed by the system since the user can not see what they are pressing on.
0x00000040
FLAG_TRANSLUCENT_NAVIGATION → const int
Window flag: request a translucent navigation bar with minimal system-provided background protection.
0x08000000
FLAG_TRANSLUCENT_STATUS → const int
Window flag: request a translucent status bar with minimal system-provided background protection.
0x04000000
FLAG_TURN_SCREEN_ON → const int
Window flag: when set as a window is being added or made visible, once the window has been shown then the system will poke the power manager's user activity (as if the user had woken up the device) to turn the screen on.
0x00200000
FLAG_WATCH_OUTSIDE_TOUCH → const int
Window flag: if you have set FLAG_NOT_TOUCH_MODAL, you can set this flag to receive a single special MotionEvent with the action MotionEvent.ACTION_OUTSIDE for touches that occur outside of your window.
0x00040000