WindowMetrics
public final class WindowMetrics
Metrics about a android.view.Window, consisting of its bounds.
This is usually obtained from WindowManager#getCurrentWindowMetrics or WindowManager#getMaximumWindowMetrics.
| See also | |
|---|---|
WindowManager |
#getCurrentWindowMetrics |
WindowManager |
#getMaximumWindowMetrics |
Summary
Public fields |
|
|---|---|
final @NonNull Rect |
Returns a new |
Public constructors |
|
|---|---|
WindowMetrics(@NonNull Rect bounds) |
|
Public fields
bounds
@NonNull
public final @NonNull Rect bounds
Returns a new Rect describing the bounds of the area the window occupies.
Note that the size of the reported bounds can have different size than Display#getSize. This method reports the window size including all system decorations, while Display#getSize reports the area excluding navigation bars and display cutout areas.