Classes
The following classes are available globally.
-
AFNetworkActivityIndicatorManagermanages the state of the network activity indicator in the status bar. When enabled, it will listen for notifications indicating that a session task has started or finished, and start or stop animating the indicator accordingly. The number of active requests is incremented and decremented much like a stack or a semaphore, and the activity indicator will animate so long as that number is greater than zero.You should enable the shared instance of
AFNetworkActivityIndicatorManagerwhen your application finishes launching. InAppDelegate application:didFinishLaunchingWithOptions:you can do so with the following code:[[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
By setting
enabledtoYESforsharedManager, the network activity indicator will show and hide automatically as requests start and finish. You should not ever need to callincrementActivityCountordecrementActivityCountyourself.See the Apple Human Interface Guidelines section about the Network Activity Indicator for more information: http://developer.apple.com/library/iOS/#documentation/UserExperience/Conceptual/MobileHIG/UIElementGuidelines/UIElementGuidelines.html#//apple_ref/doc/uid/TP40006556-CH13-SW44
See moreDeclaration
Objective-C
@interface AWFNetworkActivityIndicatorManager : NSObjectSwift
class AWFNetworkActivityIndicatorManager : NSObject -
See moreAWFOAuthCredentialmodels the credentials returned from an OAuth server, storing the token type, access & refresh tokens, and whether the token is expired. OAuth credentials can be stored in the user’s keychain, and retrieved on subsequent launches.Declaration
Objective-C
@interface AWFOAuthCredential : NSObject <NSCoding>Swift
class AWFOAuthCredential : NSObject, NSCoding
View on GitHub
Classes Reference