DBSHARINGGetFileMetadataArg

@interface DBSHARINGGetFileMetadataArg : NSObject <DBSerializable, NSCopying>

The GetFileMetadataArg struct.

Arguments of getFileMetadata.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • The file to query.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull file;

    Swift

    var file: String { get }
  • A list of FileActions corresponding to FilePermissions that should appear in the response’s permissions in DBSHARINGSharedFileMetadata field describing the actions the authenticated user can perform on the file.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        NSArray<DBSHARINGFileAction *> *actions;

    Swift

    var actions: [DBSHARINGFileAction]? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFile:(nonnull NSString *)file
                                 actions:(nullable NSArray<DBSHARINGFileAction *> *)
                                             actions;

    Swift

    init(file: String, actions: [DBSHARINGFileAction]?)

    Parameters

    file

    The file to query.

    actions

    A list of FileActions corresponding to FilePermissions that should appear in the response’s permissions in DBSHARINGSharedFileMetadata field describing the actions the authenticated user can perform on the file.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFile:(nonnull NSString *)file;

    Swift

    init(file: String)

    Parameters

    file

    The file to query.

    Return Value

    An initialized instance.