Upload an avatar image for the current user.
An avatar can be associated with a user's account by uploading an avatar image. The image is not compressed or cropped. That is left to you as the host app. Note however, that large uploads can affect your user experience. We therefore recommend that you reduce your image size to a reasonable value before upload.
import io.blockv.common.internal.net.rest.exception.BlockvException
//upload avatar
blockv.getUserManager().uploadAvatar(/*...*/)
Note: You can access the function through the UserManager
found in your blockv
singleton. See Getting Started
// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager().uploadAvatar(exampleBitmap)
.subscribe(() -> {/*Success*/},
throwable->{/*Failure*/});