DBSHARINGSharedContentLinkMetadataBase

Objective-C

@interface DBSHARINGSharedContentLinkMetadataBase
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGSharedContentLinkMetadataBase : NSObject, DBSerializable, NSCopying

The SharedContentLinkMetadataBase struct.

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

Instance fields

  • The access level on the link for this file.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) DBSHARINGAccessLevel *accessLevel;

    Swift

    var accessLevel: DBSHARINGAccessLevel? { get }
  • The audience options that are available for the content. Some audience options may be unavailable. For example, team_only may be unavailable if the content is not owned by a user on a team. The ‘default’ audience option is always available if the user can modify link settings.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<DBSHARINGLinkAudience *> *_Nonnull audienceOptions;

    Swift

    var audienceOptions: [DBSHARINGLinkAudience] { get }
  • The shared folder that prevents the link audience for this link from being more restrictive.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) DBSHARINGAudienceRestrictingSharedFolder *audienceRestrictingSharedFolder;

    Swift

    var audienceRestrictingSharedFolder: DBSHARINGAudienceRestrictingSharedFolder? { get }
  • The current audience of the link.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBSHARINGLinkAudience *_Nonnull currentAudience;

    Swift

    var currentAudience: DBSHARINGLinkAudience { get }
  • Whether the link has an expiry set on it. A link with an expiry will have its audience changed to members when the expiry is reached.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *expiry;

    Swift

    var expiry: Date? { get }
  • A list of permissions for actions you can perform on the link.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<DBSHARINGLinkPermission *> *_Nonnull linkPermissions;

    Swift

    var linkPermissions: [DBSHARINGLinkPermission] { get }
  • Whether the link is protected by a password.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull passwordProtected;

    Swift

    var passwordProtected: NSNumber { get }

Constructors