FirebaseModelManager class
The user downloads a remote model with FirebaseModelManager.
The model name is the key for a model, and should be consistent with the name of the model that has been uploaded to the Firebase console.
https://firebase.google.com/docs/reference/android/com/google/ firebase/ml/common/modeldownload/FirebaseModelManager
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
-
download(
FirebaseRemoteModel? model, FirebaseModelDownloadConditions? conditions) → Future< void> ? - Initiates the download of remoteModel if the download hasn't begun.
-
getLatestModelFile(
FirebaseRemoteModel? model) → Future< File?> ? -
Returns a
File
containing the latest model for the remote model name. -
isModelDownloaded(
FirebaseRemoteModel? model) → Future< bool?> ? - Returns whether the given FirebaseRemoteModel is currently downloaded.
-
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
- instance → FirebaseModelManager?
-
Singleton of FirebaseModelManager.
final
Constants
- channel → const MethodChannel?
- Means for communication with native platform code