BVInViewEvent Class Reference
Inherits from | NSObject |
---|---|
Conforms to | BVAnalyticEvent |
Declared in | BVInViewEvent.h |
– initWithProductId:withBrand:withProductType:withContainerId:withAdditionalParams:
Data used to track when a view is visible to the user.
- (nonnull id)initWithProductId:(nonnull NSString *)productId withBrand:(nullable NSString *)brand withProductType:(BVPixelProductType)bvProduct withContainerId:(nonnull NSString *)containerId withAdditionalParams:(nullable NSDictionary *)params
Parameters
productId |
Required - Product external ID |
---|---|
brand |
Optional - The brand name of the product. |
bvProduct |
Required - The product with API key being used. |
containerId |
Required - The name of the container on screen, e.g. ReviewsView |
params |
Optional - Additional key/value pairs to be send along the request. Most cases this will be nil. |
Return Value
the event object that can be used to submit to Bazaarvoice via the BVPixel API.
Declared In
BVInViewEvent.h
productId
The product Id for product presented.
@property (nonnull, nonatomic, strong, readonly) NSString *productId
Declared In
BVInViewEvent.h
brand
Brand name for the product being viewed.
@property (nullable, nonatomic, strong, readonly) NSString *brand
Declared In
BVInViewEvent.h
bvProduct
The BV API used to request the product, as defined in the BVPixelProductType.
@property (nonatomic, assign, readonly) BVPixelProductType bvProduct
Declared In
BVInViewEvent.h
containerId
The name of the container on screen, e.g. ReviewsView
@property (nullable, nonatomic, strong, readonly) NSString *containerId
Declared In
BVInViewEvent.h