HolographicSpace.IsAvailableChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a configured and ready Mixed Reality headset is attached or detached from the system.
// 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)
Event Type
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Remarks
On Desktop PCs, this tells an app when a Mixed Reality headset that is configured and ready is either attached to the PC or detached from the PC. Inspect the IsAvailable property to determine the current state of the system.
On HoloLens, this event will never occur, as holographic rendering is always available.