Share via


XboxLiveEndpointPair.StateChanged Event

Definition

Event raised when the state of the XboxLiveEndpointPair changes.

Important

This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

// Register
event_token StateChanged(TypedEventHandler<XboxLiveEndpointPair, XboxLiveEndpointPairStateChangedEventArgs const&> const& handler) const;

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

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

Event Type

Applies to