PreferenceCenterViewControllerFactory
@objc(UAPreferenceCenterViewControllerFactory)
public class PreferenceCenterViewControllerFactory : NSObject
View factories for Preference Center view controllers
-
Makes a view controller for the given Preference Center ID.
Declaration
Swift
@objc @MainActor public class func makeViewController( preferenceCenterID: String, dismissAction: (() -> Void)? = nil )-> UIViewController
Parameters
preferenceCenterID
The preferenceCenterID.
dismissAction
Optional action to dismiss the view controller.
Return Value
A view controller.
-
Makes a view controller for the given Preference Center ID and theme.
Declaration
Swift
@objc @MainActor public class func makeViewController( preferenceCenterID: String, preferenceCenterThemePlist: String ) throws -> UIViewController
Parameters
preferenceCenterID
The preferenceCenterID.
preferenceCenterThemePlist
The theme plist.
Return Value
A view controller.
-
Makes a view controller for the given Preference Center ID and theme.
Declaration
Swift
@MainActor public class func makeViewController( preferenceCenterID: String, preferenceCenterTheme: PreferenceCenterTheme? = nil, dismissAction: (() -> Void)? = nil ) -> UIViewController
Parameters
preferenceCenterID
The preferenceCenterID.
preferenceCenterTheme
The theme.
dismissAction
Optional action to dismiss the view controller.
Return Value
A view controller.
-
Makes a view controller for the given view and theme.
Declaration
Swift
@MainActor public class func makeViewController( view: PreferenceCenterView, preferenceCenterTheme: PreferenceCenterTheme?, dismissAction: (() -> Void)? = nil ) -> UIViewController
Parameters
preferenceCenterID
The Preference Center view.
preferenceCenterTheme
The theme.
dismissAction
Optional action to dismiss the view controller.
Return Value
A view controller.