copyWithDurationMs
fun copyWithDurationMs(heading: InAppMessageTextInfo? = this.heading, body: InAppMessageTextInfo? = this.body, media: InAppMessageMediaInfo? = this.media, buttons: List<InAppMessageButtonInfo>? = this.buttons, buttonLayoutType: InAppMessageButtonLayoutType = this.buttonLayoutType, template: Banner.Template = this.template, backgroundColor: InAppMessageColor = this.backgroundColor, dismissButtonColor: InAppMessageColor = this.dismissButtonColor, borderRadius: Float = this.borderRadius, durationMs: Long = this.durationMs, placement: Banner.Placement = this.placement, actions: JsonMap? = this.actions): Banner(source)
Java-facing copy, taking the display duration in milliseconds.
Exposed to Java as copy(...). The Duration-based copy overloads that include the duration are name-mangled on the JVM and so unreachable from Java; this provides the equivalent using long milliseconds. duration remains the source of truth.
Java must pass every argument, as Kotlin default values are not available across the @JvmName boundary. Kotlin callers should use copy; this cannot be hidden from Kotlin, as @Deprecated(HIDDEN) marks the method ACC_SYNTHETIC and Java cannot reference a synthetic member, which would leave Java with no way to set the duration at all.