Contenu connexe
Plus de Satoshi Asano (10)
バックグラウンド位置取得について
- 2. • ( )
• id:ninjinkun
• @ninjinkun
• Perl
• for iPhone
- 3. • iPhone API
•
• API
•
- 4. API
iOS4
• Fast App Switching
• Background Audio
• Background Navigation
• Background Location
• Background VoIP
• Task Compression
• Push Notification
• Local Notification
- 6. API
2 API
• Significant Location Changes
• iPhone3GS
•
•
• Region Monitoring
• iPhone4
•
- 7. API
Significant Location Changes
•
• startMonitoringSignificantLocationChanges
CLLocationManager* locationManager =
[[CLLocationManager alloc] init];
locationManager.delegate = self;
[locationManager
startMonitoringSignificantLocationChanges];
- 8. API
Significant Location Changes
• Delegate Method
•locationManager:didUpdateToLocation:fr
omLocation:oldLocation
--(void)locationManager:(CLLocationManager*)manager
- didUpdateToLocation:(CLLocation*)newLocation
- fromLocation:(CLLocation*)oldLocation {
if ([[UIApplication sharedApplication]
applicationState]
!= UIApplicationStateActive) {
Do something...
}
}
- 11. •
• Local Notification
•
Badge
- 13. ...
• 300m~500m
•
•
• Deleaget Method
• notification
•
• notification
- 15. •
•
•
•
• iPhone
Wikipedia
- 18. • ?
•
•
• Region Monitoring
• iPhone4
- 19. • iPhone API
• Significant Location Changes
• Region Monitoring
•
•