UserContentFilterStore.saveFromFile

Asynchronously save a content filter from the contents of a file, which must be native to the platform, as checked by g_file_is_native(). See webkit_user_content_filter_store_save() for more details.

When the operation is finished, @callback will be invoked, which then can use webkit_user_content_filter_store_save_finish() to obtain the resulting filter.

class UserContentFilterStore
void
saveFromFile
(
string identifier
,
FileIF file
,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

identifier string

a string used to identify the saved filter

file FileIF

a #GFile containing the rule set in JSON format

cancellable Cancellable

a #GCancellable or %NULL to ignore

callback GAsyncReadyCallback

a #GAsyncReadyCallback to call when saving is completed

userData void*

the data to pass to the callback function

Meta

Since

2.24