TvInputService.Session.OnSetSurface(Surface) Method

Definition

Called when the application sets the surface.

[Android.Runtime.Register("onSetSurface", "(Landroid/view/Surface;)Z", "GetOnSetSurface_Landroid_view_Surface_Handler")]
public abstract bool OnSetSurface (Android.Views.Surface? surface);
[<Android.Runtime.Register("onSetSurface", "(Landroid/view/Surface;)Z", "GetOnSetSurface_Landroid_view_Surface_Handler")>]
abstract member OnSetSurface : Android.Views.Surface -> bool

Parameters

surface
Surface

The surface to be used for video rendering. Can be null.

Returns

true if the surface was set successfully, false otherwise.

Attributes

Remarks

Called when the application sets the surface.

The TV input service should render video onto the given surface. When called with null, the input service should immediately free any references to the currently set surface and stop using it.

Java documentation for android.media.tv.TvInputService.Session.onSetSurface(android.view.Surface).

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