UAMessageCenterDisplayDelegate

Objective-C

@protocol UAMessageCenterDisplayDelegate <NSObject>

Swift

protocol UAMessageCenterDisplayDelegate : NSObjectProtocol

Delegate protocol for receiving callbacks related to message center.

  • Called when a message is requested to be displayed.

    Declaration

    Objective-C

    - (void)displayMessageCenterForMessageID:(NSString *)messageID
                                    animated:(BOOL)animated;

    Swift

    func displayMessageCenter(forMessageID messageID: String!, animated: Bool)

    Parameters

    messageID

    The message ID.

    animated

    Whether the transition should be animated.

  • Called when the message center is requested to be displayed.

    Declaration

    Objective-C

    - (void)displayMessageCenterAnimated:(BOOL)animated;

    Swift

    func displayMessageCenter(animated: Bool)

    Parameters

    animated

    Whether the transition should be animated.

  • Called when the message center is requested to be dismissed.

    Declaration

    Objective-C

    - (void)dismissMessageCenterAnimated:(BOOL)animated;

    Swift

    func dismissMessageCenter(animated: Bool)

    Parameters

    animated

    Whether the transition should be animated.