promoteAnonymousUser
fun promoteAnonymousUser(options: PromoteOptions, onPromoteAnonymousUserListener: OnPromoteAnonymousUserListener, handler: Handler = Handler(Looper.getMainLooper()))
Promote the current anonymous user. Note that this must not be called before there is an anonymous user.
This can be called either when the anonymous user is logged in or logged out.
If the promotions succeeds, the anonymous user would be reset and a new anonymous can be created by authenticateAnonymously.
Parameters
options
Promotion options.
onPromoteAnonymousUserListener
The listener.
handler
The handler of the thread on which the listener is called.