-
- All Implemented Interfaces:
public interface AnalysisFragmentInterfaceMethods which Analysis Fragment must implement.
-
-
Method Summary
Modifier and Type Method Description abstract voidhideError()Call this method to hide the error shown before with showError or showError. abstract voidshowError(@NonNull() String message, int duration)Call this method when you need to show an error message to the user in the Analysis Screen. abstract voidshowError(@NonNull() String message, @NonNull() String buttonTitle, @NonNull() View.OnClickListener onClickListener)Call this method when you need to show an error message with an invokable action to the user in the Analysis Screen. abstract voidsetListener(@NonNull() AnalysisFragmentListener listener)Set a listener for analysis events. -
-
Method Detail
-
hideError
abstract void hideError()
-
showError
abstract void showError(@NonNull() String message, int duration)
Call this method when you need to show an error message to the user in the Analysis Screen.
- Parameters:
message- a short error messageduration- how long should the error message be shown in ms
-
showError
abstract void showError(@NonNull() String message, @NonNull() String buttonTitle, @NonNull() View.OnClickListener onClickListener)
Call this method when you need to show an error message with an invokable action to the user in the Analysis Screen.
- Parameters:
message- a short error messagebuttonTitle- if not null and not empty, shows a button with the given titleonClickListener- listener for the button
-
setListener
abstract void setListener(@NonNull() AnalysisFragmentListener listener)
Set a listener for analysis events.
By default the hosting Activity is expected to implement the AnalysisFragmentListener. In case that is not feasible you may set the listener using this method.
Note: the listener is expected to be available until the fragment is attached to an activity. Make sure to set the listener before that.
- Parameters:
listener- AnalysisFragmentListener instance
-
-
-
-