Bewerken

Delen via


UIPrintInteractionController.PresentFromBarButtonItemAsync Method

Definition

Overloads

PresentFromBarButtonItemAsync(UIBarButtonItem, Boolean)

Presents an iPad printing user interface in a popover view that can be animated from a soecified bar-button item.

PresentFromBarButtonItemAsync(UIBarButtonItem, Boolean, Boolean)

Asynchronously presents the iPad printing user interface in a popover view that can be animated from a bar-button item.

PresentFromBarButtonItemAsync(UIBarButtonItem, Boolean)

Presents an iPad printing user interface in a popover view that can be animated from a soecified bar-button item.

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

Parameters

item
UIBarButtonItem

The bar button item that you need to tap for printing.

animated
Boolean

Set to animate the printing popover view from the specified item, or to display immediately.

Returns

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

Applies to

PresentFromBarButtonItemAsync(UIBarButtonItem, Boolean, Boolean)

Asynchronously presents the iPad printing user interface in a popover view that can be animated from a bar-button item.

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

Parameters

item
UIBarButtonItem

The bar button item that the user has tapped for printing.

animated
Boolean

true to animate the printing popover view from the specified item, false to display immediately.

result
Boolean

The result of the present operation.

Returns

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

Applies to