編輯

共用方式為


UIPrintInteractionController.PrintToPrinterAsync Method

Definition

Overloads

PrintToPrinterAsync(UIPrinter)

Prints directly to a specified printer.

PrintToPrinterAsync(UIPrinter, Boolean)

Asynchronously prints directly to a specified printer, returning a task that provides the result.

PrintToPrinterAsync(UIPrinter)

Prints directly to a specified printer.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<UIKit.UIPrintInteractionCompletionResult> PrintToPrinterAsync (UIKit.UIPrinter printer);
abstract member PrintToPrinterAsync : UIKit.UIPrinter -> System.Threading.Tasks.Task<UIKit.UIPrintInteractionCompletionResult>
override this.PrintToPrinterAsync : UIKit.UIPrinter -> System.Threading.Tasks.Task<UIKit.UIPrintInteractionCompletionResult>

Parameters

printer
UIPrinter

Specified printer.

Returns

A task that represents the asynchronous PrintToPrinter operation. The value of the TResult parameter is of type Action<UIKit.UIPrintInteractionCompletionResult>.

Attributes

Remarks

The PrintToPrinterAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to

PrintToPrinterAsync(UIPrinter, Boolean)

Asynchronously prints directly to a specified printer, returning a task that provides the result.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<UIKit.UIPrintInteractionCompletionResult> PrintToPrinterAsync (UIKit.UIPrinter printer, out bool result);
abstract member PrintToPrinterAsync : UIKit.UIPrinter *  -> System.Threading.Tasks.Task<UIKit.UIPrintInteractionCompletionResult>
override this.PrintToPrinterAsync : UIKit.UIPrinter *  -> System.Threading.Tasks.Task<UIKit.UIPrintInteractionCompletionResult>

Parameters

printer
UIPrinter

Specified printer.

result
Boolean

Whether the operation succeeded or failed.

Returns

Attributes

Applies to