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 application context with platform-specific details. The following actions take place:
- All activities are unlinked and removed;
- The current renderer’s output is cleared;
- The task queue is cleared;
- Log sink handlers are removed;
- The i18n context is cleared, and the current locale is reset;
Related
class AppContext
A singleton class that represents the global application state.
