Trait objc2_ui_kit::UIAccelerometerDelegate

source ·
pub unsafe trait UIAccelerometerDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided method
    unsafe fn accelerometer_didAccelerate(
        &self,
        accelerometer: &UIAccelerometer,
        acceleration: &UIAcceleration
    )
       where Self: Sized + Message { ... }
}
👎Deprecated: UIAcceleration has been replaced by the CoreMotion framework
Available on crate feature UIAccelerometer only.

Provided Methods§

source

unsafe fn accelerometer_didAccelerate( &self, accelerometer: &UIAccelerometer, acceleration: &UIAcceleration )
where Self: Sized + Message,

👎Deprecated

Trait Implementations§

source§

impl ProtocolType for dyn UIAccelerometerDelegate

source§

const NAME: &'static str = "UIAccelerometerDelegate"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn UIAccelerometerDelegate

Implementations on Foreign Types§

source§

impl<T> UIAccelerometerDelegate for ProtocolObject<T>

Implementors§