Functions

  download_error_quark ()
  favicon_database_error_quark ()
  get_major_version ()
  get_micro_version ()
  get_minor_version ()
  javascript_error_quark ()
  network_error_quark ()
  plugin_error_quark ()
  policy_error_quark ()
  print_error_quark ()
  snapshot_error_quark ()
  uri_for_display (uri)
  user_content_filter_error_quark ()
  user_media_permission_is_for_audio_device (request)
  user_media_permission_is_for_video_device (request)
  user_message_error_quark ()

Details

WebKit2.download_error_quark()
Return type:int
WebKit2.favicon_database_error_quark()
Return type:int
WebKit2.get_major_version()
Returns:the major version number of the WebKit library
Return type:int

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 WebKit2.MAJOR_VERSION macro, which represents the major version of the WebKit headers you have included when compiling your code.

WebKit2.get_micro_version()
Returns:the micro version number of the WebKit library
Return type:int

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 WebKit2.MICRO_VERSION macro, which represents the micro version of the WebKit headers you have included when compiling your code.

WebKit2.get_minor_version()
Returns:the minor version number of the WebKit library
Return type:int

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 WebKit2.MINOR_VERSION macro, which represents the minor version of the WebKit headers you have included when compiling your code.

WebKit2.javascript_error_quark()
Return type:int
WebKit2.network_error_quark()
Return type:int
WebKit2.plugin_error_quark()
Return type:int
WebKit2.policy_error_quark()
Return type:int
WebKit2.print_error_quark()
Return type:int
WebKit2.snapshot_error_quark()
Return type:int
WebKit2.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:str or None

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.

WebKit2.user_content_filter_error_quark()
Return type:int
WebKit2.user_media_permission_is_for_audio_device(request)
Parameters:request (WebKit2.UserMediaPermissionRequest) – a WebKit2.UserMediaPermissionRequest
Returns:True if access to an audio device was requested.
Return type:bool

New in version 2.8.

WebKit2.user_media_permission_is_for_video_device(request)
Parameters:request (WebKit2.UserMediaPermissionRequest) – a WebKit2.UserMediaPermissionRequest
Returns:True if access to a video device was requested.
Return type:bool

New in version 2.8.

WebKit2.user_message_error_quark()
Return type:int