ZebraScanEngines_SwitchHostMode
Switch host mode of a specified scanner.
Syntax
C++
Python
def ZebraScanEngines_SwitchHostMode( state: ZebraScanEngines_State, /, *, inDeviceID: int | None = None, inHostMode: ZebraScanEnginesHostModes = ZebraScanEnginesHostModes.USB_SNAPI_with_Imaging, inSilentSwitch: bool = False, inIsPermanentChange: bool = False ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | ZebraScanEngines_State | |||
![]() |
inDeviceID | int | None | 1 - ![]() |
None | Device identifying number |
![]() |
inHostMode | ZebraScanEnginesHostModes | ZebraScanEnginesHostModes.USB_SNAPI_with_Imaging | Scanner USB host mode | |
![]() |
inSilentSwitch | bool | False | Whether to suppress the typical device reboot beeps | |
![]() |
inIsPermanentChange | bool | False | Whether to keep the targeted host mode as the permanent host mode of the device |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.



