RSDVideoViewUIActionObject

public struct RSDVideoViewUIActionObject : RSDEmbeddedResourceUIAction, RSDVideoViewUIAction, Codable

RSDVideoViewUIActionObject implements an action that includes a pointer to a url that can display in a AVPlayerViewController. The url can either be fully qualified or optionally point to an embedded resource.

  • url

    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 show in a title bar or header.

    Declaration

    Swift

    public var title: 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 default bundle from the factory used to decode this object.

    Declaration

    Swift

    public var factoryBundle: Bundle?
  • The url is the resource name.

    Declaration

    Swift

    public var resourceName: String { get }
  • Returns nil. This value is ignored.

    Declaration

    Swift

    public var classType: String? { get }
  • 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.