Udostępnij za pośrednictwem


TvInteractiveAppService.Session.OnMediaViewSizeChanged(Int32, Int32) Method

Definition

Called when the size of the media view is changed by the application.

[Android.Runtime.Register("onMediaViewSizeChanged", "(II)V", "GetOnMediaViewSizeChanged_IIHandler", ApiSince=33)]
public virtual void OnMediaViewSizeChanged (int width, int height);
[<Android.Runtime.Register("onMediaViewSizeChanged", "(II)V", "GetOnMediaViewSizeChanged_IIHandler", ApiSince=33)>]
abstract member OnMediaViewSizeChanged : int * int -> unit
override this.OnMediaViewSizeChanged : int * int -> unit

Parameters

width
Int32

The width of the media view, in pixels.

height
Int32

The height of the media view, in pixels.

Attributes

Remarks

Called when the size of the media view is changed by the application.

This is always called at least once when the session is created regardless of whether the media view is enabled or not. The media view container size is the same as the containing TvInteractiveAppView. Note that the size of the underlying surface can be different if the surface was changed by calling #layoutSurface.

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