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

Get vAtom Inventory

Overview

This returns the current user inventory of vAtoms with their configured Faces and Actions.

Required imports

import io.blockv.common.internal.net.rest.exception.BlockvException
import io.blockv.common.model.Vatom
import io.blockv.common.model.Face
import io.blockv.common.model.Action

Request

//get vAtoms by id, root inventory id is '.'
blockv.getVatomManager().getInventory(/*inventory-id*/)

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

Example

Get vAtom Inventory

// blockv is the Blockv sdk singleton created in getting started
blockv.getVatomManager()
      .getInventory(".")
      .subscribe(vatoms -> {
          //success
          Vatom vatom = vatoms.get(0);
          List<Face> faces = vatom.getFaces();
          List<Action> actions = vatom.getActions();
      }, throwable -> {/*Failure*/});
©2020 BLOCKv
Info