MediaControl.PlayPauseTogglePressed イベント
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Note
mediaControl は、Windows 8.1後のリリースで変更または使用できない場合があります。 代わりに、 SystemMediaTransportControls を使用します。
PlayPauseToggle コマンドがアプリケーションに発行されたときに発生するイベント。
/// [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 PlayPauseTogglePressed(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void PlayPauseTogglePressed(event_token const* cookie) const;
// Revoke with event_revoker
static MediaControl::PlayPauseTogglePressed_revoker PlayPauseTogglePressed(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 PlayPauseTogglePressed(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void PlayPauseTogglePressed(event_token const* cookie) const;
// Revoke with event_revoker
static MediaControl::PlayPauseTogglePressed_revoker PlayPauseTogglePressed(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> PlayPauseTogglePressed;
[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> PlayPauseTogglePressed;
function onPlayPauseTogglePressed(eventArgs) { /* Your code */ }
Windows.Media.MediaControl.addEventListener("playpausetogglepressed", onPlayPauseTogglePressed);
Windows.Media.MediaControl.removeEventListener("playpausetogglepressed", onPlayPauseTogglePressed);
- or -
Windows.Media.MediaControl.onplaypausetogglepressed = onPlayPauseTogglePressed;
Public Shared Custom Event PlayPauseTogglePressed As EventHandler(Of Object)
イベントの種類
- 属性