VocServiceFactory(AkaWebAccelerator)

Extends Class:
Declared In:
See:

Introduction

It is a category of VocServiceFactory with MAP SDK specific APIs.



Methods

+createAkaWebAcceleratorWithDelegate:delegateQueue:options:error:

Creates instance of web accelerator.

+setupSessionConfiguration:

Sets up NSURLSession configurations to pass requests through the SDK's URL handler.


createAkaWebAcceleratorWithDelegate:delegateQueue:options:error:


Creates instance of web accelerator.

+ (nullable id<AkaWebAccelerator>)
        createAkaWebAcceleratorWithDelegate:(nonnull id<VocServiceDelegate>)delegate 
        delegateQueue:(nonnull NSOperationQueue *)delegateQueue 
        options:(nullable NSDictionary *)options error:(NSError * __nullable __autoreleasing * __nullable) error; 
Parameters
delegate

The delegate for VocService.

delegateQueue

The queue on which the delegate calls will be invoked, item set delegate calls are also invoked on this queue.

options

(optional) The options to configure VocService.

error

This parameter has the error information if VocService instance cannot be created.

Discussion

This factory method creates instance of web accelerator. A delegate implementing VocServiceDelegate protocol and delegate queue are required. In most cases the delegate queue will be the main app queue, however there is no restriction what type of queue to use. If the queue is not serial then users of Voc SDK must ensure voc item objects are accessed serially since they are not thread safe.


setupSessionConfiguration:


Sets up NSURLSession configurations to pass requests through the SDK's URL handler.

+ (void)setupSessionConfiguration:(nonnull NSURLSessionConfiguration *)sessionConfig; 
Parameters
sessionConfig

Instance of NSURLSessionConfiguration.