create_full


Description:

public static async ClientProxy create_full (string desktop_id, AccuracyLevel accuracy_level, ClientProxyCreateFlags flags, Cancellable? cancellable) throws Error

A utility function to create a ClientProxy without having to deal with a Manager.

By setting the AUTO_DELETE flag you can ensure that the client will be deleted again from the geoclue service when it is destroyed. This flag should be used unless you are doing explicit resource management.

See create_full_sync() for the synchronous, blocking version of this function.

Parameters:

desktop_id

The desktop file id (the basename of the desktop file).

accuracy_level

The requested accuracy level as AccuracyLevel.

flags

ClientProxyCreateFlags to modify the creation.

cancellable

A Cancellable or null.

callback

A TaskReadyCallback to call when the results are ready.

user_data

User data to pass to callback.