application.on_scene_exit method

on_scene_exit(self, on_exit: Callable[[], None]) -> Disposable:

Defines the onExit handler which triggers before this scene is ended.

Note: This method can be called multiple times to call additional functions on scene exit.

Parameters

  • on_exit: Callable[[], None]

    function to call when Scene ends.

Returns