copy

fun copy(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, duration: Duration = this.duration, placement: Banner.Placement = this.placement, actions: JsonMap? = this.actions): Banner(source)

Returns a copy of the Banner display content with the provided changes.

Java callers, which cannot express a Duration, get this as copy(...) with a long durationMs in place of duration — see copyWithDurationMs. Java sees the partial overloads that stop before the duration (copy() through copy(heading … borderRadius)), plus the all-argument long durationMs form; the overloads in between contain a Duration and are name-mangled on the JVM. To change placement or actions from Java, pass every argument.