AutoClearedValue

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.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public final Fragment getFragment()
Link copied to clipboard
public T getValue(Fragment thisRef, KProperty<?> property)
Link copied to clipboard
public Unit setValue(Fragment thisRef, KProperty<?> property, T value)

Properties

Link copied to clipboard
private final Fragment fragment