TvInteractiveAppService.Session.OnMediaViewSizeChanged(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.
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.