Service.getSync

Get a #SecretService proxy for the Secret Service. If such a proxy object already exists, then the same proxy is returned.

If @flags contains any flags of which parts of the secret service to ensure are initialized, then those will be initialized before returning.

This method may block indefinitely and should not be used in user interface threads.

class Service
static
getSync
(
SecretServiceFlags flags
,
Cancellable cancellable
)

Parameters

flags SecretServiceFlags

flags for which service functionality to ensure is initialized

cancellable Cancellable

optional cancellation object

Return Value

Type: Service

a new reference to a #SecretService proxy, which should be released with g_object_unref().

Throws

GException on failure.

Meta