One Logo Pool Ball
CoreData · IOS API REFERENCE

NSPersistentStoreCoordinator.StoresDidChangeAsyncMessage

struct · iOS 27.0+ · SDK 27.1

struct StoresDidChangeAsyncMessage

Posted when stores are added to or removed from the persistent store coordinator on a background queue.

Members (7)

get · iOS 27.0+

persistentStoreCoordinator

TypeScript
get persistentStoreCoordinator(): NSPersistentStoreCoordinator
Swift declaration
let persistentStoreCoordinator: NSPersistentStoreCoordinator
get · iOS 27.0+

uuidChangedStores

TypeScript
get uuidChangedStores(): ({ "oldValue": NSPersistentStore; "newValue": NSPersistentStore }) | null
Swift declaration
var uuidChangedStores: (oldValue: NSPersistentStore, newValue: NSPersistentStore)? { get }
static · iOS 27.0+

makeMessage

TypeScript
static makeMessage(notification: _Foundation_Notification): (NSPersistentStoreCoordinator_StoresDidChangeAsyncMessage) | null
Swift declaration
static func makeMessage(_ notification: Notification) -> NSPersistentStoreCoordinator.StoresDidChangeAsyncMessage?

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 27.0+

addedStores

TypeScript
get addedStores(): Array<NSPersistentStore>
Swift declaration
var addedStores: [NSPersistentStore] { get }

Stores that were added during this change.

get · iOS 27.0+

removedStores

TypeScript
get removedStores(): Array<NSPersistentStore>
Swift declaration
var removedStores: [NSPersistentStore] { get }

Stores that were removed during this change.

static · iOS 27.0+

makeNotification

TypeScript
static makeNotification(message: NSPersistentStoreCoordinator_StoresDidChangeAsyncMessage): _Foundation_Notification
Swift declaration
static func makeNotification(_ message: NSPersistentStoreCoordinator.StoresDidChangeAsyncMessage) -> Notification

Converts a posted asynchronous message into a notification for any observers. To implement this method in your own `AsyncMessage` conformance, use the properties defined by the message to populate the ``Notification``'s ``Notification/userInfo``. - Parameters: - message: The posted `AsyncMessage`. - Returns: The converted ``Notification``.

get · iOS 27.0+

name

TypeScript
static get nameValue(): _Foundation_NSNotification_Name
Swift declaration
static let name: Notification.Name

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

Skipped declarations

No declarations were skipped in this snapshot.

All CoreData types →