RemoteSupportClientKotlin
The main class for this library. Contains functionality to initiate new sessions, connect to existing sessions, send outgoing messages and receiving incoming messages over the DataChannel
Parameters
The Android app context
The base url for the service API endpoints.
The security key required to access cygnus reach services.
The user-defined Logger that should be used to log messages in this SDK
true
indicates the logs will be stored internally for later upload; false
otherwise.
The MessageCategory for this instance of the client. Optionally defined user or initialized to our default implementation.
Constructors
Construct a new RemoteSupportClientKotlin.
Functions
Share the app screen with the remote peer
Add a video stream to the remote support session.
Initializes the data transport and connects to an existing remote support session created by initiateSupportSession by another client
The sessionId of the current session WebRTCClient session..
Initialize a new remote support session with a new unique pin
Sends the provided Command to the remote peer
Sends the provided Notification to the remote peer
Sends the provided Query to the remote peer
Update the remote support client's logger
Properties
true
indicates a IRemoteSupportClient is connected; false
otherwise.
Event raised when a Command is received from the remote peer. The remote peer is notified when the command is acknowledged using the ICommandContext.
Event raised when the IRemoteSupportClient is connected.
Event raised when the IRemoteSupportClient is disconnected.
Raised when a Notification is received from the remote peer.
Event raised when a Query is received from the remote peer. Responses sent using the IQueryContext are sent to the remote peer. If multiple responses are required, pass false to IQueryContext.respond's isFinal
parameter for the initial series of responses and true
for the final response