You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// 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.
/// Window flag: as long as this window is visible to the user, keep the device's screen turned on and bright.
15
35
staticconstintFLAG_KEEP_SCREEN_ON=0x00000080;
36
+
37
+
/// This constant was deprecated in API level 30. Insets will always be delivered to your application.
16
38
staticconstintFLAG_LAYOUT_INSET_DECOR=0x00010000;
39
+
40
+
/// Window flag for attached windows: Place the window within the entire screen, ignoring any constraints from the parent window.
17
41
staticconstintFLAG_LAYOUT_IN_SCREEN=0x00000100;
42
+
43
+
/// Window flag: allow window to extend outside of the screen.
18
44
staticconstintFLAG_LAYOUT_NO_LIMITS=0x00000200;
45
+
46
+
/// Window flag: this window won't ever get key input focus, so the user can not send key or other button events to it.
19
47
staticconstintFLAG_NOT_FOCUSABLE=0x00000008;
48
+
49
+
/// Window flag: this window can never receive touch events.
20
50
staticconstintFLAG_NOT_TOUCHABLE=0x00000010;
51
+
52
+
/// 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.
21
53
staticconstintFLAG_NOT_TOUCH_MODAL=0x00000020;
54
+
55
+
/// Window flag: a special mode where the layout parameters are used to perform scaling of the surface when it is composited to the screen.
22
56
staticconstintFLAG_SCALED=0x00004000;
57
+
58
+
/// Window flag: treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays.
23
59
staticconstintFLAG_SECURE=0x00002000;
60
+
61
+
/// Window flag: ask that the system wallpaper be shown behind your window.
24
62
staticconstintFLAG_SHOW_WALLPAPER=0x00100000;
63
+
64
+
/// 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.
25
65
staticconstintFLAG_SPLIT_TOUCH=0x00800000;
66
+
67
+
/// 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.
/// Window flag: enable blur behind for this window.
27
71
staticconstintFLAG_BLUR_BEHIND=0x00000004;
72
+
73
+
/// 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.
28
74
staticconstintFLAG_DISMISS_KEYGUARD=0x00400000;
75
+
76
+
/// This constant was deprecated in API level 17. This flag is no longer used.
29
77
staticconstintFLAG_DITHER=0x00001000;
78
+
79
+
/// Flag indicating that this Window is responsible for drawing the background for the system bars.
/// 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.
/// 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.
32
86
staticconstintFLAG_LAYOUT_IN_OVERSCAN=0x02000000;
87
+
88
+
/// Flag for a window in local focus mode.
33
89
staticconstintFLAG_LOCAL_FOCUS_MODE=0x10000000;
90
+
91
+
/// 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.
34
92
staticconstintFLAG_SHOW_WHEN_LOCKED=0x00080000;
93
+
94
+
/// 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.
/// Window flag: request a translucent status bar with minimal system-provided background protection.
37
101
staticconstintFLAG_TRANSLUCENT_STATUS=0x04000000;
102
+
103
+
/// 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.
38
104
staticconstintFLAG_TURN_SCREEN_ON=0x00200000;
39
105
40
106
staticconstMethodChannel _channel =
41
107
constMethodChannel('flutter_windowmanager');
42
108
109
+
/// Adds flags [flags] to the WindowManager.LayoutParams
43
110
staticFuture<bool> addFlags(int flags) async {
44
111
returnawait _channel.invokeMethod("addFlags", {
45
112
"flags": flags,
46
113
});
47
114
}
48
115
116
+
/// Clears flags [flags] from the WindowManager.LayoutParams
0 commit comments