urbanairship-core/src/main/java/com/urbanairship/location/UALocationProvider.java
@WorkerThread
    void cancelRequests() {
        Logger.verbose("UALocationProvider - Canceling location requests.");
        connect();

        if (availableAdapter == null) {
            Logger.debug("UALocationProvider - Ignoring request, connected adapter unavailable.");
            return;
        }

        try {
            PendingIntent pendingIntent = PendingIntent.getService(context, availableAdapter.getRequestCode(), this.locationUpdateIntent, PendingIntent.FLAG_NO_CREATE);
            if (pendingIntent != null) {
                availableAdapter.cancelLocationUpdates(context, pendingIntent);
            }
        } catch (Exception ex) {
            Logger.error("Unable to cancel location updates: " + ex.getMessage());
        }
    }
/**
     * Cancels all location requests for the connected adapter's pending intent.
     */
Cancels all location requests for the connected adapter's pending intent.
Cancels all location requests for the connected adapter ' s pending intent .
@WorkerThread
    void cancelRequests() {
        Logger.verbose("UALocationProvider - Canceling location requests.");
        connect();
        if (availableAdapter == null) {
            Logger.debug("UALocationProvider - Ignoring request, connected adapter unavailable.");
            return;
        }
        try {
            PendingIntent pendingIntent = PendingIntent.getService(context, availableAdapter.getRequestCode(), this.locationUpdateIntent, PendingIntent.FLAG_NO_CREATE);
            if (pendingIntent != null) {
                availableAdapter.cancelLocationUpdates(context, pendingIntent);
            }
        } catch (Exception ex) {
            Logger.error("Unable to cancel location updates: " + ex.getMessage());
        }
    }
@ WorkerThread void cancelRequests ( ) { Logger . verbose ( "UALocationProvider - Canceling location requests." ) ; connect ( ) ; if ( availableAdapter == null ) { Logger . debug ( "UALocationProvider - Ignoring request, connected adapter unavailable." ) ; return ; } try { PendingIntent pendingIntent = PendingIntent . getService ( context , availableAdapter . getRequestCode ( ) , this . locationUpdateIntent , PendingIntent . FLAG_NO_CREATE ) ; if ( pendingIntent != null ) { availableAdapter . cancelLocationUpdates ( context , pendingIntent ) ; } } catch ( Exception ex ) { Logger . error ( "Unable to cancel location updates: " + ex . getMessage ( ) ) ; } }
Cancels all location requests for the connected adapter's pending intent.
Cancels all location requests for the connected adapter ' s pending intent .