SKSampleRateConfiguration
Objective-C
@interface SKSampleRateConfiguration : SKConfiguration <NSCopying>
Swift
class SKSampleRateConfiguration : SKConfiguration, NSCopying
This is the base class for all motion sensors that require a sample rate configuration (e.g., Accelerometer, Gyroscope, Magnetometer, Device Motion, etc.).
-
The Sample Rate of the sensor in Hz.
Declaration
Objective-C
@property (nonatomic) NSUInteger sampleRate;Swift
var sampleRate: UInt { get set }
View on GitHub