SlyceSearchTask Class Reference

Inherits from NSObject
Declared in SlyceSearchTask.h

  session

The session that was used to create this task.

@property (nonatomic, readonly) SlyceSession *session

Declared In

SlyceSearchTask.h

  identifier

The unique identifier for this task.

@property (nonatomic, copy, readonly) NSString *identifier

Discussion

This identifier is generated locally when the task is created, and not related to any backend services.

Declared In

SlyceSearchTask.h

  request

The SlyceSearchRequest represented by this task.

@property (nonatomic, readonly, strong) SlyceSearchRequest *request

Declared In

SlyceSearchTask.h

  response

The SlyceSearchResponse represented by this task.

@property (nullable, nonatomic, readonly, strong) SlyceSearchResponse *response

Discussion

An empty SlyceSearchResponse object will be created when this task is started. As information related to the task, such as tags and results, become available it will be appended to the task.

Declared In

SlyceSearchTask.h

  errors

An array of errors that have occurred. Supports KVO.

@property (nonatomic, readonly) NSArray<NSError*> *errors

Declared In

SlyceSearchTask.h

– cancel

Cancels this task

- (void)cancel

Declared In

SlyceSearchTask.h

– addListener:NS_SWIFT_NAME:

Adds the instance of SlyceSearchTaskListener as a listener on this instance of SlyceSearchTask.

- (void)addListener:(id<SlyceSearchTaskListener>)listener NS_SWIFT_NAME

Parameters

listener

The instance of the listener to be added.

Declared In

SlyceSearchTask.h

– removeListener:NS_SWIFT_NAME:

Removes the instance of SlyceSearchTaskListener as a listener on this instance of SlyceSearchTask.

- (void)removeListener:(id<SlyceSearchTaskListener>)listener NS_SWIFT_NAME

Parameters

listener

The instance of the listener to be removed.

Declared In

SlyceSearchTask.h

  )

The SlyceSearchTaskDelegate of this instance.

@property (nonatomic, weak, nullable) id<SlyceSearchTaskDelegate> delegate __deprecated_msg ( "SlyceSearchTaskDelegate functionality has been replaced by SlyceSearchTaskListener APIs and may be removed in a future release." )

Declared In

SlyceSearchTask.h