A type the containing app uses to determine the status of a completed import.
After the first time the app launches, check this type's static variable ``importStatus`` to determine whether a migration took place and, if so, whether it succeeded.
To determine the status, check to see if `importStatus` is non-`nil` and that its value is ``MigrationStatus/success``.
After a successful migration, notify the person using the app that migration succeeded, and call the static method ``clearImportStatus()``.
Members (2)
static · iOS 26.0+
clearImportStatus
TypeScript
static clearImportStatus(): void
Swift declaration
static func clearImportStatus()
Sets the import status to a nil value to prevent further notification.
Calling this method sets ``importStatus`` to `nil`, which indicates that the app has notified the person using the app of the migration's completion, and doesn't need further notifications.
get · iOS 26.0+
importStatus
TypeScript
static get importStatus(): (MigrationStatus) | null
Swift declaration
static var importStatus: MigrationStatus? { get }
A property to indicate the status of import from another device into the app.
This value is `nil` unless a migration completed.
You can use this value to show a notification about the completed migration to the person using the app.