Class Notification.AccessorySet

Definition

Namespace:
Tizen.Applications.Notifications
Assembly:
Tizen.Applications.Notification.dll

Class for notification AccessorySet, which includes vibration, LED, and sound option.

C#
Copy
public sealed class Notification.AccessorySet : Notification.MakerBase
Inheritance
object
Notification.Tizen.Applications.Notifications.Notification.MakerBase
Notification.AccessorySet

Properties

View Source

CanVibrate

Gets or sets a value indicating whether vibration is operated. Default is false.

Declaration
C#
Copy
public bool CanVibrate { get; set; }
Property Value
Type Description
bool
View Source

LedColor

Gets or sets the LED color that you would like the LED on the device to blink.

Declaration
C#
Copy
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.

View Source

LedOffMillisecond

Gets or sets the off time so that it looks like the device's LED is blinking.

Declaration
C#
Copy
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.

View Source

LedOnMillisecond

Gets or sets the on time so that it looks like the device's LED is blinking.

Declaration
C#
Copy
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.

View Source

LedOption

Gets or sets the led option. The default value is AccessoryOption.Off.

Declaration
C#
Copy
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.

View Source

SoundOption

Gets or sets the sound option. Default to AccessoryOption.Off.

Declaration
C#
Copy
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.

View Source

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#
Copy
public string SoundPath { get; set; }
Property Value
Type Description
string