Compartir a través de


TvInputService.Session.OnSurfaceChanged(Format, Int32, Int32) Method

Definition

Called after any structural changes (format or size) have been made to the surface passed in #onSetSurface.

[Android.Runtime.Register("onSurfaceChanged", "(III)V", "GetOnSurfaceChanged_IIIHandler")]
public virtual void OnSurfaceChanged (Android.Graphics.Format format, int width, int height);
[<Android.Runtime.Register("onSurfaceChanged", "(III)V", "GetOnSurfaceChanged_IIIHandler")>]
abstract member OnSurfaceChanged : Android.Graphics.Format * int * int -> unit
override this.OnSurfaceChanged : Android.Graphics.Format * int * int -> unit

Parameters

format
Format

The new PixelFormat of the surface.

width
Int32

The new width of the surface.

height
Int32

The new height of the surface.

Attributes

Remarks

Called after any structural changes (format or size) have been made to the surface passed in #onSetSurface. This method is always called at least once, after #onSetSurface is called with non-null surface.

Java documentation for android.media.tv.TvInputService.Session.onSurfaceChanged(int, 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.

Applies to