urbanairship-core/src/main/java/com/urbanairship/location/UALocationProvider.java
@WorkerThread
    Cancelable requestSingleLocation(@NonNull LocationRequestOptions options, ResultCallback<Location> resultCallback) {
        connect();

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

        Logger.verbose("UALocationProvider - Requesting single location update: " + options);

        try {
            return availableAdapter.requestSingleLocation(context, options, resultCallback);
        } catch (Exception ex) {
            Logger.error("Unable to request location: " + ex.getMessage());
        }

        return null;
    }
/**
     * Requests a single location update.
     *
     * @param options The request options.
     * @return A pending location result.
     */
Requests a single location update.
@param options The request options.
@return A pending location result.
Requests a single location update . @param options The request options . @return A pending location result .
@WorkerThread
    Cancelable requestSingleLocation(@NonNull LocationRequestOptions options, ResultCallback<Location> resultCallback) {
        connect();
        if (availableAdapter == null) {
            Logger.debug("UALocationProvider - Ignoring request, connected adapter unavailable.");
        }
        Logger.verbose("UALocationProvider - Requesting single location update: " + options);
        try {
            return availableAdapter.requestSingleLocation(context, options, resultCallback);
        } catch (Exception ex) {
            Logger.error("Unable to request location: " + ex.getMessage());
        }
        return null;
    }
@ WorkerThread Cancelable requestSingleLocation ( @ NonNull LocationRequestOptions options , ResultCallback < Location > resultCallback ) { connect ( ) ; if ( availableAdapter == null ) { Logger . debug ( "UALocationProvider - Ignoring request, connected adapter unavailable." ) ; } Logger . verbose ( "UALocationProvider - Requesting single location update: " + options ) ; try { return availableAdapter . requestSingleLocation ( context , options , resultCallback ) ; } catch ( Exception ex ) { Logger . error ( "Unable to request location: " + ex . getMessage ( ) ) ; } return null ; }
Requests a single location update.
Requests a single location update .