getCurrentUser

abstract fun getCurrentUser(completionCallback: IValueCallback<BrazeUser>)

Returns the user currently being tracked by Braze. Note that modifying values on instances of BrazeUser for a previous user will result in those values being stored locally, but they will not be synced with the Braze server until that user becomes active again.

Note that this method is asynchronous and will not block the caller thread. Please use IBraze.getCurrentUser for the synchronous version of this method.

Parameters

completionCallback

that has IValueCallback.onSuccess called with a non-null BrazeUser or IValueCallback.onError called otherwise.