UIDriver
Abstract class representing the Duit driver interface.
UIDriver combines all capability delegates through mixins and provides a base interface for managing Duit presentations.
tip
For creating a driver, it's recommended to use XDriver, which provides a convenient public API.
Structure
abstract class UIDriver
with
FocusCapabilityDelegate,
ServerActionExecutionCapabilityDelegate,
UIControllerCapabilityDelegate,
ViewModelCapabilityDelegate,
TransportCapabilityDelegate,
ScriptingCapabilityDelegate,
LoggingCapabilityDelegate,
NativeModuleCapabilityDelegate {
/// Initializes the driver.
Future<void> init();
/// Releases driver resources.
void dispose();
/// Flag indicating whether the driver is running in native module mode.
abstract bool isModule;
}
Capability Delegates
UIDriver includes the following capability delegates:
| Delegate | Description |
|---|---|
| FocusCapabilityDelegate | UI element focus management |
| ServerActionExecutionCapabilityDelegate | Server action execution and event handling |
| UIControllerCapabilityDelegate | UI element controller management |
| ViewModelCapabilityDelegate | View model management |
| TransportCapabilityDelegate | Transport layer |
| ScriptingCapabilityDelegate | Script execution |
| LoggingCapabilityDelegate | Logging |
| NativeModuleCapabilityDelegate | Native code interaction |
Deprecated Properties
The following properties are marked as deprecated and will be removed in the next major release:
source— driver source URLtransportOptions— transport optionstransport— transport instancescriptRunner— ScriptRunner instanceeventResolver— event resolveractionExecutor— action executorexternalEventHandler— external event handlerdriverChannel— native communication channellogger— logger (useLoggingCapabilityDelegate)build()— UI building method
See Also
- XDriver — public API for working with the driver
- DuitViewHost — host widget for Duit presentation