Global Variable

NSUserDefaultsSizeLimitExceededNotification

Posted when more data is stored in user defaults than is allowed.

Declaration

const NSNotificationName NSUserDefaultsSizeLimitExceededNotification;

Discussion

This notification is posted on the main queue.

Currently, there is only a size limit for data stored to local user defaults on tvOS, which posts a warning notification when user defaults storage reaches 512kB in size, and terminates apps when user defaults storage reaches 1MB in size.

For ubiquitous defaults, the limit depends on the logged in iCloud user.

See Also

Notifications

NSUserDefaultsDidChangeNotification

Posted when user defaults are changed within the current process.

NSUbiquitousUserDefaultsCompletedInitialSyncNotification

Posted when ubiquitous defaults finish downloading data, either the first time a device is connected to an iCloud account or when a user switches their primary iCloud account.

NSUbiquitousUserDefaultsDidChangeAccountsNotification

Posted when the user changes the primary iCloud account.

NSUbiquitousUserDefaultsNoCloudAccountNotification

Posted when a cloud default is set, but no iCloud user is logged in.