/*
* 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.NotificationEventListener
{
using System;
using System.ComponentModel;
///
/// 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 OngoingType
///
VolatileDisplay = 0x100,
}
///
/// Enumeration for event type on notification.
///
[EditorBrowsable(EditorBrowsableState.Never)]
public enum UserEventType
{
///
/// Event type : Click on button 1
///
ClickOnButton1 = 0,
///
/// Event type : Click on button 2
///
ClickOnButton2,
///
/// Event type : Click on button 3
///
ClickOnButton3,
///
/// Event type : Click on text_input button
///
ClickOnReplyButton = 8,
///
/// Event type : Hidden by user
///
HiddenByUser = 100,
///
/// Event type : Deleted by timer
///
HiddenByTimeout = 101,
///
/// Event type : Clicked by user
///
ClickOnNotification = 200,
///
/// Event type : Deleted by user
///
DeleteNotification = 201,
}
///
/// Enumeration for notification type.
///
internal enum NotificationType
{
///
/// Notification type
///
Notification = 0,
///
/// Ongoing type
///
Ongoing,
}
///
/// Enumeration for notification text type.
///
internal enum NotificationText
{
///
/// Title
///
Title = 0,
///
/// Content
///
Content,
///
/// Text to display event count
///
EventCount = 3,
///
/// Box contents 1
///
FirstMainText,
///
/// Box contents 1-1
///
FirstSubText,
///
/// Box contents 2
///
SecondMainText,
///
/// Box contents 2-1
///
SecondSubText,
///
/// Text on button 1
///
FirstButton = 13,
///
/// Text on button 2
///
SecondButton,
///
/// Text on button 3
///
ThirdButton,
///
/// Guide text on the message reply box
///
PlaceHolder = 19,
///
/// Text on button the on message reply box
///
InputButton = 20,
}
///
/// Enumeration for image type.
///
internal enum NotificationImage
{
///
/// Icon
///
Icon = 0,
///
/// Indicator icon
///
Indicator,
///
/// Lock screen icon
///
Lockscreen,
///
/// Thumbnail
///
Thumbnail,
///
/// Lock screen thumbnail
///
ThumbnailLockscreen,
///
/// Icon
///
SubIcon,
///
/// image displayed on background
///
Background,
///
/// Image for button 1
///
Button_1 = 12,
///
/// Image for button 2
///
Button_2,
///
/// Image for button 3
///
Button_3,
///
/// Image for message reply
///
TextInputButton = 18,
}
///
/// Enumeration for notification layout type.
///
internal enum NotificationLayout
{
///
/// Default
///
None = 0,
///
/// Layout for notification. Used to inform single event
///
SingleEvent = 1,
///
/// Layout for notification. Used to display images
///
Thumbnail = 3,
///
/// Layout for ongoing notification. Used to display text message
///
OngoingEvent = 4,
///
/// Layout for ongoing notification. Used to display progress
///
OngoingProgress = 5,
}
///
/// Enumeration for notification launch option type.
///
internal enum LaunchOption
{
///
/// Launching with app control
///
AppControl = 1
}
///
/// Enumeration for notification operation data code.
///
internal enum NotificationOperationDataType
{
///
/// Default
///
Min = 0,
///
/// Operation type
///
Type,
///
/// Private ID
///
UniqueNumber,
///
/// Notification handler
///
Notification,
///
/// Reserved
///
ExtraInformation1,
///
/// Reserved
///
ExtraInformation2,
}
///
/// Enumeration for notification operation code.
///
internal enum NotificationOperationType
{
///
/// Default
///
None = 0,
///
/// Notification inserted
///
Insert,
///
/// Notification updated
///
Update,
///
/// Notification deleted
///
Delete,
}
///
/// Enumeration for event type on notification.
///
internal enum ClickEventType
{
///
/// Event type : Click on button 1
///
FirstButton = 0,
///
/// Event type : Click on button 2
///
SecondButton = 1,
///
/// Event type : Click on button 3
///
ThirdButton = 2,
///
/// Event type : Click on icon
///
Icon = 6,
///
/// Event type : Click on thumbnail
///
Thumbnail = 7,
///
/// Event type : Click on text_input button
///
InputButton = 8,
}
///
/// Enumeration for display application list.
///
[Flags]
internal enum NotificationDisplayApplist
{
///
/// Notification Tray(Quickpanel)
///
Tray = 0x00000001,
///
/// Ticker notification
///
Ticker = 0x00000002,
///
/// Lock screen
///
Lock = 0x00000004,
///
/// Indicator
///
Indicator = 0x00000008,
///
/// Active notification
///
Active = 0x00000010,
///
/// All display application except active notification
///
All = 0x0000000f,
}
}