DBSHARINGLinkAudienceDisallowedReason
Objective-C
@interface DBSHARINGLinkAudienceDisallowedReason
    : NSObject <DBSerializable, NSCopying>
                Swift
class DBSHARINGLinkAudienceDisallowedReason : NSObject, DBSerializable, NSCopying
                The LinkAudienceDisallowedReason union.
check documentation for VisibilityPolicyDisallowedReason.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
- 
                  
                  
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGLinkAudienceDisallowedReasonTag tag;Swift
var tag: DBSHARINGLinkAudienceDisallowedReasonTag { get } 
- 
                  
                  
Initializes union class with tag state of “delete_and_recreate”.
Description of the “delete_and_recreate” tag state: The user needs to delete and recreate the link to change the visibility policy.
Declaration
Objective-C
- (nonnull instancetype)initWithDeleteAndRecreate;Swift
init(deleteAndRecreate: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “restricted_by_shared_folder”.
Description of the “restricted_by_shared_folder” tag state: The parent shared folder restricts sharing of links outside the shared folder. To change the visibility policy, remove the restriction from the parent shared folder.
Declaration
Objective-C
- (nonnull instancetype)initWithRestrictedBySharedFolder;Swift
init(restrictedBySharedFolder: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “restricted_by_team”.
Description of the “restricted_by_team” tag state: The team policy prevents links being shared outside the team.
Declaration
Objective-C
- (nonnull instancetype)initWithRestrictedByTeam;Swift
init(restrictedByTeam: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “user_not_on_team”.
Description of the “user_not_on_team” tag state: The user needs to be on a team to set this policy.
Declaration
Objective-C
- (nonnull instancetype)initWithUserNotOnTeam;Swift
init(userNotOnTeam: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “user_account_type”.
Description of the “user_account_type” tag state: The user is a basic user or is on a limited team.
Declaration
Objective-C
- (nonnull instancetype)initWithUserAccountType;Swift
init(userAccountType: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “permission_denied”.
Description of the “permission_denied” tag state: The user does not have permission.
Declaration
Objective-C
- (nonnull instancetype)initWithPermissionDenied;Swift
init(permissionDenied: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;Swift
init(other: ())Return Value
An initialized instance.
 
- 
                  
                  
Retrieves whether the union’s current tag state has value “delete_and_recreate”.
Declaration
Objective-C
- (BOOL)isDeleteAndRecreate;Swift
func isDeleteAndRecreate() -> BoolReturn Value
Whether the union’s current tag state has value “delete_and_recreate”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “restricted_by_shared_folder”.
Declaration
Objective-C
- (BOOL)isRestrictedBySharedFolder;Swift
func isRestrictedBySharedFolder() -> BoolReturn Value
Whether the union’s current tag state has value “restricted_by_shared_folder”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “restricted_by_team”.
Declaration
Objective-C
- (BOOL)isRestrictedByTeam;Swift
func isRestrictedByTeam() -> BoolReturn Value
Whether the union’s current tag state has value “restricted_by_team”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “user_not_on_team”.
Declaration
Objective-C
- (BOOL)isUserNotOnTeam;Swift
func isUserNotOnTeam() -> BoolReturn Value
Whether the union’s current tag state has value “user_not_on_team”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “user_account_type”.
Declaration
Objective-C
- (BOOL)isUserAccountType;Swift
func isUserAccountType() -> BoolReturn Value
Whether the union’s current tag state has value “user_account_type”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “permission_denied”.
Declaration
Objective-C
- (BOOL)isPermissionDenied;Swift
func isPermissionDenied() -> BoolReturn Value
Whether the union’s current tag state has value “permission_denied”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn Value
Whether the union’s current tag state has value “other”.
 - 
                  
                  
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;Swift
func tagName() -> StringReturn Value
A human-readable string representing the union’s current tag state.
 
View on GitHub
        DBSHARINGLinkAudienceDisallowedReason Class Reference