Stipop Docs | Documentation for SDK and API

Event Listener

While your app users explore Stipop SDK, you will start listening to events. Your app will handle these events through our interface(delegate). It always has to be used as a parameter of Stipop.connect.

StipopDelegate

1
2
3
4
5
6
7
8
9
10
interface StipopDelegate {

  fun onStickerSingleTapped(sticker: SPSticker): Boolean

  /* If you want to use double tap feature, change the plist file and implement this function. */
  fun onStickerDoubleTapped(sticker: SPSticker): Boolean
  
  fun onStickerPackRequested(spPackage: SPPackage): Boolean

}

onStickerSingleTapped

Once a user tap one of our stickers once, it will trigger onStickerSingleTapped function. In most cases, stickers received this way are loaded into ImageView or converted to a File and used.

onStickerDoubleTapped

Once a user tap one of our stickers twice, it will trigger onStickerSingleTapped function. In most cases, stickers received this way are loaded into ImageView or converted to a File and used.

onStickerPackRequested

This function applies only to Sticker Picker, where users can download sticker packs from a well-organized sticker library.

We’re here to help. Contact us.