PFNetworkActivityIndicatorManager Class Reference

Inherits from NSObject
Declared in PFNetworkActivityIndicatorManager.h

Overview

PFNetworkActivityIndicatorManager manages the state of the network activity indicator in the status bar. When enabled, it will start managing the network activity indicator in the status bar, according to the network operations that are performed by Parse SDK.

The number of active requests is incremented or decremented like a stack or a semaphore, the activity indicator will animate, as long as the number is greater than zero.

  enabled

A Boolean value indicating whether the manager is enabled. If YES - the manager will start managing the status bar network activity indicator, according to the network operations that are performed by Parse SDK. The default value is YES.

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

Discussion

A Boolean value indicating whether the manager is enabled. If YES - the manager will start managing the status bar network activity indicator, according to the network operations that are performed by Parse SDK. The default value is YES.

Declared In

PFNetworkActivityIndicatorManager.h

  networkActivityIndicatorVisible

A Boolean value indicating whether the network activity indicator is currently displayed in the status bar.

@property (nonatomic, assign, readonly, getter=isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible

Discussion

A Boolean value indicating whether the network activity indicator is currently displayed in the status bar.

Declared In

PFNetworkActivityIndicatorManager.h

  networkActivityCount

The value that indicates current network activities count.

@property (nonatomic, assign, readonly) NSUInteger networkActivityCount

Discussion

The value that indicates current network activities count.

Declared In

PFNetworkActivityIndicatorManager.h

+ sharedManager

Returns the shared network activity indicator manager object for the system.

+ (PFNetworkActivityIndicatorManager *)sharedManager

Return Value

The systemwide network activity indicator manager.

Declared In

PFNetworkActivityIndicatorManager.h

– incrementActivityCount

Increments the number of active network requests.

- (void)incrementActivityCount

Discussion

If this number was zero before incrementing, this will start animating network activity indicator in the status bar.

Declared In

PFNetworkActivityIndicatorManager.h

– decrementActivityCount

Decrements the number of active network requests.

- (void)decrementActivityCount

Discussion

If this number becomes zero after decrementing, this will stop animating network activity indicator in the status bar.

Declared In

PFNetworkActivityIndicatorManager.h