AppBase Class
Base class for Fuse Apps. This class contains implementation and interface that is common between all platforms. You only need to derive from this class when adding support for a new platform. Fuse already provides derived classes for each supported platform, all of them named App, that you should use as base class when creating an app for an already supported platform.
Location
- Namespace
- Fuse
- Package
- Fuse.Nodes 2.9.1
Interface of AppBase
Background : float4 ux
The clear color of the root graphics view of the App, if applicable.
Children : IList of Node ux
The Node.Children of the virtual root Node of the App. Note that the virtual root node might be different from the RootViewport depending on platform.
ChildrenVisual : Visual uno
ClearColor : float4 uno
Current : AppBase uno
The currently executing App. Note that this property might return null
during execution of static constructors
OnUnhandledException(Exception, bool) uno
Notfies the App about an unhandled exception within a subsystem of the app. If implementing a subsystems (such as separate threads) where exceptions can be thrown out of the app, you can catch such otherwise unhandled exceptions and report them to this method, to allow users to use the UnhandledException event to deal with such exceptions instead of crashing the App.
OnUpdate uno
Called when the application updates. This method can be overridden by platform-specific App implementations, but should not be overridden in user code. Use UpdateManager instead.
Properties : Properties uno
Resources : IList of Resource ux
The Node.Resources of the virtual root node of the App. Note that the virtual root node might be different from the RootViewport depending on platform
RootViewport : RootViewport uno
The top-level root viewport of this App. This object has null
as parent.
UnhandledException : UnhandledExceptionHandler (object, UnhandledExceptionArgs) ux
Occurs when an exception is unhandled within the App.
You can subscribe to this event to handle exceptions that were otherwise
unhandled by the App, to avoid crashing the app. If the IsHandled
property of the UnhandledExceptionArgs object is set to true
by a handler,
the app will not crash, but resume execution.