Class

# MobilePrinterPicker

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

This class allows iOS users to print most common file formats using any of the available AirPrint compatible printers in the network.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                             | Type                             | Read-Only | Shared |
|----------------------------------|----------------------------------|-----------|--------|
| `Name<mobileprinterpicker.name>` | `String</api/data_types/string>` | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                 | Parameters                                  | Returns                                     | Shared |
|--------------------------------------|---------------------------------------------|---------------------------------------------|--------|
| `Handle<mobileprinterpicker.handle>` |                                             | `Ptr</api/data_types/additional_types/ptr>` |        |
| `Print<mobileprinterpicker.print>`   | file As `FolderItem</api/files/folderitem>` |                                             |        |

## Events

<div class="rst-class">

table-centered_column_4

</div>

| Name                                       | Parameters                                  | Returns |
|--------------------------------------------|---------------------------------------------|---------|
| `Canceled<mobileprinterpicker.canceled>`   |                                             |         |
| `Closing<mobileprinterpicker.closing>`     |                                             |         |
| `Completed<mobileprinterpicker.completed>` |                                             |         |
| `Error<mobileprinterpicker.error>`         | message As `String</api/data_types/string>` |         |
| `Opening<mobileprinterpicker.opening>`     |                                             |         |

## Property descriptions

<div id="mobileprinterpicker.name">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobilePrinterPicker.Name

**Name** As `String</api/data_types/string>`

> The name of the control.
>
> This property is read-only.

## Method descriptions

<div id="mobileprinterpicker.handle">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobilePrinterPicker.Handle

**Handle** As `Ptr</api/data_types/additional_types/ptr>`

> The handle to the underlying native OS control.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

<div id="mobileprinterpicker.print">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobilePrinterPicker.Print

**Print**(file As `FolderItem</api/files/folderitem>`)

> Opens the provided iOS AirPrint dialog in order to print the received `FolderItem</api/files/folderitem>`.

## Event descriptions

<div id="mobileprinterpicker.canceled">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobilePrinterPicker.Canceled

**Canceled**

> Raised when the user cancels the print.

<div id="mobileprinterpicker.closing">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobilePrinterPicker.Closing

**Closing**

> Called when the control's layout is closing.

<div id="mobileprinterpicker.completed">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobilePrinterPicker.Completed

**Completed**

> Raised when the user confirms the print operation and the underlying iOS task finishes processing and sending the job to the printer without errors.

<div id="mobileprinterpicker.error">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobilePrinterPicker.Error

**Error**(message As `String</api/data_types/string>`)

> Raised when there is an error during the printing job.

<div id="mobileprinterpicker.opening">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobilePrinterPicker.Opening

**Opening**

> Called when the control's layout is opening.
>
> This is where you typically put initialization code.
>
> This example in the Opening event of a label sets its text to "Hello":
>
> ``` xojo
> Me.Text = "Hello"
> ```

## Compatibility

|                       |        |
|-----------------------|--------|
| **Project Types**     | Mobile |
| **Operating Systems** | iOS    |

<div class="seealso">

`MobileControl</api/user_interface/mobile/mobilecontrol>` parent class, `FolderItem</api/files/folderitem>`

</div>
