PSPDFDirectory

Objective-C


@interface PSPDFDirectory : PSPDFModel <NSSecureCoding>

Swift

class Directory : ModelObject, NSSecureCoding

Represents a possible destination directory.

  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Returns a new save directory with a nil name.

    Declaration

    Objective-C

    + (nonnull instancetype)directoryWithPath:(nonnull NSString *)path;

    Swift

    convenience init(path: String)
  • Returns a new save directory with a path and name.

    See

    initWithPath:name:

    Declaration

    Objective-C

    + (nonnull instancetype)directoryWithPath:(nonnull NSString *)path
                                         name:(nullable NSString *)name;
  • Initializes a save directory with the given path and (non-localized) name. You should make sure that the path is valid and writable by the app.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path
                                    name:(nullable NSString *)name;

    Swift

    init(path: String, name: String?)
  • Returns a special directory that is used to show a UIDocumentPickerViewController.

    Declaration

    Objective-C

    + (nonnull instancetype)documentPickerDirectory;

    Swift

    class func documentPicker() -> Self
  • The directory path.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull path;

    Swift

    var path: String { get }
  • The name used to identify this directory.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *name;

    Swift

    var name: String? { get }
  • Localized version of name, suitable for display. Will return the last path component if name is not set.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull localizedName;

    Swift

    var localizedName: String { get }