HxCallback Delegate¶
- delegate void Hexaly.Optimizer.HxCallback(HexalyOptimizer optimizer, HxCallbackType type)¶
HxCallback delegate. Implementing the HxCallback delegate enables users to call methods to react to specific events or to call a method regularly during the search. It can be used for example to control when to stop the search or to display some specific information during the search.
When a callback is called, the optimizer is paused. In that state, you can call all the methods marked as “allowed in state
HxState.Paused
”. Calling any other method will throw an error.- Arguments:
optimizer (HexalyOptimizer) – The optimizer calling the function.
type (HxCallbackType) – The type of event that triggered the call.
- See:
- See: