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
Copy file name to clipboardExpand all lines: README.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,16 +20,6 @@
20
20
21
21
```
22
22
23
-
#### LMViewModel Parameters
24
-
|Param|Description|
25
-
| --- | --- |
26
-
|accuracy| The accuracy of a geographical coordinate.|
27
-
|activityType|Constants indicating the type of activity associated with location updates.|
28
-
|distanceFilter|A distance in meters from an existing location.|
29
-
|backgroundUpdates|A Boolean value that indicates whether the app receives location updates when running in the background|
30
-
31
-
32
-
33
23
### 3. Call ViewModel method start() within async environment
34
24
If task will be canceled the streaming stops automatically. I would recomend to use .task modifire it manages cancelation on it's own. If you desided to use Task and keep it in @State don't forget to cancel() when the time has come or it might course memory leaks in some cases
35
25
```
@@ -68,7 +58,7 @@ If task will be canceled the streaming stops automatically. I would recomend to
68
58
case unknownTermination
69
59
```
70
60
71
-
##ViewModel API
61
+
### LMViewModel API
72
62
```
73
63
public protocol ILocationManagerViewModel: ObservableObject{
74
64
@@ -84,6 +74,15 @@ public protocol ILocationManagerViewModel: ObservableObject{
84
74
}
85
75
```
86
76
77
+
### LMViewModel Parameters
78
+
79
+
|Param|Description|
80
+
| --- | --- |
81
+
|accuracy| The accuracy of a geographical coordinate.|
82
+
|activityType|Constants indicating the type of activity associated with location updates.|
83
+
|distanceFilter|A distance in meters from an existing location.|
84
+
|backgroundUpdates|A Boolean value that indicates whether the app receives location updates when running in the background|
0 commit comments