UIAccelerometerDelegate

Trait UIAccelerometerDelegate 

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

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. Read more
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§