Skip to main content
Version: 5.x
Supported on
Snapchat
Spectacles
Camera Kit Android
This feature may have limited compatibility and may not perform optimally.
Camera Kit iOS
This feature may have limited compatibility and may not perform optimally.
Camera Kit Web
This feature may have limited compatibility and may not perform optimally.

Bitmoji

The Bitmoji avatar system allows you to represent various users within your Lens. You have the option of getting the avatar in 2D or 3D.

Adding Bitmoji avatars to your Lens

Take a look at the standalone guides for each type of Bitmoji resources to see an example:

TypeExample
3D Bitmoji
2D Bitmoji

Checkout the Bitmoji3D Component which allows you to add Bitmoji avatars without any code.

Technical Overview

There are several steps to load the Bitmoji.

  1. Get the SnapchatUser object representing the user you want Bitmoji from. This can be accessed via the UserContextSystem for the current user, their friends, or MyAI.
  2. Create the requestBitmoji2DResource or requestBitmoji3DResource on the BitmojiModule which will point to the actual asset we're looking to get.
  3. Use RemoteMediaModule to fetch the resource, and display the resource.

Accessing your Friends Bitmoji

In addition to getting the current user's Bitmoji, you can also query for their friends. Take a look at the Friends Component to learn more about accessing their friends' SnapchatUser info. Combinining the two APIs will allow you to create unique experiences.

For example consider the following:

  • Display Bitmoji avatars of the friends you interact with the most
  • Display a quiz that displays your friends Bitmoji so you can suggest which of them is most likely to do something.
  • Display Bitmoji avatars of the friends that the user least interact with so they can reconnect with them.
Was this page helpful?
Yes
No