contactPrinter(_:)
Connects to the printer and gathers information about its capabilities.
Declaration
func contactPrinter(_ completionHandler: ((Bool) -> Void)? = nil)func contactPrinter() async -> BoolParameters
Discussion
For printers you create yourself using the init(url:) method, you must call this method prior to accessing properties containing printer-related information. This method runs asynchronously, returning immediately while the system continues to try and gather information about the printer’s name, location, capabilities, and so on. When the printer’s availability is determined, the results are delivered to the completionHandler block you provided.
Calling this method can take a significantly long time (up to 30 seconds), so after calling this method you should continue with other tasks. Use your completion handler block to update your app as appropriate.