MessageCenterViewControllerFactory
@objc(UAMessageCenterViewController)
public class MessageCenterViewControllerFactory : NSObject
View controller for Message Center view
-
Makes a message view controller with the given theme.
Declaration
Swift
@MainActor public class func make( theme: MessageCenterTheme? = nil, predicate: MessageCenterPredicate? = nil, controller: MessageCenterController, dismissAction: (() -> Void)? = nil ) -> UIViewController
Parameters
theme
The message center theme.
predicate
The message center predicate.
controller
The Message Center controller
dismissAction
Optional action to dismiss the view controller.
Return Value
A view controller.
-
Makes a message view controller with the given theme.
Declaration
Swift
@objc @MainActor public class func make( themePlist: String?, controller: MessageCenterController, dismissAction: (() -> Void)? = nil ) throws -> UIViewController
Parameters
themePlist
A path to a theme plist
controller
The Message Center controller
dismissAction
Optional action to dismiss the view controller.
Return Value
A view controller.
-
Makes a message view controller with the given theme.
Declaration
Swift
@objc @MainActor public class func make( themePlist: String?, predicate: MessageCenterPredicate?, controller: MessageCenterController, dismissAction: (() -> Void)? = nil ) throws -> UIViewController
Parameters
themePlist
A path to a theme plist
predicate
The message center predicate
controller
The Message Center controller
dismissAction
Optional action to dismiss the view controller.
Return Value
A view controller.