MediaPlaybackCommandManagerCommandBehavior.IsEnabledChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当系统媒体传输控制命令的启用状态发生更改时发生。
// Register
event_token IsEnabledChanged(TypedEventHandler<MediaPlaybackCommandManagerCommandBehavior, IInspectable const&> const& handler) const;
// Revoke with event_token
void IsEnabledChanged(event_token const* cookie) const;
// Revoke with event_revoker
MediaPlaybackCommandManagerCommandBehavior::IsEnabledChanged_revoker IsEnabledChanged(auto_revoke_t, TypedEventHandler<MediaPlaybackCommandManagerCommandBehavior, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackCommandManagerCommandBehavior,object> IsEnabledChanged;
function onIsEnabledChanged(eventArgs) { /* Your code */ }
mediaPlaybackCommandManagerCommandBehavior.addEventListener("isenabledchanged", onIsEnabledChanged);
mediaPlaybackCommandManagerCommandBehavior.removeEventListener("isenabledchanged", onIsEnabledChanged);
- or -
mediaPlaybackCommandManagerCommandBehavior.onisenabledchanged = onIsEnabledChanged;
Public Custom Event IsEnabledChanged As TypedEventHandler(Of MediaPlaybackCommandManagerCommandBehavior, Object)
事件类型
TypedEventHandler<MediaPlaybackCommandManagerCommandBehavior,Object>
TypedEventHandler<MediaPlaybackCommandManagerCommandBehavior,IInspectable>