Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.Notification / Tizen.Applications.Notifications / NotificationIndicatorStyle.cs
1 /*
2  * Copyright (c) 2017 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
17 namespace Tizen.Applications.Notifications
18 {
19     /// <summary>
20     /// Class containing common properties and methods of Notifications
21     /// </summary>
22     /// <remarks>
23     /// A notification is a message that is displayed on the notification area.
24     /// It is created to notify information to the user through the application.
25     /// This class helps you to provide method and property for creating notification object.
26     /// </remarks>
27     public sealed partial class Notification
28     {
29         /// <summary>
30         ///  Class for generating Indicator style notification
31         /// </summary>
32         public sealed class IndicatorStyle : StyleBase
33         {
34             /// <summary>
35             /// Gets or sets an absolute path for an image file.
36             /// If you set IconPath, you can see the icon on the right side of indicator.
37             /// </summary>
38             public string IconPath { get; set; }
39
40             /// <summary>
41             /// Gets or sets a sub text for displaying Indicator style
42             /// </summary>
43             public string SubText { get; set; }
44
45             /// <summary>
46             /// Gets the key of IndicatorStyle
47             /// </summary>
48             internal override string Key
49             {
50                 get
51                 {
52                     return "Indicator";
53                 }
54             }
55
56             internal override void Make(Notification notification)
57             {
58                 IndicatorBinder.BindObject(notification);
59             }
60         }
61     }
62 }