This returns the user profile for the current logged in user
import io.blockv.common.model.User
import io.blockv.common.internal.net.rest.exception.BlockvException
//returns the current user
blockv.getUserManager().getCurrentUser();
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()
.getCurrentUser()
.subscribe(user -> {/*Success*/},
throwable -> {/*Failure*/});