UIViewController
Undocumented
-
Launch a view controller from source view controller with an intent. @see FRDControllerManager#startController(intent: FRDIntent)
Declaration
Swift
func startController(intent: FRDIntent)
Parameters
intent
The intent for launch a new view controller.
-
Launch a view controller from source view controller without creating an intent. @see FRDControllerManager#startController(intent: FRDIntent)
Declaration
Swift
func startController(pathIdentifier: String, extras: [String: AnyObject])
Parameters
pathIdentifier
The pathIdentifier for initializing the intent.
extras
The datas for initializing the intent.
-
Launch a view controller for which you would like a result when it finished. When this view controller exits, your onControllerResult() method will be called with the given requestCode. @see FRDControllerManager#startControllerForResult(source: UIViewController, intent: FRDIntent, requestCode: Int)
Declaration
Swift
func startControllerForResult(intent: FRDIntent, requestCode: Int)
Parameters
intent
The intent for start new view controller.
requestCode
this code will be returned in onControllerResult() when the view controller exits.
-
Launch a view controller for which you would like a result when it finished without creating an intent. When this view controller exits, your onControllerResult() method will be called with the given requestCode. @see FRDControllerManager#startControllerForResult(source: UIViewController, intent: FRDIntent, requestCode: Int)
Declaration
Swift
func startControllerForResult(pathIdentifier: String, extras: [String: AnyObject], requestCode: Int)
Parameters
pathIdentifier
The pathIdentifier for initializing the intent.
extras
The datas for initializing the intent.
requestCode
this code will be returned in onControllerResult() when the view controller exits.
-
The FRDReceivable Controller can use this method to setup default information from intent’s extras.
Declaration
Swift
func setup(extras: [String: AnyObject])
Parameters
extras
The datas of intent received.