pub unsafe extern "C" fn OH_Scan_StartScannerDiscovery(
callback: Scan_ScannerDiscoveryCallback,
) -> i32Available on crate features
scan and api-12 only.Expand description
This API starts discovering scanners, Register a callback to handle discovered scanner devices.
ohos.permission.PRINT
§Arguments
callback- TheScan_ScannerDiscoveryCallbackof scanner discovery event.
§Returns
- [
Scan_ERROR_NONE] Indicates successful start of scanner search. [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.
Required System Capabilities: SystemCapability.Print.PrintFramework
Available since API-level: 12