ISurfaceHolder.SetFixedSize(Int32, Int32) Method
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.
Make the surface a fixed size.
[Android.Runtime.Register("setFixedSize", "(II)V", "GetSetFixedSize_IIHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetFixedSize (int width, int height);
[<Android.Runtime.Register("setFixedSize", "(II)V", "GetSetFixedSize_IIHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetFixedSize : int * int -> unit
Parameters
- width
- Int32
The surface's width.
- height
- Int32
The surface's height.
- Attributes
Remarks
Make the surface a fixed size. It will never change from this size. When working with a SurfaceView
, this must be called from the same thread running the SurfaceView's window.
Java documentation for android.view.SurfaceHolder.setFixedSize(int, int)
.
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.