Class LongTextData

Definition

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

Represents the long text data for a complication.

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

Constructors

View Source

LongTextData(String, String, String, String)

Initializes the LongTextData class.

Declaration
C#
Copy
public LongTextData(string longText, string iconPath, string title, string extraData)
Parameters
Type Name Description
System.String longText

The long 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.ShortText) { return new ShortTextData("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

LongText

The long text data.

Declaration
C#
Copy
public string LongText { 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

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

Title

The title data.

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