Hello,
Welcome to Microsoft Q&A!
I have to say, you can't detect which package is game type with PackageManager
api, and Package class does not contain such product kind
property.
For your scenario, the better way is use app's StoreProduct
to identify game app. Because StoreProduct has ProductKind
property, if the value is Game, you could regard it as game app. For more info please refer to Get product info for apps and add-ons.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.