From Remote URL
PhotoEditor SDK supports loading stickers from a remote URL, this can be a resource hosted by a hosting provider or your own servers. The sticker tool is optimized for remote resources which allows to directly integrate a remote URL instead of downloading the asset beforehand. For an example of how to download the remote resources in advance see the font example.
Adding Sticker categories#
Stickers are added to the PhotoEditor SDK via the configuration.sticker.categories array within a StickerCategory.
Adding custom categories#
Each StickerCategory takes a name, an identifier, a thumbnailUri as well as an array of Stickers via them items property.
A category can be populated both with custom as well as existing stickers that are shipped with the SDK.
Adding existing categories#
Existing StickerCategories can be added by specifying the unique identifier. You can find all available identifiers of the predefined categories here.
Adding stickers#
A Sticker is always added to the SDK via a hosting StickerCategory as shown in the previous section.
Adding custom stickers#
Each Sticker takes an identifier, a name as well as a stickerUri pointing to the remote sticker file.
The sticker identifier needs to be unique since it is used during the (de)serialization process.