FRDIntent
public class FRDIntent: NSObject
An intent is an abstract description of an operation to be performed. It can be used with startController to launch a view controller.
-
The url for identify the destination view controller.
Declaration
Swift
public var url: URL?
-
The destination view controller’s class type.
Declaration
Swift
public var receiveClass: FRDIntentReceivable.Type?
-
The way of how to display the new view controller.
Declaration
Swift
public var controllerDisplay: FRDControllerDisplay?
-
The extra data to inform the destination view controller. Read-only.
Declaration
Swift
public fileprivate(set) var extras = [String: AnyObject]()
-
Initializer with the destination view controller’s class type.
Declaration
Swift
public init(clazz: FRDIntentReceivable.Type)
Parameters
clazz
The destination view controller’s class type.
-
Initializer with the url for identify the destination view controller.
Declaration
Swift
public init(url: URL)
Parameters
url
The url for identify the destination view controller.
-
Initializer with the url for identify the destination view controller.
Declaration
Swift
public convenience init(pathIdentifier: String)
Parameters
pathIdentifier
The path identifier for identify the destination view controller. The format is url path.
-
Put the extra data into the intent.
Declaration
Swift
public func putExtra(name: String, data: AnyObject)
Parameters
name
key
data
value
-
Put the extras datas into the intent.
Declaration
Swift
public func putExtras(datas: [String: AnyObject])
Parameters
data
the data dictionary.