VocServiceFactory

Superclass:
NSObject
Declared In:
See:

Introduction

Factory for VocService.

Discussion

VocServiceFactory is used to create instance of VocService. For more details on how VocService works and how to create it see VocService.



Methods

+createServiceWithDelegate:delegateQueue:options:error:

Factory method for VocService.

-NS_UNAVAILABLE

init is disabled for VocServiceFactory.


createServiceWithDelegate:delegateQueue:options:error:


Factory method for VocService.

+ (nullable id<VocService>)createServiceWithDelegate:(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 web accelerator instance cannot be created.

Return Value

VocService The instance of VocService.

Discussion

This factory method creates instance of VocService. 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. One such way to achieve that would be to add a lock object of some kind to voc item userInfo and use it to serialize access.


NS_UNAVAILABLE


init is disabled for VocServiceFactory.

- (nonnull instancetype)init NS_UNAVAILABLE;