GeolocationPermissionRequest


Object Hierarchy:

WebKit.GeolocationPermissionRequest WebKit.GeolocationPermissionRequest WebKit.GeolocationPermissionRequest GLib.Object GLib.Object GLib.Object->WebKit.GeolocationPermissionRequest WebKit.PermissionRequest WebKit.PermissionRequest WebKit.PermissionRequest->WebKit.GeolocationPermissionRequest

Description:

[ CCode ( type_id = "webkit_geolocation_permission_request_get_type ()" ) ]
public class GeolocationPermissionRequest : Object, PermissionRequest

A permission request for sharing the user's location.

WebKitGeolocationPermissionRequest represents a request for permission to decide whether WebKit should provide the user's location to a website when requested through the Geolocation API.

When a WebKitGeolocationPermissionRequest is not handled by the user, it is denied by default.

When embedding web views in your application, you *must* configure an application identifier to allow web content to use geolocation services. The identifier *must* match the name of the `.desktop` file which describes the application, sans the suffix.

If your application uses Application (or any subclass like Application), WebKit will automatically use the identifier returned by get_application_id. This is the recommended approach for enabling geolocation in applications.

If an identifier cannot be obtained through Application, the value returned by get_prgname will be used instead as a fallback. For programs which cannot use Application, calling set_prgname early during initialization is needed when the name of the executable on disk does not match the name of a valid `.desktop` file.


Namespace: WebKit
Package: webkit2gtk-4.0

Content:

Creation methods:

Inherited Members:

All known members inherited from interface WebKit.PermissionRequest