UIPrintInteractionController.PrintToPrinterAsync UIPrintInteractionController.PrintToPrinterAsync Method

Definition

Overloads

PrintToPrinterAsync(UIPrinter) PrintToPrinterAsync(UIPrinter)

Prints directly to a specified printer.

PrintToPrinterAsync(UIPrinter, Boolean) PrintToPrinterAsync(UIPrinter, Boolean)

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

PrintToPrinterAsync(UIPrinter) 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 UIPrinter

Specified printer.

Returns

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

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.

PrintToPrinterAsync(UIPrinter, Boolean) 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 UIPrinter

Specified printer.

result
Boolean Boolean

Whether the operation succeeded or failed.

Returns

Applies to