//Granify Android SDK/com.granifyinc.granifysdk.campaigns.inlineView/GranifyInlineViewLabel
GranifyInlineViewLabel
@Serializable
data class GranifyInlineViewLabel(val name: String, val productId: String? = null, val sku: String? = null)
A label for a GranifyInlineView that identifies its location on the page.
Since
1.7.0
Parameters
androidJvm
| name | The name of this label location. If there are multiple GranifyInlineViewLabel on the page, then this parameter should be unique per-product. (e.g. You can have the name "aboveProduct" in different labels as long as they each have different productId and/or sku fields) |
| productId | The ID of the associated product. Required when theGranifyInlineView is located on a product page, or on any page where it is associated with a specific product (e.g. inlines associated with a cart product). |
| sku | Field that is required when the associated GranifyInlineView is associated with a specific productId/sku combination. The productId must be specified if the sku is set. |
Throws
| IllegalArgumentException | If the sku is provided without a product ID. |
Constructors
| GranifyInlineViewLabel | [androidJvm] constructor(name: String, productId: String? = null, sku: String? = null) |
Types
| Name | Summary |
|---|---|
| GranifyInlineViewLabelDeserializer | [androidJvm] class GranifyInlineViewLabelDeserializer : Deserializer<GranifyInlineViewLabel> |
Properties
| Name | Summary |
|---|---|
| name | [androidJvm] val name: String |
| productId | [androidJvm] val productId: String? = null |
| sku | [androidJvm] val sku: String? = null |
Functions
| Name | Summary |
|---|---|
| equals | [androidJvm] open operator override fun equals(other: Any?): Boolean |