UAMessageCenter
@interface UAMessageCenter : UAComponent
The UAMessageCenter class provides a default implementation of a message center, as well as a high-level interface for its configuration and display.
-
Display delegate that can be used to provide a custom message center implementation.
Declaration
Objective-C
@property (nonatomic, weak) id<UAMessageCenterDisplayDelegate> displayDelegate;
Swift
weak var displayDelegate: UAMessageCenterDisplayDelegate! { get set }
-
The default display if a
displayDelegate
is not set.Declaration
Objective-C
@property (nonatomic, readonly) UADefaultMessageCenterUI *defaultUI;
Swift
var defaultUI: UADefaultMessageCenterUI! { get }
-
The list of messages.
Declaration
Objective-C
@property (nonatomic, readonly) UAInboxMessageList *messageList;
Swift
var messageList: UAInboxMessageList! { get }
-
Display the message center.
Declaration
Objective-C
- (void)display:(BOOL)animated;
Swift
func display(_ animated: Bool)
Parameters
animated
Whether the transition should be animated.
-
Display the message center with animation.
Declaration
Objective-C
- (void)display;
Swift
func display()
-
Display the given message.
@pararm messageID The messageID of the message.
Declaration
Objective-C
- (void)displayMessageForID:(NSString *)messageID animated:(BOOL)animated;
Swift
func displayMessage(forID messageID: String!, animated: Bool)
Parameters
animated
Whether the transition should be animated.
-
Display the given message with animation.
@pararm messageID The messageID of the message.
Declaration
Objective-C
- (void)displayMessageForID:(NSString *)messageID;
Swift
func displayMessage(forID messageID: String!)
-
Dismiss the message center.
Declaration
Objective-C
- (void)dismiss:(BOOL)animated;
Swift
func dismiss(_ animated: Bool)
Parameters
animated
Whether the transition should be animated.
-
Dismiss the message center with animation.
Declaration
Objective-C
- (void)dismiss;
Swift
func dismiss()