I was watching thenewboston Android tutorials and I got lost in this line of code:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
I think getWindow() and setFlags() are a method, but why they can be accessed like that? The one that I always see is ClassObject.Method but this time it’s Method.Method.
getWindow() returns an object of type Window, on which one can use the setFlags() method
So it is basically a geeky way of writing