Editar

Compartir a través de


UIPrinterPickerController.PresentAsync Method

Definition

Overloads

PresentAsync(Boolean, Boolean)

Shows a UIPrinterPickerController from this app, with or without animation, depending on animated, returning a task that provides the picker completion result.

PresentAsync(Boolean)

Shows a UIPrinterPickerController from this app, with or without animation, depending on animated, and code to run on completion, as a UIPrinterPickerCompletionHandler object, and then returns whether the object was displayed.

PresentAsync(Boolean, Boolean)

Shows a UIPrinterPickerController from this app, with or without animation, depending on animated, returning a task that provides the picker completion result.

public virtual System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult> PresentAsync (bool animated, out bool result);
abstract member PresentAsync : bool *  -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>
override this.PresentAsync : bool *  -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>

Parameters

animated
Boolean

Whether to animate the display of the picker.

result
Boolean

Whether the user picked a printer.

Returns

Applies to

PresentAsync(Boolean)

Shows a UIPrinterPickerController from this app, with or without animation, depending on animated, and code to run on completion, as a UIPrinterPickerCompletionHandler object, and then returns whether the object was displayed.

public virtual System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult> PresentAsync (bool animated);
abstract member PresentAsync : bool -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>
override this.PresentAsync : bool -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>

Parameters

animated
Boolean

Whether to animate the display of the picker.

Returns

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

Applies to