PMPrinterGetMimeTypes(_:_:_:)
Obtains a list of MIME content types supported by a printer using the specified print settings.
Declaration
func PMPrinterGetMimeTypes(_ printer: PMPrinter, _ settings: PMPrintSettings?, _ mimeTypes: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatusParameters
- printer:
The printer whose supported MIME types you want to obtain.
- settings:
The print settings for the print job. The print settings object contains the job destination, which affects the available types. This parameter may be
NULL. - mimeTypes:
A pointer to your Cfarray variable. On return, the variable refers to a Core Foundation array containing the MIME types supported by the specified printer. Each element in the array is a Core Foundation string. You should not release the array without first retaining it.
Return Value
A result code. See Result Codes.
Discussion
This function retrieves the types of data that can be submitted to a printer with the specified print settings; for example, application/pdf. This function is typically used in conjunction with the function PMPrinterPrintWithFile(_:_:_:_:_:).
See Also
Accessing Information About a Printer
PMPrinterCopyDescriptionURL(_:_:_:)PMPrinterCopyDeviceURI(_:_:)PMPrinterCopyHostName(_:_:)PMPrinterCopyPresets(_:_:)PMPrinterGetCommInfo(_:_:_:)PMPrinterGetDriverCreator(_:_:)PMPrinterGetID(_:)PMPrinterGetLocation(_:)PMPrinterGetMakeAndModelName(_:_:)PMPrinterGetName(_:)PMPrinterGetOutputResolution(_:_:_:)PMPrinterSetOutputResolution(_:_:_:)PMPrinterGetPaperList(_:_:)PMPrinterGetPrinterResolutionCount(_:_:)PMPrinterGetIndexedPrinterResolution(_:_:_:)PMPrinterGetState(_:_:)PMPrinterSetDefault(_:)PMPrinterIsDefault(_:)PMPrinterIsFavorite(_:)PMPrinterIsPostScriptCapable(_:)PMPrinterIsPostScriptPrinter(_:_:)PMPrinterIsRemote(_:_:)