UNPKG

@iterable/react-native-sdk

Version:
36 lines (32 loc) 1.23 kB
"use strict"; import { IterableEdgeInsets } from "../../core/index.js"; import { IterableInAppContentType } from "../enums/index.js"; /** * Information about the display of an HTML in-app message. */ export class IterableHtmlInAppContent { /** The type of in-app content. */ type = IterableInAppContentType.html; /** The space around the in-app content. */ /** The raw HTML content of the in-app message. */ /** * Constructs an `IterableHtmlInAppContent` instance with the provided `edgeInsets` and `html`. * * @param edgeInsets The space around the in-app content. * @param html The raw HTML content of the in-app message. */ constructor(edgeInsets, html) { this.edgeInsets = edgeInsets; this.html = html; } /** * Creates a new `IterableHtmlInAppContent` instance from a raw dictionary representation. * * @param dict The raw dictionary representation of the HTML in-app content. * @returns A new `IterableHtmlInAppContent` instance with the values from the provided dictionary. */ static fromDict(dict) { return new IterableHtmlInAppContent(IterableEdgeInsets.fromDict(dict.edgeInsets), dict.html); } } //# sourceMappingURL=IterableHtmlInAppContent.js.map