ActivationViewSwitcher
ActivationViewSwitcher
ActivationViewSwitcher
ActivationViewSwitcher
Class
Definition
Provides methods for switching to an app view in response to an activation.
public : sealed class ActivationViewSwitcher : IActivationViewSwitcherpublic sealed class ActivationViewSwitcher : IActivationViewSwitcherPublic NotInheritable Class ActivationViewSwitcher Implements IActivationViewSwitcher// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Get an instance of ActivationViewSwitcher from the ViewSwitcher property of the activation event args. To use the ActivationViewSwitcher you must first disable the system view activation policy by calling DisableSystemViewActivationPolicy. The first activation of an app cannot use the ActivationViewSwitcher to control which view to show. Apps can only use it in subsequent activations.
Methods
IsViewPresentedOnActivationVirtualDesktop(Int32) IsViewPresentedOnActivationVirtualDesktop(Int32) IsViewPresentedOnActivationVirtualDesktop(Int32) IsViewPresentedOnActivationVirtualDesktop(Int32)
Returns a value that indicates whether the specified view is present on the virtual desktop that the activation was initiated on.
public : PlatForm::Boolean IsViewPresentedOnActivationVirtualDesktop(int viewId)public bool IsViewPresentedOnActivationVirtualDesktop(Int32 viewId)Public Function IsViewPresentedOnActivationVirtualDesktop(viewId As Int32) As bool// You can use this method in JavaScript.
- viewId
- int Int32 Int32 Int32
The identifier for that view that is being activated.
true if the view is present on the virtual desktop that the activation was initiated on; otherwise, false.
ShowAsStandaloneAsync(Int32) ShowAsStandaloneAsync(Int32) ShowAsStandaloneAsync(Int32) ShowAsStandaloneAsync(Int32)
Shows the view in a new standalone window.
public : IAsyncAction ShowAsStandaloneAsync(int viewId)public IAsyncAction ShowAsStandaloneAsync(Int32 viewId)Public Function ShowAsStandaloneAsync(viewId As Int32) As IAsyncAction// You can use this method in JavaScript.
- viewId
- int Int32 Int32 Int32
The identifier for the view.
The asynchronous results of the operation. Use this to determine when the async call is complete.
- See Also
ShowAsStandaloneAsync(Int32, ViewSizePreference) ShowAsStandaloneAsync(Int32, ViewSizePreference) ShowAsStandaloneAsync(Int32, ViewSizePreference) ShowAsStandaloneAsync(Int32, ViewSizePreference)
Shows the view in a new standalone window and sets the size preference for the view.
public : IAsyncAction ShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference)public IAsyncAction ShowAsStandaloneAsync(Int32 viewId, ViewSizePreference sizePreference)Public Function ShowAsStandaloneAsync(viewId As Int32, sizePreference As ViewSizePreference) As IAsyncAction// You can use this method in JavaScript.
- viewId
- int Int32 Int32 Int32
The identifier for the view.
- sizePreference
- ViewSizePreference ViewSizePreference ViewSizePreference ViewSizePreference
The preferred size of the view.
The asynchronous results of the operation. Use this to determine when the async call is complete.
- See Also