2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 namespace Tizen.Multimedia
23 /// The MediaView class allows application developers to display the video output on the screen.
26 /// This view should not be instantiated directly.<br/>
27 /// Use <see cref="T:Tizen.Xamarin.Forms.Extension.MediaView"/> to create the view.
31 /// Tizen.Xamarin.Forms.Extension.MediaView mediaView = ...
33 /// var display = new Display((Tizen.Multimedia.MediaView)mediaView.NativeView);
36 public class MediaView : EvasObject
39 /// This constructor is used by the infrastructure and is not intended to be used directly from application code.
41 public MediaView(EvasObject parent) : base(parent)
46 /// This method is used by the infrastructure and is not intended to be used directly from application code.
48 protected override IntPtr CreateHandle(EvasObject parent)
50 IntPtr evas = Interop.EvasObject.evas_object_evas_get(parent);
51 return Interop.EvasObject.evas_object_image_add(evas);