@girs/geoclue-2.0 2.0.0-3.2.5 → 2.0.0-3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/geoclue-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Geoclue-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.5.
8
+ GJS TypeScript type definitions for Geoclue-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  GeoClue is a D-Bus geoinformation service. The goal of the Geoclue project is to make creating location-aware applications as simple as possible.
11
11
 
package/geoclue-2.0.d.cts CHANGED
@@ -135,6 +135,30 @@ export module Client {
135
135
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
136
136
  */
137
137
  time_threshold?: number | null
138
+ /**
139
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DesktopId">"DesktopId"</link>.
140
+ *
141
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
142
+ */
143
+ desktopId?: string | null
144
+ /**
145
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
146
+ *
147
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
148
+ */
149
+ distanceThreshold?: number | null
150
+ /**
151
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.RequestedAccuracyLevel">"RequestedAccuracyLevel"</link>.
152
+ *
153
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
154
+ */
155
+ requestedAccuracyLevel?: number | null
156
+ /**
157
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
158
+ *
159
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
160
+ */
161
+ timeThreshold?: number | null
138
162
  }
139
163
 
140
164
  }
@@ -155,12 +179,24 @@ export interface Client {
155
179
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
156
180
  */
157
181
  desktop_id: string | null
182
+ /**
183
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DesktopId">"DesktopId"</link>.
184
+ *
185
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
186
+ */
187
+ desktopId: string | null
158
188
  /**
159
189
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
160
190
  *
161
191
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
162
192
  */
163
193
  distance_threshold: number
194
+ /**
195
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
196
+ *
197
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
198
+ */
199
+ distanceThreshold: number
164
200
  /**
165
201
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.Location">"Location"</link>.
166
202
  *
@@ -173,12 +209,24 @@ export interface Client {
173
209
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
174
210
  */
175
211
  requested_accuracy_level: number
212
+ /**
213
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.RequestedAccuracyLevel">"RequestedAccuracyLevel"</link>.
214
+ *
215
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
216
+ */
217
+ requestedAccuracyLevel: number
176
218
  /**
177
219
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
178
220
  *
179
221
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
180
222
  */
181
223
  time_threshold: number
224
+ /**
225
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
226
+ *
227
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
228
+ */
229
+ timeThreshold: number
182
230
 
183
231
  // Owm methods of Geoclue-2.0.Geoclue.Client
184
232
 
@@ -249,13 +297,13 @@ export interface Client {
249
297
  * @param arg_old Argument to pass with the signal.
250
298
  * @param arg_new Argument to pass with the signal.
251
299
  */
252
- emit_location_updated(arg_old: string | null, arg_new: string | null): void
300
+ emit_location_updated(arg_old: string, arg_new: string): void
253
301
 
254
302
  // Own virtual methods of Geoclue-2.0.Geoclue.Client
255
303
 
256
304
  vfunc_handle_start(invocation: Gio.DBusMethodInvocation): boolean
257
305
  vfunc_handle_stop(invocation: Gio.DBusMethodInvocation): boolean
258
- vfunc_location_updated(arg_old: string | null, arg_new: string | null): void
306
+ vfunc_location_updated(arg_old: string, arg_new: string): void
259
307
 
260
308
  // Own signals of Geoclue-2.0.Geoclue.Client
261
309
 
@@ -551,6 +599,18 @@ export module Manager {
551
599
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
552
600
  */
553
601
  in_use?: boolean | null
602
+ /**
603
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link>.
604
+ *
605
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
606
+ */
607
+ availableAccuracyLevel?: number | null
608
+ /**
609
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
610
+ *
611
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
612
+ */
613
+ inUse?: boolean | null
554
614
  }
555
615
 
556
616
  }
@@ -565,12 +625,24 @@ export interface Manager {
565
625
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
566
626
  */
567
627
  available_accuracy_level: number
628
+ /**
629
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link>.
630
+ *
631
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
632
+ */
633
+ availableAccuracyLevel: number
568
634
  /**
569
635
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
570
636
  *
571
637
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
572
638
  */
573
639
  in_use: boolean
640
+ /**
641
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
642
+ *
643
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
644
+ */
645
+ inUse: boolean
574
646
 
575
647
  // Owm methods of Geoclue-2.0.Geoclue.Manager
576
648
 
@@ -584,7 +656,7 @@ export interface Manager {
584
656
  * @param cancellable A #GCancellable or %NULL.
585
657
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
586
658
  */
587
- call_add_agent(arg_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
659
+ call_add_agent(arg_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
588
660
  /**
589
661
  * Finishes an operation started with gclue_manager_call_add_agent().
590
662
  * @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_add_agent().
@@ -599,7 +671,7 @@ export interface Manager {
599
671
  * @param cancellable A #GCancellable or %NULL.
600
672
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
601
673
  */
602
- call_add_agent_sync(arg_id: string | null, cancellable: Gio.Cancellable | null): boolean
674
+ call_add_agent_sync(arg_id: string, cancellable: Gio.Cancellable | null): boolean
603
675
  /**
604
676
  * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method on `proxy`.
605
677
  * When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
@@ -615,7 +687,7 @@ export interface Manager {
615
687
  * @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_create_client().
616
688
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
617
689
  */
618
- call_create_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string | null ]
690
+ call_create_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string ]
619
691
  /**
620
692
  * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
621
693
  *
@@ -623,7 +695,7 @@ export interface Manager {
623
695
  * @param cancellable A #GCancellable or %NULL.
624
696
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
625
697
  */
626
- call_create_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string | null ]
698
+ call_create_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string ]
627
699
  /**
628
700
  * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on `proxy`.
629
701
  * When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
@@ -634,7 +706,7 @@ export interface Manager {
634
706
  * @param cancellable A #GCancellable or %NULL.
635
707
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
636
708
  */
637
- call_delete_client(arg_client: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
709
+ call_delete_client(arg_client: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
638
710
  /**
639
711
  * Finishes an operation started with gclue_manager_call_delete_client().
640
712
  * @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_delete_client().
@@ -649,7 +721,7 @@ export interface Manager {
649
721
  * @param cancellable A #GCancellable or %NULL.
650
722
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
651
723
  */
652
- call_delete_client_sync(arg_client: string | null, cancellable: Gio.Cancellable | null): boolean
724
+ call_delete_client_sync(arg_client: string, cancellable: Gio.Cancellable | null): boolean
653
725
  /**
654
726
  * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method on `proxy`.
655
727
  * When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
@@ -665,7 +737,7 @@ export interface Manager {
665
737
  * @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_get_client().
666
738
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
667
739
  */
668
- call_get_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string | null ]
740
+ call_get_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string ]
669
741
  /**
670
742
  * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
671
743
  *
@@ -673,7 +745,7 @@ export interface Manager {
673
745
  * @param cancellable A #GCancellable or %NULL.
674
746
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
675
747
  */
676
- call_get_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string | null ]
748
+ call_get_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string ]
677
749
  /**
678
750
  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
679
751
  *
@@ -688,7 +760,7 @@ export interface Manager {
688
760
  * @param invocation A #GDBusMethodInvocation.
689
761
  * @param client Parameter to return.
690
762
  */
691
- complete_create_client(invocation: Gio.DBusMethodInvocation, client: string | null): void
763
+ complete_create_client(invocation: Gio.DBusMethodInvocation, client: string): void
692
764
  /**
693
765
  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
694
766
  *
@@ -703,13 +775,13 @@ export interface Manager {
703
775
  * @param invocation A #GDBusMethodInvocation.
704
776
  * @param client Parameter to return.
705
777
  */
706
- complete_get_client(invocation: Gio.DBusMethodInvocation, client: string | null): void
778
+ complete_get_client(invocation: Gio.DBusMethodInvocation, client: string): void
707
779
 
708
780
  // Own virtual methods of Geoclue-2.0.Geoclue.Manager
709
781
 
710
- vfunc_handle_add_agent(invocation: Gio.DBusMethodInvocation, arg_id: string | null): boolean
782
+ vfunc_handle_add_agent(invocation: Gio.DBusMethodInvocation, arg_id: string): boolean
711
783
  vfunc_handle_create_client(invocation: Gio.DBusMethodInvocation): boolean
712
- vfunc_handle_delete_client(invocation: Gio.DBusMethodInvocation, arg_client: string | null): boolean
784
+ vfunc_handle_delete_client(invocation: Gio.DBusMethodInvocation, arg_client: string): boolean
713
785
  vfunc_handle_get_client(invocation: Gio.DBusMethodInvocation): boolean
714
786
 
715
787
  // Own signals of Geoclue-2.0.Geoclue.Manager
@@ -897,7 +969,7 @@ export class ClientProxy extends Gio.DBusProxy {
897
969
  * @param cancellable A #GCancellable or %NULL.
898
970
  * @returns The constructed proxy object or %NULL if @error is set.
899
971
  */
900
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): ClientProxy
972
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): ClientProxy
901
973
 
902
974
  // Overloads of new_for_bus_sync
903
975
 
@@ -915,7 +987,7 @@ export class ClientProxy extends Gio.DBusProxy {
915
987
  * @param cancellable A #GCancellable or %NULL.
916
988
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
917
989
  */
918
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
990
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
919
991
  /**
920
992
  * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Client.top_of_page">org.freedesktop.GeoClue2.Client</link>. See g_dbus_proxy_new_sync() for more details.
921
993
  *
@@ -930,7 +1002,7 @@ export class ClientProxy extends Gio.DBusProxy {
930
1002
  * @param cancellable A #GCancellable or %NULL.
931
1003
  * @returns The constructed proxy object or %NULL if @error is set.
932
1004
  */
933
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): ClientProxy
1005
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): ClientProxy
934
1006
 
935
1007
  // Overloads of new_sync
936
1008
 
@@ -967,7 +1039,7 @@ export class ClientProxy extends Gio.DBusProxy {
967
1039
  * @param cancellable A #GCancellable or %NULL.
968
1040
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
969
1041
  */
970
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1042
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
971
1043
  _init(config?: ClientProxy.ConstructorProperties): void
972
1044
  /**
973
1045
  * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Client.top_of_page">org.freedesktop.GeoClue2.Client</link>. See g_dbus_proxy_new() for more details.
@@ -983,7 +1055,7 @@ export class ClientProxy extends Gio.DBusProxy {
983
1055
  * @param cancellable A #GCancellable or %NULL.
984
1056
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
985
1057
  */
986
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1058
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
987
1059
 
988
1060
  // Overloads of new
989
1061
 
@@ -1024,7 +1096,7 @@ export class ClientProxy extends Gio.DBusProxy {
1024
1096
  * @param cancellable A #GCancellable or %NULL.
1025
1097
  * @param callback Callback function to invoke when the proxy is ready.
1026
1098
  */
1027
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1099
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1028
1100
  /**
1029
1101
  * Like gclue_client_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
1030
1102
  *
@@ -1039,7 +1111,7 @@ export class ClientProxy extends Gio.DBusProxy {
1039
1111
  * @param cancellable A #GCancellable or %NULL.
1040
1112
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1041
1113
  */
1042
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1114
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1043
1115
 
1044
1116
  // Overloads of new_for_bus
1045
1117
 
@@ -1056,7 +1128,7 @@ export class ClientProxy extends Gio.DBusProxy {
1056
1128
  * @param cancellable A #GCancellable or %NULL.
1057
1129
  * @param callback Callback function to invoke when the proxy is ready.
1058
1130
  */
1059
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1131
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1060
1132
  /**
1061
1133
  * A utility function to create a #GClueClientProxy without having to deal with
1062
1134
  * a #GClueManager. See also gclue_client_proxy_create_full() which improves
@@ -1072,7 +1144,7 @@ export class ClientProxy extends Gio.DBusProxy {
1072
1144
  * @param cancellable A #GCancellable or %NULL.
1073
1145
  * @param callback A #GAsyncReadyCallback to call when the results are ready.
1074
1146
  */
1075
- static create(desktop_id: string | null, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1147
+ static create(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1076
1148
  /**
1077
1149
  * Finishes an operation started with gclue_client_proxy_create().
1078
1150
  * @param result The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().
@@ -1096,7 +1168,7 @@ export class ClientProxy extends Gio.DBusProxy {
1096
1168
  * @param cancellable A #GCancellable or %NULL.
1097
1169
  * @param callback A #GAsyncReadyCallback to call when the results are ready.
1098
1170
  */
1099
- static create_full(desktop_id: string | null, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1171
+ static create_full(desktop_id: string, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1100
1172
  /**
1101
1173
  * Finishes an operation started with gclue_client_proxy_create_full().
1102
1174
  * @param result The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().
@@ -1116,7 +1188,7 @@ export class ClientProxy extends Gio.DBusProxy {
1116
1188
  * @param cancellable A #GCancellable or %NULL.
1117
1189
  * @returns The constructed proxy object or %NULL if @error is set.
1118
1190
  */
1119
- static create_full_sync(desktop_id: string | null, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null): ClientProxy
1191
+ static create_full_sync(desktop_id: string, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null): ClientProxy
1120
1192
  /**
1121
1193
  * The synchronous and blocking version of #gclue_client_proxy_create().
1122
1194
  * See also gclue_client_proxy_create_full_sync() which improves resource
@@ -1129,7 +1201,7 @@ export class ClientProxy extends Gio.DBusProxy {
1129
1201
  * @param cancellable A #GCancellable or %NULL.
1130
1202
  * @returns The constructed proxy object or %NULL if @error is set.
1131
1203
  */
1132
- static create_sync(desktop_id: string | null, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): ClientProxy
1204
+ static create_sync(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): ClientProxy
1133
1205
  }
1134
1206
 
1135
1207
  export module ClientSkeleton {
@@ -1333,7 +1405,7 @@ export class LocationProxy extends Gio.DBusProxy {
1333
1405
  * @param cancellable A #GCancellable or %NULL.
1334
1406
  * @returns The constructed proxy object or %NULL if @error is set.
1335
1407
  */
1336
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): LocationProxy
1408
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): LocationProxy
1337
1409
 
1338
1410
  // Overloads of new_for_bus_sync
1339
1411
 
@@ -1351,7 +1423,7 @@ export class LocationProxy extends Gio.DBusProxy {
1351
1423
  * @param cancellable A #GCancellable or %NULL.
1352
1424
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
1353
1425
  */
1354
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1426
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1355
1427
  /**
1356
1428
  * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link>. See g_dbus_proxy_new_sync() for more details.
1357
1429
  *
@@ -1366,7 +1438,7 @@ export class LocationProxy extends Gio.DBusProxy {
1366
1438
  * @param cancellable A #GCancellable or %NULL.
1367
1439
  * @returns The constructed proxy object or %NULL if @error is set.
1368
1440
  */
1369
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): LocationProxy
1441
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): LocationProxy
1370
1442
 
1371
1443
  // Overloads of new_sync
1372
1444
 
@@ -1403,7 +1475,7 @@ export class LocationProxy extends Gio.DBusProxy {
1403
1475
  * @param cancellable A #GCancellable or %NULL.
1404
1476
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
1405
1477
  */
1406
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1478
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1407
1479
  _init(config?: LocationProxy.ConstructorProperties): void
1408
1480
  /**
1409
1481
  * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link>. See g_dbus_proxy_new() for more details.
@@ -1419,7 +1491,7 @@ export class LocationProxy extends Gio.DBusProxy {
1419
1491
  * @param cancellable A #GCancellable or %NULL.
1420
1492
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1421
1493
  */
1422
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
1494
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
1423
1495
 
1424
1496
  // Overloads of new
1425
1497
 
@@ -1460,7 +1532,7 @@ export class LocationProxy extends Gio.DBusProxy {
1460
1532
  * @param cancellable A #GCancellable or %NULL.
1461
1533
  * @param callback Callback function to invoke when the proxy is ready.
1462
1534
  */
1463
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1535
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1464
1536
  /**
1465
1537
  * Like gclue_location_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
1466
1538
  *
@@ -1475,7 +1547,7 @@ export class LocationProxy extends Gio.DBusProxy {
1475
1547
  * @param cancellable A #GCancellable or %NULL.
1476
1548
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1477
1549
  */
1478
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
1550
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
1479
1551
 
1480
1552
  // Overloads of new_for_bus
1481
1553
 
@@ -1492,7 +1564,7 @@ export class LocationProxy extends Gio.DBusProxy {
1492
1564
  * @param cancellable A #GCancellable or %NULL.
1493
1565
  * @param callback Callback function to invoke when the proxy is ready.
1494
1566
  */
1495
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1567
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1496
1568
  }
1497
1569
 
1498
1570
  export module LocationSkeleton {
@@ -1684,7 +1756,7 @@ export class ManagerProxy extends Gio.DBusProxy {
1684
1756
  * @param cancellable A #GCancellable or %NULL.
1685
1757
  * @returns The constructed proxy object or %NULL if @error is set.
1686
1758
  */
1687
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): ManagerProxy
1759
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): ManagerProxy
1688
1760
 
1689
1761
  // Overloads of new_for_bus_sync
1690
1762
 
@@ -1702,7 +1774,7 @@ export class ManagerProxy extends Gio.DBusProxy {
1702
1774
  * @param cancellable A #GCancellable or %NULL.
1703
1775
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
1704
1776
  */
1705
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1777
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1706
1778
  /**
1707
1779
  * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link>. See g_dbus_proxy_new_sync() for more details.
1708
1780
  *
@@ -1717,7 +1789,7 @@ export class ManagerProxy extends Gio.DBusProxy {
1717
1789
  * @param cancellable A #GCancellable or %NULL.
1718
1790
  * @returns The constructed proxy object or %NULL if @error is set.
1719
1791
  */
1720
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): ManagerProxy
1792
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): ManagerProxy
1721
1793
 
1722
1794
  // Overloads of new_sync
1723
1795
 
@@ -1754,7 +1826,7 @@ export class ManagerProxy extends Gio.DBusProxy {
1754
1826
  * @param cancellable A #GCancellable or %NULL.
1755
1827
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
1756
1828
  */
1757
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1829
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1758
1830
  _init(config?: ManagerProxy.ConstructorProperties): void
1759
1831
  /**
1760
1832
  * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link>. See g_dbus_proxy_new() for more details.
@@ -1770,7 +1842,7 @@ export class ManagerProxy extends Gio.DBusProxy {
1770
1842
  * @param cancellable A #GCancellable or %NULL.
1771
1843
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1772
1844
  */
1773
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
1845
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
1774
1846
 
1775
1847
  // Overloads of new
1776
1848
 
@@ -1811,7 +1883,7 @@ export class ManagerProxy extends Gio.DBusProxy {
1811
1883
  * @param cancellable A #GCancellable or %NULL.
1812
1884
  * @param callback Callback function to invoke when the proxy is ready.
1813
1885
  */
1814
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1886
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1815
1887
  /**
1816
1888
  * Like gclue_manager_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
1817
1889
  *
@@ -1826,7 +1898,7 @@ export class ManagerProxy extends Gio.DBusProxy {
1826
1898
  * @param cancellable A #GCancellable or %NULL.
1827
1899
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1828
1900
  */
1829
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
1901
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
1830
1902
 
1831
1903
  // Overloads of new_for_bus
1832
1904
 
@@ -1843,7 +1915,7 @@ export class ManagerProxy extends Gio.DBusProxy {
1843
1915
  * @param cancellable A #GCancellable or %NULL.
1844
1916
  * @param callback Callback function to invoke when the proxy is ready.
1845
1917
  */
1846
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1918
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1847
1919
  }
1848
1920
 
1849
1921
  export module ManagerSkeleton {
@@ -1935,6 +2007,30 @@ export module Simple {
1935
2007
  * When set to 0 (default), it always emits the signal.
1936
2008
  */
1937
2009
  time_threshold?: number | null
2010
+ /**
2011
+ * The requested maximum accuracy level.
2012
+ */
2013
+ accuracyLevel?: AccuracyLevel | null
2014
+ /**
2015
+ * The Desktop ID of the application.
2016
+ */
2017
+ desktopId?: string | null
2018
+ /**
2019
+ * The current distance threshold in meters. This value is used by the
2020
+ * service when it gets new location info. If the distance moved is
2021
+ * below the threshold, it won't emit the LocationUpdated signal.
2022
+ *
2023
+ * When set to 0 (default), it always emits the signal.
2024
+ */
2025
+ distanceThreshold?: number | null
2026
+ /**
2027
+ * The current time threshold in seconds. This value is used by the
2028
+ * service when it gets new location info. If the time passed is
2029
+ * below the threshold, it won't emit the LocationUpdated signal.
2030
+ *
2031
+ * When set to 0 (default), it always emits the signal.
2032
+ */
2033
+ timeThreshold?: number | null
1938
2034
  }
1939
2035
 
1940
2036
  }
@@ -1947,6 +2043,10 @@ export interface Simple extends Gio.AsyncInitable {
1947
2043
  * The requested maximum accuracy level.
1948
2044
  */
1949
2045
  readonly accuracy_level: AccuracyLevel
2046
+ /**
2047
+ * The requested maximum accuracy level.
2048
+ */
2049
+ readonly accuracyLevel: AccuracyLevel
1950
2050
  /**
1951
2051
  * The client proxy. This is %NULL if `simple` is not using a client proxy
1952
2052
  * (i-e when inside the Flatpak sandbox).
@@ -1956,6 +2056,10 @@ export interface Simple extends Gio.AsyncInitable {
1956
2056
  * The Desktop ID of the application.
1957
2057
  */
1958
2058
  readonly desktop_id: string | null
2059
+ /**
2060
+ * The Desktop ID of the application.
2061
+ */
2062
+ readonly desktopId: string | null
1959
2063
  /**
1960
2064
  * The current distance threshold in meters. This value is used by the
1961
2065
  * service when it gets new location info. If the distance moved is
@@ -1964,6 +2068,14 @@ export interface Simple extends Gio.AsyncInitable {
1964
2068
  * When set to 0 (default), it always emits the signal.
1965
2069
  */
1966
2070
  readonly distance_threshold: number
2071
+ /**
2072
+ * The current distance threshold in meters. This value is used by the
2073
+ * service when it gets new location info. If the distance moved is
2074
+ * below the threshold, it won't emit the LocationUpdated signal.
2075
+ *
2076
+ * When set to 0 (default), it always emits the signal.
2077
+ */
2078
+ readonly distanceThreshold: number
1967
2079
  /**
1968
2080
  * The current location.
1969
2081
  */
@@ -1976,6 +2088,14 @@ export interface Simple extends Gio.AsyncInitable {
1976
2088
  * When set to 0 (default), it always emits the signal.
1977
2089
  */
1978
2090
  readonly time_threshold: number
2091
+ /**
2092
+ * The current time threshold in seconds. This value is used by the
2093
+ * service when it gets new location info. If the time passed is
2094
+ * below the threshold, it won't emit the LocationUpdated signal.
2095
+ *
2096
+ * When set to 0 (default), it always emits the signal.
2097
+ */
2098
+ readonly timeThreshold: number
1979
2099
 
1980
2100
  // Own fields of Geoclue-2.0.Geoclue.Simple
1981
2101
 
@@ -2046,7 +2166,7 @@ export class Simple extends GObject.Object {
2046
2166
  * @param cancellable A #GCancellable or %NULL.
2047
2167
  * @returns The new #GClueSimple object or %NULL if @error is set.
2048
2168
  */
2049
- static new_sync(desktop_id: string | null, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): Simple
2169
+ static new_sync(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): Simple
2050
2170
  /**
2051
2171
  * Finishes an operation started with #gclue_simple_new_with_thresholds().
2052
2172
  * @constructor
@@ -2064,7 +2184,7 @@ export class Simple extends GObject.Object {
2064
2184
  * @param cancellable A #GCancellable or %NULL.
2065
2185
  * @returns The new #GClueSimple object or %NULL if @error is set.
2066
2186
  */
2067
- static new_with_thresholds_sync(desktop_id: string | null, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null): Simple
2187
+ static new_with_thresholds_sync(desktop_id: string, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null): Simple
2068
2188
  _init(config?: Simple.ConstructorProperties): void
2069
2189
  /**
2070
2190
  * Asynchronously creates a #GClueSimple instance. Use
@@ -2077,7 +2197,7 @@ export class Simple extends GObject.Object {
2077
2197
  * @param cancellable A #GCancellable or %NULL.
2078
2198
  * @param callback A #GAsyncReadyCallback to call when the results are ready.
2079
2199
  */
2080
- static new(desktop_id: string | null, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
2200
+ static new(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
2081
2201
  /**
2082
2202
  * Asynchronously creates a #GClueSimple instance. Use
2083
2203
  * #gclue_simple_new_with_thresholds_finish() to get the created #GClueSimple instance.
@@ -2091,7 +2211,7 @@ export class Simple extends GObject.Object {
2091
2211
  * @param cancellable A #GCancellable or %NULL.
2092
2212
  * @param callback A #GAsyncReadyCallback to call when the results are ready.
2093
2213
  */
2094
- static new_with_thresholds(desktop_id: string | null, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
2214
+ static new_with_thresholds(desktop_id: string, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
2095
2215
  }
2096
2216
 
2097
2217
  export interface ClientIface {
@@ -2111,7 +2231,7 @@ export interface ClientIface {
2111
2231
  get_location: (object: Client) => string | null
2112
2232
  get_requested_accuracy_level: (object: Client) => number
2113
2233
  get_time_threshold: (object: Client) => number
2114
- location_updated: (object: Client, arg_old: string | null, arg_new: string | null) => void
2234
+ location_updated: (object: Client, arg_old: string, arg_new: string) => void
2115
2235
  }
2116
2236
 
2117
2237
  /**
@@ -2292,9 +2412,9 @@ export interface ManagerIface {
2292
2412
  * @field
2293
2413
  */
2294
2414
  parent_iface: GObject.TypeInterface
2295
- handle_add_agent: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_id: string | null) => boolean
2415
+ handle_add_agent: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_id: string) => boolean
2296
2416
  handle_create_client: (object: Manager, invocation: Gio.DBusMethodInvocation) => boolean
2297
- handle_delete_client: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_client: string | null) => boolean
2417
+ handle_delete_client: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_client: string) => boolean
2298
2418
  handle_get_client: (object: Manager, invocation: Gio.DBusMethodInvocation) => boolean
2299
2419
  get_available_accuracy_level: (object: Manager) => number
2300
2420
  get_in_use: (object: Manager) => boolean
package/geoclue-2.0.d.ts CHANGED
@@ -137,6 +137,30 @@ module Client {
137
137
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
138
138
  */
139
139
  time_threshold?: number | null
140
+ /**
141
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DesktopId">"DesktopId"</link>.
142
+ *
143
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
144
+ */
145
+ desktopId?: string | null
146
+ /**
147
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
148
+ *
149
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
150
+ */
151
+ distanceThreshold?: number | null
152
+ /**
153
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.RequestedAccuracyLevel">"RequestedAccuracyLevel"</link>.
154
+ *
155
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
156
+ */
157
+ requestedAccuracyLevel?: number | null
158
+ /**
159
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
160
+ *
161
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
162
+ */
163
+ timeThreshold?: number | null
140
164
  }
141
165
 
142
166
  }
@@ -157,12 +181,24 @@ interface Client {
157
181
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
158
182
  */
159
183
  desktop_id: string | null
184
+ /**
185
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DesktopId">"DesktopId"</link>.
186
+ *
187
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
188
+ */
189
+ desktopId: string | null
160
190
  /**
161
191
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
162
192
  *
163
193
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
164
194
  */
165
195
  distance_threshold: number
196
+ /**
197
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
198
+ *
199
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
200
+ */
201
+ distanceThreshold: number
166
202
  /**
167
203
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.Location">"Location"</link>.
168
204
  *
@@ -175,12 +211,24 @@ interface Client {
175
211
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
176
212
  */
177
213
  requested_accuracy_level: number
214
+ /**
215
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.RequestedAccuracyLevel">"RequestedAccuracyLevel"</link>.
216
+ *
217
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
218
+ */
219
+ requestedAccuracyLevel: number
178
220
  /**
179
221
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
180
222
  *
181
223
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
182
224
  */
183
225
  time_threshold: number
226
+ /**
227
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
228
+ *
229
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
230
+ */
231
+ timeThreshold: number
184
232
 
185
233
  // Owm methods of Geoclue-2.0.Geoclue.Client
186
234
 
@@ -251,13 +299,13 @@ interface Client {
251
299
  * @param arg_old Argument to pass with the signal.
252
300
  * @param arg_new Argument to pass with the signal.
253
301
  */
254
- emit_location_updated(arg_old: string | null, arg_new: string | null): void
302
+ emit_location_updated(arg_old: string, arg_new: string): void
255
303
 
256
304
  // Own virtual methods of Geoclue-2.0.Geoclue.Client
257
305
 
258
306
  vfunc_handle_start(invocation: Gio.DBusMethodInvocation): boolean
259
307
  vfunc_handle_stop(invocation: Gio.DBusMethodInvocation): boolean
260
- vfunc_location_updated(arg_old: string | null, arg_new: string | null): void
308
+ vfunc_location_updated(arg_old: string, arg_new: string): void
261
309
 
262
310
  // Own signals of Geoclue-2.0.Geoclue.Client
263
311
 
@@ -553,6 +601,18 @@ module Manager {
553
601
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
554
602
  */
555
603
  in_use?: boolean | null
604
+ /**
605
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link>.
606
+ *
607
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
608
+ */
609
+ availableAccuracyLevel?: number | null
610
+ /**
611
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
612
+ *
613
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
614
+ */
615
+ inUse?: boolean | null
556
616
  }
557
617
 
558
618
  }
@@ -567,12 +627,24 @@ interface Manager {
567
627
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
568
628
  */
569
629
  available_accuracy_level: number
630
+ /**
631
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link>.
632
+ *
633
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
634
+ */
635
+ availableAccuracyLevel: number
570
636
  /**
571
637
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
572
638
  *
573
639
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
574
640
  */
575
641
  in_use: boolean
642
+ /**
643
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
644
+ *
645
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
646
+ */
647
+ inUse: boolean
576
648
 
577
649
  // Owm methods of Geoclue-2.0.Geoclue.Manager
578
650
 
@@ -586,7 +658,7 @@ interface Manager {
586
658
  * @param cancellable A #GCancellable or %NULL.
587
659
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
588
660
  */
589
- call_add_agent(arg_id: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
661
+ call_add_agent(arg_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
590
662
  /**
591
663
  * Finishes an operation started with gclue_manager_call_add_agent().
592
664
  * @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_add_agent().
@@ -601,7 +673,7 @@ interface Manager {
601
673
  * @param cancellable A #GCancellable or %NULL.
602
674
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
603
675
  */
604
- call_add_agent_sync(arg_id: string | null, cancellable: Gio.Cancellable | null): boolean
676
+ call_add_agent_sync(arg_id: string, cancellable: Gio.Cancellable | null): boolean
605
677
  /**
606
678
  * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method on `proxy`.
607
679
  * When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
@@ -617,7 +689,7 @@ interface Manager {
617
689
  * @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_create_client().
618
690
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
619
691
  */
620
- call_create_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string | null ]
692
+ call_create_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string ]
621
693
  /**
622
694
  * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
623
695
  *
@@ -625,7 +697,7 @@ interface Manager {
625
697
  * @param cancellable A #GCancellable or %NULL.
626
698
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
627
699
  */
628
- call_create_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string | null ]
700
+ call_create_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string ]
629
701
  /**
630
702
  * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on `proxy`.
631
703
  * When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
@@ -636,7 +708,7 @@ interface Manager {
636
708
  * @param cancellable A #GCancellable or %NULL.
637
709
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
638
710
  */
639
- call_delete_client(arg_client: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
711
+ call_delete_client(arg_client: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
640
712
  /**
641
713
  * Finishes an operation started with gclue_manager_call_delete_client().
642
714
  * @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_delete_client().
@@ -651,7 +723,7 @@ interface Manager {
651
723
  * @param cancellable A #GCancellable or %NULL.
652
724
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
653
725
  */
654
- call_delete_client_sync(arg_client: string | null, cancellable: Gio.Cancellable | null): boolean
726
+ call_delete_client_sync(arg_client: string, cancellable: Gio.Cancellable | null): boolean
655
727
  /**
656
728
  * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method on `proxy`.
657
729
  * When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
@@ -667,7 +739,7 @@ interface Manager {
667
739
  * @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_get_client().
668
740
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
669
741
  */
670
- call_get_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string | null ]
742
+ call_get_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string ]
671
743
  /**
672
744
  * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
673
745
  *
@@ -675,7 +747,7 @@ interface Manager {
675
747
  * @param cancellable A #GCancellable or %NULL.
676
748
  * @returns %TRUE if the call succeeded, %FALSE if @error is set.
677
749
  */
678
- call_get_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string | null ]
750
+ call_get_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string ]
679
751
  /**
680
752
  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
681
753
  *
@@ -690,7 +762,7 @@ interface Manager {
690
762
  * @param invocation A #GDBusMethodInvocation.
691
763
  * @param client Parameter to return.
692
764
  */
693
- complete_create_client(invocation: Gio.DBusMethodInvocation, client: string | null): void
765
+ complete_create_client(invocation: Gio.DBusMethodInvocation, client: string): void
694
766
  /**
695
767
  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
696
768
  *
@@ -705,13 +777,13 @@ interface Manager {
705
777
  * @param invocation A #GDBusMethodInvocation.
706
778
  * @param client Parameter to return.
707
779
  */
708
- complete_get_client(invocation: Gio.DBusMethodInvocation, client: string | null): void
780
+ complete_get_client(invocation: Gio.DBusMethodInvocation, client: string): void
709
781
 
710
782
  // Own virtual methods of Geoclue-2.0.Geoclue.Manager
711
783
 
712
- vfunc_handle_add_agent(invocation: Gio.DBusMethodInvocation, arg_id: string | null): boolean
784
+ vfunc_handle_add_agent(invocation: Gio.DBusMethodInvocation, arg_id: string): boolean
713
785
  vfunc_handle_create_client(invocation: Gio.DBusMethodInvocation): boolean
714
- vfunc_handle_delete_client(invocation: Gio.DBusMethodInvocation, arg_client: string | null): boolean
786
+ vfunc_handle_delete_client(invocation: Gio.DBusMethodInvocation, arg_client: string): boolean
715
787
  vfunc_handle_get_client(invocation: Gio.DBusMethodInvocation): boolean
716
788
 
717
789
  // Own signals of Geoclue-2.0.Geoclue.Manager
@@ -899,7 +971,7 @@ class ClientProxy extends Gio.DBusProxy {
899
971
  * @param cancellable A #GCancellable or %NULL.
900
972
  * @returns The constructed proxy object or %NULL if @error is set.
901
973
  */
902
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): ClientProxy
974
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): ClientProxy
903
975
 
904
976
  // Overloads of new_for_bus_sync
905
977
 
@@ -917,7 +989,7 @@ class ClientProxy extends Gio.DBusProxy {
917
989
  * @param cancellable A #GCancellable or %NULL.
918
990
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
919
991
  */
920
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
992
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
921
993
  /**
922
994
  * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Client.top_of_page">org.freedesktop.GeoClue2.Client</link>. See g_dbus_proxy_new_sync() for more details.
923
995
  *
@@ -932,7 +1004,7 @@ class ClientProxy extends Gio.DBusProxy {
932
1004
  * @param cancellable A #GCancellable or %NULL.
933
1005
  * @returns The constructed proxy object or %NULL if @error is set.
934
1006
  */
935
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): ClientProxy
1007
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): ClientProxy
936
1008
 
937
1009
  // Overloads of new_sync
938
1010
 
@@ -969,7 +1041,7 @@ class ClientProxy extends Gio.DBusProxy {
969
1041
  * @param cancellable A #GCancellable or %NULL.
970
1042
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
971
1043
  */
972
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1044
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
973
1045
  _init(config?: ClientProxy.ConstructorProperties): void
974
1046
  /**
975
1047
  * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Client.top_of_page">org.freedesktop.GeoClue2.Client</link>. See g_dbus_proxy_new() for more details.
@@ -985,7 +1057,7 @@ class ClientProxy extends Gio.DBusProxy {
985
1057
  * @param cancellable A #GCancellable or %NULL.
986
1058
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
987
1059
  */
988
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1060
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
989
1061
 
990
1062
  // Overloads of new
991
1063
 
@@ -1026,7 +1098,7 @@ class ClientProxy extends Gio.DBusProxy {
1026
1098
  * @param cancellable A #GCancellable or %NULL.
1027
1099
  * @param callback Callback function to invoke when the proxy is ready.
1028
1100
  */
1029
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1101
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1030
1102
  /**
1031
1103
  * Like gclue_client_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
1032
1104
  *
@@ -1041,7 +1113,7 @@ class ClientProxy extends Gio.DBusProxy {
1041
1113
  * @param cancellable A #GCancellable or %NULL.
1042
1114
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1043
1115
  */
1044
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1116
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1045
1117
 
1046
1118
  // Overloads of new_for_bus
1047
1119
 
@@ -1058,7 +1130,7 @@ class ClientProxy extends Gio.DBusProxy {
1058
1130
  * @param cancellable A #GCancellable or %NULL.
1059
1131
  * @param callback Callback function to invoke when the proxy is ready.
1060
1132
  */
1061
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1133
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1062
1134
  /**
1063
1135
  * A utility function to create a #GClueClientProxy without having to deal with
1064
1136
  * a #GClueManager. See also gclue_client_proxy_create_full() which improves
@@ -1074,7 +1146,7 @@ class ClientProxy extends Gio.DBusProxy {
1074
1146
  * @param cancellable A #GCancellable or %NULL.
1075
1147
  * @param callback A #GAsyncReadyCallback to call when the results are ready.
1076
1148
  */
1077
- static create(desktop_id: string | null, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1149
+ static create(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1078
1150
  /**
1079
1151
  * Finishes an operation started with gclue_client_proxy_create().
1080
1152
  * @param result The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().
@@ -1098,7 +1170,7 @@ class ClientProxy extends Gio.DBusProxy {
1098
1170
  * @param cancellable A #GCancellable or %NULL.
1099
1171
  * @param callback A #GAsyncReadyCallback to call when the results are ready.
1100
1172
  */
1101
- static create_full(desktop_id: string | null, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1173
+ static create_full(desktop_id: string, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
1102
1174
  /**
1103
1175
  * Finishes an operation started with gclue_client_proxy_create_full().
1104
1176
  * @param result The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().
@@ -1118,7 +1190,7 @@ class ClientProxy extends Gio.DBusProxy {
1118
1190
  * @param cancellable A #GCancellable or %NULL.
1119
1191
  * @returns The constructed proxy object or %NULL if @error is set.
1120
1192
  */
1121
- static create_full_sync(desktop_id: string | null, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null): ClientProxy
1193
+ static create_full_sync(desktop_id: string, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null): ClientProxy
1122
1194
  /**
1123
1195
  * The synchronous and blocking version of #gclue_client_proxy_create().
1124
1196
  * See also gclue_client_proxy_create_full_sync() which improves resource
@@ -1131,7 +1203,7 @@ class ClientProxy extends Gio.DBusProxy {
1131
1203
  * @param cancellable A #GCancellable or %NULL.
1132
1204
  * @returns The constructed proxy object or %NULL if @error is set.
1133
1205
  */
1134
- static create_sync(desktop_id: string | null, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): ClientProxy
1206
+ static create_sync(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): ClientProxy
1135
1207
  }
1136
1208
 
1137
1209
  module ClientSkeleton {
@@ -1335,7 +1407,7 @@ class LocationProxy extends Gio.DBusProxy {
1335
1407
  * @param cancellable A #GCancellable or %NULL.
1336
1408
  * @returns The constructed proxy object or %NULL if @error is set.
1337
1409
  */
1338
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): LocationProxy
1410
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): LocationProxy
1339
1411
 
1340
1412
  // Overloads of new_for_bus_sync
1341
1413
 
@@ -1353,7 +1425,7 @@ class LocationProxy extends Gio.DBusProxy {
1353
1425
  * @param cancellable A #GCancellable or %NULL.
1354
1426
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
1355
1427
  */
1356
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1428
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1357
1429
  /**
1358
1430
  * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link>. See g_dbus_proxy_new_sync() for more details.
1359
1431
  *
@@ -1368,7 +1440,7 @@ class LocationProxy extends Gio.DBusProxy {
1368
1440
  * @param cancellable A #GCancellable or %NULL.
1369
1441
  * @returns The constructed proxy object or %NULL if @error is set.
1370
1442
  */
1371
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): LocationProxy
1443
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): LocationProxy
1372
1444
 
1373
1445
  // Overloads of new_sync
1374
1446
 
@@ -1405,7 +1477,7 @@ class LocationProxy extends Gio.DBusProxy {
1405
1477
  * @param cancellable A #GCancellable or %NULL.
1406
1478
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
1407
1479
  */
1408
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1480
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1409
1481
  _init(config?: LocationProxy.ConstructorProperties): void
1410
1482
  /**
1411
1483
  * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link>. See g_dbus_proxy_new() for more details.
@@ -1421,7 +1493,7 @@ class LocationProxy extends Gio.DBusProxy {
1421
1493
  * @param cancellable A #GCancellable or %NULL.
1422
1494
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1423
1495
  */
1424
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
1496
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
1425
1497
 
1426
1498
  // Overloads of new
1427
1499
 
@@ -1462,7 +1534,7 @@ class LocationProxy extends Gio.DBusProxy {
1462
1534
  * @param cancellable A #GCancellable or %NULL.
1463
1535
  * @param callback Callback function to invoke when the proxy is ready.
1464
1536
  */
1465
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1537
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1466
1538
  /**
1467
1539
  * Like gclue_location_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
1468
1540
  *
@@ -1477,7 +1549,7 @@ class LocationProxy extends Gio.DBusProxy {
1477
1549
  * @param cancellable A #GCancellable or %NULL.
1478
1550
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1479
1551
  */
1480
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
1552
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
1481
1553
 
1482
1554
  // Overloads of new_for_bus
1483
1555
 
@@ -1494,7 +1566,7 @@ class LocationProxy extends Gio.DBusProxy {
1494
1566
  * @param cancellable A #GCancellable or %NULL.
1495
1567
  * @param callback Callback function to invoke when the proxy is ready.
1496
1568
  */
1497
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1569
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1498
1570
  }
1499
1571
 
1500
1572
  module LocationSkeleton {
@@ -1686,7 +1758,7 @@ class ManagerProxy extends Gio.DBusProxy {
1686
1758
  * @param cancellable A #GCancellable or %NULL.
1687
1759
  * @returns The constructed proxy object or %NULL if @error is set.
1688
1760
  */
1689
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): ManagerProxy
1761
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): ManagerProxy
1690
1762
 
1691
1763
  // Overloads of new_for_bus_sync
1692
1764
 
@@ -1704,7 +1776,7 @@ class ManagerProxy extends Gio.DBusProxy {
1704
1776
  * @param cancellable A #GCancellable or %NULL.
1705
1777
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
1706
1778
  */
1707
- static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1779
+ static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1708
1780
  /**
1709
1781
  * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link>. See g_dbus_proxy_new_sync() for more details.
1710
1782
  *
@@ -1719,7 +1791,7 @@ class ManagerProxy extends Gio.DBusProxy {
1719
1791
  * @param cancellable A #GCancellable or %NULL.
1720
1792
  * @returns The constructed proxy object or %NULL if @error is set.
1721
1793
  */
1722
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null): ManagerProxy
1794
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): ManagerProxy
1723
1795
 
1724
1796
  // Overloads of new_sync
1725
1797
 
@@ -1756,7 +1828,7 @@ class ManagerProxy extends Gio.DBusProxy {
1756
1828
  * @param cancellable A #GCancellable or %NULL.
1757
1829
  * @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
1758
1830
  */
1759
- static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1831
+ static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
1760
1832
  _init(config?: ManagerProxy.ConstructorProperties): void
1761
1833
  /**
1762
1834
  * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link>. See g_dbus_proxy_new() for more details.
@@ -1772,7 +1844,7 @@ class ManagerProxy extends Gio.DBusProxy {
1772
1844
  * @param cancellable A #GCancellable or %NULL.
1773
1845
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1774
1846
  */
1775
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
1847
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
1776
1848
 
1777
1849
  // Overloads of new
1778
1850
 
@@ -1813,7 +1885,7 @@ class ManagerProxy extends Gio.DBusProxy {
1813
1885
  * @param cancellable A #GCancellable or %NULL.
1814
1886
  * @param callback Callback function to invoke when the proxy is ready.
1815
1887
  */
1816
- static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1888
+ static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1817
1889
  /**
1818
1890
  * Like gclue_manager_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
1819
1891
  *
@@ -1828,7 +1900,7 @@ class ManagerProxy extends Gio.DBusProxy {
1828
1900
  * @param cancellable A #GCancellable or %NULL.
1829
1901
  * @param callback A #GAsyncReadyCallback to call when the request is satisfied.
1830
1902
  */
1831
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string | null, object_path: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
1903
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
1832
1904
 
1833
1905
  // Overloads of new_for_bus
1834
1906
 
@@ -1845,7 +1917,7 @@ class ManagerProxy extends Gio.DBusProxy {
1845
1917
  * @param cancellable A #GCancellable or %NULL.
1846
1918
  * @param callback Callback function to invoke when the proxy is ready.
1847
1919
  */
1848
- static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string | null, interface_name: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1920
+ static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
1849
1921
  }
1850
1922
 
1851
1923
  module ManagerSkeleton {
@@ -1937,6 +2009,30 @@ module Simple {
1937
2009
  * When set to 0 (default), it always emits the signal.
1938
2010
  */
1939
2011
  time_threshold?: number | null
2012
+ /**
2013
+ * The requested maximum accuracy level.
2014
+ */
2015
+ accuracyLevel?: AccuracyLevel | null
2016
+ /**
2017
+ * The Desktop ID of the application.
2018
+ */
2019
+ desktopId?: string | null
2020
+ /**
2021
+ * The current distance threshold in meters. This value is used by the
2022
+ * service when it gets new location info. If the distance moved is
2023
+ * below the threshold, it won't emit the LocationUpdated signal.
2024
+ *
2025
+ * When set to 0 (default), it always emits the signal.
2026
+ */
2027
+ distanceThreshold?: number | null
2028
+ /**
2029
+ * The current time threshold in seconds. This value is used by the
2030
+ * service when it gets new location info. If the time passed is
2031
+ * below the threshold, it won't emit the LocationUpdated signal.
2032
+ *
2033
+ * When set to 0 (default), it always emits the signal.
2034
+ */
2035
+ timeThreshold?: number | null
1940
2036
  }
1941
2037
 
1942
2038
  }
@@ -1949,6 +2045,10 @@ interface Simple extends Gio.AsyncInitable {
1949
2045
  * The requested maximum accuracy level.
1950
2046
  */
1951
2047
  readonly accuracy_level: AccuracyLevel
2048
+ /**
2049
+ * The requested maximum accuracy level.
2050
+ */
2051
+ readonly accuracyLevel: AccuracyLevel
1952
2052
  /**
1953
2053
  * The client proxy. This is %NULL if `simple` is not using a client proxy
1954
2054
  * (i-e when inside the Flatpak sandbox).
@@ -1958,6 +2058,10 @@ interface Simple extends Gio.AsyncInitable {
1958
2058
  * The Desktop ID of the application.
1959
2059
  */
1960
2060
  readonly desktop_id: string | null
2061
+ /**
2062
+ * The Desktop ID of the application.
2063
+ */
2064
+ readonly desktopId: string | null
1961
2065
  /**
1962
2066
  * The current distance threshold in meters. This value is used by the
1963
2067
  * service when it gets new location info. If the distance moved is
@@ -1966,6 +2070,14 @@ interface Simple extends Gio.AsyncInitable {
1966
2070
  * When set to 0 (default), it always emits the signal.
1967
2071
  */
1968
2072
  readonly distance_threshold: number
2073
+ /**
2074
+ * The current distance threshold in meters. This value is used by the
2075
+ * service when it gets new location info. If the distance moved is
2076
+ * below the threshold, it won't emit the LocationUpdated signal.
2077
+ *
2078
+ * When set to 0 (default), it always emits the signal.
2079
+ */
2080
+ readonly distanceThreshold: number
1969
2081
  /**
1970
2082
  * The current location.
1971
2083
  */
@@ -1978,6 +2090,14 @@ interface Simple extends Gio.AsyncInitable {
1978
2090
  * When set to 0 (default), it always emits the signal.
1979
2091
  */
1980
2092
  readonly time_threshold: number
2093
+ /**
2094
+ * The current time threshold in seconds. This value is used by the
2095
+ * service when it gets new location info. If the time passed is
2096
+ * below the threshold, it won't emit the LocationUpdated signal.
2097
+ *
2098
+ * When set to 0 (default), it always emits the signal.
2099
+ */
2100
+ readonly timeThreshold: number
1981
2101
 
1982
2102
  // Own fields of Geoclue-2.0.Geoclue.Simple
1983
2103
 
@@ -2048,7 +2168,7 @@ class Simple extends GObject.Object {
2048
2168
  * @param cancellable A #GCancellable or %NULL.
2049
2169
  * @returns The new #GClueSimple object or %NULL if @error is set.
2050
2170
  */
2051
- static new_sync(desktop_id: string | null, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): Simple
2171
+ static new_sync(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): Simple
2052
2172
  /**
2053
2173
  * Finishes an operation started with #gclue_simple_new_with_thresholds().
2054
2174
  * @constructor
@@ -2066,7 +2186,7 @@ class Simple extends GObject.Object {
2066
2186
  * @param cancellable A #GCancellable or %NULL.
2067
2187
  * @returns The new #GClueSimple object or %NULL if @error is set.
2068
2188
  */
2069
- static new_with_thresholds_sync(desktop_id: string | null, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null): Simple
2189
+ static new_with_thresholds_sync(desktop_id: string, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null): Simple
2070
2190
  _init(config?: Simple.ConstructorProperties): void
2071
2191
  /**
2072
2192
  * Asynchronously creates a #GClueSimple instance. Use
@@ -2079,7 +2199,7 @@ class Simple extends GObject.Object {
2079
2199
  * @param cancellable A #GCancellable or %NULL.
2080
2200
  * @param callback A #GAsyncReadyCallback to call when the results are ready.
2081
2201
  */
2082
- static new(desktop_id: string | null, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
2202
+ static new(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
2083
2203
  /**
2084
2204
  * Asynchronously creates a #GClueSimple instance. Use
2085
2205
  * #gclue_simple_new_with_thresholds_finish() to get the created #GClueSimple instance.
@@ -2093,7 +2213,7 @@ class Simple extends GObject.Object {
2093
2213
  * @param cancellable A #GCancellable or %NULL.
2094
2214
  * @param callback A #GAsyncReadyCallback to call when the results are ready.
2095
2215
  */
2096
- static new_with_thresholds(desktop_id: string | null, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
2216
+ static new_with_thresholds(desktop_id: string, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
2097
2217
  }
2098
2218
 
2099
2219
  interface ClientIface {
@@ -2113,7 +2233,7 @@ interface ClientIface {
2113
2233
  get_location: (object: Client) => string | null
2114
2234
  get_requested_accuracy_level: (object: Client) => number
2115
2235
  get_time_threshold: (object: Client) => number
2116
- location_updated: (object: Client, arg_old: string | null, arg_new: string | null) => void
2236
+ location_updated: (object: Client, arg_old: string, arg_new: string) => void
2117
2237
  }
2118
2238
 
2119
2239
  /**
@@ -2294,9 +2414,9 @@ interface ManagerIface {
2294
2414
  * @field
2295
2415
  */
2296
2416
  parent_iface: GObject.TypeInterface
2297
- handle_add_agent: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_id: string | null) => boolean
2417
+ handle_add_agent: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_id: string) => boolean
2298
2418
  handle_create_client: (object: Manager, invocation: Gio.DBusMethodInvocation) => boolean
2299
- handle_delete_client: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_client: string | null) => boolean
2419
+ handle_delete_client: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_client: string) => boolean
2300
2420
  handle_get_client: (object: Manager, invocation: Gio.DBusMethodInvocation) => boolean
2301
2421
  get_available_accuracy_level: (object: Manager) => number
2302
2422
  get_in_use: (object: Manager) => boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/geoclue-2.0",
3
- "version": "2.0.0-3.2.5",
3
+ "version": "2.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Geoclue-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "geoclue-2.0.js",
@@ -25,10 +25,10 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit geoclue-2.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.5",
29
- "@girs/gjs": "^3.2.5",
30
- "@girs/glib-2.0": "^2.78.0-3.2.5",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.5"
28
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
29
+ "@girs/gjs": "^3.2.7",
30
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
31
+ "@girs/gobject-2.0": "^2.78.0-3.2.7"
32
32
  },
33
33
  "devDependencies": {
34
34
  "typescript": "*"