public class UIPrintInteractionController extends NSObject
Constructor and Description |
---|
UIPrintInteractionController() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canPrintData(NSData p1)
Returns a Boolean that shows whether the specified data can be printed.
|
static boolean |
canPrintURL(NSURL p1)
Returns a Boolean that shows the file of the specified URL is printable.
|
void |
dismissAnimated(boolean p1)
Dismisses the printing options using animation or not.
|
static boolean |
isPrintingAvailable()
Returns a Boolean that shows whether the printing is supported.
|
boolean |
presentAnimated(boolean p1,
UIPrintInteractionCompletionHandler p2)
Displays the printing user interface in an sheet using animation or not.
|
boolean |
presentFromBarButtonItem(UIBarButtonItem p1,
boolean p2,
UIPrintInteractionCompletionHandler p3)
Displays the printing user interface in a popover using animation(or not)
controlled by bar button item.
|
boolean |
presentFromRect(CGRect p1,
UIView p2,
boolean p3,
UIPrintInteractionCompletionHandler p4)
Displays the printing user interface in a popover that can be animated
from any area in a view.
|
static Set<String> |
printableUTIs()
Returns the Uniform Type Identifiers that the UKit can print.
|
NSObject |
printingItem()
Returns a ready to print item.
|
List |
printingItems()
Returns the list with items ready to print.
|
void |
setPrintingItem(NSObject printingItem)
Sets an item ready to print.
|
void |
setPrintingItems(List printingItems)
Sets a list with items ready to print.
|
static UIPrintInteractionController |
sharedPrintController()
Returns the shared print-interaction controller.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static UIPrintInteractionController sharedPrintController()
public static boolean isPrintingAvailable()
public static boolean canPrintData(NSData p1)
p1
- The data to be printed.public static boolean canPrintURL(NSURL p1)
p1
- The URL of the file to be printed.public static Set<String> printableUTIs()
public boolean presentAnimated(boolean p1, UIPrintInteractionCompletionHandler p2)
p1
- TRUE then the display is animated.p2
- The handler of the printing job.public boolean presentFromBarButtonItem(UIBarButtonItem p1, boolean p2, UIPrintInteractionCompletionHandler p3)
p1
- The bar button item that controls the animation.p2
- TRUE then the display is animated.p3
- The handler of the printing job.public boolean presentFromRect(CGRect p1, UIView p2, boolean p3, UIPrintInteractionCompletionHandler p4)
p1
- The rectangle area of the view.p2
- The view providing the coordinate system for rectangle area.p3
- TRUE then the display is animated.p4
- The handler of the printing job.public void dismissAnimated(boolean p1)
p1
- TRUE the dismissal is animated.public NSObject printingItem()
public void setPrintingItem(NSObject printingItem)
printingItem
- A ready to print item.public List printingItems()
public void setPrintingItems(List printingItems)
printingItems
- The list with items ready to print.Copyright © 2020. All rights reserved.