Struct
WebKitUserAgent
unstable since: 2.56
Description [src]
struct WebKitUserAgent {
/* No available fields */
}
Helper to construct user agent strings.
WebKitUserAgent is a boxed type that allows configuring the user agent type
(such as mobile or desktop) and optional application name and version details,
and generating a standard user agent string for use in WebKitSettings or WebKitWebsitePolicies.
Construct it using webkit_user_agent_new() or webkit_user_agent_new_with_application_details(),
then call webkit_user_agent_to_string(), and pass the result to webkit_settings_set_user_agent().
Available since: 2.56
Constructors
webkit_user_agent_new
Creates a new WebKitUserAgent initialized with the given type.
unstable since: 2.56
webkit_user_agent_new_with_application_details
Creates a new WebKitUserAgent with the given type, application_name, and application_version.
unstable since: 2.56
Instance methods
webkit_user_agent_get_application_version
Get the application version of user_agent.
unstable since: 2.56
webkit_user_agent_get_user_agent_type
Get the WebKitUserAgentType of user_agent.
unstable since: 2.56
webkit_user_agent_ref
Atomically increments the reference count of user_agent by one.
unstable since: 2.56
webkit_user_agent_to_string
Construct and return the user agent string for user_agent.
unstable since: 2.56
webkit_user_agent_unref
Atomically decrements the reference count of user_agent by one.
unstable since: 2.56