This is how the logic flow works when a check scanner is not attached:
- The application calls Ranger.Startup()
- Ranger loads each plug-in and calls InitializePlugin() and AreDevicesAttached().
- If no devices are attached to a plug-in, then it is unloaded.
- If no plug-ins are attached to a device, then Ranger fires the application's TransportIsDead() event.
- The application typically prompts the user to attach and turned on the check scanner.
- Once the user acknowledges that the scanner is attached, the
application calls Ranger.Startup() again and the steps above are
repeated.
In short, your plug-in will be reloaded and AreDevicesAttached() will be called again when the user attaches your scanner.