public interface CMHeadphoneMotionManagerDelegate
Discussion: Delegate for CMHeadphoneMotionManager.
| Modifier and Type | Method and Description |
|---|---|
default void |
headphoneMotionManagerDidConnect(CMHeadphoneMotionManager manager)
headphoneMotionManagerDidConnect:
|
default void |
headphoneMotionManagerDidDisconnect(CMHeadphoneMotionManager manager)
headphoneMotionManagerDidDisconnect:
|
default void headphoneMotionManagerDidConnect(CMHeadphoneMotionManager manager)
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.
default void headphoneMotionManagerDidDisconnect(CMHeadphoneMotionManager manager)
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.