com.github.ignition.location.utils.locationupdaterequesters
Class IgnitedGingerbreadLocationUpdateRequester

java.lang.Object
  extended by com.github.ignition.location.templates.IgnitedAbstractLocationUpdateRequester
      extended by com.github.ignition.location.utils.locationupdaterequesters.IgnitedLegacyLocationUpdateRequester
          extended by com.github.ignition.location.utils.locationupdaterequesters.IgnitedFroyoLocationUpdateRequester
              extended by com.github.ignition.location.utils.locationupdaterequesters.IgnitedGingerbreadLocationUpdateRequester

public class IgnitedGingerbreadLocationUpdateRequester
extends IgnitedFroyoLocationUpdateRequester

Provides support for initiating active and passive location updates optimized for the Gingerbread release. Includes use of the Passive Location Provider. Uses broadcast Intents to notify the app of location changes.


Field Summary
 
Fields inherited from class com.github.ignition.location.utils.locationupdaterequesters.IgnitedLegacyLocationUpdateRequester
alarmManager
 
Fields inherited from class com.github.ignition.location.templates.IgnitedAbstractLocationUpdateRequester
locationManager, TAG
 
Constructor Summary
IgnitedGingerbreadLocationUpdateRequester(android.location.LocationManager locationManager)
           
 
Method Summary
 void requestLocationUpdates(long minTime, long minDistance, android.location.Criteria criteria, android.app.PendingIntent pendingIntent)
          Request active location updates.
 
Methods inherited from class com.github.ignition.location.utils.locationupdaterequesters.IgnitedFroyoLocationUpdateRequester
requestPassiveLocationUpdates
 
Methods inherited from class com.github.ignition.location.templates.IgnitedAbstractLocationUpdateRequester
removeLocationUpdates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IgnitedGingerbreadLocationUpdateRequester

public IgnitedGingerbreadLocationUpdateRequester(android.location.LocationManager locationManager)
Method Detail

requestLocationUpdates

public void requestLocationUpdates(long minTime,
                                   long minDistance,
                                   android.location.Criteria criteria,
                                   android.app.PendingIntent pendingIntent)
Request active location updates. These updates will be triggered by a direct request from the Location Manager.

Overrides:
requestLocationUpdates in class IgnitedLegacyLocationUpdateRequester
Parameters:
minTime - Minimum time that should elapse between location update broadcasts.
minDistance - Minimum distance that should have been moved between location update broadcasts.
criteria - Criteria that define the Location Provider to use to detect the Location.
pendingIntent - The Pending Intent to broadcast to notify the app of active location changes.


Copyright © 2012. All Rights Reserved.