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§
unsafe fn accelerometer_didAccelerate( &self, accelerometer: &UIAccelerometer, acceleration: &UIAcceleration )
👎Deprecated