| class info |
| com.huawei.hms.hmsscankit.RemoteView |
| Controls views of camera preview and barcode scanning in Customized View mode. |
Parameters
| Parameter name | Parameter desc |
| saveInstance | Variable that saves the previous status. |
| Method |
| public void setOnResultCallback(OnResultCallback onResultCallback) |
| Sets the barcode scanning result callback interface. |
Parameters
| Parameter name | Parameter desc |
| onResultCallback | Result receiving interface, which needs to be implemented by developers. |
| Method |
public void setOnLightVisibleCallback(OnLightVisibleCallBack onLightVisibleCallBack) |
Sets ambient lightness listening. |
Parameters
| Parameter name | Parameter desc |
| onLightVisibleCallBack | Mobile phone flashlight switch interface, which needs to be implemented by developers. |
| Method |
| public boolean switchLight() |
| Switches the flashlight. |
Return
| Type | desc |
| boolean | Operation result. |
| Method |
| Method |
| public boolean getLightStatus() |
| Obtains the flashlight status. |
Return
| Type | desc |
| boolean | Flashlight status. True: on False: off |
| Method |
| public void resumeContinuouslyScan() |
| Resumes barcode scanning. |
| Method |
| public void pauseContinuouslyScan() |
| Pauses barcode scanning. |