MediaControl.SoundLevelChanged Evento
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Nota
MediaControl può essere modificato o non disponibile per le versioni dopo Windows 8.1. Usare invece SystemMediaTransportControls.
Evento generato quando cambia il livello audio.
/// [add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Media.MediaControlContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Media.MediaControlContract)]
// Register
static event_token SoundLevelChanged(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void SoundLevelChanged(event_token const* cookie) const;
// Revoke with event_revoker
static MediaControl::SoundLevelChanged_revoker SoundLevelChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
// Register
static event_token SoundLevelChanged(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void SoundLevelChanged(event_token const* cookie) const;
// Revoke with event_revoker
static MediaControl::SoundLevelChanged_revoker SoundLevelChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Media.MediaControlContract))]
[remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Media.MediaControlContract))]
public static event System.EventHandler<object> SoundLevelChanged;
[add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
[remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
public static event System.EventHandler<object> SoundLevelChanged;
function onSoundLevelChanged(eventArgs) { /* Your code */ }
Windows.Media.MediaControl.addEventListener("soundlevelchanged", onSoundLevelChanged);
Windows.Media.MediaControl.removeEventListener("soundlevelchanged", onSoundLevelChanged);
- or -
Windows.Media.MediaControl.onsoundlevelchanged = onSoundLevelChanged;
Public Shared Custom Event SoundLevelChanged As EventHandler(Of Object)
Tipo evento
- Attributi