Intent

public class Intent

An intent is an abstract description of an operation to be performed. It can be used with startController to launch a view controller.

  • url

    The url for identify the destination view controller.

    Declaration

    Swift

    public var url: NSURL?
  • The destination view controller’s class type.

    Declaration

    Swift

    public var receiveClass: IntentReceivable.Type?
  • The way of how to display the new view controller.

    Declaration

    Swift

    public var controllerDisplay: ControllerDisplay = PushDisplay()
  • The extra data to inform the destination view controller. Read-only.

    Declaration

    Swift

    public private(set) var extras = [String: Any]()
  • Initializer with the destination view controller’s class type.

    Declaration

    Swift

    public init(clazz: IntentReceivable.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: NSURL)

    Parameters

    url

    The url for identify the destination view controller.

  • Put the extra data into the intent.

    Declaration

    Swift

    public func putExtra(name name: String, data: Any)