Contents

canProvideDocumentSource()

Returns whether the receiver can provide content source.

Declaration

func canProvideDocumentSource() -> Bool

Return Value

true if the receiver can provide source for the document content (for example, HTML source), false otherwise.

Discussion

The receiver should return true only if it makes sense for someone to view the source of the document in question. For example, a web view returns false if the content is an image, was produced by a plug-in, or contains text content already.

See Also

Getting document source