다음을 통해 공유


ContentIslandEnvironment.StateChanged 이벤트

정의

이 인스턴스에서 속성이 변경될 때 발생합니다. 상태 변경은 즉시 발생하며 이 이벤트는 이후에 비동기적으로 발생합니다.

// Register
event_token StateChanged(TypedEventHandler<ContentIslandEnvironment, ContentEnvironmentStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ContentIslandEnvironment::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<ContentIslandEnvironment, ContentEnvironmentStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ContentIslandEnvironment,ContentEnvironmentStateChangedEventArgs> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
contentIslandEnvironment.addEventListener("statechanged", onStateChanged);
contentIslandEnvironment.removeEventListener("statechanged", onStateChanged);
- or -
contentIslandEnvironment.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of ContentIslandEnvironment, ContentEnvironmentStateChangedEventArgs) 

이벤트 유형

적용 대상