Class RangedValueData
Definition
- Namespace:
- Tizen.Applications.WatchfaceComplication
- Assembly:
- Tizen.Applications.WatchfaceComplication.dll
Represents the ranged value data for a complication.
C#Copypublic class RangedValueData : ComplicationData
- Inheritance
Constructors
View Source
RangedValueData(double, double, double, string, string, string, string)
Initializes the RangedValueData class.
Declaration
C#Copypublic 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
Copyprotected 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 |
|---|---|
| System.ArgumentException | Thrown when parameter is invalid. |
Properties
Declaration
C#Copypublic string ExtraData { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Declaration
C#Copypublic string IconPath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Declaration
C#Copypublic double RangeCurrent { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when try to set invalid value. |
Declaration
C#Copypublic double RangeMax { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when try to set invalid value. |
Declaration
C#Copypublic double RangeMin { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when try to set invalid value. |
Declaration
C#Copypublic string ScreenReaderText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Declaration
C#Copypublic string ShortText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when try to set invalid value. |
Declaration
C#Copypublic string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |