mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
656 B
Java
26 lines
656 B
Java
package org.tasks.location;
|
|
|
|
import android.os.Bundle;
|
|
import androidx.annotation.DrawableRes;
|
|
import androidx.annotation.Nullable;
|
|
import java.util.List;
|
|
import org.tasks.Callback;
|
|
import org.tasks.data.Place;
|
|
|
|
public interface PlaceSearchProvider {
|
|
void restoreState(Bundle savedInstanceState);
|
|
|
|
void saveState(Bundle outState);
|
|
|
|
@DrawableRes int getAttributionRes(boolean dark);
|
|
|
|
void search(
|
|
String query,
|
|
@Nullable MapPosition bias,
|
|
Callback<List<PlaceSearchResult>> onSuccess,
|
|
Callback<String> onError);
|
|
|
|
void fetch(
|
|
PlaceSearchResult placeSearchResult, Callback<Place> onSuccess, Callback<String> onError);
|
|
}
|