OrientationMonitor
public class OrientationMonitor : BaseNotificationMonitor
An OrientationMonitor
instance monitors the device for changes to its
physical orientation.
-
Encapsulates changes to the physical orientation of the device.
See moreDeclaration
Swift
public enum Event
-
Initializes a new
OrientationMonitor
.Declaration
Swift
public init(queue: OperationQueue = .main, handler: @escaping (Event) -> Void)
Parameters
queue
The operation queue on which the handler executes. By default, the main operation queue is used.
handler
The handler to call when the physical orientation of the device changes.
-
The physical orientation of the device.
Declaration
Swift
public var orientation: UIDeviceOrientation { get }
-
Declaration
Swift
override public func addNotificationObservers()
-
Declaration
Swift
override public func removeNotificationObservers()