---
title: isGeneratingDeviceOrientationNotifications
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidevice/isgeneratingdeviceorientationnotifications
---

# isGeneratingDeviceOrientationNotifications

A Boolean value that indicates whether the device generates orientation notifications.

## Declaration

```swift
var isGeneratingDeviceOrientationNotifications: Bool { get }
```

## Discussion

Discussion If the value of this property is true, the shared UIDevice object posts a orientationDidChangeNotification notification when the device changes orientation. If the value is false, it generates no orientation notifications. Device orientation notifications can only be generated between calls to the beginGeneratingDeviceOrientationNotifications() and endGeneratingDeviceOrientationNotifications() methods.

## See Also

### Tracking the device orientation

- [orientation](uikit/uidevice/orientation.md)
- [UIDeviceOrientation](uikit/uideviceorientation.md)
- [beginGeneratingDeviceOrientationNotifications()](uikit/uidevice/begingeneratingdeviceorientationnotifications().md)
- [endGeneratingDeviceOrientationNotifications()](uikit/uidevice/endgeneratingdeviceorientationnotifications().md)
