共用方式為


TvInteractiveAppService.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", ApiSince=33)]
public abstract bool OnSetSurface (Android.Views.Surface? surface);
[<Android.Runtime.Register("onSetSurface", "(Landroid/view/Surface;)Z", "GetOnSetSurface_Landroid_view_Surface_Handler", ApiSince=33)>]
abstract member OnSetSurface : Android.Views.Surface -> bool

Parameters

surface
Surface

The surface to be used for interactive app UI 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 Interactive App service should render interactive app UI onto the given surface. When called with null, the Interactive App service should immediately free any references to the currently set surface and stop using it.

Java documentation for android.media.tv.interactive.TvInteractiveAppService.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