Classes
The following classes are available globally.
-
AFNetworkActivityIndicatorManager
manages 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
AFNetworkActivityIndicatorManager
when your application finishes launching. InAppDelegate application:didFinishLaunchingWithOptions:
you can do so with the following code:[[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
By setting
enabled
toYES
forsharedManager
, the network activity indicator will show and hide automatically as requests start and finish. You should not ever need to callincrementActivityCount
ordecrementActivityCount
yourself.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 : NSObject
Swift
class AWFNetworkActivityIndicatorManager : NSObject
-
See moreAWFOAuthCredential
models 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