-
@Stable() public final class PaywallConfigCodable structs matching SPEC-002 Firestore PaywallConfig schema (Android).
SPEC-070-A J.10 + J.22 — Compose-consumed paywall DTOs are annotated
@Immutable(or@Stablewhere iterables stay typed and a few raw JSON passthrough fields remain). Hot-path iterables (sections,features,plans) useImmutableList<T>so a parent re-emit with structurally-equal data short-circuits PaywallActivity recompositions.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final Stringnameprivate final PaywallLayoutlayoutprivate final ImmutableList<PaywallSection>sectionsprivate final PaywallDismissdismissprivate final PaywallBackgroundbackgroundprivate final AnimationConfiganimationprivate final Map<String, Map<String, String>>localizationsprivate final Stringdefault_localeprivate final HapticConfighapticprivate final ParticleEffectparticle_effectprivate final Stringvideo_background_urlprivate final Stringplacementprivate final Stringplacement_labelprivate final Integerversionprivate final PostPurchaseConfigpost_purchaseprivate final Objectaudience_rulesprivate final ImmutableList<PaywallPlan>plansprivate final PaywallCTActa
-
Constructor Summary
Constructors Constructor Description PaywallConfig(String id, String name, PaywallLayout layout, ImmutableList<PaywallSection> sections, PaywallDismiss dismiss, PaywallBackground background, AnimationConfig animation, Map<String, Map<String, String>> localizations, String default_locale, HapticConfig haptic, ParticleEffect particle_effect, String video_background_url, String placement, String placement_label, Integer version, PostPurchaseConfig post_purchase, Object audience_rules, ImmutableList<PaywallPlan> plans, PaywallCTA cta)
-
Method Summary
Modifier and Type Method Description final StringgetId()final StringgetName()final PaywallLayoutgetLayout()final ImmutableList<PaywallSection>getSections()final PaywallDismissgetDismiss()final PaywallBackgroundgetBackground()final AnimationConfiggetAnimation()final Map<String, Map<String, String>>getLocalizations()final StringgetDefault_locale()final HapticConfiggetHaptic()final ParticleEffectgetParticle_effect()final StringgetVideo_background_url()final StringgetPlacement()final StringgetPlacement_label()final IntegergetVersion()final PostPurchaseConfiggetPost_purchase()final ObjectgetAudience_rules()Raw audience targeting rules (list or object). final ImmutableList<PaywallPlan>getPlans()final PaywallCTAgetCta()-
-
Constructor Detail
-
PaywallConfig
PaywallConfig(String id, String name, PaywallLayout layout, ImmutableList<PaywallSection> sections, PaywallDismiss dismiss, PaywallBackground background, AnimationConfig animation, Map<String, Map<String, String>> localizations, String default_locale, HapticConfig haptic, ParticleEffect particle_effect, String video_background_url, String placement, String placement_label, Integer version, PostPurchaseConfig post_purchase, Object audience_rules, ImmutableList<PaywallPlan> plans, PaywallCTA cta)
-
-
Method Detail
-
getLayout
final PaywallLayout getLayout()
-
getSections
final ImmutableList<PaywallSection> getSections()
-
getDismiss
final PaywallDismiss getDismiss()
-
getBackground
final PaywallBackground getBackground()
-
getAnimation
final AnimationConfig getAnimation()
-
getDefault_locale
final String getDefault_locale()
-
getHaptic
final HapticConfig getHaptic()
-
getParticle_effect
final ParticleEffect getParticle_effect()
-
getVideo_background_url
final String getVideo_background_url()
-
getPlacement
final String getPlacement()
-
getPlacement_label
final String getPlacement_label()
-
getVersion
final Integer getVersion()
-
getPost_purchase
final PostPurchaseConfig getPost_purchase()
-
getAudience_rules
final Object getAudience_rules()
Raw audience targeting rules (list or object). Mirrors iOS
audience_rules: AnyCodable?.
-
getPlans
final ImmutableList<PaywallPlan> getPlans()
-
getCta
final PaywallCTA getCta()
-
-
-
-