Share via


TvInputService.Session.OnOverlayViewSizeChanged(Int32, Int32) Method

Definition

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

[Android.Runtime.Register("onOverlayViewSizeChanged", "(II)V", "GetOnOverlayViewSizeChanged_IIHandler", ApiSince=23)]
public virtual void OnOverlayViewSizeChanged (int width, int height);
[<Android.Runtime.Register("onOverlayViewSizeChanged", "(II)V", "GetOnOverlayViewSizeChanged_IIHandler", ApiSince=23)>]
abstract member OnOverlayViewSizeChanged : int * int -> unit
override this.OnOverlayViewSizeChanged : int * int -> unit

Parameters

width
Int32

The width of the overlay view.

height
Int32

The height of the overlay view.

Attributes

Remarks

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

This is always called at least once when the session is created regardless of whether the overlay view is enabled or not. The overlay view size is the same as the containing TvView. 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.TvInputService.Session.onOverlayViewSizeChanged(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