Trait IActivityCodeBehind
pub trait IActivityCodeBehind: AsAny {
// Required methods
fn register_commands_override(&self) -> Result<(), Error>;
fn unregister_commands_override(&self) -> Result<(), Error>;
fn register_status_change_override(&self) -> Result<(), Error>;
fn unregister_status_change_override(&self) -> Result<(), Error>;
// Provided methods
fn attach_override(&self) -> Result<(), Error> { ... }
fn detach_override(&self) -> Result<(), Error> { ... }
}Required Methods§
fn register_commands_override(&self) -> Result<(), Error>
fn register_commands_override(&self) -> Result<(), Error>
Override this method to register commands.
You must register every command using ICodeBehindBase::register_command.
Kanzi registers commands when it attaches the node that uses this code behind.
fn unregister_commands_override(&self) -> Result<(), Error>
fn unregister_commands_override(&self) -> Result<(), Error>
Override this method to unregister the registered commands.
You must unregister every registered command using ICodeBehindBase::unregister_command.
Kanzi changes the status of a command to unregistered when it detaches the node that
uses this code behind.
fn register_status_change_override(&self) -> Result<(), Error>
fn register_status_change_override(&self) -> Result<(), Error>
Override this method to register status change handlers.
You must register every state change using IActivityCodeBehindBase::register_status_change.
Kanzi registers the status change when it attaches the Activity that uses this code behind.
fn unregister_status_change_override(&self) -> Result<(), Error>
fn unregister_status_change_override(&self) -> Result<(), Error>
Override this method to unregister the registered status change handlers.
You must unregister every status change handler using IActivityCodeBehindBase::unregister_status_change.
Kanzi unregisters the status change when it detaches the Activity that uses this code behind.
Provided Methods§
fn attach_override(&self) -> Result<(), Error>
fn attach_override(&self) -> Result<(), Error>
NodeComponent calls this function during attaching of node component to a node.
Subclasses of NodeComponent can override this function to add custom logic which
will be performed during node component attach.
fn detach_override(&self) -> Result<(), Error>
fn detach_override(&self) -> Result<(), Error>
NodeComponent calls this function during detaching of node component from a node.
Subclasses of NodeComponent can override this function to add custom logic which
will be performed during node component detach.