SUUpdatePermissionResponse

Objective-C

@interface SUUpdatePermissionResponse : NSObject <NSSecureCoding>

Swift

class SUUpdatePermissionResponse : NSObject, NSSecureCoding

This class represents a response for permission to check updates.

  • Initializes a new update permission response instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAutomaticUpdateChecks:
                                (BOOL)automaticUpdateChecks
                                        sendSystemProfile:(BOOL)sendSystemProfile;

    Swift

    init(automaticUpdateChecks: Bool, sendSystemProfile: Bool)

    Parameters

    automaticUpdateChecks

    Flag to enable automatic update checks.

    sendSystemProfile

    Flag for if system profile information should be sent to the server hosting the appcast.

  • Initializes a new update permission response instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAutomaticUpdateChecks:
                                (BOOL)automaticUpdateChecks
                               automaticUpdateDownloading:
                                   (NSNumber *_Nullable)automaticUpdateDownloading
                                        sendSystemProfile:(BOOL)sendSystemProfile;

    Swift

    init(automaticUpdateChecks: Bool, automaticUpdateDownloading: NSNumber?, sendSystemProfile: Bool)

    Parameters

    automaticUpdateChecks

    Flag to enable automatic update checks.

    automaticUpdateDownloading

    Flag to enable automatic downloading and installing of updates. If this is nil, this option will be ignored.

    sendSystemProfile

    Flag for if system profile information should be sent to the server hosting the appcast.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • A read-only property indicating if update checks should be done automatically.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL automaticUpdateChecks;

    Swift

    var automaticUpdateChecks: Bool { get }
  • A read-only property indicating if updates should be automatically downloaded and installed.

    If this property is nil, then no user choice was made for this option.

    If automaticUpdateChecks is NO then this property should not be @(YES). Set it to NO if the user was given the choice of automatically downloading and installing updates, otherwise set it to nil.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *automaticUpdateDownloading;

    Swift

    var automaticUpdateDownloading: NSNumber? { get }
  • A read-only property indicating if system profile should be sent or not.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL sendSystemProfile;

    Swift

    var sendSystemProfile: Bool { get }