Class CfnCampaign.CampaignInAppMessageProperty
Specifies the appearance of an in-app message, including the message type, the title and body text, text and background colors, and the configurations of buttons that appear in the message.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Pinpoint
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CampaignInAppMessageProperty : Object, CfnCampaign.ICampaignInAppMessageProperty
Syntax (vb)
Public Class CampaignInAppMessageProperty
Inherits Object
Implements CfnCampaign.ICampaignInAppMessageProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pinpoint;
var customConfig;
var campaignInAppMessageProperty = new CampaignInAppMessageProperty {
Content = new [] { new InAppMessageContentProperty {
BackgroundColor = "backgroundColor",
BodyConfig = new InAppMessageBodyConfigProperty {
Alignment = "alignment",
Body = "body",
TextColor = "textColor"
},
HeaderConfig = new InAppMessageHeaderConfigProperty {
Alignment = "alignment",
Header = "header",
TextColor = "textColor"
},
ImageUrl = "imageUrl",
PrimaryBtn = new InAppMessageButtonProperty {
Android = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
DefaultConfig = new DefaultButtonConfigurationProperty {
BackgroundColor = "backgroundColor",
BorderRadius = 123,
ButtonAction = "buttonAction",
Link = "link",
Text = "text",
TextColor = "textColor"
},
Ios = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
Web = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
}
},
SecondaryBtn = new InAppMessageButtonProperty {
Android = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
DefaultConfig = new DefaultButtonConfigurationProperty {
BackgroundColor = "backgroundColor",
BorderRadius = 123,
ButtonAction = "buttonAction",
Link = "link",
Text = "text",
TextColor = "textColor"
},
Ios = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
Web = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
}
}
} },
CustomConfig = customConfig,
Layout = "layout"
};
Synopsis
Constructors
CampaignInAppMessageProperty() |
Properties
Content | An array that contains configurtion information about the in-app message for the campaign, including title and body text, text colors, background colors, image URLs, and button configurations. |
CustomConfig | Custom data, in the form of key-value pairs, that is included in an in-app messaging payload. |
Layout | A string that describes how the in-app message will appear. You can specify one of the following:. |
Constructors
CampaignInAppMessageProperty()
public CampaignInAppMessageProperty()
Properties
Content
An array that contains configurtion information about the in-app message for the campaign, including title and body text, text colors, background colors, image URLs, and button configurations.
public object Content { get; set; }
Property Value
System.Object
Remarks
CustomConfig
Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
public object CustomConfig { get; set; }
Property Value
System.Object
Remarks
Layout
A string that describes how the in-app message will appear. You can specify one of the following:.
public string Layout { get; set; }
Property Value
System.String