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§
fn accelerometer_didAccelerate( &self, accelerometer: &UIAccelerometer, acceleration: &UIAcceleration, )
👎Deprecated
Trait Implementations§
impl<T> ImplementedBy<T> for dyn UIAccelerometerDelegate
Source§impl ProtocolType for dyn UIAccelerometerDelegate
impl ProtocolType for dyn UIAccelerometerDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".