DBPAPERSharingPolicy
Objective-C
@interface DBPAPERSharingPolicy : NSObject <DBSerializable, NSCopying>
Swift
class DBPAPERSharingPolicy : NSObject, DBSerializable, NSCopying
The SharingPolicy
struct.
Sharing policy of Paper doc.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
This value applies to the non-team members.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBPAPERSharingPublicPolicyType *publicSharingPolicy;
Swift
var publicSharingPolicy: DBPAPERSharingPublicPolicyType? { get }
-
This value applies to the team members only. The value is null for all personal accounts.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBPAPERSharingTeamPolicyType *teamSharingPolicy;
Swift
var teamSharingPolicy: DBPAPERSharingTeamPolicyType? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithPublicSharingPolicy: (nullable DBPAPERSharingPublicPolicyType *)publicSharingPolicy teamSharingPolicy: (nullable DBPAPERSharingTeamPolicyType *)teamSharingPolicy;
Swift
init(publicSharing publicSharingPolicy: DBPAPERSharingPublicPolicyType?, teamSharing teamSharingPolicy: DBPAPERSharingTeamPolicyType?)
Parameters
publicSharingPolicy
This value applies to the non-team members.
teamSharingPolicy
This value applies to the team members only. The value is null for all personal accounts.
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.