java.lang.Object | |
↳ | com.urbanairship.messagecenter.User |
The Airship rich push user.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | User.Listener | A listener interface for receiving events for user updates. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addListener(User.Listener listener)
Subscribe a listener for user update events.
| ||||||||||
String |
getId()
Get the user's ID.
| ||||||||||
String |
getPassword()
Get the user's token used for basic auth.
| ||||||||||
static boolean |
isCreated()
Returns whether the user has been created.
| ||||||||||
boolean |
isUserCreated()
Checks if the user credentials are available.
| ||||||||||
void |
removeListener(User.Listener listener)
Unsubscribe a listener for inbox and user update events.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Subscribe a listener for user update events.
listener | An object implementing the User.Listener interface.
|
---|
Returns whether the user has been created.
true
if the user has an id, false
otherwise.
Checks if the user credentials are available.
true
if the credentials are available, otherwise false
.
Unsubscribe a listener for inbox and user update events.
listener | An object implementing the User.Listener interface.
|
---|