CMMotionActivityHandler
A block that reports the current motion associated with the device.
Declaration
typealias CMMotionActivityHandler = (CMMotionActivity?) -> VoidDiscussion
This block takes the following parameter:
activityThe motion activity object that defines the current type of motion for the device.