| 1 | # Activity recognition (walking, running) on iOS |
| 2 | |
| 3 | Demo of CastleActivityRecognition unit, which relies on iOS service [activity_recognition](https://github.com/castle-engine/castle-engine/blob/master/tools/build-tool/data/ios/services/activity_recognition/README.adoc). See https://castle-engine.io/ios_services for more information about iOS services. |
| 4 | |
| 5 | It may be extended in the future to use an equivalent service on Android, with the same Pascal API in Castle Game Engine. |
| 6 | |
| 7 | Note that, while it compiles and runs on any platform (including Android and desktops), it is rather useless (will never detect any activity) on other platforms than iOS. |
| 8 | |
| 9 | Using [Castle Game Engine](https://castle-engine.io/). |
| 10 | |
| 11 | ## Building |
| 12 | |
| 13 | Compile by: |
| 14 | |
| 15 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_. |
| 16 | |
| 17 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |
| 18 | |
| 19 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `activity_recognition_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |
| 20 | |
| 21 | - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `activity_recognition_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details. |