PrintRequest

public class PrintRequest : NSObject
  • Optional identifier to give to the print job, so it can later be queried

    Declaration

    Swift

    public var printRequestId: String?
  • Optional identifier to speciy which printer to use

    Declaration

    Swift

    public var printDeviceId: String?
  • Create a PrintRequest to print a given Image

    Declaration

    Swift

    public init(image: ImageClass, printRequestId: String?, printDeviceId: String?)

    Parameters

    image

    Image to print

    printRequestId

    Optional identifier to give to the print job, so it can later be queried

    printDeviceId

    Optional identifier to speciy which printer to use

  • Create a PrintRequest to print an image at a given URL

    Declaration

    Swift

    public init(imageURL: URL, printRequestId: String?, printDeviceId: String?)

    Parameters

    imageURL

    URL to the image to print

    printRequestId

    Optional identifier to give to the print job, so it can later be queried

    printDeviceId

    Optional identifier to speciy which printer to use

  • Create a PrintRequest to print an array of strings to print

    Declaration

    Swift

    public init?(text: [String], printRequestId: String?, printDeviceId: String?)

    Parameters

    text

    Array of strings to be printed

    printRequestId

    Optional identifier to give to the print job, so it can later be queried

    printDeviceId

    Optional identifier to speciy which printer to use