InvisiblePlugin
- Web
更新时间
Whiteboard Web SDK 2.16.59 公开 class。
export declare abstract class InvisiblePlugin<A extends Object, MA extends Object>成员
- displayer
- callbacks
- attributes
- memberAttributes
- constructor
- onAttributesUpdate
- onDestroy
- getMemberAttributes
- getAttributesValue
- getMemberAttributesValue
- setAttributes
- setMemberAttributes
- updateAttributes
- updateMemberAttributes
- destroy
- _dispose
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