FlutterWindowManager class

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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
FLAG_ALT_FOCUSABLE_IM → const int
Window flag: when set, inverts the input method focusability of the window.
FLAG_BLUR_BEHIND → const int
Window flag: enable blur behind for this window.
FLAG_DIM_BEHIND → const int
Window flag: everything behind this window will be dimmed.
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.
FLAG_DITHER → const int
This constant was deprecated in API level 17. This flag is no longer used.
FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS → const int
Flag indicating that this Window is responsible for drawing the background for the system bars.
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.
FLAG_FULLSCREEN → const int
This constant was deprecated in API level 30. Use WindowInsetsController#hide(int) with Type#statusBars() instead.
FLAG_HARDWARE_ACCELERATED → const int
Indicates whether this window should be hardware accelerated.
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.
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.
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.
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.
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.
FLAG_LAYOUT_INSET_DECOR → const int
This constant was deprecated in API level 30. Insets will always be delivered to your application.
FLAG_LAYOUT_NO_LIMITS → const int
Window flag: allow window to extend outside of the screen.
FLAG_LOCAL_FOCUS_MODE → const int
Flag for a window in local focus mode.
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.
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.
FLAG_NOT_TOUCHABLE → const int
Window flag: this window can never receive touch events.
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.
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.
FLAG_SHOW_WALLPAPER → const int
Window flag: ask that the system wallpaper be shown behind your window.
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.
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.
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.
FLAG_TRANSLUCENT_NAVIGATION → const int
Window flag: request a translucent navigation bar with minimal system-provided background protection.
FLAG_TRANSLUCENT_STATUS → const int
Window flag: request a translucent status bar with minimal system-provided background protection.
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.
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.