Package 

Interface AnalysisFragmentInterface

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void hideError() Call this method to hide the error shown before with showError or 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.
      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.
      abstract void setListener(@NonNull() AnalysisFragmentListener listener) Set a listener for analysis events.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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 message
        duration - 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 message
        buttonTitle - if not null and not empty, shows a button with the given title
        onClickListener - 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