public class GCMPushIntentService extends IntentService implements DeliveryCallback, CommunicationServiceCallbacks
Constructor and Description |
---|
GCMPushIntentService() |
Modifier and Type | Method and Description |
---|---|
void |
newChatMessage(ChatMessage message)
This method execute automatically when receive a new chat message.
|
void |
onBackendDelivery(BackendDelivery delivery)
This function executes automatically when the sdk receive any push by backend
|
void |
onCampaignDelivery(CampaignDelivery delivery)
This function executes automatically when the sdk receive any push by manager
|
void |
onCreate() |
void |
onGenericPush(Intent intent)
This function executes automatically when the sdk receive any push by other server.
|
protected void |
onHandleIntent(Intent intent) |
void |
onInviteAGroup(GroupChat chat)
This method execute automatically when invite a group chat.
|
void |
onJoinGroup(GroupChat chat)
This method execute automatically when join a group chat.
|
void |
onLeaveGroup(GroupChat chat)
This method execute automatically when leave a group chat.
|
void |
startTyping(String userJid)
This method execute automatically when user start typing in specific chat
|
void |
stopTyping(String userJid)
This method execute automatically when user stop typing in specific chat
|
protected static final String TAG
public void onCreate()
protected final void onHandleIntent(Intent intent)
public void onBackendDelivery(BackendDelivery delivery)
DeliveryCallback
onBackendDelivery
in interface DeliveryCallback
delivery
- contains a delivery informationpublic void onCampaignDelivery(CampaignDelivery delivery)
DeliveryCallback
onCampaignDelivery
in interface DeliveryCallback
delivery
- contains a delivery informationpublic void onGenericPush(Intent intent)
DeliveryCallback
onGenericPush
in interface DeliveryCallback
intent
- contains push information.public void newChatMessage(ChatMessage message)
CommunicationServiceCallbacks
newChatMessage
in interface CommunicationServiceCallbacks
message
- object that contains all message information.public void startTyping(String userJid)
CommunicationServiceCallbacks
startTyping
in interface CommunicationServiceCallbacks
userJid
- user that start typingpublic void stopTyping(String userJid)
CommunicationServiceCallbacks
stopTyping
in interface CommunicationServiceCallbacks
userJid
- user that stop typingpublic void onInviteAGroup(GroupChat chat)
CommunicationServiceCallbacks
onInviteAGroup
in interface CommunicationServiceCallbacks
chat
- that user is invited.public void onJoinGroup(GroupChat chat)
CommunicationServiceCallbacks
onJoinGroup
in interface CommunicationServiceCallbacks
chat
- that user is joined.public void onLeaveGroup(GroupChat chat)
CommunicationServiceCallbacks
onLeaveGroup
in interface CommunicationServiceCallbacks
chat
- that user is leaved.