MWhiteboard

cn.tee3.avd

## 类 MWhiteboard

- java.lang.Object
- - cn.tee3.avd.Module
  - - cn.tee3.avd.MWhiteboard

-     public class MWhiteboard
      extends Module

  白板模块接口.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `MWhiteboard.DisplayDimension`
    `static interface` | `MWhiteboard.Listener` 白板回调接口
    `class` | `MWhiteboard.tagColor` 颜色定义
    `static class` | `MWhiteboard.Whiteboard` 白板结构.

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `attachBoard(java.lang.String bid, long winId)`
    `void` | `closeLocalBoard()`
    `void` | `closeRemoteBoard(java.lang.String boardId)`
    `int` | `createBoard(MWhiteboard.Whiteboard whiteboard)`
    `void` | `createLocalWhiteboard(java.lang.String title, java.lang.String desc, int color)`
    `int` | `detachBoard(java.lang.String bid)`
    `void` | `dispose()`
    `MAnnotaionInternal` | `getAnnotation()`
    `java.util.List<MWhiteboard.Whiteboard>` | `getSharedWhiteBoards()`
    `static MWhiteboard` | `getWhiteboard(Room room)` 获取房间白板模块
    `java.util.List<MWhiteboard.Whiteboard>` | `getWhiteBoards()`
    `WhiteboardView` | `getWhiteboardView()`
    `boolean` | `hasLocalWhiteboardShared()`
    `boolean` | `hasWhiteboardShared()`
    `void` | `initNativeListener()`
    `boolean` | `isDrawToolVisible()`
    `boolean` | `isVisible()`
    `MWhiteboard` | `onAttachView(WhiteboardView view)`
    `MWhiteboard` | `onCreate(java.lang.String userId)`
    `void` | `onUserLeave(User user)`
    `void` | `rebuildLocalWhiteboard()`
    `void` | `removeBoard(java.lang.String id)`
    `int` | `setBackground(java.lang.String id, char r, char g, char b, char a)`
    `int` | `setBackground(java.lang.String id, java.lang.String filePath)`
    `int` | `setHeight(java.lang.String id, int h)`
    `boolean` | `setListener(MWhiteboard.Listener listener)` 设置白板模块回调接口
    `void` | `setOnDrawToolVisibleListener(WhiteboardView.IDrawToolbarListener listener)` WhiteboardView 触摸事件监听
    `void` | `setOnTouchEventListener(WhiteboardView.IOnTouchEventListener listener)` WhiteboardView 触摸事件监听
    `int` | `setWidth(java.lang.String id, int w)`
    `int` | `shareBoard(java.lang.String boardId)`
    `void` | `shareRemoteBoard()`
    `int` | `updateBoard(java.lang.String id, MWhiteboard.Whiteboard wb)`

    - ### 从类继承的方法 cn.tee3.avd.Module

      `getOwnerId, getOwnerName, getRoom, getUserManager, getUserName, isSelfDevice, isSelfUser`

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### getWhiteboard

          public static MWhiteboard getWhiteboard(Room room)

      获取房间白板模块
      返回:
        返回白板模块接口指针。

    - #### createLocalWhiteboard

          public void createLocalWhiteboard(java.lang.String title,
                                            java.lang.String desc,
                                            int color)

    - #### hasLocalWhiteboardShared

          public boolean hasLocalWhiteboardShared()

    - #### hasWhiteboardShared

          public boolean hasWhiteboardShared()

    - #### rebuildLocalWhiteboard

          public void rebuildLocalWhiteboard()

    - #### onUserLeave

          public void onUserLeave(User user)

    - #### isVisible

          public boolean isVisible()

    - #### isDrawToolVisible

          public boolean isDrawToolVisible()

    - #### onCreate

          public MWhiteboard onCreate(java.lang.String userId)

    - #### onAttachView

          public MWhiteboard onAttachView(WhiteboardView view)

    - #### getWhiteboardView

          public WhiteboardView getWhiteboardView()

    - #### dispose

          public void dispose()

    - #### getAnnotation

          public MAnnotaionInternal getAnnotation()

    - #### createBoard

          public int createBoard(MWhiteboard.Whiteboard whiteboard)

    - #### shareBoard

          public int shareBoard(java.lang.String boardId)

    - #### shareRemoteBoard

          public void shareRemoteBoard()

    - #### closeRemoteBoard

          public void closeRemoteBoard(java.lang.String boardId)

    - #### closeLocalBoard

          public void closeLocalBoard()

    - #### removeBoard

          public void removeBoard(java.lang.String id)

    - #### updateBoard

          public int updateBoard(java.lang.String id,
                                 MWhiteboard.Whiteboard wb)

    - #### setBackground

          public int setBackground(java.lang.String id,
                                   java.lang.String filePath)

    - #### setBackground

          public int setBackground(java.lang.String id,
                                   char r,
                                   char g,
                                   char b,
                                   char a)

    - #### setWidth

          public int setWidth(java.lang.String id,
                              int w)

    - #### setHeight

          public int setHeight(java.lang.String id,
                               int h)

    - #### attachBoard

          public int attachBoard(java.lang.String bid,
                                 long winId)

    - #### detachBoard

          public int detachBoard(java.lang.String bid)

    - #### getWhiteBoards

          public java.util.List<MWhiteboard.Whiteboard> getWhiteBoards()

    - #### getSharedWhiteBoards

          public java.util.List<MWhiteboard.Whiteboard> getSharedWhiteBoards()

    - #### setOnTouchEventListener

          public void setOnTouchEventListener(WhiteboardView.IOnTouchEventListener listener)

      WhiteboardView 触摸事件监听
      参数:
        `listener` -

    - #### setOnDrawToolVisibleListener

          public void setOnDrawToolVisibleListener(WhiteboardView.IDrawToolbarListener listener)

      WhiteboardView 触摸事件监听
      参数:
        `listener` -

    - #### setListener

          public boolean setListener(MWhiteboard.Listener listener)

      设置白板模块回调接口
      返回:
        返回错误代码。

    - #### initNativeListener

          public void initNativeListener()