DBSHARINGLinkPermission
Objective-C
@interface DBSHARINGLinkPermission : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGLinkPermission : NSObject, DBSerializable, NSCopying
The LinkPermission
struct.
Permissions for actions that can be performed on a link.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
(no description).
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGLinkAction *_Nonnull action;
Swift
var action: DBSHARINGLinkAction { get }
-
(no description).
Declaration
Objective-C
@property (nonatomic, readonly) NSNumber *_Nonnull allow;
Swift
var allow: NSNumber { get }
-
(no description).
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGPermissionDeniedReason *reason;
Swift
var reason: DBSHARINGPermissionDeniedReason? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithAction:(nonnull DBSHARINGLinkAction *)action allow:(nonnull NSNumber *)allow reason:(nullable DBSHARINGPermissionDeniedReason *)reason;
Swift
init(action: DBSHARINGLinkAction, allow: NSNumber, reason: DBSHARINGPermissionDeniedReason?)
Parameters
action
(no description).
allow
(no description).
reason
(no description).
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithAction:(nonnull DBSHARINGLinkAction *)action allow:(nonnull NSNumber *)allow;
Swift
init(action: DBSHARINGLinkAction, allow: NSNumber)
Parameters
action
(no description).
allow
(no description).
Return Value
An initialized instance.