Wednesday, January 8, 2014

How to disable siri? Urgent, help! ! !

Project Voip phone when turned on the light sensor, reference native phones do.
[[UIDevice currentDevice] setProximityMonitoringEnabled: YES];

The start-up is
siri gravity sensor, a gyro sensor, a distance sensor value change causedSo as long as you can disable the sensor ban siri start, I can not call this method the setProximityMonitoringEnabled.

Voip phone when needed shielding function
siriThat siri how to close it? Is there any way? There is no direct close siri interface?
Reply:
UIAccelerometer * accelerometer = [UIAccelerometer sharedAccelerometer];
accelerometer.delegate = self;
accelerometer.updateInterval = 1.0/30.0f;

Here is the proxy method of accelerometers, need to comply with the agreement .
- (Void) accelerometer: (UIAccelerometer *) accelerometer didAccelerate: (UIAcceleration *) acceleration
{
Reply:
Yeah csdn not popular, or devdiv good, has been resolved.
UIAccelerometer * accelerometer = [UIAccelerometer sharedAccelerometer];
accelerometer.delegate = self;
accelerometer.updateInterval = 1.0/30.0f;

Here is the proxy method of accelerometers, need to comply with the agreement .
- (Void) accelerometer: (UIAccelerometer *) accelerometer didAccelerate: (UIAcceleration *) acceleration
{
}

Callback to realize nothing can.

No comments:

Post a Comment