Options
All
  • Public
  • Public/Protected
  • All
Menu

The screenSync session can be created on top of the collaboration session with one "leader" and multiple "followers". Followers will follow leader’s screen scrolling,PDFPage zooming,and PDFPage view mode.

Basically, a screenSync is retrieved by creating a new screenSync Collaboration.createScreenSync and an existing screenSync can be obtained by Collaboration.getScreenSync

The screenSync is used to join,leave and getMembers of the screenSync session.

Hierarchy

  • ScreenSync

Index

Methods

  • Get all the members of the screenSync session.

    Parameters

    • Optional role: ScreenSyncRole
      • 'leader':return the leader of the screenSync session.
      • 'follower':return the followers of the screenSync session.

      If this option is omitted, return all the members of the screenSync session.

    Returns Promise<null | Member[]>

  • join(): Promise<boolean>
  • Join the screenSync session.

    Returns Promise<boolean>

    If true:the current user becomes the follower of the screenSync session,and the ScreenSyncEvent.MEMBER_JOINED event is fired for all members of the screenSync session.

  • leave(): Promise<boolean>
  • Leave the screenSync session.

    Returns Promise<boolean>

    If true:leave the screenSync session successfully,and the ScreenSyncEvent.MEMBER_LEAVE event is fired for all members of the screenSync session.

    If the current 'leave' user is the leader of the screenSync session,the screenSync session is stopped ,and the ScreenSyncEvent.STOPPED event is fired for all members of the screenSync session.

  • setSyncRate(syncRate: number): boolean
  • Set the time interval at which screen sync data is sent to the server, in milliseconds.

    The default value is 200 milliseconds. It's recommend to set a value greater than 50 milliseconds.

    Parameters

    • syncRate: number

      the time interval in milliseconds.

    Returns boolean

    • true: sync rate is updated successfully.
    • false: Failed to set sync rate.

Generated using TypeDoc