UIDevice.GeneratesDeviceOrientationNotifications UIDevice.GeneratesDeviceOrientationNotifications Property

Definition

Determines whether device orientation notifications are posted.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("isGeneratingDeviceOrientationNotifications")]
[get: ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool GeneratesDeviceOrientationNotifications { get; }
member this.GeneratesDeviceOrientationNotifications : bool

Property Value

The default value is based on the device hardware.

Remarks

Note that if the hardware supports orientation notifications, this value will be true even if the user has locked the display orientation of the device.

This can be used from a background thread.

Applies to