Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia / MediaView / MediaView.cs
1 using System;
2 using ElmSharp;
3
4 namespace Tizen.Multimedia
5 {
6     /// <summary>
7     /// The MediaView class allows application developers to display the video output on screen.
8     /// </summary>
9     /// <remarks>
10     /// This view should not be instantiated directly.\n
11     /// Use <see cref="Tizen.Xamarin.Forms.Extension.MediaView"/> to create the view.
12     /// </remarks>
13     /// <example>
14     /// <code>
15     /// Tizen.Xamarin.Forms.Extension.MediaView mediaView = ...
16     /// ...
17     /// var display = new Display((Tizen.Multimedia.MediaView)MediaView.NativeView);
18     /// </code>
19     /// </example>
20     public class MediaView : EvasObject
21     {
22         /// <summary>
23         /// This constructor is used by the infrastructure and is not intended to be used directly from application code.
24         /// </summary>
25         public MediaView(EvasObject parent) : base(parent)
26         {
27         }
28
29         protected override IntPtr CreateHandle(EvasObject parent)
30         {
31             IntPtr evas = Interop.EvasObject.evas_object_evas_get(parent);
32             return Interop.EvasObject.evas_object_image_add(evas);
33         }
34     }
35 }
36