RichFeatures
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
A data class representing rich notification features in the Salesforce Marketing Cloud Push Models Module. This class implements Parcelable for Android serialization.
Package: com.salesforce.marketingcloud.pushmodels.rich
Module: Push Models Module v1.0.2
Version: 11.0.0
Platform: androidJvm
1data class RichFeatures(
2 val largeIcon: String? = null,
3 val smallIcon: String? = null,
4 val viewTemplate: Template? = null,
5 val buttons: RichButtonTemplate? = null
6) : Parcelable1constructor(
2 largeIcon: String? = null,
3 smallIcon: String? = null,
4 viewTemplate: Template? = null,
5 buttons: RichButtonTemplate? = null
6)Creates an instance of RichFeatures with optional parameters for customizing rich push notification features.
1val largeIcon: String?Optional URL or identifier for the large icon to be displayed in the notification.
1val smallIcon: String?Optional URL or identifier for the small icon to be displayed in the notification.
1val viewTemplate: Template?Optional template configuration for the notification view layout. References com.salesforce.marketingcloud.pushmodels.data.Template.
1val buttons: RichButtonTemplate?Optional configuration for interactive buttons in the notification. References com.salesforce.marketingcloud.pushmodels.rich.buttons.RichButtonTemplate.
1fun toJson(): String?Serializes the RichFeatures instance to a JSON string representation.
Returns: A JSON string representation of the object, or null if serialization fails.
1object CompanionCompanion object for the RichFeatures class, likely containing factory methods or constants for creating instances.