SpatialAudioDeviceConfiguration.ConfigurationChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于裝置的空間音訊狀態變更時。
// Register
event_token ConfigurationChanged(TypedEventHandler<SpatialAudioDeviceConfiguration, IInspectable const&> const& handler) const;
// Revoke with event_token
void ConfigurationChanged(event_token const* cookie) const;
// Revoke with event_revoker
SpatialAudioDeviceConfiguration::ConfigurationChanged_revoker ConfigurationChanged(auto_revoke_t, TypedEventHandler<SpatialAudioDeviceConfiguration, IInspectable const&> const& handler) const;
public event TypedEventHandler<SpatialAudioDeviceConfiguration,object> ConfigurationChanged;
function onConfigurationChanged(eventArgs) { /* Your code */ }
spatialAudioDeviceConfiguration.addEventListener("configurationchanged", onConfigurationChanged);
spatialAudioDeviceConfiguration.removeEventListener("configurationchanged", onConfigurationChanged);
- or -
spatialAudioDeviceConfiguration.onconfigurationchanged = onConfigurationChanged;
Public Custom Event ConfigurationChanged As TypedEventHandler(Of SpatialAudioDeviceConfiguration, Object)
事件類型
TypedEventHandler<SpatialAudioDeviceConfiguration,IInspectable>