pub unsafe trait WebDocumentRepresentation: NSObjectProtocol {
// Provided methods
unsafe fn setDataSource(&self, data_source: Option<&WebDataSource>)
where Self: Sized + Message { ... }
unsafe fn receivedData_withDataSource(
&self,
data: Option<&NSData>,
data_source: Option<&WebDataSource>,
)
where Self: Sized + Message { ... }
unsafe fn receivedError_withDataSource(
&self,
error: Option<&NSError>,
data_source: Option<&WebDataSource>,
)
where Self: Sized + Message { ... }
unsafe fn finishedLoadingWithDataSource(
&self,
data_source: Option<&WebDataSource>,
)
where Self: Sized + Message { ... }
unsafe fn canProvideDocumentSource(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn documentSource(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn title(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
}
WebDocument
only.Expand description
Protocol implemented by the document representation of a data source.
See also Appleβs documentation
Provided Methods§
Sourceunsafe fn setDataSource(&self, data_source: Option<&WebDataSource>)
πDeprecatedAvailable on crate feature WebDataSource
only.
unsafe fn setDataSource(&self, data_source: Option<&WebDataSource>)
WebDataSource
only.Called soon after the document representation is created.
Parameter dataSource
: The data source that is set.
Sourceunsafe fn receivedData_withDataSource(
&self,
data: Option<&NSData>,
data_source: Option<&WebDataSource>,
)
πDeprecatedAvailable on crate feature WebDataSource
only.
unsafe fn receivedData_withDataSource( &self, data: Option<&NSData>, data_source: Option<&WebDataSource>, )
WebDataSource
only.Called when the data source has received data.
Parameter data
: The data that the data source has received.
Parameter dataSource
: The data source that has received data.
Sourceunsafe fn receivedError_withDataSource(
&self,
error: Option<&NSError>,
data_source: Option<&WebDataSource>,
)
πDeprecatedAvailable on crate feature WebDataSource
only.
unsafe fn receivedError_withDataSource( &self, error: Option<&NSError>, data_source: Option<&WebDataSource>, )
WebDataSource
only.Called when the data source has received an error.
Parameter error
: The error that the data source has received.
Parameter dataSource
: The data source that has received the error.
Sourceunsafe fn finishedLoadingWithDataSource(
&self,
data_source: Option<&WebDataSource>,
)
πDeprecatedAvailable on crate feature WebDataSource
only.
unsafe fn finishedLoadingWithDataSource( &self, data_source: Option<&WebDataSource>, )
WebDataSource
only.Called when the data source has finished loading.
Parameter dataSource
: The datasource that has finished loading.
Sourceunsafe fn canProvideDocumentSource(&self) -> bool
πDeprecated
unsafe fn canProvideDocumentSource(&self) -> bool
Returns: Returns true if the representation can provide document source.
Sourceunsafe fn documentSource(&self) -> Option<Retained<NSString>>
πDeprecated
unsafe fn documentSource(&self) -> Option<Retained<NSString>>
Returns: Returns the textual source representation of the document. For HTML documents this is the original HTML source.