4 namespace Tizen.Xamarin.Forms.Extension
7 /// The MediaView class provides a view of media that is being played by the player or the camera.
11 /// MediaView mediaView = new MediaView();
12 /// Tizen.Multimedia.Camera camera = new Tizen.Multimedia.Camera(Tizen.Multimedia.CameraDevice.Rear);
13 /// camera.SetDisplay(Tizen.Multimedia.CameraDisplayType.Evas, (Tizen.Multimedia.MediaView) mediaView.NativeView);
16 public class MediaView : View, IMediaViewController
18 internal static readonly BindablePropertyKey NativeViewPropertyKey = BindableProperty.CreateReadOnly("NativeView", typeof(object), typeof(MediaView), default(object));
21 /// BindableProperty. Identifies the NativeView bindable property.
23 public static readonly BindableProperty NativeViewProperty = NativeViewPropertyKey.BindableProperty;
26 /// NativeView allows application developers to display the video output on screen.
28 public object NativeView
30 get { return GetValue(NativeViewProperty); }
31 internal set { SetValue(NativeViewPropertyKey, value); }
35 /// Occurs when the NativeView is created.
37 public event EventHandler NativeViewCreated;
39 void IMediaViewController.SendNativeViewCreated()
41 NativeViewCreated?.Invoke(this, EventArgs.Empty);