編輯

共用方式為


UIPrintInteractionController.PrintToPrinter Method

Definition

Prints directly to a specified printer.

[Foundation.Export("printToPrinter:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool PrintToPrinter (UIKit.UIPrinter printer, UIKit.UIPrintInteractionCompletionHandler completion);
abstract member PrintToPrinter : UIKit.UIPrinter * UIKit.UIPrintInteractionCompletionHandler -> bool
override this.PrintToPrinter : UIKit.UIPrinter * UIKit.UIPrintInteractionCompletionHandler -> bool

Parameters

printer
UIPrinter

Specified printer.

completion
UIPrintInteractionCompletionHandler

Implemented to handle the conclusion of a print job and to handle any errors encountered in printing.

Returns

true if printing was successful or false if there was a problem

Attributes

Applies to