DBPAPERSharingPolicy

@interface 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.

  • 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.