One Logo Pool Ball
Foundation · IOS API REFERENCE

NSBundleResourceRequest.LowDiskSpaceMessage

struct · iOS 26.0+ · Deprecated in iOS 27.0 · SDK 27.1

struct LowDiskSpaceMessage

A message the system sends when it detects the amount of available disk space getting low. After receiving this notification, your app should release any on-demand resources that aren't required. Call ``NSBundleResourceRequest/endAccessingResources()`` to release the managed resources. If the app is in the background and the app doesn't free up enough space, the system may terminate the app. Observe this message with the identifier ``NotificationCenter/MessageIdentifier/lowDiskSpace``, or specify its type directly to the `addObserver(of:for:using:)` method. The ``NotificationCenter/MainActorMessage/Subject`` of this message type is ``NSBundleResourceRequest``. This message interoperates with the notification ``NSNotification/Name/NSBundleResourceRequestLowDiskSpace``. The system notifies observers of the message when the ``NotificationCenter`` posts the notification. Similarly, the system notifies observers of the notification when it posts the message.

Members (3)

static · iOS 26.0+ · Deprecated in iOS 27.0

makeMessage

TypeScript
static makeMessage(notification: Notification): (NSBundleResourceRequest_LowDiskSpaceMessage) | null
Swift declaration
static func makeMessage(_ notification: Notification) -> NSBundleResourceRequest.LowDiskSpaceMessage?

Converts a posted notification into this asynchronous message type for any observers. To implement this method in your own `AsyncMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message. - Parameter notification: The posted ``Notification``. - Returns: The converted `AsyncMessage`, or `nil` if conversion is not possible.

get · iOS 26.0+ · Deprecated in iOS 27.0

name

TypeScript
static get nameValue(): NSNotification_Name
Swift declaration
static var name: Notification.Name { get }

A optional name corresponding to this type, used to interoperate with notification posters and observers.

init · iOS 26.0+ · Deprecated in iOS 27.0

init

TypeScript
static init(): NSBundleResourceRequest_LowDiskSpaceMessage
Swift declaration
init()

Creates a message about the available disk space getting low.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →