Class RangedValueData

Definition

Namespace:
Tizen.Applications.WatchfaceComplication
Assembly:
Tizen.Applications.WatchfaceComplication.dll
API Level:
6

Represents the ranged value data for a complication.

C#
Copy
public class RangedValueData : ComplicationData
Inheritance
System.Object
RangedValueData

Constructors

View Source

RangedValueData(Double, Double, Double, String, String, String, String)

Initializes the RangedValueData class.

Declaration
C#
Copy
public RangedValueData(double currentValue, double minValue, double maxValue, string shortText, string iconPath, string title, string extraData)
Parameters
Type Name Description
System.Double currentValue

The current value.

System.Double minValue

The minimum value.

System.Double maxValue

The max value.

System.String shortText

The short text.

System.String iconPath

The icon path.

System.String title

The title.

System.String extraData

The extra data.

Examples
Copy
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
System.ArgumentException

Thrown when parameter is invalid.

API Level: 6

Properties

View Source

ExtraData

The extra data.

Declaration
C#
Copy
public string ExtraData { get; set; }
Property Value
Type Description
System.String
API Level: 6
View Source

IconPath

The icon path data.

Declaration
C#
Copy
public string IconPath { get; set; }
Property Value
Type Description
System.String
API Level: 6
View Source

RangeCurrent

The information about the current range value of complication data.

Declaration
C#
Copy
public double RangeCurrent { get; set; }
Property Value
Type Description
System.Double
Exceptions
Type Condition
System.ArgumentException

Thrown when try to set invalid value.

API Level: 6
View Source

RangeMax

The information about the max range value of complication data.

Declaration
C#
Copy
public double RangeMax { get; set; }
Property Value
Type Description
System.Double
Exceptions
Type Condition
System.ArgumentException

Thrown when try to set invalid value.

API Level: 6
View Source

RangeMin

The information about the min range value of complication data.

Declaration
C#
Copy
public double RangeMin { get; set; }
Property Value
Type Description
System.Double
Exceptions
Type Condition
System.ArgumentException

Thrown when try to set invalid value.

API Level: 6
View Source

ScreenReaderText

The information about the screen reader text of complication data.

Declaration
C#
Copy
public string ScreenReaderText { get; set; }
Property Value
Type Description
System.String
API Level: 6
View Source

ShortText

The short text data.

Declaration
C#
Copy
public string ShortText { get; set; }
Property Value
Type Description
System.String
Exceptions
Type Condition
System.ArgumentException

Thrown when try to set invalid value.

API Level: 6
View Source

Title

The title data.

Declaration
C#
Copy
public string Title { get; set; }
Property Value
Type Description
System.String
API Level: 6