#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UIPrintInfo.h // UIKit // // Copyright 2010-2018 Apple Inc. All rights reserved. // #import #import #import NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, UIPrintInfoOutputType) { UIPrintInfoOutputGeneral, // B&W or color, normal quality output for mixed text, graphics, and images UIPrintInfoOutputPhoto, // B&W or color, best quality output for images UIPrintInfoOutputGrayscale, // B&W content only UIPrintInfoOutputPhotoGrayscale API_AVAILABLE(ios(7.0)), // B&W only, best quality output for images } API_UNAVAILABLE(tvos); typedef NS_ENUM(NSInteger, UIPrintInfoOrientation) { UIPrintInfoOrientationPortrait, UIPrintInfoOrientationLandscape, } API_UNAVAILABLE(tvos); typedef NS_ENUM(NSInteger, UIPrintInfoDuplex) { UIPrintInfoDuplexNone, UIPrintInfoDuplexLongEdge, // flip back page along long edge (same orientation in portrait, flipped for landscape) UIPrintInfoDuplexShortEdge, // flip back page along short edge (flipped orientation for portrait, same in landscape) } API_UNAVAILABLE(tvos); UIKIT_EXTERN API_AVAILABLE(ios(4.2)) API_UNAVAILABLE(tvos) NS_SWIFT_UI_ACTOR @interface UIPrintInfo : NSObject - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; + (UIPrintInfo *)printInfo; + (UIPrintInfo *)printInfoWithDictionary:(nullable NSDictionary *)dictionary; @property(nullable,nonatomic,copy) NSString *printerID; // default is nil. set after user selects printer @property(nonatomic,copy) NSString *jobName; // default is application name @property(nonatomic) UIPrintInfoOutputType outputType; // default is UIPrintInfoOutputGeneral @property(nonatomic) UIPrintInfoOrientation orientation; // default is UIPrintInfoOrientationPortrait @property(nonatomic) UIPrintInfoDuplex duplex; // default is based on document type (none for photo, long edge for other) @property(nonatomic,readonly) NSDictionary *dictionaryRepresentation; @end NS_ASSUME_NONNULL_END #else #import #endif