/* * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace Tizen.Applications.Notifications { using System; /// /// Enumeration for the progress category. /// /// 3 public enum ProgressCategory { /// /// Value for percent type. /// Percent, /// /// Value for time type. /// Time, /// /// Value for pending type, which is not the updated progress current value. /// PendingBar } /// /// Enumeration for the accessory option. /// /// 3 public enum AccessoryOption { /// /// Value for off accessory option. /// Off = -1, /// /// Value for on accessory option. /// On, /// /// Value for the custom accessory option. /// Custom } /// /// Enumeration for the button index. /// /// 3 public enum ButtonIndex { /// /// Value for the default button index. /// None = -1, /// /// Value for the first button index. /// First, /// /// Value for the second button index. /// Second, /// /// Value for the third button index. /// Third } /// /// Enumeration for the notification particular property. /// /// 3 [Flags] public enum NotificationProperty { /// /// Value for adjust nothing. /// None = 0x00, /// /// Value for display only SIM card inserted. /// /// 4 DisplayOnlySimMode = 0x01, /// /// Value for disable application launch when it is selected. /// DisableAppLaunch = 0x02, /// /// Value for disable auto delete when it is selected. /// DisableAutoDelete = 0x04, /// /// Value for deleted when device is rebooted even though notification is not set ongoing. /// VolatileDisplay = 0x100 } /// /// Enumeration for the block state. /// /// 3 public enum NotificationBlockState { /// /// Value to check if the app is allowed to post notification. /// Allowed = 0, /// /// Value to check if the app is not allowed to post any notification. /// Blocked, /// /// Value to check if the do not disturb mode is set by the user. /// DoNotDisturb } internal enum NotificationType { None = -1, Basic = 0, Ongoing, } internal enum NotificationEventType { FirstButton = 0, SecondButton, ThirdButton, ClickOnIcon = 6, ClockOnThumbnail = 7, ClickOnTextInputButton = 8, HiddenByUser = 100, HiddenByTimeout = 101, HiddenByExternal = 102, } internal enum NotificationLayout { None = 0, SingleEvent = 1, Thumbnail = 3, Ongoing = 4, Progress = 5, Extension = 6 } internal enum NotificationText { Title = 0, Content, EventCount = 3, FirstMainText, FirstSubText, SecondMainText, SecondSubText, FirstButton = 13, SeceondButton = 14, ThirdButton = 15, PlaceHolder = 19, InputButton = 20, } internal enum NotificationImage { Icon = 0, IconForIndicator, IconForLock, Thumbnail, ThumbnailForLock, SubIcon, Background, FirstButton = 12, SecondButton, ThirdButton, TextInputButton = 18, } internal enum LaunchOption { AppControl = 1 } [Flags] internal enum NotificationDisplayApplist { Tray = 0x00000001, Ticker = 0x00000002, Lock = 0x00000004, Indicator = 0x00000008, Active = 0x00000010, All = 0x0000000f, } }