Where are these capablities documented? (inputinjection, applicatioViewActivation) and how to embed external applicationviews into my UWP apps window

valaki2K18ban 21 Reputation points
2020-09-11T02:22:56.073+00:00

I recenty looked at some system apps and tried to figure out how I can achieve the same effect as those apps.
I found this in an apps appxmanifest and can't find any documentation:

xmlns:wincap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/windowscapabilities"
<wincap:Capability Name="applicationViewActivation"/>
<wincap:Capability Name="inputInjection"/>

I found this in the old W10M Continuum app but the point is this app can embed other applicationviews in itself (as far as I can see here) and the Continuum app then passes my HID input to those apps. How can I achieve a similar effect in my UWP app or where can I find the documentations to those windows capabilities?

Universal Windows Platform (UWP)
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,538 questions
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 32,051 Reputation points Microsoft Vendor
    2020-09-11T05:55:47.933+00:00

    Hello,

    Welcome to Microsoft Q&A!

    There is the document for all the capabilities that are available now: App capability declarations.
    You can see that currently, there is no capability called applicationViewActivation. This means the capability is not available for the public or the capability is removed.

    For another capability, it should be inputInjectionBrokered now. It's a restricted capability. You may request approval from the store team for this capability in your app if you want to submit to the Store.

    This capability is used to allows apps to inject various forms of input using InputInjector Class. You could refer to this document Injection which contains a sample code snippet that implements the function.

    For the second question, there is no way to embed other application's views into UWP apps based on the API available for the public.

    Thank you.


0 additional answers

Sort by: Most helpful