DBSHARINGExpectedSharedContentLinkMetadata
Objective-C
@interface DBSHARINGExpectedSharedContentLinkMetadata
: DBSHARINGSharedContentLinkMetadataBase <DBSerializable, NSCopying>
Swift
class DBSHARINGExpectedSharedContentLinkMetadata : DBSHARINGSharedContentLinkMetadataBase, DBSerializable, NSCopying
The ExpectedSharedContentLinkMetadata struct.
The expected metadata of a shared link for a file or folder when a link is first created for the content. Absent if the link already exists.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
-initWithAudienceOptions:currentAudience: linkPermissions: passwordProtected: accessLevel: audienceRestrictingSharedFolder: expiry: Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithAudienceOptions: (nonnull NSArray<DBSHARINGLinkAudience *> *)audienceOptions currentAudience: (nonnull DBSHARINGLinkAudience *)currentAudience linkPermissions: (nonnull NSArray<DBSHARINGLinkPermission *> *) linkPermissions passwordProtected:(nonnull NSNumber *)passwordProtected accessLevel:(nullable DBSHARINGAccessLevel *)accessLevel audienceRestrictingSharedFolder: (nullable DBSHARINGAudienceRestrictingSharedFolder *) audienceRestrictingSharedFolder expiry:(nullable NSDate *)expiry;Swift
init(audienceOptions: [DBSHARINGLinkAudience], currentAudience: DBSHARINGLinkAudience, linkPermissions: [DBSHARINGLinkPermission], passwordProtected: NSNumber, accessLevel: DBSHARINGAccessLevel?, audienceRestrictingSharedFolder: DBSHARINGAudienceRestrictingSharedFolder?, expiry: Date?)Parameters
audienceOptionsThe 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.
currentAudienceThe current audience of the link.
linkPermissionsA list of permissions for actions you can perform on the link.
passwordProtectedWhether the link is protected by a password.
accessLevelThe access level on the link for this file.
audienceRestrictingSharedFolderThe shared folder that prevents the link audience for this link from being more restrictive.
expiryWhether 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.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype) initWithAudienceOptions: (nonnull NSArray<DBSHARINGLinkAudience *> *)audienceOptions currentAudience:(nonnull DBSHARINGLinkAudience *)currentAudience linkPermissions: (nonnull NSArray<DBSHARINGLinkPermission *> *)linkPermissions passwordProtected:(nonnull NSNumber *)passwordProtected;Swift
init(audienceOptions: [DBSHARINGLinkAudience], currentAudience: DBSHARINGLinkAudience, linkPermissions: [DBSHARINGLinkPermission], passwordProtected: NSNumber)Parameters
audienceOptionsThe 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.
currentAudienceThe current audience of the link.
linkPermissionsA list of permissions for actions you can perform on the link.
passwordProtectedWhether the link is protected by a password.
Return Value
An initialized instance.
View on GitHub
DBSHARINGExpectedSharedContentLinkMetadata Class Reference