Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle Recording #145

Open
rossbates opened this issue Sep 17, 2024 · 3 comments
Open

Toggle Recording #145

rossbates opened this issue Sep 17, 2024 · 3 comments

Comments

@rossbates
Copy link

While I understand the app is using accelerometer to reduce battery usage I was looking for a more explicit way to toggle recording on/off in the app. Is recording an all or nothing option and is the only way to stop it force kill?

@sobri909
Copy link
Owner

Hi @rossbates! The current Arc Mini code relies on a UI toggle in Arc Timeline app to turn recording on/off. But if you build Mini from Xcode yourself, you can add in a toggle for it if you like.

Poking about in the code, it looks like the key bool is Settings.recordingOn, which is a wrapper around "recordingOn" in either the local UserDefaults or the AppGroup's shared UserDefaults. When building from Xcode you won't have/need the AppGroup, so can just work with setting that value in the local UserDefaults.

Aside: I'll soon be removing Arc Mini from the App Store, so building it yourself from Xcode will eventually be the only option. Arc Mini has been deprecated in favour of Arc Recorder, as the fallback recorder for Arc Timeline app.

@rossbates
Copy link
Author

Got it. Appreciate the quick and helpful response.

XCode is complaining about Mutation of captured var 'rtree' in concurrently-executing code within LocoKit which appears to be another package which you have kindly published. I'll take a look at that and see if I can't work my way through it.

@sobri909
Copy link
Owner

That sounds like something that the new Xcode would complain about. But LocoKit and Arc Mini are both set to Swift 5, so it shouldn't be enforcing anything Swift 6. Hmm. I also didn't see that yesterday when working on Arc Timeline (which uses the same underlying LocoKit version for recording/processing/classifying).

It might just be a case of needing to fetch the latest package versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants