Class ActivityCodeBehind

Class Hierarchy

ActivityCodeBehind is code that is associated with a particular Activity node, and has access to the properties of that Activity node. You can use this to:

  • React to changes of the status of an Activity.
  • Connect to a remote service when an Activity node is activated and save data and disconnect when an Activity node is deactivated.
  • Install Kanzi command handlers and define their implementations, such as increase the volume when the user presses a button.
  • Implement complex UI interaction, such as drag-and-drop of data between UI elements.

All Activity Code Behind classes inherit from this class.

To define the behavior of Code Behind when the status of an Activity changes, override onStatusChange().

Inherits properties and message types from ActivityCodeBehindMetadata.