Package apple.coremotion.protocol
Interface CMHeadphoneMotionManagerDelegate
-
public interface CMHeadphoneMotionManagerDelegateAPI-Since: 14.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidheadphoneMotionManagerDidConnect(@NotNull CMHeadphoneMotionManager manager)headphoneMotionManagerDidConnect: Discussion: Invoked when a headphone is connected.default voidheadphoneMotionManagerDidDisconnect(@NotNull CMHeadphoneMotionManager manager)headphoneMotionManagerDidDisconnect: Discussion: Invoked when a headphone is disconnected.
-
-
-
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.
-
-