public interface TwilioIPMessagingClient
Modifier and Type | Interface and Description |
---|---|
static class |
TwilioIPMessagingClient.Properties
Properties for client initialization configuration
|
static class |
TwilioIPMessagingClient.SynchronizationStatus
Enum representing client initialization status
|
static class |
TwilioIPMessagingClient.SynchronizationStrategy
Enum representing client synchronization strategies
|
Modifier and Type | Method and Description |
---|---|
Channels |
getChannels()
List of channels available to the TwilioIPMessagingClient.
|
java.lang.String |
getIdentity()
Deprecated.
As of release 0.5.0, replaced by
UserInfo.getIdentity() |
IPMessagingClientListener |
getListener()
Method to retrieve listener for this TwilioIPMessagingClient.
|
UserInfo |
getMyUserInfo()
Get user info object for current user
|
TwilioIPMessagingClient.Properties |
getProperties()
Get properties for current client
|
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()
UserInfo.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.listener
- Listener that will receive callback with the result.Channels getChannels()
void setIncomingIntent(android.app.PendingIntent inIntent)
PendingIntent
that will be sent when an incoming channel invite is received.inIntent
- intent to send.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 GCMTwilioIPMessagingClient.Properties getProperties()
void shutdown()
UserInfo getMyUserInfo()