createRemoteSessionConfig function

RemoteSessionConfig createRemoteSessionConfig(
  1. String sessionId,
  2. String getAccessToken(),
  3. String orgUuid, {
  4. bool hasInitialPrompt = false,
  5. bool viewerOnly = false,
})

Create a RemoteSessionConfig from OAuth tokens.

Implementation

RemoteSessionConfig createRemoteSessionConfig(
  String sessionId,
  String Function() getAccessToken,
  String orgUuid, {
  bool hasInitialPrompt = false,
  bool viewerOnly = false,
}) {
  return RemoteSessionConfig(
    sessionId: sessionId,
    getAccessToken: getAccessToken,
    orgUuid: orgUuid,
    hasInitialPrompt: hasInitialPrompt,
    viewerOnly: viewerOnly,
  );
}