MediaControl.RecordPressed 事件

定义

注意

mediaControl 可能会在Windows 8.1后更改或不适用于发布。 请改用 SystemMediaTransportControls

向应用程序发出 Record 命令时引发的事件。

/// [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 RecordPressed(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
static MediaControl::RecordPressed_revoker RecordPressed(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 RecordPressed(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
static MediaControl::RecordPressed_revoker RecordPressed(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> RecordPressed;
[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> RecordPressed;
function onRecordPressed(eventArgs) { /* Your code */ }
Windows.Media.MediaControl.addEventListener("recordpressed", onRecordPressed);
Windows.Media.MediaControl.removeEventListener("recordpressed", onRecordPressed);
- or -
Windows.Media.MediaControl.onrecordpressed = onRecordPressed;
Public Shared Custom Event RecordPressed As EventHandler(Of Object) 

事件类型

属性

适用于