Class Notification.AccessorySet
Definition
- Namespace:
- Tizen.Applications.Notifications
- Assembly:
- Tizen.Applications.Notification.dll
Class for notification AccessorySet, which includes vibration, LED, and sound option.
public sealed class Notification.AccessorySet : Notification.MakerBase
- Inheritance
-
objectNotification.Tizen.Applications.Notifications.Notification.MakerBaseNotification.AccessorySet
Properties
View SourceCanVibrate
Gets or sets a value indicating whether vibration is operated. Default is false.
Declaration
public bool CanVibrate { get; set; }
Property Value
Type | Description |
---|---|
bool |
LedColor
Gets or sets the LED color that you would like the LED on the device to blink.
Declaration
public 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.
LedOffMillisecond
Gets or sets the off time so that it looks like the device's LED is blinking.
Declaration
public int LedOffMillisecond { get; set; }
Property Value
Type | Description |
---|---|
int |
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.
LedOnMillisecond
Gets or sets the on time so that it looks like the device's LED is blinking.
Declaration
public int LedOnMillisecond { get; set; }
Property Value
Type | Description |
---|---|
int |
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.
LedOption
Gets or sets the led option. The default value is AccessoryOption.Off.
Declaration
public 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.
SoundOption
Gets or sets the sound option. Default to AccessoryOption.Off.
Declaration
public AccessoryOption SoundOption { get; set; }
Property Value
Type | Description |
---|---|
AccessoryOption |
Remarks
If you set AccessoryOption.Custom, you must the SoundPath. Otherwise, an exception is thrown.
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
public string SoundPath { get; set; }
Property Value
Type | Description |
---|---|
string |