Class Notification.AccessorySet
Definition
- Namespace:
- Tizen.Applications.Notifications
- Assembly:
- Tizen.Applications.Notification.dll
- API Level:
- 3
Class for notification AccessorySet, which includes vibration, LED, and sound option.
C#Copypublic sealed class AccessorySet : Notification.MakerBase
- Inheritance
Properties
CanVibrate
Gets or sets a value indicating whether vibration is operated. Default is false.
Declaration
C#Copypublic bool CanVibrate { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
Declaration
C#Copypublic Color LedColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Remarks
If you want to set LedColor, you should always set LedOption as AccessoryOption.Custom, otherwise, it may operate default LED color.
API Level: 3
LedOffMillisecond
Gets or sets the off time so that it looks like the device's LED is blinking.
Declaration
C#Copypublic int LedOffMillisecond { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
The rate is specified in terms of the number of Milliseconds to be off. You must set the on and off times at the same time. Otherwise, it may not operate normally.
API Level: 3
LedOnMillisecond
Gets or sets the on time so that it looks like the device's LED is blinking.
Declaration
C#Copypublic int LedOnMillisecond { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Default value of LedOnMillisecond is 0. The rate is specified in terms of the number of Milliseconds to be on. You must set the on and off times at the same time. Otherwise, it may not operate normally.
API Level: 3
Declaration
C#Copypublic AccessoryOption LedOption { get; set; }
Property Value
Type | Description |
---|---|
AccessoryOption |
Remarks
If you set AccessoryOption.Custom and not set LedColor, the LED will show default color.
API Level: 3
Declaration
C#Copypublic AccessoryOption SoundOption { get; set; }
Property Value
Type | Description |
---|---|
AccessoryOption |
Remarks
If you set AccessoryOption.Custom, you must the SoundPath. Otherwise, an exception is thrown.
API Level: 3
SoundPath
Gets or sets the sound path, It will play on the sound file you set. You should set an absolute path for a sound file.
Declaration
C#Copypublic string SoundPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |