DBTEAMPOLICIESSmartSyncPolicy

Objective-C

@interface DBTEAMPOLICIESSmartSyncPolicy : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMPOLICIESSmartSyncPolicy : NSObject, DBSerializable, NSCopying

The SmartSyncPolicy union.

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

Instance fields

Constructors

  • Initializes union class with tag state of “local”.

    Description of the “local” tag state: The specified content will be synced as local files by default.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLocal;

    Swift

    init(local: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “on_demand”.

    Description of the “on_demand” tag state: The specified content will be synced as on-demand files by default.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOnDemand;

    Swift

    init(onDemand: ())

    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.

Tag state methods

  • Retrieves whether the union’s current tag state has value “local”.

    Declaration

    Objective-C

    - (BOOL)isLocal;

    Swift

    func isLocal() -> Bool

    Return Value

    Whether the union’s current tag state has value “local”.

  • Retrieves whether the union’s current tag state has value “on_demand”.

    Declaration

    Objective-C

    - (BOOL)isOnDemand;

    Swift

    func isOnDemand() -> Bool

    Return Value

    Whether the union’s current tag state has value “on_demand”.

  • Retrieves whether the union’s current tag state has value “other”.

    Declaration

    Objective-C

    - (BOOL)isOther;

    Swift

    func isOther() -> Bool

    Return 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() -> String

    Return Value

    A human-readable string representing the union’s current tag state.