Class SnackbarUtils
java.lang.Object
com.example.slacks_lottoevent.Utility.SnackbarUtils
SnackbarUtils is a utility class that provides methods to display snackbars.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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.
-