ContentSite.RequestedStateChanged 事件

定义

ContentIsland 对其关联的 ContentSite发出新请求时发生。

// Register
event_token RequestedStateChanged(TypedEventHandler<ContentSite, ContentSiteRequestedStateChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void RequestedStateChanged(event_token const* cookie) const;

// Revoke with event_revoker
ContentSite::RequestedStateChanged_revoker RequestedStateChanged(auto_revoke_t, TypedEventHandler<ContentSite, ContentSiteRequestedStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ContentSite,ContentSiteRequestedStateChangedEventArgs> RequestedStateChanged;
function onRequestedStateChanged(eventArgs) { /* Your code */ }
contentSite.addEventListener("requestedstatechanged", onRequestedStateChanged);
contentSite.removeEventListener("requestedstatechanged", onRequestedStateChanged);
- or -
contentSite.onrequestedstatechanged = onRequestedStateChanged;
Public Custom Event RequestedStateChanged As TypedEventHandler(Of ContentSite, ContentSiteRequestedStateChangedEventArgs) 

事件类型

注解

ContentSite 所有者(DesktopSiteBridge)可以检查本地属性(如 RequestedSize),确定策略,然后配置信息(如 ActualSize),以发送到 ContentIsland

适用于