BVRecommendationsLoader Class Reference

Inherits from NSObject
Declared in BVRecommendationsLoader.h

Overview

Loads product recommendations.

+ purgeRecommendationsCache

Purges the internal cache of the BVRecommendation Engine.
+ (void)purgeRecommendationsCache

Discussion

@availability 3.3.0 and later

Declared In

BVRecommendationsLoader.h

– loadRequest:completionHandler:errorHandler:

Load product recommendations based on data fed in from `request`.
- (void)loadRequest:(nullable BVRecommendationsRequest *)request completionHandler:(nullable recommendationsCompletionHandler)completionHandler errorHandler:(nullable recommendationsErrorHandler)errorHandler

Parameters

request

The request parameters to load

completionHandler

Completion handler which returns an array of BVRecommendedProduct product recommendations

errorHandler

Error handler which returns an NSError if the request has failed.

@availability 3.3.0 and later

Declared In

BVRecommendationsLoader.h