QHexRT class
QHexRT NPU module — runs prebuilt QNN context binaries on Snapdragon V75/V79/V81 NPUs. Android/Snapdragon only; on unsupported parts it stays unavailable.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isAvailable → bool
-
Whether the native backend library can be loaded on this device.
no setter
Static Methods
-
autoRegister(
) → void -
dispose(
) → void -
isArchitectureSupported(
HexagonArch arch) → bool -
Whether
archis in QHexRT's native device-validated support set. No architecture set is duplicated in Dart. -
modelRequiresHfAuth(
String modelId) → bool -
Whether QHexRT's native product policy marks
modelIdHF-authenticated. -
modelSupportsArchitecture(
String modelId, HexagonArch arch) → bool -
Match QHexRT's native product policy for
modelIdagainstarch. -
probeNpu(
) → NpuCapability - Probe the Hexagon NPU without loading QNN. Safe on any device.
-
register(
) → Future< bool> - Register the QHexRT backend with the C++ plugin registry. Safe to call multiple times; on unsupported devices registration is rejected.
-
registerModelForDevice(
{required RegisterModelFromUrlRequest request}) → Future< ModelInfo?> -
Register
requestonly when native product policy allows it on this device. URLs and presentation metadata stay in the app; QHexRT owns probing/selection and composes commons' shared model registration and download pipeline. A null value is a normal ineligible model/device outcome. -
unregister(
) → Future< void> - Unregister the QHexRT backend. Async for symmetry with register.