dotnet / dotnet/maui

Make `MauiWindowInsetListener` public

Open
#33,751 0 comments 2 reactions 0 assignees View on GitHub
proposal/open
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

### Description

One should be able to add MAUI elements to the Android's root node for "overlay" purpose, and they may want to react to window insets.

### Public API Changes

Make Android's `MauiWindowInsetListener` public.
But please let's do it only when core pieces has been moved to Java so that performance is good enough and the API is stable.

### Intended Use-Case

I would love my custom TabBar component, which lives outside of the MAUI tree, to support `SafeAreaEdges`.

I was forced to access this class via Reflection, which is not good:
https://github.com/nalu-development/nalu/commit/0205456621eb1b6b53f5f67bb4197b678c48a4e5

See also this discussion: https://github.com/nalu-development/nalu/discussions/124

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.