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 ChannelCloseEventSignallingEventType.JOIN is related to UserJoinEventSignallingEventType.INVITE is related to InvitedEventSignallingEventType.CANCEL_INVITE is related to CanceledInviteEventSignallingEventType.REJECT is related to InviteAckEventSignallingEventType.ACCEPT is related to InviteAckEventSignallingEventType.LEAVE is related to UserLeaveEventSignallingEventType.CONTROL is related to ControlEventobserver - 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 ChannelCloseEventSignallingEventType.JOIN is related to UserJoinEventSignallingEventType.INVITE is related to InvitedEventSignallingEventType.CANCEL_INVITE is related to CanceledInviteEventSignallingEventType.REJECT is related to InviteAckEventSignallingEventType.ACCEPT is related to InviteAckEventSignallingEventType.LEAVE is related to UserLeaveEventobserver - 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