IRemoteBrokerpublic interface ILoadPluginCallback extends IRemoteBroker
The HUAWEI HiAI Engine server invokes this class.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onProgress(int percentage) |
Deals with the percentage of the downloaded plug-in size during the download and installation of a plug-in.
|
void |
onResult(int resultCode) |
Processes the plug-in installation result.
|
asObjectvoid onResult(int resultCode)
throws RemoteException
The HUAWEI HiAI Engine server invokes this callback method to transfer the installation result code to
onResult for further processing. The processing logic is defined by the client that has requested to
download and install the plug-in. Different clients define different processing logic.
resultCode - Indicates the installation result code. Value 0 indicates a successful installation,
and value 101 indicates an installation failure.RemoteException - Throws this exception if any error occurs when IRemoteObject is remotely invoked.void onProgress(int percentage)
throws RemoteException
percentage - Indicates the percentage of the downloaded plug-in size. The value ranges from 0 to 1.RemoteException - Throws this exception if any error occurs when IRemoteObject is remotely invoked.