Contents

PMSessionSetDataInSession(_:_:_:)

Stores your application-specific data in a printing session object.

Declaration

func PMSessionSetDataInSession(_ printSession: PMPrintSession, _ key: CFString, _ data: CFTypeRef) -> OSStatus

Parameters

  • printSession:

    The printing session in which you want to store application-specific data.

  • key:

    A key that uniquely identifies the data being added. This key is required to retrieve the data using the function 1462964 Pmsessiongetdatafromsession.

  • data:

    The data to be stored in 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