You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates a subscription for location updates that will execute the block once per update indefinitely (until canceled), regardless of the accuracy of each location.
103
124
The specified desired accuracy is passed along to location services, and controls how much power is used, with higher accuracies using more power.
104
125
If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically.
105
-
126
+
106
127
@param desiredAccuracy The accuracy level desired, which controls how much power is used by the device's location services.
107
128
@param block The block to execute every time an updated location is available. Note that this block runs for every update, regardless of
108
129
whether the achievedAccuracy is at least the desiredAccuracy.
109
130
The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut.
131
+
132
+
@return The location request ID, which can be used to cancel the subscription of location updates to this block.
Creates a subscription for location updates that will execute the block once per update indefinitely (until canceled), regardless of the accuracy of each location.
139
+
The specified desired accuracy is passed along to location services, and controls how much power is used, with higher accuracies using more power.
140
+
If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically.
141
+
142
+
@param desiredAccuracy The accuracy level desired, which controls how much power is used by the device's location services.
143
+
@param desiredActivityType The activity type desired, which controls when/if pausing occurs.
144
+
@param block The block to execute every time an updated location is available. Note that this block runs for every update, regardless of
145
+
whether the achievedAccuracy is at least the desiredAccuracy.
146
+
The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut.
110
147
111
148
@return The location request ID, which can be used to cancel the subscription of location updates to this block.
0 commit comments