Posts

Post not yet marked as solved
3 Replies
Although weirdly I was rewriting that code in Swift today and it is now also not successfully removing the listener, despite the Remove call returning success. My callback is still getting called. https://github.com/Hammerspoon/hammerspoon/blob/a20d2d9fb6818e569fcc88791a40d5a6b26a405f/Hammertime/Camera.swift#L207
Post not yet marked as solved
3 Replies
We use this in our app and it seems to work: https://github.com/Hammerspoon/hammerspoon/blob/70a1cda2d98982c13975194d201bfff431d1bd33/extensions/camera/libcamera.m#L126