/*
* 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 Progress category
///
public enum ProgressCategory
{
///
/// Value for percent type
///
Percent,
///
/// Value for time type
///
Time,
///
/// Value for pending type which is not updated progress current value
///
PendingBar
}
///
/// Enumeration for Accessory option
///
public enum AccessoryOption
{
///
/// Value for off accessory option
///
Off = -1,
///
/// Value for on accessory option
///
On,
///
/// Value for custom accessory option
///
Custom
}
///
/// Enumeration for Button Index
///
public enum ButtonIndex
{
///
/// Value for default button index
///
None = -1,
///
/// Value for first button index
///
First,
///
/// Value for second button index
///
Second,
///
/// Value for third button index
///
Third
}
///
/// Enumeration for notification particular property
///
[Flags]
public enum NotificationProperty
{
///
/// Value for adjust nothing
///
None = 0x00,
///
/// Value for display only SIM card inserted
///
DisplayOnlySimMode = 0x01,
///
/// Value for disable application launch when it selected
///
DisableAppLaunch = 0x02,
///
/// Value for disable auto delete when it selected
///
DisableAutoDelete = 0x04,
///
/// Value for deleted when device is rebooted even though notification is not set Ongoing
///
VolatileDisplay = 0x100
}
///
/// Enumeration for block state
///
public enum NotificationBlockState
{
///
/// Value to check the app is allowed to post notification
///
Allowed = 0,
///
/// Value to check the app is not allowed to post any notification
///
Blocked,
///
/// Value to check do not disturb mode which is user set
///
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,
}
}