Instance Method

stickerBrowserView(_:stickerAt:)

Required.

Asks the data source for the sticker object that the browser will display at the provided index.

Declaration

func stickerBrowserView(_ stickerBrowserView: MSStickerBrowserView, stickerAt index: Int) -> MSSticker

Parameters

stickerBrowserView

The sticker browser view that displays these stickers.

index

The index of the desired sticker.

Return Value

A valid sticker object.

Discussion

Do not perform any time-intensive activities in this method. For example, creating a sticker from a local image file should be fine, but you can’t download an image for your sticker.