public class

RichPushUser

extends Object
java.lang.Object
   ↳ com.urbanairship.richpush.RichPushUser

Class Overview

The Urban Airship rich push user.

Summary

Nested Classes
interface RichPushUser.Listener A listener interface for receiving events for user updates. 
Public Methods
void addListener(RichPushUser.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.
void removeListener(RichPushUser.Listener listener)
Unsubscribe a listener for inbox and user update events.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void addListener (RichPushUser.Listener listener)

Subscribe a listener for user update events.

Parameters
listener An object implementing the RichPushUser.Listener interface.

public String getId ()

Get the user's ID.

Returns
  • A user ID String or null if it doesn't exist.

public String getPassword ()

Get the user's token used for basic auth.

Returns
  • A user token String.

public static boolean isCreated ()

Returns whether the user has been created.

Returns
  • true if the user has an id, false otherwise.

public void removeListener (RichPushUser.Listener listener)

Unsubscribe a listener for inbox and user update events.

Parameters
listener An object implementing the RichPushUser.Listener interface.