I want to start my location tracking on a condition.

311
1
Jump to solution
12-18-2020 07:16 PM
x_d
by
New Contributor III

Hi, Currently I am tracking my own location on position change. But i want to start the tracking only if my condition get satisfied. How can i do it?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ErwinSoekianto
Esri Regular Contributor

@x_d 

 

I think you can have an IF statement that will check your condition, then only call the PositionSource Start method, https://doc.qt.io/qt-5/qml-qtpositioning-positionsource.html#start-method

 

Erwin

View solution in original post

1 Reply
ErwinSoekianto
Esri Regular Contributor

@x_d 

 

I think you can have an IF statement that will check your condition, then only call the PositionSource Start method, https://doc.qt.io/qt-5/qml-qtpositioning-positionsource.html#start-method

 

Erwin