-api-id | -api-type |
---|---|
T:Windows.System.RemoteSystems.RemoteSystemSessionInvitation |
winrt class |
Represents an invitation from a session participant to join their remote session.
An instance of this class is contained in the RemoteSystemSessionInvitationReceivedEventArgs object that was passed in with the RemoteSystemSessionInvitationListener.InvitationReceived event.
The device receiving an invitation will need to use a RemoteSystemSessionInvitationListener to handle it.
See the following code for an example of how to receive and handle remote session invitations.
public void SubscribeAndHandleInvites() {
var invitationListener = new RemoteSystemSessionInvitationListener();
// register the following code to handle this event:
invitationListener.InvitationReceived += async (sender, args) => {
// issue a join request to the session
RemoteSystemSessionJoinResult joinResult = await args.Invitation.RemoteSystemSessionInfo.JoinAsync();
// handle the join result as in the normal session discovery scenario
// ...
};
}
remoteSystem