Class RangedValueData
Definition
- Namespace:
- Tizen.Applications.WatchfaceComplication
- Assembly:
- Tizen.Applications.WatchfaceComplication.dll
- API Level:
- 6
Represents the ranged value data for a complication.
public class RangedValueData : ComplicationData
- Inheritance
Constructors
View SourceRangedValueData(Double, Double, Double, String, String, String, String)
Initializes the RangedValueData class.
Declaration
public RangedValueData(double currentValue, double minValue, double maxValue, string shortText, string iconPath, string title, string extraData)
Parameters
Type | Name | Description |
---|---|---|
Double | currentValue | The current value. |
Double | minValue | The minimum value. |
Double | maxValue | The max value. |
String | shortText | The short text. |
String | iconPath | The icon path. |
String | title | The title. |
String | extraData | The extra data. |
Examples
protected override ComplicationData OnDataUpdateRequested(string reqestAppId, ComplicationTypes type, Bundle contextData)
{
if (type == ComplicationTypes.RangedValue)
{
return new RangedValueData(50, 0, 100, "short", "icon path", "title", "extra");
}
else if (type == ComplicationTypes.LongText)
{
return new LongTextData("longlong", "icon path", "title", null);
}
}
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when parameter is invalid. |
API Level: 6
Properties
View SourceExtraData
The extra data.
Declaration
public string ExtraData { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceIconPath
The icon path data.
Declaration
public string IconPath { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceRangeCurrent
The information about the current range value of complication data.
Declaration
public double RangeCurrent { get; set; }
Property Value
Type | Description |
---|---|
Double |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when try to set invalid value. |
API Level: 6
View SourceRangeMax
The information about the max range value of complication data.
Declaration
public double RangeMax { get; set; }
Property Value
Type | Description |
---|---|
Double |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when try to set invalid value. |
API Level: 6
View SourceRangeMin
The information about the min range value of complication data.
Declaration
public double RangeMin { get; set; }
Property Value
Type | Description |
---|---|
Double |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when try to set invalid value. |
API Level: 6
View SourceScreenReaderText
The information about the screen reader text of complication data.
Declaration
public string ScreenReaderText { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceShortText
The short text data.
Declaration
public string ShortText { get; set; }
Property Value
Type | Description |
---|---|
String |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when try to set invalid value. |
API Level: 6
View SourceTitle
The title data.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
String |