HolographicSpace.IsAvailableChanged Événement

Définition

Se produit lorsqu’un casque configuré et prêt Mixed Reality est attaché ou détaché du système.

// Register
static event_token IsAvailableChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void IsAvailableChanged(event_token const* cookie) const;

// Revoke with event_revoker
static HolographicSpace::IsAvailableChanged_revoker IsAvailableChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> IsAvailableChanged;
function onIsAvailableChanged(eventArgs) { /* Your code */ }
Windows.Graphics.Holographic.HolographicSpace.addEventListener("isavailablechanged", onIsAvailableChanged);
Windows.Graphics.Holographic.HolographicSpace.removeEventListener("isavailablechanged", onIsAvailableChanged);
- or -
Windows.Graphics.Holographic.HolographicSpace.onisavailablechanged = onIsAvailableChanged;
Public Shared Custom Event IsAvailableChanged As EventHandler(Of Object) 

Type d'événement

Configuration requise pour Windows

Famille d’appareils
Windows 10 Creators Update (introduit dans 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v4.0)

Remarques

Sur les PC de bureau, cela indique à une application quand un casque Mixed Reality configuré et prêt est attaché au PC ou détaché du PC. Inspectez la propriété IsAvailable pour déterminer l’état actuel du système.

Sur HoloLens, cet événement ne se produit jamais, car le rendu holographique est toujours disponible.

S’applique à