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. In AppDelegate application:didFinishLaunchingWithOptions: you can do so with the following code:

    [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];

    By setting enabled to YES for sharedManager, the network activity indicator will show and hide automatically as requests start and finish. You should not ever need to call incrementActivityCount or decrementActivityCount 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 more

    Declaration

    Objective-C

    @interface AWFNetworkActivityIndicatorManager : NSObject

    Swift

    class AWFNetworkActivityIndicatorManager : NSObject
  • AWFOAuthCredential 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.

    See more

    Declaration

    Objective-C

    @interface AWFOAuthCredential : NSObject <NSCoding>

    Swift

    class AWFOAuthCredential : NSObject, NSCoding