Definition
- Namespace:
- Tizen.Applications.WatchfaceComplication
- Assembly:
- Tizen.Applications.WatchfaceComplication.dll
Represents the long text data for a complication.
public class LongTextData : ComplicationData
- Inheritance
-
Constructors
View Source
LongTextData(string, string, string, string)
Initializes the LongTextData class.
Declaration
public LongTextData(string longText, string iconPath, string title, string extraData)
Parameters
Type |
Name |
Description |
string |
longText |
The long 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.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.
|
Properties
Declaration
public string ExtraData { get; set; }
Property Value
Declaration
public string IconPath { get; set; }
Property Value
Declaration
public string LongText { get; set; }
Property Value
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown when try to set invalid value.
|
View Source
ScreenReaderText
The information about the screen reader text of complication data.
Declaration
public string ScreenReaderText { get; set; }
Property Value
Declaration
public string Title { get; set; }
Property Value