public interface SignallingServiceObserver
Modifier and Type | Method and Description |
---|---|
void |
observeMemberUpdateNotification(Observer<MemberUpdateEvent> observer,
boolean register)
Register or unregister the observer for update events of channel members
|
void |
observeOfflineNotification(Observer<java.util.ArrayList<ChannelCommonEvent>> observer,
boolean register)
Register or unregister the observer for offline notification event.
|
void |
observeOnlineNotification(Observer<ChannelCommonEvent> observer,
boolean register)
Register or unregister the observer for online notification events
The subtypes of RoomCommonEvent are returned.
|
void |
observeOtherClientInviteAckNotification(Observer<InviteAckEvent> observer,
boolean register)
Register or unregister the observer for responses to the invite request on other devices.
|
void |
observeSyncChannelListNotification(Observer<java.util.ArrayList<SyncChannelListEvent>> observer,
boolean register)
Register or unregister the observer for list of remaining channels.
|
void observeOnlineNotification(Observer<ChannelCommonEvent> observer, boolean register)
ChannelCommonEvent.getEventType()
SignallingEventType
and ChannelCommonEvent subtypes are associated in the following way: SignallingEventType.CLOSE
is related to ChannelCloseEvent
SignallingEventType.JOIN
is related to UserJoinEvent
SignallingEventType.INVITE
is related to InvitedEvent
SignallingEventType.CANCEL_INVITE
is related to CanceledInviteEvent
SignallingEventType.REJECT
is related to InviteAckEvent
SignallingEventType.ACCEPT
is related to InviteAckEvent
SignallingEventType.LEAVE
is related to UserLeaveEvent
SignallingEventType.CONTROL
is related to ControlEvent
observer
- observer. The parameter is the online notification eventregister
- true: register the observer; false: unregister the observervoid observeOfflineNotification(Observer<java.util.ArrayList<ChannelCommonEvent>> observer, boolean register)
ChannelCommonEvent.getTime()
ChannelCommonEvent.getEventType()
SignallingEventType
and ChannelCommonEvent subtypes are associated in the following way: SignallingEventType.CLOSE
is related to ChannelCloseEvent
SignallingEventType.JOIN
is related to UserJoinEvent
SignallingEventType.INVITE
is related to InvitedEvent
SignallingEventType.CANCEL_INVITE
is related to CanceledInviteEvent
SignallingEventType.REJECT
is related to InviteAckEvent
SignallingEventType.ACCEPT
is related to InviteAckEvent
SignallingEventType.LEAVE
is related to UserLeaveEvent
observer
- observer. The parameter is the offline notificationsregister
- true: register the observer; false: unregister the observervoid observeOtherClientInviteAckNotification(Observer<InviteAckEvent> observer, boolean register)
observer
- observer. The callback parameter is response from other clientsregister
- true: register the observer; false: unregister the observervoid observeSyncChannelListNotification(Observer<java.util.ArrayList<SyncChannelListEvent>> observer, boolean register)
observer
- The observer. The callback parameter is the list of channels the user does not leave.register
- true: register the observer; false: unregister the observervoid observeMemberUpdateNotification(Observer<MemberUpdateEvent> observer, boolean register)
observer
- observer. The callback parameter is the member update event, which contains the complete information of the latest channel (channel and member list)observeOnlineNotification(com.netease.nimlib.sdk.Observer<com.netease.nimlib.sdk.avsignalling.event.ChannelCommonEvent>, boolean)
. observeOnlineNotification(com.netease.nimlib.sdk.Observer<com.netease.nimlib.sdk.avsignalling.event.ChannelCommonEvent>, boolean)
is not triggeredregister
- true: register the observer; false: unregister the observer