canPrint(_:)
Returns a Boolean value that indicates whether UIKit can print the contents of a data object.
Declaration
class func canPrint(_ data: Data) -> BoolParameters
- data:
An instance of the Nsdata class that contains PDF data or an image in a format supported by the Image I/O framework. See TP40009503 in TP40009503 for a list of the supported image formats.
Return Value
true if UIKit can print the contents of the data object, otherwise false. The method returns false if data is PDF data that specifies that printing is not allowed.
Discussion
You should call this method to test a data object prior to assigning it to printingItem or printingItems.