register


Description:

[ Version ( deprecated = true , deprecated_since = "1.24" ) ]
public bool register (Cancellable? cancellable = null) throws Error

Warning: register is deprecated since 1.24.

Registers the SecretAgentOld with the NetworkManager secret manager, indicating to NetworkManager that the agent is able to provide and save secrets for connections on behalf of its user.

Note:

Parameters:

this

a SecretAgentOld

cancellable

a Cancellable, or null

Returns:

true if registration was successful, false on error.

Since 1.24, this can no longer fail unless the cancellable gets cancelled. Contrary to register_async, this also does not wait for the registration to succeed. You cannot synchronously (without iterating the caller's GMainContext) wait for registration.

Since 1.24, registration is idempotent. It has the same effect as setting nm_secret_agent_old_auto_register to true or enable.