access to wrist detection

is there any way to access a wrist detection api that acts like how enabling a passcode to your apple watch works? example: when watch is off your wrist, passcode is required.

Replies

Hi there, I have the same question, did you manage to find a solution?

If you have not solved it yet. Did you look at CMMotionManager


It allows to start the services that report movement detected by the device's onboard sensors. Use this object to receive four types of motion data:

Accelerometer data, indicating the instantaneous acceleration of the device in three dimensional space.

Gyroscope data, indicating the instantaneous rotation around the device's three primary axes.

Magnetometer data, indicating the device's orientation relative to Earth's magnetic field.

Device-motion data, indicating key motion-related attributes such as the device's user-initiated acceleration, its attitude, rotation rates, orientation relative to calibrated magnetic fields, and orientation relative to gravity. This data is provided by Core Motion’s sensor fusion algorithms.


Look at sample code here:

https://stackoverflow.com/questions/38161365/detect-physical-movement-of-iphone-apple-watch