WindowMetrics Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WindowMetrics(Rect, WindowInsets) |
This member is deprecated. |
WindowMetrics(Rect, WindowInsets, Single) |
The constructor to create a |
WindowMetrics(Rect, WindowInsets)
This member is deprecated.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;Landroid/view/WindowInsets;)V", "", ApiSince=30)]
public WindowMetrics (Android.Graphics.Rect bounds, Android.Views.WindowInsets windowInsets);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;Landroid/view/WindowInsets;)V", "", ApiSince=30)>]
new Android.Views.WindowMetrics : Android.Graphics.Rect * Android.Views.WindowInsets -> Android.Views.WindowMetrics
Parameters
- bounds
- Rect
- windowInsets
- WindowInsets
- Attributes
Remarks
This member is deprecated. use #WindowMetrics(Rect, WindowInsets, float)
instead.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WindowMetrics(Rect, WindowInsets, Single)
The constructor to create a WindowMetrics
instance.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;Landroid/view/WindowInsets;F)V", "", ApiSince=34)]
public WindowMetrics (Android.Graphics.Rect bounds, Android.Views.WindowInsets windowInsets, float density);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;Landroid/view/WindowInsets;F)V", "", ApiSince=34)>]
new Android.Views.WindowMetrics : Android.Graphics.Rect * Android.Views.WindowInsets * single -> Android.Views.WindowMetrics
Parameters
- bounds
- Rect
The window bounds
- windowInsets
- WindowInsets
The WindowInsets
of the window
- density
- Single
The window density
- Attributes
Remarks
The constructor to create a WindowMetrics
instance.
Note that in most cases WindowMetrics
is obtained from WindowManager#getCurrentWindowMetrics()
or WindowManager#getMaximumWindowMetrics()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.