Display.GetRectSize(Rect) メソッド

定義

表示のサイズを四角形 (ピクセル単位) で取得します。

[Android.Runtime.Register("getRectSize", "(Landroid/graphics/Rect;)V", "GetGetRectSize_Landroid_graphics_Rect_Handler")]
public virtual void GetRectSize (Android.Graphics.Rect? outSize);
[<Android.Runtime.Register("getRectSize", "(Landroid/graphics/Rect;)V", "GetGetRectSize_Landroid_graphics_Rect_Handler")>]
abstract member GetRectSize : Android.Graphics.Rect -> unit
override this.GetRectSize : Android.Graphics.Rect -> unit

パラメーター

outSize
Rect

Rectサイズ情報を受け取る オブジェクト。

属性

注釈

表示のサイズを四角形 (ピクセル単位) で取得します。

このメンバーは非推奨とされます。 を使用して WindowMetrics#getBounds() 、アプリケーション ウィンドウのディメンションを取得します。

の Java ドキュメント android.view.Display.getRectSize(android.graphics.Rect)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

こちらもご覧ください