Interface CMHeadphoneMotionManagerDelegate


  • public interface CMHeadphoneMotionManagerDelegate
    CMHeadphoneMotionManagerDelegate Discussion: Delegate for CMHeadphoneMotionManager.
    • Method Detail

      • headphoneMotionManagerDidConnect

        default void headphoneMotionManagerDidConnect​(CMHeadphoneMotionManager manager)
        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.
      • headphoneMotionManagerDidDisconnect

        default void headphoneMotionManagerDidDisconnect​(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.