public class UserManager extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
UserManager.ChangePasswordListener
Response listener for change password request.
|
static class |
UserManager.ChangePasswordOptions
Change password request options.
|
static interface |
UserManager.OAuthSignInListener
OAuth sign in response listener.
|
static class |
UserManager.OAuthSignInOptions
OAuth sign in options.
|
static interface |
UserManager.ResetPasswordListener
Response listener for reset password request.
|
static class |
UserManager.ResetPasswordOptions
Reset password options.
|
static class |
UserManager.UpdateOAuthCredentialsOptions
Options for updating OAuth credentials.
|
static interface |
UserManager.UpdatePushNotificationInformationListener
Response listener for update push notification information.
|
static class |
UserManager.UpdatePushNotificationInformationOptions
Update user's push notification information options.
|
static interface |
UserManager.UserCreateListener
Create new user account response listener.
|
static class |
UserManager.UserCreateOptions
Create user options.
|
static interface |
UserManager.UserGetListener
Get user information response listener.
|
static class |
UserManager.UserGetOptions
Get user account options.
|
static class |
UserManager.UserManagerException
An exception that is thrown when there is an error with a
TripManager operation. |
static interface |
UserManager.UserSignInListener
User sign in response listener.
|
static class |
UserManager.UserSignInOptions
User sign in options.
|
static interface |
UserManager.UserSignOutListener
User sign out response listener.
|
static interface |
UserManager.UserUpdateListener
Create new user update response listener.
|
static class |
UserManager.UserUpdateOptions
Update user options.
|
public ICancellable update(@NonNull UserManager.UserUpdateOptions options, @NonNull UserManager.UserUpdateListener listener)
options
- User account options.listener
- Response listener that is called when user account is updated.ICancellable
to cancel current request.public ICancellable create(@NonNull UserManager.UserCreateOptions options, @NonNull UserManager.UserCreateListener listener)
options
- User account options.listener
- Response listener that is called when user account is created.ICancellable
to cancel current request.public ICancellable signIn(@NonNull UserManager.UserSignInOptions options, @NonNull UserManager.UserSignInListener listener)
options
- User account sign in options.listener
- Response listener that is called when user signed in.ICancellable
to cancel current request.public ICancellable getUserInformation(@NonNull UserManager.UserGetOptions options, @NonNull UserManager.UserGetListener listener)
options
- User account information.listener
- Response listener that is called when user information is received.ICancellable
to cancel current request.public ICancellable signOut(@NonNull UserManager.UserSignOutListener listener)
listener
- Response listener that is called when user is signed out.ICancellable
to cancel current request.public ICancellable updatePushNotificationInformation(@NonNull UserManager.UpdatePushNotificationInformationOptions options, @NonNull UserManager.UpdatePushNotificationInformationListener listener)
options
- User push notification information.listener
- Response listener that is called when push information is updatedICancellable
to cancel current request.public ICancellable resetPassword(@NonNull UserManager.ResetPasswordOptions options, @NonNull UserManager.ResetPasswordListener listener)
options
- Reset password options.listener
- Response listener.ICancellable
to cancel the request.public ICancellable changePassword(UserManager.ChangePasswordOptions options, UserManager.ChangePasswordListener listener)
options
- Change password options.listener
- Response listener.ICancellable
to cancel the request.public ICancellable signInWithOAuth(@NonNull UserManager.OAuthSignInOptions options, @NonNull UserManager.OAuthSignInListener listener)
UserManager.signOut(UserSignOutListener)
to sign out.
Note that it is not necessary to create an account via
UserManager.create(UserCreateOptions, UserCreateListener)
when signing in with OAuth
credentials.options
- OAuth sign in options.listener
- Response listener that is called when user signed in.ICancellable
to cancel the request.public void updateOAuthCredentials(@NonNull UserManager.UpdateOAuthCredentialsOptions options)
options
- Options for updating OAuth credentials.public boolean isSignedIn()
true
if user is signed in with valid credentials; otherwise false
.public boolean isAuthenticated()
true
if user is authenticated; otherwise false
.public String getSignInName()
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.