Class ImageData

Definition

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

Represents the image data for a complication.

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

Constructors

View Source

ImageData(String, String)

Initializes the ImageData class.

Declaration
C#
Copy
public ImageData(string imagePath, string extraData)
Parameters
Type Name Description
System.String imagePath

The image path.

System.String extraData

The extra data.

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

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

ImagePath

The image path data.

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