Skip to main content

UIAccelerometerDelegate

Trait UIAccelerometerDelegate 

Source
pub unsafe trait UIAccelerometerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided method
    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.
Expand description

Provided Methods§

Source

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

👎Deprecated

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIAccelerometerDelegate

Source§

impl ProtocolType for dyn UIAccelerometerDelegate

Source§

const NAME: &'static str = "UIAccelerometerDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

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

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIAccelerometerDelegate for ProtocolObject<T>

Implementors§