Class ChattingStatusObserver
- java.lang.Object
-
- com.zopim.android.sdk.data.observers.ChattingStatusObserver
-
- All Implemented Interfaces:
- java.util.Observer
public abstract class ChattingStatusObserver extends java.lang.Object implements java.util.Observer
An observer that gets notified each time theChattingStatus
changes. You can register an observer by callingDataSource.addChattingStatusObserver(ChattingStatusObserver)
.
-
-
Constructor Summary
Constructors Constructor and Description ChattingStatusObserver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description protected abstract void
update(ChattingStatus chattingStatus)
Delivers the broadcast fromLivechatChattingStatusPath
observable.void
update(java.util.Observable observable, java.lang.Object object)
-
-
-
Method Detail
-
update
public void update(java.util.Observable observable, java.lang.Object object)
- Specified by:
update
in interfacejava.util.Observer
-
update
protected abstract void update(ChattingStatus chattingStatus)
Delivers the broadcast fromLivechatChattingStatusPath
observable.This broadcast arrives on a non-UI thread. Keep in mind that if updating UI elements you need to do so on the main thread using
android.app.Activity#runOnUiThread(Runnable)
orandroid.os.Looper#getMainLooper()
.- Parameters:
chattingStatus
- The current chatting status
-
-