NativeActivity.SurfaceChanged(ISurfaceHolder, Format, Int32, Int32) Method

Definition

This is called immediately after any structural changes (format or size) have been made to the surface.

[Android.Runtime.Register("surfaceChanged", "(Landroid/view/SurfaceHolder;III)V", "GetSurfaceChanged_Landroid_view_SurfaceHolder_IIIHandler")]
public virtual void SurfaceChanged (Android.Views.ISurfaceHolder? holder, Android.Graphics.Format format, int width, int height);
[<Android.Runtime.Register("surfaceChanged", "(Landroid/view/SurfaceHolder;III)V", "GetSurfaceChanged_Landroid_view_SurfaceHolder_IIIHandler")>]
abstract member SurfaceChanged : Android.Views.ISurfaceHolder * Android.Graphics.Format * int * int -> unit
override this.SurfaceChanged : Android.Views.ISurfaceHolder * Android.Graphics.Format * int * int -> unit

Parameters

holder
ISurfaceHolder

The SurfaceHolder whose surface has changed.

format
Format

The new PixelFormat of the surface.

width
Int32

The new width of the surface.

height
Int32

The new height of the surface.

Implements

Attributes

Remarks

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