MediaCommandEnablingRule MediaCommandEnablingRule MediaCommandEnablingRule MediaCommandEnablingRule MediaCommandEnablingRule Enum

Definition

Specifies a rule for enabling a System Media Transport Controls command.

public : enum class MediaCommandEnablingRule
enum class winrt::Windows::Media::Playback::MediaCommandEnablingRule : int32_t
public enum MediaCommandEnablingRule
Public Enum MediaCommandEnablingRule
var value = Windows.Media.Playback.MediaCommandEnablingRule.always;
Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Fields

Always Always Always Always Always 1

The command is always enabled.

Auto Auto Auto Auto Auto 0

The system dynamically determines whether the command is enabled.

Never Never Never Never Never 2

The command is never enabled.

Remarks

Set the EnablingRule property of a MediaPlaybackCommandManagerCommandBehavior object to specify the enabling rule for a System Media Transport Controls command that is managed by a MediaPlaybackCommandManager.