Let's look at the window plugs.
There are more than 30 window plugs defined in window manager Java.
So here you can see all the flags.
Flag behind this will dim everything behind this window and enable blur behind for this window that
is flag blur behind black, not focus black, not touchable.
So if you set this flag for a window, then it won't accept any touch events.
There are many other flags which can that on windows.
So this flag full screen to make it fullscreen for gaming or video playback.
We make the screens to full screen.
There are many other flags which you can refer here and there is a detailed description as well given
here for each of the flags.
So how do we set these windows flag?
So there are mainly three ways with which you can do that.
So the first is by using the window object.
So there is a method add flags where you could add the flags.
So for example, if you want to set a full screen flag, you could do it like this.
So you could create the window object and then use the add flag method to add the flag screen.
So another way to do is by using the set flag method.
So it's the same steps you can create a window object, get the window object, and then use the set
flags method to set these flags.
So here is one example.
In fact, the add flag method of window will in turn call the set flags itself.
So there is very little difference between these two methods.
The third method is to set the flag for the layout params and add it through the add view method of
window manager as shown here.
So here we first create the layout params and within the layout params we set the flags and through
window manager we call the method add view to pass on this window layout params.
So these are the three steps with which you could add flags.