Skip to main content

collab_event

Collaboration Events

On Collaboration Event

You can use on function to listen the related collaboration events.

Example

collaboration.on(event: 'onlineStatusChanged', listener: (actionData: Record<string, any>, action: 'online' | 'offline' | 'delete-share' | 'edit-members'|'screen-sync-created'|'screen-sync-stopped'|'screen-sync-member-joined'|'screen-sync-member-leave') => void)

Off Collaboration Event

You can use off function to unlisten the related collaboration events.

Example

collaboration.off(): Promise<boolean>