PSPDFModelEncodingBehavior

Objective-C

enum PSPDFModelEncodingBehavior {}

Swift

@frozen enum EncodingBehavior : UInt

Defines how a PSPDFModel property key should be encoded into an archive.

  • The property should never be encoded. Will also not be read when decoding because it wouldn’t be there except for old archives, and those migrations should be handled separately.

    Declaration

    Objective-C

    PSPDFModelEncodingBehaviorExcluded = 0

    Swift

    case excluded = 0
  • The property should always be encoded.

    Declaration

    Objective-C

    PSPDFModelEncodingBehaviorUnconditional

    Swift

    case unconditional = 1
  • The object should be encoded only if unconditionally encoded elsewhere.

    Declaration

    Objective-C

    PSPDFModelEncodingBehaviorConditional

    Swift

    case conditional = 2
  • The object should be encoded as pointer value and is post-processed manually.

    Declaration

    Objective-C

    PSPDFModelEncodingBehaviorPointerValue

    Swift

    case pointerValue = 3