Вопрос

I'm a bit confused about how to determine the state of a Windows 8.1 Store app. The goal I'm attempting to accomplish is to only show Toast notifications if a particular view of the app is not in focus.

I have a background audio playing app, and want to show a toast notification when the track changes, but only if they don't have the tracklist view on screen. if they navigate to another view or if they put the app in the background, I want the toasts to show.

If they are on the tracklist screen, and change a track, no toast should show, because the track being played is clearly shown on the screen.

is this possible? what do I do to detect the state of the app?

many thanks!

Это было полезно?
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top