Class StickerProvider

Definition

Namespace:
Tizen.Uix.Sticker
Assembly:
Tizen.Uix.Sticker.dll
API Level:
10

The StickerProvider provides the methods to create/update/delete the sticker data.

C#
Copy
public static class StickerProvider : object
Inheritance
StickerProvider

Properties

View Source

Initialized

Gets a flag indicating whether the StickerProvider is initialized

Declaration
C#
Copy
public static bool Initialized { get; }
Property Value
Type Description
Boolean
View Source

StickerCount

Gets the count of stickers stored by the provider application.

Declaration
C#
Copy
public static int StickerCount { get; }
Property Value
Type Description
Int32
API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker

Methods

View Source

Deinitialize()

Deinitialize the sticker provider.

Declaration
C#
Copy
public static void Deinitialize()
API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker
Precondition: StickerProvider must be initialized.
View Source

DeleteData(String)

Deletes a sticker data in the sticker database.

Declaration
C#
Copy
public static void DeleteData(string uri)
Parameters
Type Name Description
String uri

The URI of the sticker data to be deleted.

API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker
View Source

DeleteData(StickerData)

Deletes a sticker data in the sticker database.

Declaration
C#
Copy
public static void DeleteData(StickerData data)
Parameters
Type Name Description
StickerData data

The sticker data to be deleted.

API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker
View Source

GetAllStickers(Int32, Int32)

Retrieves all sticker data in the sticker database.

Declaration
C#
Copy
public static IEnumerable<StickerData> GetAllStickers(int offset, int count)
Parameters
Type Name Description
Int32 offset

The start position (Starting from zero).

Int32 count

The number of stickers to be retrieved with respect to the offset.

Returns
Type Description
IEnumerable<StickerData>
API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker
View Source

Initialize()

Initialize sticker provider.

Declaration
C#
Copy
public static void Initialize()
API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker
View Source

InsertData(String)

Inserts a sticker data using JSON file.

Declaration
C#
Copy
public static Task InsertData(string jsonPath)
Parameters
Type Name Description
String jsonPath

The path of JSON file containing sticker data to be saved

Returns
Type Description
Task
Remarks

All data except thumbnail, description, and display_type must be set in the JSON file to insert the sticker data. jsonPath must have a non-null value and must be an existing file. If the URI type is local path, the sticker file is copied to a sticker directory. It is recommended to delete your sticker files after inserting a sticker data.

API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker
View Source

InsertData(StickerData)

Inserts a sticker data to the sticker database.

Declaration
C#
Copy
public static void InsertData(StickerData data)
Parameters
Type Name Description
StickerData data

The sticker data to be saved.

API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker
View Source

SetGroupImage(GroupImage)

Sets the image of the sticker group. URI must be a relative path like '/res/smile.png' when URI type is local path.

Declaration
C#
Copy
public static void SetGroupImage(GroupImage groupImage)
Parameters
Type Name Description
GroupImage groupImage

The group image to be set.

API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker
View Source

UpdateData(StickerData)

Updates a sticker data in the sticker database.

Declaration
C#
Copy
public static void UpdateData(StickerData data)
Parameters
Type Name Description
StickerData data

The sticker data to be updated.

API Level: 10
Feature: http://tizen.org/feature/ui_service.sticker