ConnectionListenerAdapterpublic class ConnectionListenerAdapter extends IConnectionListener.Stub
Fields Summary |
---|
private static final String | TAG | private android.os.Handler | mHandler |
Constructors Summary |
---|
public ConnectionListenerAdapter(android.os.Handler handler)
mHandler = handler;
|
Methods Summary |
---|
public void | onConnectionStateChange(com.android.im.IImConnection connection, int state, com.android.im.engine.ImErrorInfo error)
if (Log.isLoggable(TAG, Log.DEBUG)) {
Log.d(TAG, "onConnectionStateChange(" + state + ", " + error + ")");
}
| public void | onSelfPresenceUpdated(com.android.im.IImConnection connection)
if (Log.isLoggable(TAG, Log.DEBUG)) {
Log.d(TAG, "onSelfPresenceUpdated()");
}
| public final void | onStateChanged(com.android.im.IImConnection conn, int state, com.android.im.engine.ImErrorInfo error)
mHandler.post(new Runnable() {
public void run() {
onConnectionStateChange(conn, state, error);
}
});
| public final void | onUpdatePresenceError(com.android.im.IImConnection conn, com.android.im.engine.ImErrorInfo error)
mHandler.post(new Runnable() {
public void run() {
onUpdateSelfPresenceError(conn, error);
}
});
| public void | onUpdateSelfPresenceError(com.android.im.IImConnection connection, com.android.im.engine.ImErrorInfo error)
if (Log.isLoggable(TAG, Log.DEBUG)) {
Log.d(TAG, "onUpdateSelfPresenceError(" + error + ")");
}
| public final void | onUserPresenceUpdated(com.android.im.IImConnection conn)
mHandler.post(new Runnable() {
public void run() {
onSelfPresenceUpdated(conn);
}
});
|
|