clear
Clears the state of the global application context.
clear(): this
Summary
This method is used to reset the app to its initial state. It’s called automatically by context initialization functions such as useTestContext()
and useWebContext()
, before setting up a new global context with platform-specific details. The following actions take place:
- The current renderer’s output is cleared;
- All activities are unlinked;
- All services are unlinked;
- All scheduler queues are stopped;
- The i18n provider is unlinked;
- The theme is removed
- Log sink(s) are removed;
Related
- class GlobalContextA singleton class that represents the global application state.