Skip to content

Commit cc78960

Browse files
fixes
1 parent b5befac commit cc78960

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

docs/ai/embedded-messaging.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ yourContainer.addView(embeddedView)
101101

102102
**Custom styling:**
103103

104-
> **Agent note:** `IterableEmbeddedViewConfig` is a data class with NO default values on its parameters. You must provide ALL 10 fields — use `null` for any you don't want to customize.
104+
> **Agent note:** `IterableEmbeddedViewConfig` is a data class where every parameter has a default (`null` for colors/borders, `CENTER_CROP` for `imageScaleType`). Use named arguments and only specify the fields you want to override — omitted fields keep their defaults. The class is annotated `@JvmOverloads` so Java callers can also omit trailing fields.
105105
106106
```kotlin
107107
val config = IterableEmbeddedViewConfig(
@@ -110,14 +110,13 @@ val config = IterableEmbeddedViewConfig(
110110
borderWidth = 1,
111111
borderCornerRadius = 8f,
112112
primaryBtnBackgroundColor = Color.BLUE,
113-
primaryBtnTextColor = Color.WHITE,
114-
secondaryBtnBackgroundColor = null,
115-
secondaryBtnTextColor = null,
116-
titleTextColor = null,
117-
bodyTextColor = null
113+
primaryBtnTextColor = Color.WHITE
114+
// Other fields (secondary button colors, title/body text colors, imageScaleType) keep their defaults
118115
)
119116
```
120117

118+
Available fields: `backgroundColor`, `borderColor`, `borderWidth`, `borderCornerRadius`, `primaryBtnBackgroundColor`, `primaryBtnTextColor`, `secondaryBtnBackgroundColor`, `secondaryBtnTextColor`, `titleTextColor`, `bodyTextColor`, `imageScaleType` (applies to `CARD` and `BANNER` views).
119+
121120
> **Agent note:** OOTB views handle both `handleEmbeddedClick` (navigation) and `trackEmbeddedClick` (analytics) automatically on button and default action taps.
122121
123122
---

docs/ai/integration-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class YourApplication : Application() {
173173
.setCustomActionHandler(AppCustomActionHandler()) // See deep-linking.md (only if using custom actions)
174174
.setUrlHandler(AppUrlHandler(this)) // See deep-linking.md
175175
.setAllowedProtocols(arrayOf("yourscheme")) // 🟠 Only if using custom deep link schemes
176-
.setAuthHandler(AppAuthHandler { generateJwtForEmail(getFreshEmail()) }) // 🔴 Only if JWT required — see jwt-authentication.md
176+
.setAuthHandler(AppAuthHandler { generateJwtForEmail(getFreshEmail()) }) // 🔴 JWT onlygetFreshEmail() MUST read from source of truth on every call, never a cached var (see Trap #3 / jwt-authentication.md)
177177
.setEnableEmbeddedMessaging(true) // 🟠 Only if using embedded messages
178178
.build()
179179

0 commit comments

Comments
 (0)