SPUUpdaterSettings

Objective-C

@interface SPUUpdaterSettings : NSObject

Swift

class SPUUpdaterSettings : NSObject

This class can be used for reading certain updater settings.

It retrieves the settings by first looking into the host’s user defaults. If the setting is not found in there, then the host’s Info.plist file is looked at.

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithHostBundle:(NSBundle *)hostBundle;

    Swift

    init(hostBundle: Bundle)
  • Indicates whether or not automatic update checks are enabled.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL automaticallyChecksForUpdates;

    Swift

    var automaticallyChecksForUpdates: Bool { get }
  • The regular update check interval.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval updateCheckInterval;

    Swift

    var updateCheckInterval: TimeInterval { get }
  • Indicates whether or not automatically downloading updates is allowed to be turned on by the user. If this value is nil, the developer has not explicitly specified this option.

    Declaration

    Objective-C

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

    Swift

    var allowsAutomaticUpdatesOption: NSNumber? { get }
  • Indicates whether or not automatically downloading updates is allowed to be turned on by the user.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL allowsAutomaticUpdates;

    Swift

    var allowsAutomaticUpdates: Bool { get }
  • Indicates whether or not automatically downloading updates is enabled by the user or developer.

    Note this does not indicate whether or not automatic downloading of updates is allowable. See -allowsAutomaticUpdates property for that.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL automaticallyDownloadsUpdates;

    Swift

    var automaticallyDownloadsUpdates: Bool { get }
  • Indicates whether or not anonymous system profile information is sent when checking for updates.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL sendsSystemProfile;

    Swift

    var sendsSystemProfile: Bool { get }