DBSHARINGSharedLinkSettings

@interface DBSHARINGSharedLinkSettings : NSObject <DBSerializable, NSCopying>

The SharedLinkSettings struct.

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

  • The requested access for this shared link.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        DBSHARINGRequestedVisibility *requestedVisibility;

    Swift

    var requestedVisibility: DBSHARINGRequestedVisibility? { get }
  • If requestedVisibility is password in DBSHARINGRequestedVisibility this is needed to specify the password to access the link.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *linkPassword;

    Swift

    var linkPassword: String? { get }
  • Expiration time of the shared link. By default the link won’t expire.

    Declaration

    Objective-C

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

    Swift

    var expires: Date? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithRequestedVisibility:
        (nullable DBSHARINGRequestedVisibility *)requestedVisibility
                   linkPassword:(nullable NSString *)linkPassword
                        expires:(nullable NSDate *)expires;

    Swift

    init(requestedVisibility: DBSHARINGRequestedVisibility?, linkPassword: String?, expires: Date?)

    Parameters

    requestedVisibility

    The requested access for this shared link.

    linkPassword

    If requestedVisibility is password in DBSHARINGRequestedVisibility this is needed to specify the password to access the link.

    expires

    Expiration time of the shared link. 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)initDefault;

    Swift

    init(default: ())

    Return Value

    An initialized instance.