Class StickerData
Definition
- Assembly:
- Tizen.Uix.Sticker.dll
The StickerData provides the methods to get/set the sticker data.
public class StickerData : IDisposable
- Inheritance
-
objectStickerData
- Implements
-
System.IDisposable
Constructors
View SourceStickerData()
The public constructor.
Declaration
public StickerData()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | This can occur due to the following reasons:
|
Properties
View SourceAppId
Gets the name of the sticker provider application from sticker data.
Declaration
public string AppId { get; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | This exception can be due to no data available. |
Description
Gets/Sets the description of the sticker data.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
DisplayType
Gets/Sets the display type of the sticker data.
Declaration
public DisplayType DisplayType { get; set; }
Property Value
Type | Description |
---|---|
DisplayType |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ArgumentException | This exception can be due to an invalid parameter. |
GroupName
Gets/Sets the group name of the sticker data.
Declaration
public string GroupName { get; set; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | This exception can be due to no data available. |
LastUpdated
Gets the last update date from sticker data.
Declaration
public DateTime LastUpdated { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | This exception can be due to no data available. |
Thumbnail
Gets/Sets the thumbnail local path of the sticker data.
Declaration
public string Thumbnail { get; set; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ArgumentException | This exception can be due to an invalid parameter. |
Uri
Gets the URI from sticker data.
Declaration
public string Uri { get; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | This exception can be due to no data available. |
UriType
Gets the URI type from sticker data.
Declaration
public UriType UriType { get; }
Property Value
Type | Description |
---|---|
UriType |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | This exception can be due to no data available. |
Methods
View SourceAddKeyword(string)
Adds a keyword of the sticker to the list.
Declaration
public void AddKeyword(string keyword)
Parameters
Type | Name | Description |
---|---|---|
string | keyword | The keyword to be saved. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ArgumentException | This exception can be due to an invalid parameter. |
Dispose()
Release any unmanaged resources used by this object.
Declaration
public void Dispose()
Dispose(bool)
Release any unmanaged resources used by this object.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
~StickerData()
The destructor of the StickerData class.
Declaration
protected ~StickerData()
GetAllKeywords()
Retrieves all keywords of the sticker data.
Declaration
public IEnumerable<string> GetAllKeywords()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><string> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | This exception can be due to no data available. |
RemoveKeyword(string)
Removes a keyword of the sticker from the list.
Declaration
public void RemoveKeyword(string keyword)
Parameters
Type | Name | Description |
---|---|---|
string | keyword | The keyword to be removed. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ArgumentException | This exception can be due to an invalid parameter. |
SetUri(UriType, string)
Sets the URI of the sticker data.
Declaration
public void SetUri(UriType uriType, string uri)
Parameters
Type | Name | Description |
---|---|---|
UriType | uriType | The URI type to be saved. |
string | uri | The URI to be saved. |
Remarks
uri
must be a path inside the app package directory like 'res/smile.png' when the type of URI is local path.
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ArgumentException | This exception can be due to an invalid parameter. |