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#
Copy
public sealed class AccessorySet : Notification.MakerBase
Inheritance
System.Object
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
Boolean
API Level: 3
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.

API Level: 3
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
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
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
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
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.

API Level: 3
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.

API Level: 3
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
System.String
API Level: 3