/* * CMHeadphoneMotionManagerDelegate.h * CoreMotion * * Copyright (c) 2020 Apple Inc. All rights reserved. * */ #import #import #import NS_ASSUME_NONNULL_BEGIN /* * CMHeadphoneMotionManagerDelegate * * Discussion: * Delegate for CMHeadphoneMotionManager. */ COREMOTION_EXPORT API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos) @protocol CMHeadphoneMotionManagerDelegate @optional /* * headphoneMotionManagerDidConnect: * * Discussion: * Invoked when a headphone is connected. Execution of the delegate callback occurs on the operation queue used to * deliver the device motion updates. The main thread is used if the queue was not specified. */ - (void)headphoneMotionManagerDidConnect:(CMHeadphoneMotionManager *)manager; /* * headphoneMotionManagerDidDisconnect: * * Discussion: * Invoked when a headphone is disconnected. Execution of the delegate callback occurs on the operation queue used to * deliver the device motion updates. The main thread is used if the queue was not specified. */ - (void)headphoneMotionManagerDidDisconnect:(CMHeadphoneMotionManager *)manager; @end NS_ASSUME_NONNULL_END