Class A3LLastLocationRequest.Builder

    • Method Detail

      • setGranularity

        @NonNull
        public A3LLastLocationRequest.Builder setGranularity​(int granularity)
        Sets the Granularity of locations returned for this request. This controls whether fine or coarse locations may be returned.

        The default value is A3LGranularity.GRANULARITY_PERMISSION_LEVEL.

        Parameters:
        granularity - : Granularity of locations to be returned for this request.
        Returns:
        A3LLastLocationRequest.Builder
      • setMaxUpdateAgeMillis

        @NonNull
        public A3LLastLocationRequest.Builder setMaxUpdateAgeMillis​(long maxUpdateAgeMillis)
        Sets the maximum age of any location returned for this request. A value of Long.MAX_VALUE represents an effectively unbounded maximum age.

        The default value is Long.MAX_VALUE.

        Parameters:
        maxUpdateAgeMillis - : Maximum age of any location to be returned for this request.
        Returns:
        A3LLastLocationRequest.Builder