Private
__Global platform-specific object, decorated with @platformGlobal
.
Static
instanceSingleton instance of AppUtils
.
Static
clearClears a timer with the specified timer ID.
The ID of the timer to clear.
Static
getStatic
getRetrieves an AsyncCommand
instance from the instance pool.
The AsyncCommand
instance.
Static
getStatic
getRetrieves the TimerService
instance from the global container.
The TimerService
instance.
Static
registerRegisters a service in the global container.
The key to associate with the service.
The service instance to register.
Static
resolveResolves a dependency from the global container or IoC container. Throws an error if the dependency is required but not found.
The key of the dependency to resolve.
Whether the dependency is required (default: true).
The resolved dependency instance.
Static
sayStatic
sayStatic
setSets a timer with the specified callback, interval, and repeat flag.
The function to execute when the timer elapses.
The interval in milliseconds.
Whether the timer should repeat (default: false).
The timer ID.
AppUtils
is a utility class that provides helper methods for platform detection, dependency resolution, timer management, and accessing application-level services.