UAInAppMessageSceneDelegate

@protocol UAInAppMessageSceneDelegate <NSObject>

Delegate protocol for receiving in-app scene related callbacks.

  • Allows the delegate to override the the choice of window scene for displaying the message.

    Declaration

    Objective-C

    - (nullable UIWindowScene *)sceneForMessage:(nonnull UAInAppMessage *)message
                                   defaultScene:
                                       (nullable UIWindowScene *)defaultScene;

    Swift

    optional func scene(for message: UAInAppMessage, defaultScene: UIWindowScene?) -> UIWindowScene?

    Parameters

    message

    The message.

    defaultScene

    The window scene that will be used if the delegate does not override, or nil if a default scene could not be found.

    Return Value

    A window scene if the delegate chooses to override the choice of scene, or nil otherwise.