# getUser
suspend fun getUser(userId: String): User?
Get a registered user.
# Return
the user or null if there isn’t registered user for the project with this userId on the device.
# Parameters
userId | Identifier of the user. |
fun getUser(userId: String, resultHandler: ResultHandler<User?, UserStorageException>)
Get a registered user.
# Parameters
userId | Identifier of the user. |
resultHandler | a callback to handle the result of the user retrieval. - If successful, the result is MIRACLSuccess with value of the user or null if there isn’t registered user for the project with this userId on the device. - If an error occurs, the result is MIRACLError with a UserStorageException. |