AppBroadcastBackgroundService.BroadcastLanguageChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 BroadcastLanguage 屬性的值變更時發生。
// Register
event_token BroadcastLanguageChanged(TypedEventHandler<AppBroadcastBackgroundService, IInspectable const&> const& handler) const;
// Revoke with event_token
void BroadcastLanguageChanged(event_token const* cookie) const;
// Revoke with event_revoker
AppBroadcastBackgroundService::BroadcastLanguageChanged_revoker BroadcastLanguageChanged(auto_revoke_t, TypedEventHandler<AppBroadcastBackgroundService, IInspectable const&> const& handler) const;
public event TypedEventHandler<AppBroadcastBackgroundService,object> BroadcastLanguageChanged;
function onBroadcastLanguageChanged(eventArgs) { /* Your code */ }
appBroadcastBackgroundService.addEventListener("broadcastlanguagechanged", onBroadcastLanguageChanged);
appBroadcastBackgroundService.removeEventListener("broadcastlanguagechanged", onBroadcastLanguageChanged);
- or -
appBroadcastBackgroundService.onbroadcastlanguagechanged = onBroadcastLanguageChanged;
Public Custom Event BroadcastLanguageChanged As TypedEventHandler(Of AppBroadcastBackgroundService, Object)
事件類型
TypedEventHandler<AppBroadcastBackgroundService,IInspectable>
Windows 需求
裝置系列 |
Windows Desktop Extension SDK (已於 10.0.16299.0 引進)
|
API contract |
Windows.Media.Capture.AppBroadcastContract (已於 v2.0 引進)
|