Platforms to show: All Mac Windows Linux Cross-Platform
UIPrinterMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Printing iOS | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
You use a printer object to obtain information about a printer so that you can display that information in your app’s interface. You do not use printer objects to communicate with the printer directly.
Most of the time, you use a UIPrinterPickerControllerMBS object to retrieve a printer object representing the printer selected by the user. If you already have a URL containing the address of a printer—perhaps one that was previously selected by the user—you can use that URL to create a printer object directly. When creating your own printer objects, you must connect to the printer using the contactPrinter method before retrieving any of the printer’s attributes.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- event contactPrinterCompleted(available as Boolean)
- 8 properties
- property displayLocation as String
- property displayName as String
- property Handle as Integer
- property makeAndModel as String
- property supportedJobTypes as Integer
- property supportsColor as Boolean
- property supportsDuplex as Boolean
- property URL as String
- 2 methods
- method Constructor Private
- method contactPrinter
- shared method printerWithURL(URL as String) as UIPrinterMBS
- 9 constants
Job Types
Constant | Value | Description |
---|---|---|
JobTypeDocument | 1 |
The printer supports standard document printing. |
JobTypeEnvelope | 2 |
The printer supports printing on envelopes. |
JobTypeLabel | 4 |
The printer supports printing on cut labels. |
JobTypeLargeFormat | 64 |
The printer supports printing larger than the ISO A3 size. |
JobTypePhoto | 8 |
The printer supports printing with photographic print quality. |
JobTypePostcard | 128 |
The printer supports printing on postcards. |
JobTypeReceipt | 16 |
The printer supports printing receipts on a continuous roll of paper. |
JobTypeRoll | 32 |
The printer supports printing documents or photos on a continuous roll of paper. |
JobTypeUnknown | 0 |
The printer support is unknown. |
This class has no sub classes.
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.2
- Print dialogs for iOS in Xojo
- MBS Xojo Plugins, version 24.2pr1
Xojo Developer Magazine
Release notes
- Version 24.2
- Added classes for printing on iOS: UIPrintPaperMBS, UIPrintInteractionControllerMBS, UIPrintInfoMBS, UIPrinterPickerControllerMBS and UIPrinterMBS.
Some methods using this class:
- UIPrinterPickerControllerMBS.Constructor(printer as UIPrinterMBS = nil)
- UIPrintInteractionControllerMBS.printToPrinter(printer as UIPrinterMBS) as Boolean
Some properties using for this class:
- UIPrinterPickerControllerMBS.selectedPrinter as UIPrinterMBS
Some events using this class:
- UIPrinterPickerControllerMBS.shouldShowPrinter(printer as UIPrinterMBS) as Boolean
Some examples using this class:
Some related classes:
- class UIPrinterPickerControllerMBS
- class UIPrintInfoMBS
- class UIPrintInteractionControllerMBS
- class UIPrintPaperMBS
The items on this page are in the following plugins: MBS iOS Plugin.
UIDocumentPickerMBS - UIPrinterPickerControllerMBS
