Regarding this simple Android Developper Documentation this is the way to use "Action" buttons in a "Media Style" :
https://developer.android.com/develop/ui/views/notifications/expanded?hl=en#media-style
And I remember that was the solution I used in my Xamarin app version.
Unfortunately, in MAUI, there isn’t MediaStyleNotificationHelper
.
However, NotificationCompat.Builder.SetStyle()
seems to wait a NotificationCompat.Style
and NotificationCompat
seems to have static property inherited from NotificationCompat.Style
:
- BigTextStyle
- CallStyle
- InboxStyle
- MessagingStyle
- DecoratedCustomViewStyle
But no MediaStyle.
Is there a way to use MediaStyle
in MAUI ?
I tried "F1" on SetStyle
from Visual Studio 2022, but I found a "Oups!" page without content…