API

Common

Getting Started
Errors and Codes

User

Register
Login
Get User Profile
Update Profile
Upload Avatar
Reset Password
Logout
Get Public User Profile

User Token

List Tokens
Add Token
Delete Token
Set Default Token
Verify Token
Reset Verification

User vAtom

Get vAtoms by IDs
Get vAtom Inventory
Search vAtoms
Get Actions
Perform Actions
Trash vAtom

User Activity

Get My Threads
Get My Thread Messages
Send Message

Map

Geo Discover vAtoms
Geo Discover vAtom Groups

Update Stream

Web Socket

Face Infrastructure

Face View Registration
Vatom View
Face Selection Procedure

Upload Avatar

Overview

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.

Required imports

import io.blockv.common.internal.net.rest.exception.BlockvException

Request

//upload avatar
blockv.getUserManager().uploadAvatar(/*...*/)

Note: You can access the function through the UserManager found in your blockv singleton. See Getting Started

Example

Upload Avatar

// blockv is the Blockv sdk singleton created in getting started
 blockv.getUserManager().uploadAvatar(exampleBitmap)
      .subscribe(() -> {/*Success*/},
      throwable->{/*Failure*/});
©2020 BLOCKv
Info