Contents

PMSessionGetDataFromSession(_:_:_:)

Obtains application-specific data previously stored in a printing session object.

Declaration

func PMSessionGetDataFromSession(_ printSession: PMPrintSession, _ key: CFString, _ data: UnsafeMutablePointer<Unmanaged<CFTypeRef>?>) -> OSStatus

Parameters

  • printSession:

    The printing session whose data you want to obtain.

  • key:

    The key that uniquely identifies the data to be retrieved. You specify this key when you store the data using the function 1461902 Pmsessionsetdatainsession.

  • data:

    A pointer to your Cftyperef variable. On return, the variable refers to the data retrieved from the printing session.

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(_:).

See Also

Accessing Data in Printing Session Objects