Class ShortTextData
Definition
- Namespace:
- Tizen.Applications.WatchfaceComplication
- Assembly:
- Tizen.Applications.WatchfaceComplication.dll
- API Level:
- 6
Represents the short text data for a complication.
C#Copypublic class ShortTextData : ComplicationData
- Inheritance
Constructors
View Source
ShortTextData(String, String, String, String)
Initializes a new instance of the ShortTextData class.
Declaration
C#Copypublic ShortTextData(string shortText, string iconPath, string title, string extraData)
Parameters
Type | Name | Description |
---|---|---|
System.String | shortText | The short text. |
System.String | iconPath | The icon path. |
System.String | title | The title. |
System.String | extraData | The extra data. |
Examples
Copyprotected 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
Declaration
C#Copypublic string ExtraData { get; set; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 6
Declaration
C#Copypublic string IconPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 6
Declaration
C#Copypublic string ScreenReaderText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 6
Declaration
C#Copypublic 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
Declaration
C#Copypublic string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |