RSDWebViewUIActionObject
public struct RSDWebViewUIActionObject : RSDEmbeddedResourceUIAction, RSDWebViewUIAction
RSDWebViewUIActionObject
implements an action that includes a pointer to a url that can display in a
webview. The url can either be fully qualified or optionally point to an embedded resource. The resource
bundle is assumed to be the main bundle if the bundleIdentifier
property is nil
.
-
The url to load in the webview. If this is not a fully qualified url string, then it is assumed to refer to an embedded resource.
Declaration
Swift
public let url: String
-
The title to display on the button associated with this action.
Declaration
Swift
public var buttonTitle: String?
-
The name of the icon to display on the button associated with this action.
Declaration
Swift
public var iconName: String?
-
The bundle identifier for the resource bundle that contains the image.
Declaration
Swift
public var bundleIdentifier: String?
-
The
url
is the resource name.Declaration
Swift
public var resourceName: String
-
Returns nil. This value is ignored.
Declaration
Swift
public var classType: String?
-
Default initializer for a button with text.
Declaration
Swift
public init(url: String, buttonTitle: String, bundleIdentifier: String? = nil)
Parameters
url
The url to load in the webview.
buttonTitle
The title to display on the button associated with this action.
bundleIdentifier
The bundle identifier for the url if not fully qualified. Default =
nil
. -
Default initializer for a button with an image.
Declaration
Swift
public init(url: String, iconName: String, bundleIdentifier: String? = nil)
Parameters
url
The url to load in the webview.
iconName
The name of the image to display on the button.
bundleIdentifier
The bundle identifier for the url if not fully qualified. This is also used as the bundle for the image. Default =
nil
.