Edytuj

Udostępnij za pośrednictwem


UIPrintInteractionController.PresentFromBarButtonItem Method

Definition

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

[Foundation.Export("presentFromBarButtonItem:animated:completionHandler:")]
public virtual bool PresentFromBarButtonItem (UIKit.UIBarButtonItem item, bool animated, UIKit.UIPrintInteractionCompletionHandler completion);
abstract member PresentFromBarButtonItem : UIKit.UIBarButtonItem * bool * UIKit.UIPrintInteractionCompletionHandler -> bool
override this.PresentFromBarButtonItem : UIKit.UIBarButtonItem * bool * UIKit.UIPrintInteractionCompletionHandler -> bool

Parameters

item
UIBarButtonItem

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

animated
Boolean

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

completion
UIPrintInteractionCompletionHandler

Implement this to handle the conclusion of a print job and to handle any errors encountered in printing.

Returns

When printing options are already displayed, the printing-options popover view is hidden. You need to call the method again to display the options.

Attributes

Applies to