InAppMessagingFeatureConfigBuilder

@objc(SFInAppMessagingFeatureConfigBuilder)
public class InAppMessagingFeatureConfigBuilder : NSObject

InAppMessagingFeatureConfigBuilder class

  • Sets the notification authorization options used when requesting permission (e.g. for Push Primer).

    Default is [.alert, .sound, .badge] when not set.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setNotificationAuthorizationOptions(_ options: UNAuthorizationOptions) -> InAppMessagingFeatureConfigBuilder

    Parameters

    options

    The UNAuthorizationOptions value to request (e.g. .alert, .sound, .badge, .provisional).

    Return Value

    The InAppMessagingFeatureConfigBuilder instance for method chaining.

  • Sets the delegate that receives in-app message display and close events.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setEventDelegate(_ delegate: InAppMessageEventDelegate) -> InAppMessagingFeatureConfigBuilder

    Parameters

    delegate

    The object implementing InAppMessageEventDelegate that will receive message display lifecycle callbacks.

    Return Value

    The InAppMessagingFeatureConfigBuilder instance for method chaining.

  • Sets the delegate that handles URLs opened from in-app message button actions.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setURLHandlingDelegate(_ delegate: URLHandlingDelegate) -> InAppMessagingFeatureConfigBuilder

    Parameters

    delegate

    The object implementing URLHandlingDelegate that will handle in-app message button action links.

    Return Value

    The InAppMessagingFeatureConfigBuilder instance for method chaining.

  • Sets the font used when rendering in-app messages.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setInAppMessageFont(name: String) -> InAppMessagingFeatureConfigBuilder

    Parameters

    name

    The font name (e.g. from UIFont or system font name). Use nil or omit to use the system default.

    Return Value

    The InAppMessagingFeatureConfigBuilder instance for method chaining.

  • Builds an InAppMessagingFeatureConfig with the current builder values. Pass the result to the SDK config when initializing the In App Messaging feature.

    Declaration

    Swift

    @discardableResult
    @objc
    public func build() -> InAppMessagingFeatureConfig

    Return Value

    An InAppMessagingFeatureConfig instance with the current builder settings.