Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an equivalent to Android's Activity Recognition API in iOS?

On the last Google I/O was introduced a new service in the Location API's in Android - Activity Recognition.

Is there such a framework for iOS?

like image 696
Nikolay Tsenkov Avatar asked Sep 03 '13 09:09

Nikolay Tsenkov


People also ask

What is equivalent of activity in iOS?

We can say Activity is equivalent to ViewController, since it has its own lifecycle( onCreate in Android and viewDidLoad in iOS) but not fully.

What is Activity Recognition API?

The Activity Recognition API automatically detects activities by periodically reading short bursts of sensor data and processing them using machine learning models.


1 Answers

I realize this question is old, but for future reference CMMotionActivity provides this functionality. New to iOS 7 and enabled by the M7 coprocessor.

like image 64
pcoving Avatar answered Oct 18 '22 07:10

pcoving