MethodChannelMnnEngine class

Inheritance

Constructors

MethodChannelMnnEngine()

Properties

eventChannel EventChannel
final
events Stream<MnnRuntimeEvent>
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
logChannel EventChannel
final
logs Stream<MnnLogEntry>
no setteroverride
methodChannel MethodChannel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelGeneration() Future<void>
override
checkPort({required MnnServerBindMode bindMode, required int port}) Future<MnnPortCheckResult>
Performs an advisory bind probe without starting the server. It is useful for diagnostics only; callers should still handle port_in_use from startServer, because a probe and a later bind are not atomic.
override
clearLogs() Future<void>
override
deleteImportedModel(String modelId) Future<void>
override
getLogSnapshot() Future<List<MnnLogEntry>>
override
getSnapshot() Future<MnnRuntimeSnapshot>
override
getTestRootPath() Future<String>
override
importModelDirectory({required bool replaceExisting}) Future<MnnModelInfo>
override
importModelDirectoryWithResult({required bool replaceExisting, required bool autoRename, required List<String> unavailableNames}) Future<MnnModelImportResult>
override
importModelFromPath(String directoryPath, {required bool replaceExisting}) Future<MnnModelInfo>
Imports a model directory the app already owns (e.g. a finished download in private storage) without going through the SAF picker.
override
importModelFromPathWithResult(String directoryPath, {required bool replaceExisting, required bool autoRename, required List<String> unavailableNames}) Future<MnnModelImportResult>
override
initialize() Future<MnnEngineInfo>
override
listImportedModels() Future<List<MnnModelInfo>>
override
loadModel(String modelId) Future<MnnModelInfo>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renameImportedModel(String modelId, String newName) Future<MnnModelInfo>
override
startServer({required MnnServerBindMode bindMode, required int port, String? apiKey}) Future<MnnServerInfo>
override
stopServer() Future<void>
override
toString() String
A string representation of this object.
inherited
unloadModel() Future<void>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited