InvisiblePlugin

  • Web

更新时间

Whiteboard Web SDK 2.16.59 公开 class。

TypeScript
export declare abstract class InvisiblePlugin<A extends Object, MA extends Object>

成员

Properties

displayer

readonly displayer: Displayer;

callbacks

readonly callbacks: Callbacks<InvisibleCallbacks<A, MA>>;

attributes

readonly attributes: A;

memberAttributes

readonly memberAttributes: MA;

Constructors

constructor

constructor(context: InvisiblePluginContext);

Returns

InvisiblePlugin

Methods

onAttributesUpdate

onAttributesUpdate(attributes: A): void;

Returns

void

onDestroy

onDestroy(): void;

Returns

void

getMemberAttributes

getMemberAttributes(memberId?: number): MA | null;

Returns

MA | null

getAttributesValue

getAttributesValue(key: string[] | string): any;

Returns

any

getMemberAttributesValue

getMemberAttributesValue(key: string[] | string): any;

Returns

any

setAttributes

setAttributes(modifyAttributes: Partial<A>): void;

Returns

void

setMemberAttributes

setMemberAttributes(modifyAttributes: Partial<MA>): void;

Returns

void

updateAttributes

updateAttributes(keys: string | string[], value: any): void;

Returns

void

updateMemberAttributes

updateMemberAttributes(keys: string | string[], value: any): void;

Returns

void

destroy

destroy(): void;

Returns

void

_dispose

_dispose(shouldCallback: boolean): void;

Returns

void

这个页面有帮助吗?