Adds a new connection using the given details (if any) as a template, automatically filling in missing settings with the capabilities of the given device and specific object.
The new connection is then asynchronously activated as with activate_connection_async. Cannot be used for VPN connections at this time.
Note that the callback is invoked when NetworkManager has started activating the new connection, not when it finishes. You can used the returned ActiveConnection object (in particular, state) to track the activation to its completion.
this |
a Client |
device |
the Device |
specific_object |
the object path of a connection-type-specific object this activation should use. This parameter is currently ignored for wired
and mobile broadband connections, and the value of null should be used (ie, no specific object).
For Wi-Fi or WiMAX connections, pass the object path of a AccessPoint or
WimaxNsp owned by |
cancellable |
a Cancellable, or null |
callback |
callback to be called when the activation has started |
partial |
an Connection to add; the connection may be partially filled (or even
null) and will be completed by NetworkManager using the given |
user_data |
caller-specific data passed to |