UAInAppMessageManager

Objective-C


@interface UAInAppMessageManager : NSObject

Swift

class InAppMessageManager : NSObject

Provides a control interface for creating, canceling and executing in-app message schedules.

  • In-app messaging delegate.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<UAInAppMessagingDelegate> _Nullable delegate;

    Swift

    weak var delegate: InAppMessagingDelegate? { get set }
  • Message display interval.

    Declaration

    Objective-C

    @property (nonatomic) NSTimeInterval displayInterval;

    Swift

    var displayInterval: TimeInterval { get set }
  • In-app messaging asset manager.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UAInAppMessageAssetManager *_Nonnull assetManager;

    Swift

    var assetManager: InAppMessageAssetManager { get }
  • Allows setting factory blocks that builds InAppMessageAdapters for each given display type.

    Declaration

    Objective-C

    - (void)setFactoryBlock:(nonnull id<UAInAppMessageAdapterProtocol> _Nonnull (^)(
                                UAInAppMessage *_Nonnull))factory
             forDisplayType:(UAInAppMessageDisplayType)displayType;

    Swift

    func setFactoryBlock(_ factory: @escaping (InAppMessage) -> InAppMessageAdapterProtocol, for displayType: InAppMessageDisplayType)

    Parameters

    displayType

    The display type.

    factory

    The adapter factory.

  • Notifies In-App messages that the display conditions should be reevaluated.

    This should only be called when state that was used to prevent a display with UAInAppMessagingDelegate changes.

    Declaration

    Objective-C

    - (void)notifyDisplayConditionsChanged;

    Swift

    func notifyDisplayConditionsChanged()