WindowInfoTracker.Companion

object WindowInfoTracker.Companion


Summary

Public functions

WindowInfoTracker
getOrCreate(context: Context)

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

Public functions

getOrCreate

fun getOrCreate(context: Context): WindowInfoTracker

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
context: Context

Any valid Context.

See also
windowLayoutInfo