media icon indicating copy to clipboard operation
media copied to clipboard

Android Auto callback for opening browsable media items

Open jqi26 opened this issue 6 months ago • 0 comments

Hi there. I was wondering if there's a way to know when a browsable media item has been opened (tapped) but nothing has been played yet? For example, maybe an override in MediaLibrarySession.Callback?. Specifically we want to track analytics whenever these are opened. For example for the top menu items if we knew which were tapped the most often then we could re-order them for safety.

Methods like onGetChildren get called for each of the browsable media items in the top menu all at once, even before the tab has been opened yet, and doesn't get invoked again. Is there another method (or an entirely different mechanism) to be notified each time a browsable item is opened? Thanks in advance!

jqi26 avatar Jun 20 '25 05:06 jqi26