DBSHARINGMemberAccessLevelResult

@interface DBSHARINGMemberAccessLevelResult
    : NSObject <DBSerializable, NSCopying>

The MemberAccessLevelResult struct.

Contains information about a member’s access level to content after an operation.

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

  • The member still has this level of access to the content through a parent folder.

    Declaration

    Objective-C

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

    Swift

    var accessLevel: DBSHARINGAccessLevel? { get }
  • A localized string with additional information about why the user has this access level to the content.

    Declaration

    Objective-C

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

    Swift

    var warning: String? { get }
  • The parent folders that a member has access to. The field is present if the user has access to the first parent folder where the member gains access.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        NSArray<DBSHARINGParentFolderAccessInfo *> *accessDetails;

    Swift

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

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithAccessLevel:(nullable DBSHARINGAccessLevel *)accessLevel
                warning:(nullable NSString *)warning
          accessDetails:
              (nullable NSArray<DBSHARINGParentFolderAccessInfo *> *)accessDetails;

    Swift

    init(accessLevel: DBSHARINGAccessLevel?, warning: String?, accessDetails: [DBSHARINGParentFolderAccessInfo]?)

    Parameters

    accessLevel

    The member still has this level of access to the content through a parent folder.

    warning

    A localized string with additional information about why the user has this access level to the content.

    accessDetails

    The parent folders that a member has access to. The field is present if the user has access to the first parent folder where the member gains access.

    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.