Class ImageData
Definition
- Namespace:
- Tizen.Applications.WatchfaceComplication
- Assembly:
- Tizen.Applications.WatchfaceComplication.dll
Represents the image data for a complication.
public class ImageData : ComplicationData
- Inheritance
Constructors
View SourceImageData(string, string)
Initializes the ImageData class.
Declaration
public ImageData(string imagePath, string extraData)
Parameters
Type | Name | Description |
---|---|---|
string | imagePath | The image path. |
string | extraData | The extra data. |
Examples
protected override ComplicationData OnDataUpdateRequested(string reqestAppId, ComplicationTypes type, Bundle contextData)
{
if (type == ComplicationTypes.Image)
{
return new ImageData("Image path", "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
View SourceExtraData
The extra data.
Declaration
public string ExtraData { get; set; }
Property Value
Type | Description |
---|---|
string |
ImagePath
The image path data.
Declaration
public string ImagePath { get; set; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when try to set invalid value. |
ScreenReaderText
The information about the screen reader text of complication data.
Declaration
public string ScreenReaderText { get; set; }
Property Value
Type | Description |
---|---|
string |