public class

SCPushHandler

extends Object
implements IPushHandler
java.lang.Object
   ↳ com.c2call.sdk.pub.core.SCPushHandler

Summary

Constants
int MESSAGE_TYPE_CALL_ME
int MESSAGE_TYPE_CHAT
int MESSAGE_TYPE_INCOMING_CALL
int PUSH_TYPE_ALERT
int PUSH_TYPE_BADGE
int PUSH_TYPE_SINFO
Public Constructors
SCPushHandler()
Public Methods
void onCallmeMessage(Context context, SCPushMessage message)
This method is invoked when another user sent a CallMe message to us
void onIncomingCall(Context context, SCPushMessage message, String caller)
This method is invoked when an incoming call event was caught
void onSystemMessage(Context context, SCPushMessage message)
This method is invoked when the "system" sent an info notification to us
void onTextMessage(Context context, SCPushMessage message)
This method is invoked when a text/chat message of another user arrives
Protected Methods
boolean isOnline()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.c2call.sdk.pub.core.IPushHandler

Constants

public static final int MESSAGE_TYPE_CALL_ME

Constant Value: 1 (0x00000001)

public static final int MESSAGE_TYPE_CHAT

Constant Value: 0 (0x00000000)

public static final int MESSAGE_TYPE_INCOMING_CALL

Constant Value: 2 (0x00000002)

public static final int PUSH_TYPE_ALERT

Constant Value: 0 (0x00000000)

public static final int PUSH_TYPE_BADGE

Constant Value: 2 (0x00000002)

public static final int PUSH_TYPE_SINFO

Constant Value: 1 (0x00000001)

Public Constructors

public SCPushHandler ()

Public Methods

public void onCallmeMessage (Context context, SCPushMessage message)

This method is invoked when another user sent a CallMe message to us

public void onIncomingCall (Context context, SCPushMessage message, String caller)

This method is invoked when an incoming call event was caught

public void onSystemMessage (Context context, SCPushMessage message)

This method is invoked when the "system" sent an info notification to us

public void onTextMessage (Context context, SCPushMessage message)

This method is invoked when a text/chat message of another user arrives

Protected Methods

protected boolean isOnline ()