AllJoynBusAttachment.StateChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.
Occurs when the state of the bus attachment changes. The AllJoynBusAttachmentState enumeration defines the possible state values.
// Register
event_token StateChanged(TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void StateChanged(event_token const* cookie) const;
// Revoke with event_revoker
AllJoynBusAttachment::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
// Register
event_token StateChanged(TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void StateChanged(event_token const* cookie) const;
// Revoke with event_revoker
AllJoynBusAttachment::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynBusAttachmentStateChangedEventArgs> StateChanged;
[add: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<AllJoynBusAttachment,AllJoynBusAttachmentStateChangedEventArgs> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("statechanged", onStateChanged);
allJoynBusAttachment.removeEventListener("statechanged", onStateChanged);
- or -
allJoynBusAttachment.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs)
Event Type
- Attributes
Windows requirements
App capabilities |
allJoyn
|