Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. A dependent component registers an Interface with RegisterInterface
  2. The framework calls the ComponentEntry.Notify callback for your component previously registered with RegisterComponent
  3. In the Notify callback, you act on notification of this interface

Postponing your interface initialisation

The ComponentEntry.Notify callback in conjunction with the ComponentEntry.QueryInitInterfaces callback can work as a way to hold off initialisation of your own interfaces. To do this, have your QueryInitInterfaces callback return false until all dependent interfaces have been registered. e.g.

...