Class SnackbarUtils

java.lang.Object
com.example.slacks_lottoevent.Utility.SnackbarUtils

public class SnackbarUtils extends Object
SnackbarUtils is a utility class that provides methods to display snackbars.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    promptCreateFacility(android.view.View view, android.content.Context context, int anchorViewId)
    Display a snackbar prompting the user to create a facility.
    static void
    promptSignUp(android.view.View view, android.content.Context context, int anchorViewId)
    Display a snackbar prompting the user to sign up.

    Methods inherited from class java.lang.Object

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

    • SnackbarUtils

      public SnackbarUtils()
  • Method Details

    • promptSignUp

      public static void promptSignUp(android.view.View view, android.content.Context context, int anchorViewId)
      Display a snackbar prompting the user to sign up.
      Parameters:
      view - The view to anchor the snackbar.
      context - The context to start the activity.
      anchorViewId - The ID of the view to anchor the snackbar.
    • promptCreateFacility

      public static void promptCreateFacility(android.view.View view, android.content.Context context, int anchorViewId)
      Display a snackbar prompting the user to create a facility.
      Parameters:
      view - The view to anchor the snackbar.
      context - The context to start the activity.
      anchorViewId - The ID of the view to anchor the snackbar.