WindowInfoTracker.Companion

public static class WindowInfoTracker.Companion


Summary

Public methods

static final @NonNull WindowInfoTracker

Provide an instance of WindowInfoTracker that is associated to the given Context.

Public methods

getOrCreate

public static final @NonNull WindowInfoTracker getOrCreate(@NonNull Context context)

Provide an instance of WindowInfoTracker that is associated to the given Context. The instance created should be safe to retain globally. The actual data is provided by WindowInfoTracker.windowLayoutInfo and requires an Activity.

Parameters
@NonNull Context context

Any valid Context.

See also
windowLayoutInfo