DBSHARINGCollectionLinkMetadata
Objective-C
@interface DBSHARINGCollectionLinkMetadata
: DBSHARINGLinkMetadata <DBSerializable, NSCopying>
Swift
class DBSHARINGCollectionLinkMetadata : DBSHARINGLinkMetadata, DBSerializable, NSCopying
The CollectionLinkMetadata
struct.
Metadata for a collection-based shared link.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithUrl:(nonnull NSString *)url visibility:(nonnull DBSHARINGVisibility *)visibility expires:(nullable NSDate *)expires;
Swift
init(url: String, visibility: DBSHARINGVisibility, expires: Date?)
Parameters
url
URL of the shared link.
visibility
Who can access the link.
expires
Expiration time, if set. By default the link won’t expire.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithUrl:(nonnull NSString *)url visibility:(nonnull DBSHARINGVisibility *)visibility;
Swift
init(url: String, visibility: DBSHARINGVisibility)
Parameters
url
URL of the shared link.
visibility
Who can access the link.
Return Value
An initialized instance.