---
title: stateRestorationUserInterfaceIdiomKey
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiapplication/staterestorationuserinterfaceidiomkey
---

# stateRestorationUserInterfaceIdiomKey

The user interface idiom that was in effect when your app created the restoration archive.

## Declaration

```swift
class let stateRestorationUserInterfaceIdiomKey: String
```

## Discussion

Discussion The value of this key is an NSNumber object containing one of the values for the UIUserInterfaceIdiom enum. This value reflects whether the interface that was saved was targeting the iPad or iPhone idiom.

## See Also

### Managing app state restoration

- [application(_:shouldSaveSecureApplicationState:)](uikit/uiapplicationdelegate/application(_:shouldsavesecureapplicationstate:).md)
- [application(_:shouldRestoreSecureApplicationState:)](uikit/uiapplicationdelegate/application(_:shouldrestoresecureapplicationstate:).md)
- [application(_:viewControllerWithRestorationIdentifierPath:coder:)](uikit/uiapplicationdelegate/application(_:viewcontrollerwithrestorationidentifierpath:coder:).md)
- [application(_:willEncodeRestorableStateWith:)](uikit/uiapplicationdelegate/application(_:willencoderestorablestatewith:).md)
- [application(_:didDecodeRestorableStateWith:)](uikit/uiapplicationdelegate/application(_:diddecoderestorablestatewith:).md)
- [stateRestorationBundleVersionKey](uikit/uiapplication/staterestorationbundleversionkey.md)
- [stateRestorationSystemVersionKey](uikit/uiapplication/staterestorationsystemversionkey.md)
- [stateRestorationTimestampKey](uikit/uiapplication/staterestorationtimestampkey.md)
- [stateRestorationViewControllerStoryboardKey](uikit/uiapplication/staterestorationviewcontrollerstoryboardkey.md)
