pub unsafe extern "C" fn OH_Scan_CloseScanner(
scannerId: *const c_char,
) -> i32Available on crate features
scan and api-12 only.Expand description
This API is used to close the connected scanner device.
ohos.permission.PRINT
§Arguments
scannerId- The id to disconnect the scanner.
§Returns
- [
Scan_ERROR_NONE] Indicates that the scanner connection was successfully closed. [SCAN_ERROR_NO_PERMISSION] Indicates have no permission to use this interface. [SCAN_ERROR_RPC_FAILURE] Indicates an RPC communication error. [SCAN_ERROR_SERVER_FAILURE] Indicates An error occurs in the scan process. [SCAN_ERROR_INVALID_PARAMETER] Indicates that the input parameter is invalid.
Required System Capabilities: SystemCapability.Print.PrintFramework
Available since API-level: 12