Protocol

WebDocumentRepresentation

This protocol is adopted by document representation classes that handle specific MIME types. You can implement your own document view classes and document representation classes to render data for specific MIME types, and register those classes using the WebFrame registerClass(_:representationClass:forMIMEType:) method.

Symbols

Setting the data source

func setDataSource(WebDataSource!)
Required.

Sets the receiver’s data source.

Loading content

func receivedData(Data!, with: WebDataSource!)
Required.

Invoked when a data source has received some data.

func receivedError(Error!, with: WebDataSource!)
Required.

Invoked when a data source receives an error loading its content.

func finishedLoading(with: WebDataSource!)
Required.

Invoked when a data source finishes loading its content.

Getting document source

func canProvideDocumentSource()
Required.

Returns whether the receiver can provide content source.

func documentSource()
Required.

Returns the receiver’s source as text.

Getting the document title

func title()
Required.

Returns the receiver’s document title.

Relationships

Inherits From