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