Skip to content

Commit

Permalink
add some missing web bridge (rustdesk#9763)
Browse files Browse the repository at this point in the history
Signed-off-by: 21pages <[email protected]>
  • Loading branch information
21pages authored Oct 28, 2024
1 parent c565849 commit 3a75947
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions flutter/lib/web/bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class RustdeskImpl {
required bool forceRelay,
required String password,
required bool isSharedPassword,
String? connToken,
dynamic hint}) {
return js.context.callMethod('setByName', [
'session_add_sync',
Expand Down Expand Up @@ -173,18 +174,12 @@ class RustdeskImpl {
}

Future<void> sessionRecordScreen(
{required UuidValue sessionId,
required bool start,
required int display,
required int width,
required int height,
dynamic hint}) {
{required UuidValue sessionId, required bool start, dynamic hint}) {
throw UnimplementedError("sessionRecordScreen");
}

Future<void> sessionRecordStatus(
{required UuidValue sessionId, required bool status, dynamic hint}) {
throw UnimplementedError("sessionRecordStatus");
bool sessionGetIsRecording({required UuidValue sessionId, dynamic hint}) {
return false;
}

Future<void> sessionReconnect(
Expand Down Expand Up @@ -707,7 +702,8 @@ class RustdeskImpl {

Future<void> sessionSendSelectedSessionId(
{required UuidValue sessionId, required String sid, dynamic hint}) {
throw UnimplementedError("sessionSendSelectedSessionId");
return Future(
() => js.context.callMethod('setByName', ['selected_sid', sid]));
}

Future<List<String>> mainGetSoundInputs({dynamic hint}) {
Expand Down Expand Up @@ -1828,5 +1824,9 @@ class RustdeskImpl {
return Future(() => js.context.callMethod('setByName', ['select_files']));
}

String? sessionGetConnToken({required UuidValue sessionId, dynamic hint}) {
throw UnimplementedError("sessionGetConnToken");
}

void dispose() {}
}

0 comments on commit 3a75947

Please sign in to comment.