InAppMessagingFeature
Class
This class is a Swift Interface for SFInAppMessagingFeature
Requests the InAppMessaging Feature Module when it’s operational and safe to use. The provided callback will be invoked with the InAppMessaging Feature Module when it’s ready. All InAppMessaging feature module-related API calls should be made within this function.
Sets the delegate responsible for receiving in-app message display lifecycle and user interactions. Use this method to provide an InAppMessageEventDelegate implementation to observe events such as message display, dismissal, or user interaction. Passing nil removes the currently assigned delegate.
Displays a specific in-app message by its identifier. Use this method to manually trigger the presentation of an in-app message that corresponds to the provided messageId .
Sets the custom font used for rendering in-app messages. Use this method to configure a global font by name that will be applied to in-app message content. Passing nil resets the font to the default.
Returns: true if the font was successfully set; otherwise false .
Sets the delegate responsible for handling URL interactions triggered by in-app messages. Use this method to provide a custom URLHandlingDelegate implementation to control how URLs (e.g., deep links or external links) are processed when a user interacts with an in-app message button action.