InAppMessagingPreviewHelpers
public enum InAppMessagingPreviewHelpers
Undocumented
-
cardMessage(campaignName:title:body:textColor:backgroundColor:portraitImage:landscapeImage:primaryButtonText:primaryButtonTextColor:primaryButtonBackgroundColor:primaryActionURL:secondaryButtonText:secondaryButtonTextColor:secondaryButtonBackgroundColor:secondaryActionURL:appData:)
Undocumented
Declaration
Swift
public static func cardMessage(campaignName: String = "Card message campaign", title: String = "Title for modal message", body: String? = "Body for modal message", textColor: UIColor = UIColor.label, backgroundColor: UIColor = UIColor.black, portraitImage: UIImage = UIImage(systemName: "rectangle")!, landscapeImage: UIImage? = UIImage(systemName: "square"), primaryButtonText: String = "Click me!", primaryButtonTextColor: UIColor = UIColor.systemBlue, primaryButtonBackgroundColor: UIColor = UIColor.systemGray, primaryActionURL: URL? = nil, secondaryButtonText: String? = "Dismiss", secondaryButtonTextColor: UIColor? = UIColor.secondaryLabel, secondaryButtonBackgroundColor: UIColor? = UIColor.systemYellow, secondaryActionURL: URL? = nil, appData: [String: String]? = nil) -> InAppMessagingCardDisplay
-
modalMessage(campaignName:title:body:textColor:backgroundColor:image:buttonText:buttonTextColor:buttonBackgroundColor:actionURL:appData:)
Undocumented
Declaration
Swift
public static func modalMessage(campaignName: String = "Modal message campaign", title: String = "Title for modal message", body: String? = "Body for modal message", textColor: UIColor = UIColor.black, backgroundColor: UIColor = UIColor.white, image: UIImage? = UIImage(systemName: "rectangle"), buttonText: String? = "Click me!", buttonTextColor: UIColor? = UIColor.systemBlue, buttonBackgroundColor: UIColor? = UIColor .white, actionURL: URL? = nil, appData: [String: String]? = nil) -> InAppMessagingModalDisplay
-
Undocumented
Declaration
Swift
public static func bannerMessage(campaignName: String = "Banner message campaign", title: String = "Title for banner message", body: String? = "Body for banner message", textColor: UIColor = UIColor.black, backgroundColor: UIColor = UIColor.white, image: UIImage? = UIImage(systemName: "square"), actionURL: URL? = nil, appData: [String: String]? = nil) -> InAppMessagingBannerDisplay
-
Undocumented
Declaration
Swift
public static func imageOnlyMessage(campaignName: String = "Image-only message campaign", image: UIImage, actionURL: URL? = nil, appData: [String: String]? = nil) -> InAppMessagingImageOnlyDisplay
-
Undocumented
Declaration
Swift
public class Delegate : NSObject, InAppMessagingDisplayDelegate