Antom, leading provider of tailored payment solutions

Customized scenario data

Overview

This feature allows users to view different data within the same widget, tailored to various scenarios.  For example, it can display different information based on the user's membership level, ensuring that each user sees the most relevant content for their specific status.

Android

Add input parameter extParams, which is a JSON string.
Example:
markup
<com.iap.ac.android.marketing.ui.PromoView
    android:id="@+id/promo"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:extParams="{&quot;key&quot;:&quot;value&quot;}" />
java
PromoView promoView = findViewById(R.id.promo);
promoView.setExtParams("{\"key\":\"value\"}");
kotlin
val promoView = findViewById<PromoView>(R.id.promo)
promoView.setExtParams("{\"key\":\"value\"}")

iOS

Add the extParams parameter to PromoViewConfig
Example:
objectivec
PromoViewConfig *config = PromoViewConfig.new;
config.positionId = "YOUR_POSITIONID";
config.extParams = @{
  "key":"value"
};
self.promoView = [[PromoView alloc] initWithConfig:config];
swift
let config = PromoViewConfig()
config.positionId = "YOUR_POSITIONID"
config.extParams = ["key":"value"]
let promoView = PromoView(config: config)

Flutter

Add input parameter extParams, which is a JSON string.
Example:
dart
Widget build(BuildContext context) {
    return Scaffold(
      body: SingleChildScrollView(
        child: Column(
          children: [
            RewardsPromoWidget(
                positionId: "YOUR_POSITIONID",
                extParams: "{\"key\":\"value\"}"),
            const Text("Im the view under the native"),
          ],
        ),
      ),
    );
  }

Web

Add input parameter data-ext-params, which is a JSON string.
Example:
markup
<body>
  ...
  <div class="marketing-spot" data-position-id="YOUR_POSITIONID" data-ext-params='{"key":"value"}'></div>
  ...
</body>

Mini Program

Add input parameter extParams, which is a JSON string.
Example:
markup
<view> ... your content</view>

<ac-widget-config acWidgetVersion="LATEST_VERSION"/>
<ac-widget className="alipayplus-promo-slot" dataPositionId='YOUR_POSITIONID' extParams='{"key":"value"}'/>

<view> ... your content</view>