GranifyInlineViewLabel
@objc(GFYGranifyInlineViewLabel)
public class GranifyInlineViewLabel : NSObject
A label that defines identifying information for a GranifyInlineView
Since
Since 6.0.0-
Unique string identifier for the associated
GranifyInlineViewDeclaration
Swift
public let name: String -
The ID of the associated product. Required when the associated
GranifyInlineViewis unique to a specific product. For example, anyGranifyInlineViewon a product page must have the productId included in the label.Declaration
Swift
public let productId: String? -
The SKU of the associated product. Required only when the associated
GranifyInlineViewis unique to a specific productID/SKU combination.Declaration
Swift
public let sku: String? -
Initialization function
Declaration
Swift
@objc public init(name: String, productId: String? = nil, sku: String? = nil)Parameters
nameRequired field. Identifies the associated
GranifyInlineView. This field must be unique per location on a parent view.productIdThe ID of the associated product. Required when the
GranifyInlineViewis located on a product page, or on any page where it is associated with a specific product (ie. inlines associated with a cart product).skuField that is required when the associated
GranifyInlineViewis associated with a specific productID/SKU combination. -
Returns a Boolean value that indicates whether the receiver and a given object are equal.
Declaration
Swift
override public func isEqual(_ object: Any?) -> BoolParameters
objectThe object to be compared to the receiver. May be nil, in which case this method returns false.
-
Evaluates if a [String: String] hash matches the label
Declaration
Swift
public func matchesHash(hash: [String : String]) -> BoolParameters
hashThe hash to evaluate
GranifyInlineViewLabel Class Reference