ProcessInfoThermalStateMonitor

@available(iOS 11.0, OSX 10.10.3, tvOS 11.0, watchOS 4.0, *)
public class ProcessInfoThermalStateMonitor : BaseNotificationMonitor

A ProcessInfoThermalStateMonitor instance monitors the system for changes to the thermal state.

  • Encapsulates changes to the thermal state.

    See more

    Declaration

    Swift

    public enum Event
  • Initializes a new ProcessInfoThermalStateMonitor.

    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 thermal state changes.

  • The current thermal state.

    Declaration

    Swift

    public var state: ProcessInfo.ThermalState { get }
  • Declaration

    Swift

    override public func addNotificationObservers()