PMSessionGetCurrentPrinter(_:_:)
Obtains the current printer associated with a printing session.
Declaration
func PMSessionGetCurrentPrinter(_ printSession: PMPrintSession, _ currentPrinter: UnsafeMutablePointer<PMPrinter?>) -> OSStatusParameters
- printSession:
The printing session whose printer you want to obtain.
- currentPrinter:
A pointer to your Pmprinter variable. On return, the variable refers to the printer associated with the specified printing session. The printer object is valid as long as the printing session is valid or the current printer hasn’t changed. You should not release this object without first retaining it.
Return Value
A result code. See Result Codes.
Discussion
You must call this function between the creation and release of a printing session. See the function PMCreateSession(_:).