Modifier

Partager via


UIPrinterPickerController.PresentFromBarButtonItemAsync Method

Definition

Overloads

PresentFromBarButtonItemAsync(UIBarButtonItem, Boolean)

Shows a UIPrinterPickerController from this app as a popover that is anchored to a UIBarButtonItem item, 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.

PresentFromBarButtonItemAsync(UIBarButtonItem, Boolean, Boolean)

Asynchronously shows a UIPrinterPickerController from this app as a popover that is anchored to a UIBarButtonItem item, with or without animation, depending on animated, returning a task that provides the result.

PresentFromBarButtonItemAsync(UIBarButtonItem, Boolean)

Shows a UIPrinterPickerController from this app as a popover that is anchored to a UIBarButtonItem item, 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> PresentFromBarButtonItemAsync (UIKit.UIBarButtonItem item, bool animated);
abstract member PresentFromBarButtonItemAsync : UIKit.UIBarButtonItem * bool -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>
override this.PresentFromBarButtonItemAsync : UIKit.UIBarButtonItem * bool -> System.Threading.Tasks.Task<UIKit.UIPrinterPickerCompletionResult>

Parameters

item
UIBarButtonItem

The bar button item to which to anchor the popover.

animated
Boolean

Whether to animate the display of the picker.

Returns

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

Remarks

The PresentFromBarButtonItemAsync 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

PresentFromBarButtonItemAsync(UIBarButtonItem, Boolean, Boolean)

Asynchronously shows a UIPrinterPickerController from this app as a popover that is anchored to a UIBarButtonItem item, with or without animation, depending on animated, returning a task that provides the result.

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

Parameters

item
UIBarButtonItem

The bar button item to which to anchor the popover.

animated
Boolean

Whether to animate the display of the picker.

result
Boolean

Returns

Applies to