setListener method

void setListener(
  1. Object? listener
)

Implementation

void setListener(Object? listener){if(null== listener) return;if(listener is MesiboMessageListenerFlutter){WeakReference<MesiboMessageListenerFlutter> l= WeakReference<MesiboMessageListenerFlutter>(listener);mMessageListeners.add(l);}
if(listener is MesiboConnectionListenerFlutter){WeakReference<MesiboConnectionListenerFlutter> l= WeakReference<MesiboConnectionListenerFlutter>(listener);mConnectionListeners.add(l);}
      if(listener is MesiboPresenceListenerFlutter){WeakReference<MesiboPresenceListenerFlutter> l= WeakReference<MesiboPresenceListenerFlutter>(listener);mPresenceListeners.add(l);}
         if(listener is MesiboProfileListenerFlutter){WeakReference<MesiboProfileListenerFlutter> l= WeakReference<MesiboProfileListenerFlutter>(listener);mProfileListeners.add(l);}
         if(listener is MesiboGroupListenerFlutter){WeakReference<MesiboGroupListenerFlutter> l= WeakReference<MesiboGroupListenerFlutter>(listener);mGroupListeners.add(l);}
         }