Skip to content
EN

Interface: ModuleComponentHandler ​

Public-SDK module handler; node / component are never runtime classes.

Methods ​

onLoad()? ​

ts
onLoad?(context): void | Promise<void>;

Parameters ​

ParameterType
contextComponentContext

Returns ​

void | Promise<void>


onEnable()? ​

ts
onEnable?(context): void;

Parameters ​

ParameterType
contextComponentContext

Returns ​

void


onUpdate()? ​

ts
onUpdate?(context, dt): void;

Parameters ​

ParameterType
contextComponentContext
dtnumber

Returns ​

void


onDisable()? ​

ts
onDisable?(context): void;

Parameters ​

ParameterType
contextComponentContext

Returns ​

void


onDestroy()? ​

ts
onDestroy?(context): void;

Parameters ​

ParameterType
contextComponentContext

Returns ​

void


inspect()? ​

ts
inspect?(context): unknown;

Parameters ​

ParameterType
contextComponentContext

Returns ​

unknown


handleCommand()? ​

ts
handleCommand?(context, command): unknown;

Parameters ​

ParameterType
contextComponentContext
commandunknown

Returns ​

unknown


getNative()? ​

ts
getNative?(context): unknown;

Parameters ​

ParameterType
contextComponentContext

Returns ​

unknown

Suity 开发者文档 · API 由 TypeDoc 从声明文件生成