DeliveryRule

data class DeliveryRule(val mode: String, val targeting: Targeting? = null)

One delivery-steering rule (mirrors the TS DeliveryRule). A rule without targeting matches every client (the manifest's default); a targeted rule matches only its device type.

mode keeps the raw manifest string for the same reason Targeting.deviceType does: an unrecognised value must stay distinguishable from an absent one, so resolveDeliveryMode can report it and fall back to sgai.

Constructors

Link copied to clipboard
constructor(mode: String, targeting: Targeting? = null)

Properties

Link copied to clipboard

The delivery mode as written in the manifest; see DeliveryMode.

Link copied to clipboard

The devices the rule applies to; null makes it the default rule.