[Multimedia] Modified a constructor of the Display class not to check the raw video...
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.MediaPlayer / Player / PlayerErrorOccurredEventArgs.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 using System;
17
18 namespace Tizen.Multimedia
19 {
20     /// <summary>
21     /// Provides data for the <see cref="Player.ErrorOccurred"/> event.
22     /// </summary>
23     /// <since_tizen> 3 </since_tizen>
24     public class PlayerErrorOccurredEventArgs : EventArgs
25     {
26         /// <summary>
27         /// Initializes a new instance of the PlayerErrorOccurredEventArgs class.
28         /// </summary>
29         /// <param name="error">The value indicating the kind of error occurred.</param>
30         /// <since_tizen> 3 </since_tizen>
31         public PlayerErrorOccurredEventArgs(PlayerError error)
32         {
33             Error = error;
34         }
35
36         /// <summary>
37         /// Gets the error.
38         /// </summary>
39         /// <since_tizen> 3 </since_tizen>
40         public PlayerError Error { get; }
41
42         /// <summary>
43         /// Returns a string that represents the current object.
44         /// </summary>
45         /// <returns>A string that represents the current object.</returns>
46         /// <since_tizen> 3 </since_tizen>
47         public override string ToString()
48         {
49             return $"Error={ Error.ToString() }";
50         }
51     }
52 }