Enumeration

WKSnapshotReason

The reason for a background snapshot task.

Declaration

typedef enum WKSnapshotReason : NSInteger {
    ...
} WKSnapshotReason;

Topics

Enumeration Cases

WKSnapshotReasonAppBackgrounded

The app transitioned from the foreground to the background.

WKSnapshotReasonAppScheduled

The app scheduled this snapshot.

WKSnapshotReasonComplicationUpdate

The app updated the complication timeline.

WKSnapshotReasonPrelaunch

The system needs a snapshot for the dock, but the app has not been launched yet.

WKSnapshotReasonReturnToDefaultState

It has been more than an hour since the user’s last interaction with the app; the app’s snapshot should return to its default state.