Java 类com.google.android.gms.location.places.PlaceFilter 实例源码

项目:GitHub    文件:ReactiveLocationProvider.java   
/**
 * Returns observable that fetches current place from Places API. To flatmap and auto release
 * buffer to {@link com.google.android.gms.location.places.PlaceLikelihood} observable use
 * {@link DataBufferObservable}.
 *
 * @param placeFilter filter
 * @return observable that emits current places buffer and completes
 */
public Observable<PlaceLikelihoodBuffer> getCurrentPlace(@Nullable final PlaceFilter placeFilter) {
    return getGoogleApiClientObservable(Places.PLACE_DETECTION_API, Places.GEO_DATA_API)
            .flatMap(new Func1<GoogleApiClient, Observable<PlaceLikelihoodBuffer>>() {
                @Override
                public Observable<PlaceLikelihoodBuffer> call(GoogleApiClient api) {
                    return fromPendingResult(Places.PlaceDetectionApi.getCurrentPlace(api, placeFilter));
                }
            });
}
项目:RxTask    文件:RxPlaceDetectionClient.java   
@NonNull
@RequiresPermission("android.permission.ACCESS_FINE_LOCATION")
public Single<PlaceLikelihoodBufferResponse> getCurrentPlace(@Nullable PlaceFilter filter) {
    return SingleTask.create(() -> client.getCurrentPlace(filter));
}
项目:android_packages_apps_GmsCore    文件:GoogleLocationManagerServiceImpl.java   
@Override
public void iglms14(LatLngBounds var1, int var2, PlaceFilter var3, PlacesParams var4,
                    IPlacesCallbacks var5) throws RemoteException {
    Log.d(TAG, "iglms14: " + var1);
}
项目:android_packages_apps_GmsCore    文件:GoogleLocationManagerServiceImpl.java   
@Override
public void iglms16(LatLng var1, PlaceFilter var2, PlacesParams var3, IPlacesCallbacks var4)
        throws RemoteException {
    Log.d(TAG, "iglms16: " + var1);
}
项目:android_packages_apps_GmsCore    文件:GoogleLocationManagerServiceImpl.java   
@Override
public void iglms17(PlaceFilter var1, PlacesParams var2, IPlacesCallbacks var3)
        throws RemoteException {
    Log.d(TAG, "iglms17: " + var1);
}
项目:android_packages_apps_GmsCore    文件:GoogleLocationManagerServiceImpl.java   
@Override
public void iglms47(LatLngBounds var1, int var2, String var3, PlaceFilter var4,
                    PlacesParams var5, IPlacesCallbacks var6) throws RemoteException {
    Log.d(TAG, "iglms47: " + var1);
}