Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/fragments/CommonFragmentListener.java
package it.reyboz.bustorino.fragments; | package it.reyboz.bustorino.fragments; | ||||
import android.location.Location; | |||||
import android.view.View; | import android.view.View; | ||||
import it.reyboz.bustorino.backend.Stop; | |||||
public interface CommonFragmentListener { | public interface CommonFragmentListener { | ||||
/** | /** | ||||
* Tell the activity that we need to disable/enable its floatingActionButton | * Tell the activity that we need to disable/enable its floatingActionButton | ||||
* @param yes or no | * @param yes or no | ||||
*/ | */ | ||||
Show All 11 Lines | public interface CommonFragmentListener { | ||||
* @param ID the Stop ID | * @param ID the Stop ID | ||||
*/ | */ | ||||
void requestArrivalsForStopID(String ID); | void requestArrivalsForStopID(String ID); | ||||
/** | /** | ||||
* Method to call when we want to hide the keyboard | * Method to call when we want to hide the keyboard | ||||
*/ | */ | ||||
void hideKeyboard(); | void hideKeyboard(); | ||||
/** | |||||
* We want to open the map on the specified stop | |||||
* @param stop needs to have location data (latitude, longitude) | |||||
*/ | |||||
void showMapCenteredOnStop(Stop stop); | |||||
} | } |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register