Class AccountObserver

  • All Implemented Interfaces:
    java.util.Observer


    public abstract class AccountObserver
    extends java.lang.Object
    implements java.util.Observer
    Abstract definition of the observer that listens to broadcasts from LivechatAccountPath observable
    • Constructor Detail

      • AccountObserver

        public AccountObserver()
    • Method Detail

      • update

        public final void update(java.util.Observable observable,
                                 java.lang.Object object)
        Specified by:
        update in interface java.util.Observer
      • update

        public abstract void update(Account account)
        Delivers the broadcast from LivechatAccountPath 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) or android.os.Looper#getMainLooper().

        Parameters:
        account - The current account state