UAMessageCenterMessageViewDelegate

Objective-C

@protocol UAMessageCenterMessageViewDelegate <NSObject>

Swift

protocol UAMessageCenterMessageViewDelegate : NSObjectProtocol

Protocol for delegating the handling of message view loading and native bridge events.

  • Called when the message load begins.

    Declaration

    Objective-C

    - (void)messageLoadStarted:(nonnull NSString *)messageID;

    Swift

    func messageLoadStarted(_ messageID: String)

    Parameters

    messageID

    The messageID.

  • Called when the message load has succeeded.

    Declaration

    Objective-C

    - (void)messageLoadSucceeded:(nonnull NSString *)messageID;

    Swift

    func messageLoadSucceeded(_ messageID: String)

    Parameters

    messageID

    The messageID.

  • Called when the message load has failed.

    Declaration

    Objective-C

    - (void)messageLoadFailed:(nonnull NSString *)messageID
                        error:(nonnull NSError *)error;

    Swift

    func messageLoadFailed(_ messageID: String, error: Error)

    Parameters

    messageID

    The messageID.

    error

    The error.

  • Called when the message is closed from within the native bridge.

    Declaration

    Objective-C

    - (void)messageClosed:(nonnull NSString *)messageID;

    Swift

    func messageClosed(_ messageID: String)

    Parameters

    messageID

    The messageID.