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.
34 lines
672 B
Java
34 lines
672 B
Java
package org.tasks.location;
|
|
|
|
import androidx.annotation.Nullable;
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
import java.util.List;
|
|
import org.tasks.data.Place;
|
|
|
|
public interface MapFragment {
|
|
|
|
void init(AppCompatActivity activity, MapFragmentCallback callback, boolean dark);
|
|
|
|
@Nullable MapPosition getMapPosition();
|
|
|
|
void movePosition(MapPosition mapPosition, boolean animate);
|
|
|
|
void setMarkers(List<Place> places);
|
|
|
|
void disableGestures();
|
|
|
|
void showMyLocation();
|
|
|
|
void onPause();
|
|
|
|
void onResume();
|
|
|
|
void onDestroy();
|
|
|
|
interface MapFragmentCallback {
|
|
void onMapReady(MapFragment mapFragment);
|
|
|
|
void onPlaceSelected(Place place);
|
|
}
|
|
}
|