public interface TwilioIPMessagingClient
Modifier and Type | Method and Description |
---|---|
Channels |
getChannels()
List of channels available to the TwilioIPMessagingClient.
|
java.lang.String |
getIdentity()
Deprecated.
|
IPMessagingClientListener |
getListener()
Method to retrieve listener for this TwilioIPMessagingClient.
|
UserInfo |
getMyUserInfo()
Get user info object for current user
|
void |
handleNotification(java.util.Map<java.lang.String,java.lang.String> notification)
Queue the incoming notification with the messaging library for processing.
|
void |
registerGCMToken(java.lang.String token,
Constants.StatusListener listener)
Register GCM token for push notification updates.
|
void |
setIncomingIntent(android.app.PendingIntent inIntent)
Sets a
PendingIntent that will be sent when an incoming channel invite is received. |
void |
setListener(IPMessagingClientListener listener)
Method to set listener for this TwilioIPMessagingClient.
|
void |
shutdown()
Cleanly shuts down the messaging subsystem when you are done with it.
|
void |
unregisterGCMToken(java.lang.String token,
Constants.StatusListener listener)
Unregister from push notification updates.
|
void |
updateToken(java.lang.String accessToken,
Constants.StatusListener listener)
Method to update the authentication token for this client.
|
@Deprecated java.lang.String getIdentity()
IPMessagingClientListener getListener()
void setListener(IPMessagingClientListener listener)
listener
- the listener for this TwilioIPMessagingClient.void updateToken(java.lang.String accessToken, Constants.StatusListener listener)
accessToken
- an AccessToken for this Client.Channels getChannels()
void setIncomingIntent(android.app.PendingIntent inIntent)
PendingIntent
that will be sent when an incoming channel invite is received.void registerGCMToken(java.lang.String token, Constants.StatusListener listener)
token
- The registration token an Android application needs to register with GCM connection servers before
it can receive messages.listener
- Listener that will receive callback with the result.void unregisterGCMToken(java.lang.String token, Constants.StatusListener listener)
token
- The registration token provided for GCM push notification registration.listener
- Listener that will receive callback with the result.void handleNotification(java.util.Map<java.lang.String,java.lang.String> notification)
notification
- Notification received from GCMvoid shutdown()
UserInfo getMyUserInfo()