Package-level declarations

Types

Link copied to clipboard
data class CarouselConfig(val showControls: Boolean, val shouldAutoScroll: Boolean, val autoScrollInterval: Double)
Link copied to clipboard
data class ClickableProduct(val sku: String, val clickRegions: List<ClickRegion>)

A product, within a `Block` that can be clicked on.

Link copied to clipboard
data class ClickRegion(val x: Double, val y: Double, val width: Double, val height: Double, val value: Event?)

Click regions of a product inside a block. These values are percentages of the block's width and height.

Link copied to clipboard

The set of errors that can be thrown by the SDK

Link copied to clipboard
data class DigitalFlyer(val subscriptionKey: String, val client: String, val banner: String = client, val environment: Environment = Environment.LIVE, bannerId: String? = null)

The entry-point for interacting with the SDK.

Link copied to clipboard
Link copied to clipboard

The API environments supported by the SDK

Link copied to clipboard
data class FilterOptions(val text: String? = null, val saving: Int? = null, val category: List<String>? = null, val subcategory: List<String>? = null)
Link copied to clipboard
data class Filters(val categories: List<Filters.Category>, val discounts: List<Int>)
Link copied to clipboard
data class Grid(val rows: Int, val columns: Int, val aspectRatio: Double)

The grid of items on a Publication.Page.

Link copied to clipboard
data class GridSpan(val spannedRows: Int, val spannedColumns: Int)

Represents a span of rows and columns in a grid.

Link copied to clipboard

The languages supported by the SDK

Link copied to clipboard
interface Logger

A logger that can be injected to log messages from the DigitalFlyer.

Link copied to clipboard
Link copied to clipboard
data class Publication(val attributes: Publication.Attributes, val pages: List<Publication.Page>)

The primary Publication object It contains the Publication.Attributes and an array of Publication.Page objects, which contain the page content.

Link copied to clipboard
data class VideoPlayback(val autoplayDelay: Double = 2.0, val shouldAutoplay: Boolean = true, val shouldLoop: Boolean = true, val isAudioEnabled: Boolean = true, val showControls: Boolean = true)
Link copied to clipboard
data class VideoRegion(val x: Double, val y: Double, val width: Double, val height: Double, val url: String)

Video regions of a product inside a block These values are percentages of the block's width and height

Properties

Link copied to clipboard