UAMessageCenterListViewController

@interface UAMessageCenterListViewController
    : UIViewController <UITableViewDelegate, UITableViewDataSource,
                        UIScrollViewDelegate, UISplitViewControllerDelegate>

Default implementation of a list-style Message Center UI.

  • The style to apply to the list.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UAMessageCenterStyle *style;

    Swift

    var style: UAMessageCenterStyle! { get set }
  • An optional predicate for filtering messages.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSPredicate *filter;
  • The view controller displaying the currently displayed message

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        UIViewController<UAMessageCenterMessageViewProtocol> *messageViewController;
  • Block that will be invoked when a message view controller receives a closeWindow message from the webView.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) void (^)(BOOL) closeBlock;

    Swift

    var closeBlock: ((Int32) -> Void)! { get set }
  • Displays a new message, either by updating the currently displayed message or by navigating to a new one.

    Declaration

    Objective-C

    - (void)displayMessageForID:(NSString *)messageID;

    Swift

    func displayMessage(forID messageID: Any!)

    Parameters

    messageID

    The messageID of the message to load.

  • Displays a new message, either by updating the currently displayed message or by navigating to a new one.

    Declaration

    Objective-C

    - (void)displayMessageForID:(NSString *)messageID
                        onError:(void (^)(void))completion;

    Swift

    func displayMessage(forID messageID: Any!, onError completion: (() -> Void)!)

    Parameters

    messageID

    The messageID of the message to load.

    completion

    Completion block called when there is an error displaying the message

  • Initializes a Message Center List view controller.

    Declaration

    Objective-C

    - (instancetype)initWithNibName:(NSString *)nibNameOrNil
                             bundle:(NSBundle *)nibBundleOrNil
                splitViewController:(UISplitViewController *)splitViewController;

    Swift

    init!(nibName nibNameOrNil: Any!, bundle nibBundleOrNil: Any!, splitViewController: Any!)

    Parameters

    nibNameOrNil

    The name of the nib file to associate with the view controller.

    nibBundleOrNil

    The bundle in which to search for the nib file.

    splitViewController

    The UISplitViewController managing the inbox and message views.

    Return Value

    The initialized Message Center List view controller.