clearUserContents method

  1. @override
Future<ResultCode> clearUserContents(
  1. String userId,
  2. bool curPage,
  3. WBClearType type
)
override

clear whiteboard content by specific user ID

Parameter userId user ID

Parameter curPage true: clear current page only; false: clear all pages

Parameter type WBClearType enum type

Returns

Note If the user isn't current user, the operation requires admin role.

清除指定用户绘制的白板内容

Parameter userId 用户ID

Parameter curPage true: 只清除当前页内容;false: 清除所有页内容

Parameter type WBClearType 枚举类型

Returns

Note 如果指定用户不是当前用户,此操作需要管理员角色。

Implementation

@override
Future<ResultCode> clearUserContents(
    String userId, bool curPage, WBClearType type) {
  return _invokeCodeMethod('clearUserContents', {
    'userId': userId,
    'curPage': curPage,
    'type': WBClearTypeConverter(type).value()
  });
}