Package 

Class ViewBindingLifecycleExtensionKt

    • Method Summary

      Modifier and Type Method Description
      final static <T extends ViewBinding> ReadWriteProperty<Fragment, T> viewLifecycle(Fragment $self) An extension to bind and unbind a value based on the view lifecycle of a Fragment.
      final static <T extends ViewBinding> <ERROR CLASS> viewLifecycle(AppCompatActivity $self, Function1<LayoutInflater, T> bindingInflater) An overloaded inline function to bind and unbind a value in an Activity.
      • Methods inherited from class java.lang.Object

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

      • viewLifecycle

         final static <T extends ViewBinding> ReadWriteProperty<Fragment, T> viewLifecycle(Fragment $self)

        An extension to bind and unbind a value based on the view lifecycle of a Fragment. The binding will be unbound in onDestroyView.

      • viewLifecycle

         final static <T extends ViewBinding> <ERROR CLASS> viewLifecycle(AppCompatActivity $self, Function1<LayoutInflater, T> bindingInflater)

        An overloaded inline function to bind and unbind a value in an Activity.