> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/printer/btprinterisconnected.md).

# btPrinterIsConnected

## Description

Checks whether a printer is connected to the device.

## Input / Parameter

N/A

## Output

N/A

## Callback

### yesCallback

The function to be executed if the printer is connected.

### noCallback

The function to be executed if the printer is not connected.

## Video

Coming Soon.

## Example

The user wants to check whether a printer is connected to their device.

### Steps

1. Call the function `btPrinterIsConnected` in a button component.

   ![](/files/n9HnoGDa9UQoT2NgNEKc)
2. Call the function `infoDialog` in the callbacks of the `btPrinterIsConnected` function.

   ![](/files/gnjB9DPonyS8iBgUZw0b)

   ![](/files/RKzFtd4YwbYMPYdtnXCJ)

   ![](/files/N6vH0JeJPuN8aDwUHiMq)

### Result

1. Select the printer to check from the combobox.

   ![](/files/0Ti2rxSezzxeRL928OWg)
2. Press the Is Connected button. If the printer is connected to the device, the success infoDialog will appear. If the printer is not connected, the error dialog will appear.

   ![](/files/hV8YPDtNzU3GZeuuZ8EB)

## Links
