Class ConnectionToastFragment

  • public class ConnectionToastFragment
    extends Fragment
    Definition of the toast fragment. Handles network connectivity notifications. Embed this fragment in your activity or fragment to show toast message with network connectivity loss.

    This fragment embeds Snackbar behavior into the parent fragment. In order for it to push parent fragment view up as it presents itself the parent must wrap its layout in CoordinatorLayout and define layout_behavior with CoordinatorLayout.Behavior.

    See Also:
    • Constructor Detail

      • ConnectionToastFragment

        public ConnectionToastFragment()
    • Method Detail

      • onAttach

        public void onAttach(Activity activity)
      • onCreate

        public void onCreate(Bundle savedInstanceState)
      • onStart

        public void onStart()
      • onStop

        public void onStop()
      • onDestroy

        public void onDestroy()