SBSDKProcessingQueueFactory

@interface SBSDKProcessingQueueFactory : NSObject

Factory class providing different NSOperationQueues to work on. There are 3 main queues:

  • A serial queue for image processing.
  • A serial queue for text processing like optical character recognition.
  • A concurrent queue for networking operations allowing 4 concurrent operations.
  • The serial image processing queue. If you do additional image processing on large images or other tasks that consumes a lot of memory it is highly recommended to use this queue.

    Declaration

    Objective-C

    + (nonnull NSOperationQueue *)serialImageProcessingQueue;

    Swift

    class func serialImageProcessingQueue() -> OperationQueue
  • The serial text processing queue. If you perform additonal tasks that consume a lot of CPU power you should consider using this queue. On the other hand text processing operations can take a very long time.

    Declaration

    Objective-C

    + (nonnull NSOperationQueue *)serialTextProcessingQueue;

    Swift

    class func serialTextProcessingQueue() -> OperationQueue
  • The concurrent networking queue. If you perform additonal tasks that use the network it is highly recommended to use this queue.

    Declaration

    Objective-C

    + (nonnull NSOperationQueue *)concurrentNetworkQueue;

    Swift

    class func concurrentNetworkQueue() -> OperationQueue