BasePollingSource
open class BasePollingSource : UpdatingSource
A base class that can be used to create sources that can only be polled for updates.
To benefit from BasePollingSource
your subclass must implement ManuallyUpdatablePropertiesProvider
. This
will add CustomisableUpdateIntervalSource
conformance via an extension.
-
Declaration
Swift
public typealias ProducedValue = [AnyProperty]
-
Declaration
Swift
open var availability: SourceAvailability { get }
-
Declaration
Swift
open var name: String { get }
-
Declaration
Swift
public final var updateInterval: TimeInterval? { get }
-
Declaration
Swift
@Published public private(set) var isUpdating: Bool { get set }
-
Declaration
Swift
public var isUpdatingPublisher: AnyPublisher<Bool, Never> { get }
-
Declaration
Swift
public var allProperties: [AnyProperty]
-
Declaration
Swift
public var eventsPublisher: AnyPublisher<SourceEvent, Never> { get }
-
Declaration
Swift
public required init()