UIPrinterPickerController.PresentAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PresentAsync(Boolean, Boolean) |
Shows a UIPrinterPickerController from this app, with or without animation, depending on |
PresentAsync(Boolean) |
Shows a UIPrinterPickerController from this app, with or without animation, depending on |
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>
.