Just tried and the above answer is still relevant, as the feature only works on iOS. CoreMotion compiles without errors on MacOS but the calls don't return any useful info
Topic:
App & System Services
SubTopic:
Hardware
Tags: