application namespace

Manages application and scene states.

Methods

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

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

on_scene_switch(self, handler: Callable[[t: int], None]) -> Disposable

Defines the onSceneSwitch handler which triggers before this scene changes to another.

quit(self) -> None

Closes this space and returns the user to the previous screen.

quit(self, image_id: str) -> None

Closes this space and returns the user to the previous screen.

Properties

readonly is_mobile bool

Returns true if this scene runs on a tablet or mobile phone.

readonly is_tablet bool

Returns true if this scene runs on a tablet.