create_for_bus
Description:
[
CCode ( cname =
"g_dbus_proxy_new_for_bus" , finish_name =
"g_dbus_proxy_new_for_bus_finish" ) ]
[
Version ( deprecated_since =
"vala-0.36" , replacement =
"DBusProxy.for_bus" ) ]
public static async DBusProxy create_for_bus (
BusType bus_type,
DBusProxyFlags flags,
DBusInterfaceInfo? info,
string name,
string object_path,
string interface_name,
Cancellable? cancellable =
null)
throws IOError
Warning: create_for_bus is deprecated since vala-0.36. Use DBusProxy.for_bus.
Like @new but takes a BusType
instead of a DBusConnection.
DBusProxy is used in this example.
Parameters:
bus_type |
A BusType.
|
flags |
Flags used when constructing the proxy.
|
info |
A DBusInterfaceInfo specifying the minimal interface that proxy
conforms to or null.
|
name |
A bus name (well-known or unique).
|
object_path |
An object path.
|
interface_name |
A D-Bus interface name.
|
cancellable |
A Cancellable or null.
|
callback |
Callback function to invoke when the proxy is ready.
|
user_data |
User data to pass to callback .
|