---
title: deviceDescription
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscreen/devicedescription
---

# deviceDescription

The device dictionary for the screen.

## Declaration

```swift
var deviceDescription: [NSDeviceDescriptionKey : Any] { get }
```

## Discussion

Discussion This is a dictionary containing the attributes of the receiver’s screen. For the list of keys you can use to retrieve values from the returned dictionary, see Display Device—Descriptions. In addition to the display device constants described in NSWindow, you can also retrieve the CGDirectDisplayID value associated with the screen from this dictionary. To access this value, specify the Objective-C string @"NSScreenNumber" as the key when requesting the item from the dictionary. The value associated with this key is an NSNumber object containing the display ID value. This string is only valid when used as a key for the dictionary returned by this method.

## See Also

### Getting Screen Information

- [depth](appkit/nsscreen/depth.md)
- [frame](appkit/nsscreen/frame.md)
- [supportedWindowDepths](appkit/nsscreen/supportedwindowdepths.md)
- [NSDeviceDescriptionKey](appkit/nsdevicedescriptionkey.md)
- [colorSpace](appkit/nsscreen/colorspace.md)
- [localizedName](appkit/nsscreen/localizedname.md)
- [canRepresent(_:)](appkit/nsscreen/canrepresent(_:).md)
- [NSDisplayGamut](appkit/nsdisplaygamut.md)
- [screensHaveSeparateSpaces](appkit/nsscreen/screenshaveseparatespaces.md)
