Sticker

@objc(PESDKSticker) open class Sticker: NSObject

A Sticker represents a single sticker in a sticker category. Each sticker needs an image and a thumbnail image. If no thumbnail is provided, it is automatically generated.

  • The URL for the sticker’s full size image. This can be a file url or a remote url.

    Declaration

    Swift

    open let imageURL: URL
  • The thumbnail URL of the sticker. If this is nil, it will be generated automatically from the full size image. This can be a file url or a remote url.

    Declaration

    Swift

    open let thumbnailURL: URL?
  • The tint mode that this sticker supports. Default is .none.

    Declaration

    Swift

    open let tintMode: StickerTintMode
  • This string is used to identify the sticker. I must be unique.

    Declaration

    Swift

    open let identifier: String
  • Creates a sticker with an image url and optionally a thumbnail url.

    Declaration

    Swift

    public convenience init(imageURL: URL, thumbnailURL: URL?, identifier: String)

    Parameters

    imageURL

    The url for the sticker’s full size image.

    thumbnailURL

    The url for the sticker’s thumbnail image.

  • Creates a sticker with an image url and optionally a thumbnail url.

    Declaration

    Swift

    public init(imageURL: URL, thumbnailURL: URL?, tintMode: StickerTintMode, identifier: String)

    Parameters

    imageURL

    The url for the sticker’s full size image.

    thumbnailURL

    The url for the sticker’s thumbnail image.

    tintMode

    The tint mode that this sticker supports.