NetworkActivityIndicatorController
public class NetworkActivityIndicatorController
NetworkActivityIndicatorController
Controls whether the Network Activity Indicator should be showed or hidden.
When you use NetworkActivityIndicatorObserver, never modify the Network Activity Indicator directly - use this class instead.
The component uses a counter internally. When this counter has a positive value the indicator is visible.
-
Returns the shared
NetworkActivityIndicatorControllerwhich should be used to access theNetworkActivityIndicator.Declaration
Swift
public internal(set) static var shared: NetworkActivityIndicatorController { get } -
Increments the visibility counter. If the counter is greater than 0, a network activity indicator is shown in the status bar.
Declaration
Swift
public func shouldShowActivityIndicator() -
Decrements the visibility counter. If the counter is less than, or equal to 0, the network activity indicator is hidden from the status bar.
Declaration
Swift
public func shouldHideActivityIndicator()