Interface CMHeadphoneMotionManagerDelegate


  • public interface CMHeadphoneMotionManagerDelegate
    API-Since: 14.0
    • Method Detail

      • headphoneMotionManagerDidConnect

        default void headphoneMotionManagerDidConnect​(@NotNull
                                                      @NotNull 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​(@NotNull
                                                         @NotNull 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.