Interface: MobileModel
MobileModelModule.MobileModel
Methods
download
▸ download(modelPath): Promise<string>
Download a model to the local file system and return the local file path as a model. If the model path is a file path already, it will return the same path as a result.
deprecated Use third-party file downloader (e.g., expo-file-system or react-native-fs)
Parameters
| Name | Type | Description |
|---|---|---|
modelPath | ModelPath | The model path as require or uri (i.e., require). |
Returns
Promise<string>