WindowInfoRepository
interface WindowInfoRepository
WindowInfoRepositoryCallbackAdapter |
An adapted interface for |
An interface to provide all the relevant info about a android.view.Window.
Summary
Nested types |
|
|---|---|
WindowInfoRepository.Companion |
|
Public fields |
|
|---|---|
abstract @NonNull Flow<@NonNull WindowMetrics> |
Returns a |
abstract @NonNull Flow<@NonNull WindowLayoutInfo> |
A |
Extension functions |
|
|---|---|
final default @NonNull Flowable<@NonNull WindowMetrics> |
Return a |
final default @NonNull Flowable<@NonNull WindowMetrics> |
Return a |
final default @NonNull Observable<@NonNull WindowMetrics> |
Return an |
final default @NonNull Observable<@NonNull WindowMetrics> |
Return an |
final default @NonNull Flowable<@NonNull WindowLayoutInfo> |
Return a |
final default @NonNull Flowable<@NonNull WindowLayoutInfo> |
Return a |
final default @NonNull Observable<@NonNull WindowLayoutInfo> |
Return an |
final default @NonNull Observable<@NonNull WindowLayoutInfo> |
Return an |
Public fields
currentWindowMetrics
@NonNull
abstract @NonNull Flow<@NonNull WindowMetrics> currentWindowMetrics
Returns a Flow for consuming the current WindowMetrics according to the current system state.
The metrics describe the size of the area the window would occupy with MATCH_PARENT width and height and any combination of flags that would allow the window to extend behind display cutouts.
The value of this is based on the current windowing state of the system. For example, for activities in multi-window mode, the metrics returned are based on the current bounds that the user has selected for the Activity's window.
| See also | |
|---|---|
getCurrentWindowMetrics |
|
windowLayoutInfo
@NonNull
abstract @NonNull Flow<@NonNull WindowLayoutInfo> windowLayoutInfo
A Flow of WindowLayoutInfo that contains all the available features.
Extension functions
WindowInfoRepositoryRx.currentWindowMetricsFlowable
@NonNull
final default Flowable<@NonNull WindowMetrics> WindowInfoRepositoryRx.currentWindowMetricsFlowable(
@NonNull WindowInfoRepository receiver
)
Return a Flowable stream of WindowMetrics.
| See also | |
|---|---|
currentWindowMetrics |
|
WindowInfoRepositoryRx.currentWindowMetricsFlowable
@NonNull
final default Flowable<@NonNull WindowMetrics> WindowInfoRepositoryRx.currentWindowMetricsFlowable(
@NonNull WindowInfoRepository receiver
)
Return a Flowable stream of WindowMetrics.
| See also | |
|---|---|
currentWindowMetrics |
|