urbanairship-core/src/main/java/com/urbanairship/location/UALocationProvider.java
@WorkerThread
    void requestLocationUpdates(@NonNull LocationRequestOptions options) {
        connect();

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

        Logger.verbose("UALocationProvider - Requesting location updates: " + options);
        try {
            PendingIntent pendingIntent = PendingIntent.getService(context, availableAdapter.getRequestCode(), this.locationUpdateIntent, PendingIntent.FLAG_UPDATE_CURRENT);
            availableAdapter.requestLocationUpdates(context, options, pendingIntent);
        } catch (Exception ex) {
            Logger.error("Unable to request location updates: " + ex.getMessage());
        }
    }
/**
     * Requests location updates.
     *
     * @param options The request options.
     * @throws IllegalStateException if the provider is not connected.
     */
Requests location updates.
@param options The request options.
@throws IllegalStateException if the provider is not connected.
Requests location updates . @param options The request options . @throws IllegalStateException if the provider is not connected .
@WorkerThread
    void requestLocationUpdates(@NonNull LocationRequestOptions options) {
        connect();
        if (availableAdapter == null) {
            Logger.debug("UALocationProvider - Ignoring request, connected adapter unavailable.");
            return;
        }
        Logger.verbose("UALocationProvider - Requesting location updates: " + options);
        try {
            PendingIntent pendingIntent = PendingIntent.getService(context, availableAdapter.getRequestCode(), this.locationUpdateIntent, PendingIntent.FLAG_UPDATE_CURRENT);
            availableAdapter.requestLocationUpdates(context, options, pendingIntent);
        } catch (Exception ex) {
            Logger.error("Unable to request location updates: " + ex.getMessage());
        }
    }
@ WorkerThread void requestLocationUpdates ( @ NonNull LocationRequestOptions options ) { connect ( ) ; if ( availableAdapter == null ) { Logger . debug ( "UALocationProvider - Ignoring request, connected adapter unavailable." ) ; return ; } Logger . verbose ( "UALocationProvider - Requesting location updates: " + options ) ; try { PendingIntent pendingIntent = PendingIntent . getService ( context , availableAdapter . getRequestCode ( ) , this . locationUpdateIntent , PendingIntent . FLAG_UPDATE_CURRENT ) ; availableAdapter . requestLocationUpdates ( context , options , pendingIntent ) ; } catch ( Exception ex ) { Logger . error ( "Unable to request location updates: " + ex . getMessage ( ) ) ; } }
Requests location updates.
Requests location updates .