Functions¶
|
|
|
|
Details¶
- WebKit.download_error_quark()¶
- Returns:
download error domain.
- Return type:
Gets the quark for the domain of download errors.
- WebKit.favicon_database_error_quark()¶
- Returns:
favicon database error domain.
- Return type:
Gets the quark for the domain of favicon database errors.
- WebKit.get_major_version()¶
- Returns:
the major version number of the WebKit library
- Return type:
Returns the major version number of the WebKit library.
(e.g. in WebKit version 1.8.3 this is 1.)
This function is in the library, so it represents the WebKit library your code is running against. Contrast with the
WebKit.MAJOR_VERSION
macro, which represents the major version of the WebKit headers you have included when compiling your code.
- WebKit.get_micro_version()¶
- Returns:
the micro version number of the WebKit library
- Return type:
Returns the micro version number of the WebKit library.
(e.g. in WebKit version 1.8.3 this is 3.)
This function is in the library, so it represents the WebKit library your code is running against. Contrast with the
WebKit.MICRO_VERSION
macro, which represents the micro version of the WebKit headers you have included when compiling your code.
- WebKit.get_minor_version()¶
- Returns:
the minor version number of the WebKit library
- Return type:
Returns the minor version number of the WebKit library.
(e.g. in WebKit version 1.8.3 this is 8.)
This function is in the library, so it represents the WebKit library your code is running against. Contrast with the
WebKit.MINOR_VERSION
macro, which represents the minor version of the WebKit headers you have included when compiling your code.
- WebKit.javascript_error_quark()¶
- Returns:
JavaScript error domain.
- Return type:
Gets the quark for the domain of JavaScript errors.
- WebKit.media_error_quark()¶
- Returns:
media error domin.
- Return type:
Gets the quark for the domain of media errors.
New in version 2.40.
- WebKit.media_key_system_permission_get_name(request)¶
- Parameters:
request (
WebKit.MediaKeySystemPermissionRequest
) – aWebKit.MediaKeySystemPermissionRequest
- Returns:
the key system name for request
- Return type:
Get the key system for which access permission is being requested.
New in version 2.32.
- WebKit.network_error_quark()¶
- Returns:
network error domain.
- Return type:
Gets the quark for the domain of networking errors.
- WebKit.policy_error_quark()¶
- Returns:
policy error domain.
- Return type:
Gets the quark for the domain of policy errors.
- WebKit.print_error_quark()¶
- Returns:
print error domain.
- Return type:
Gets the quark for the domain of printing errors.
- WebKit.snapshot_error_quark()¶
- Returns:
snapshot error domain.
- Return type:
Gets the quark for the domain of page snapshot errors.
- WebKit.uri_for_display(uri)¶
- Parameters:
uri (
str
) – the URI to be converted- Returns:
uri suitable for display, or
None
in case of error.- Return type:
Use this function to format a URI for display.
The URIs used internally by WebKit may contain percent-encoded characters or Punycode, which are not generally suitable to display to users. This function provides protection against IDN homograph attacks, so in some cases the host part of the returned URI may be in Punycode if the safety check fails.
New in version 2.24.
- WebKit.user_content_filter_error_quark()¶
- Returns:
user content filter error domain.
- Return type:
Gets the quark for the domain of user content filter errors.
- WebKit.user_media_permission_is_for_audio_device(request)¶
- Parameters:
request (
WebKit.UserMediaPermissionRequest
) – aWebKit.UserMediaPermissionRequest
- Returns:
True
if access to an audio device was requested.- Return type:
Check whether the permission request is for an audio device.
New in version 2.8.
- WebKit.user_media_permission_is_for_display_device(request)¶
- Parameters:
request (
WebKit.UserMediaPermissionRequest
) – aWebKit.UserMediaPermissionRequest
- Returns:
True
if access to a display device was requested.- Return type:
Check whether the permission request is for a display device.
New in version 2.34.
- WebKit.user_media_permission_is_for_video_device(request)¶
- Parameters:
request (
WebKit.UserMediaPermissionRequest
) – aWebKit.UserMediaPermissionRequest
- Returns:
True
if access to a video device was requested.- Return type:
Check whether the permission request is for a video device.
New in version 2.8.