Share via


AllJoynBusAttachment.AcceptSessionJoinerRequested Event

Definition

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 a remote AllJoyn endpoint requests to join the bus attachement's session.

// Register
event_token AcceptSessionJoinerRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::AcceptSessionJoinerRequested_revoker AcceptSessionJoinerRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs 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 AcceptSessionJoinerRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::AcceptSessionJoinerRequested_revoker AcceptSessionJoinerRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynAcceptSessionJoinerEventArgs> AcceptSessionJoinerRequested;
[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,AllJoynAcceptSessionJoinerEventArgs> AcceptSessionJoinerRequested;
function onAcceptSessionJoinerRequested(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("acceptsessionjoinerrequested", onAcceptSessionJoinerRequested);
allJoynBusAttachment.removeEventListener("acceptsessionjoinerrequested", onAcceptSessionJoinerRequested);
- or -
allJoynBusAttachment.onacceptsessionjoinerrequested = onAcceptSessionJoinerRequested;
Public Custom Event AcceptSessionJoinerRequested As TypedEventHandler(Of AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs) 

Event Type

Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
allJoyn

Remarks

Sender: The AllJoynBusAttachment that raised the event.

Args: The AllJoynAcceptSessionJoinerEventArgs object that represents the requesting endpoint.

If the app does not handle this event, the request is accepted by default.

If the app does handle this event, it is rejected by default. The app MUST invoke args.Accept() before exiting the handle to accept the session join request.

Applies to