Share via


HolographicApplicationPreview.IsHolographicActivation Method

Definition

Gets whether a given app activation is targeted at the holographic shell.

public:
 static bool IsHolographicActivation(IActivatedEventArgs ^ activatedEventArgs);
 static bool IsHolographicActivation(IActivatedEventArgs const& activatedEventArgs);
public static bool IsHolographicActivation(IActivatedEventArgs activatedEventArgs);
function isHolographicActivation(activatedEventArgs)
Public Shared Function IsHolographicActivation (activatedEventArgs As IActivatedEventArgs) As Boolean

Parameters

activatedEventArgs
IActivatedEventArgs

The app activation to inspect.

Returns

Boolean

bool

Whether the activation is targeted at the holographic shell.

Remarks

On a Desktop PC, users can launch an app from either the desktop Start Menu or the holographic Start Menu if they have a Mixed Reality headset. Users can also activate applications through protocol activations in either the desktop or holographic shell, for example by clicking a link in another app currently located in that shell. This method lets an app reason about whether a given app activation is targeting the holographic shell or not, which may affect how the app chooses to inititalize its views.

On HoloLens, this will return true for all activations.

Applies to