PSPDFNetworkActivityIndicatorManager

@protocol PSPDFNetworkActivityIndicatorManager <NSObject>

The network indicator manager will track the number of currently open network request.

  • A Boolean value indicating whether the manager is enabled. This flag defines if the networkActivityIndicatorVisible in the shared application is updated.

    Note

    Requests are always tracked, regardless of this setting. Defaults to YES.

    Declaration

    Objective-C

    @property (getter=isEnabled, assign, readwrite, nonatomic) BOOL enabled;

    Swift

    var isEnabled: Bool { get set }
  • Indicates if the network activity indicator is currently visible.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isNetworkActivityIndicatorVisible;

    Swift

    var isNetworkActivityIndicatorVisible: Bool { get }
  • Increments the number of active network requests.

    Declaration

    Objective-C

    - (void)incrementActivityCount;

    Swift

    func incrementActivityCount()
  • Decrements the number of active network requests.

    Declaration

    Objective-C

    - (void)decrementActivityCount;

    Swift

    func decrementActivityCount()