Type aliases


GranifyInlineViewCollapser

Declaration:

public typealias GranifyInlineViewCollapser = (GranifyInlineView) -> Void 

A handler that will collapse a GranifyInlineView so that it is no longer visible.

This handler will be invoked if the GranifyInlineView is no longer needed to display.

Refer to the Implement inline campaigns topic to learn more. 

GranifyInlineViewExpander

Declaration:

A handler that will expand a GranifyInlineView to a passed in height. This handler will be invoked before an inline campaign is displayed, expanding the GranifyInlineView to the passed in height. Since: 6.0.0

public typealias GranifyInlineViewExpander = (GranifyInlineView, CGFloat) -> Void  

CurrentProductCarterCallback

Declaration:

public typealias CurrentProductCarterCallback = () -> Void 

A block to add the current product to the cart. The block will be invoked when a shopper has requested to add the current product to cart. It will only be invoked from the main thread on a page of type PageType.product.

When invoked, the current product should be added to the cart or some indication should occur to notify the shopper of any selections that must first be made before the item can be added to the cart.

The intention here is that the “Add To Cart” button in the Granify widget should exactly simulate the user adding the current product to their cart , given the selections currently made. Since 2.0.0

Granify.trackCart(...) must be called with the updated cart after the current product is added. 
Provide feedback button