Classes

The following classes are available globally.

  • The NetworkActivityIndicatorManager manages the state of the network activity indicator in the status bar. When enabled, it will listen for notifications indicating that a URL session task has started or completed and start animating the indicator accordingly. The indicator will continue to animate while the internal activity count is greater than zero.

    To use the NetworkActivityIndicatorManager, the shared instance should be enabled in the application:didFinishLaunchingWithOptions: method in the AppDelegate. This can be done with the following:

    NetworkActivityIndicatorManager.shared.isEnabled = true
    

    By setting the isEnabled property to true for the shared instance, the network activity indicator will show and hide automatically as Alamofire requests start and complete. You should not ever need to call incrementActivityCount and decrementActivityCount yourself.

    See more

    Declaration

    Swift

    public class NetworkActivityIndicatorManager