Package 

Class AutoClearedValue

  • All Implemented Interfaces:
    kotlin.properties.ReadOnlyProperty , kotlin.properties.ReadWriteProperty

    
    public final class AutoClearedValue<T extends Object>
     implements ReadWriteProperty<Fragment, T>
                        

    A lazy property that gets cleaned up when the fragment's view is destroyed.

    Accessing this variable while the fragment's view is destroyed will throw NPE.