getUser

suspend fun getUser(userId: String): User?

Gets a registered user.

Return

The user or null if there is no registered user with this userId for the project on the device.

Parameters

userId

The identifier of the user.


fun getUser(userId: String, resultHandler: ResultHandler<User?, UserStorageException>)

Gets a registered user.

Parameters

userId

The identifier of the user.

resultHandler

A callback to handle the result of the user retrieval.

  • If successful, the result is a MIRACLSuccess with the value of the user or null if there is no registered user with this userId for the project on the device.

  • If an error occurs, the result is a MIRACLError with a UserStorageException.