objc2-core-motion 0.3.2

Bindings to the CoreMotion framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;

use crate::*;

extern_protocol!(
    /// [Apple's documentation](https://developer.apple.com/documentation/coremotion/cmheadphonemotionmanagerdelegate?language=objc)
    pub unsafe trait CMHeadphoneMotionManagerDelegate: NSObjectProtocol {
        #[cfg(feature = "CMHeadphoneMotionManager")]
        #[optional]
        #[unsafe(method(headphoneMotionManagerDidConnect:))]
        #[unsafe(method_family = none)]
        unsafe fn headphoneMotionManagerDidConnect(&self, manager: &CMHeadphoneMotionManager);

        #[cfg(feature = "CMHeadphoneMotionManager")]
        #[optional]
        #[unsafe(method(headphoneMotionManagerDidDisconnect:))]
        #[unsafe(method_family = none)]
        unsafe fn headphoneMotionManagerDidDisconnect(&self, manager: &CMHeadphoneMotionManager);
    }
);