Share via


MediaPlaybackCommandManagerCommandBehavior Class

Definition

For use with a MediaPlaybackCommandManager object, this class allows you to enable and disable System Media Transport Controls commands and allows you to respond to changes in the enabled state of a command.

public ref class MediaPlaybackCommandManagerCommandBehavior sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MediaPlaybackCommandManagerCommandBehavior final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MediaPlaybackCommandManagerCommandBehavior
Public NotInheritable Class MediaPlaybackCommandManagerCommandBehavior
Inheritance
Object Platform::Object IInspectable MediaPlaybackCommandManagerCommandBehavior
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

Get an instance of this class by accessing one of the behavior properties of a MediaPlaybackCommandManager object.

Properties

CommandManager

Gets the MediaPlaybackCommandManager associated with the behavior.

EnablingRule

Gets or sets a value indicating whether a System Media Transport Controls command should always be enabled, should never be enabled, or if the system should automatically determine whether the command is enabled.

IsEnabled

Gets a value indicating whether a System Media Transport Controls command is currently enabled.

Events

IsEnabledChanged

Occurs when the enabled state of a System Media Transport Controls command changes.

Applies to