Package 

Class SnackbarViewModel


  • 
    public class SnackbarViewModel
    extends ViewModel
                        

    A ViewModel the maintainer the SnackbarHostState, and a reference to the Manager for both processes snackbars sequentially and also showing a message.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final SnackbarHostState snackbarHostState
    • Method Summary

      Modifier and Type Method Description
      final SnackbarHostState getSnackbarHostState()
      • Methods inherited from class com.google.android.horologist.media.ui.snackbar.SnackbarViewModel

        addCloseable, clear, getTag, onCleared, setTagIfAbsent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait