PSPDFDirectory


@interface PSPDFDirectory : PSPDFModel

Represents a possible destination directory for the save UI.

  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFDirectory : PSPDFModel
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFDirectory : PSPDFModel
  • 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?)
  • The directory path.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (readonly, nonatomic, 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 (readonly, nonatomic) NSString *_Nonnull localizedName;

    Swift

    var localizedName: String { get }