Browse Source

Android

pull/505/head
Sarah Jamie Lewis 1 month ago
parent
commit
5be25b87c4
  1. 22
      android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt

22
android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt

@ -313,6 +313,7 @@ class MainActivity: FlutterActivity() {
result.success(Cwtch.sendInvitation(profile, conversation.toLong(), target.toLong()))
return
}
"ShareFile" -> {
val profile: String = call.argument("ProfileOnion") ?: ""
val conversation: Int = call.argument("conversation") ?: 0
@ -321,6 +322,27 @@ class MainActivity: FlutterActivity() {
return
}
"GetSharedFiles" -> {
val profile: String = call.argument("ProfileOnion") ?: ""
val conversation: Int = call.argument("conversation") ?: 0
result.success(Cwtch.getSharedFiles(profile, conversation.toLong()))
return
}
"RestartSharing" -> {
val profile: String = call.argument("ProfileOnion") ?: ""
val filepath: String = call.argument("filekey") ?: ""
result.success(Cwtch.restartSharing(profile, filepath))
return
}
"StopSharing" -> {
val profile: String = call.argument("ProfileOnion") ?: ""
val filepath: String = call.argument("filekey") ?: ""
result.success(Cwtch.stopSharing(profile, filepath))
return
}
"CreateProfile" -> {
val nick: String = call.argument("nick") ?: ""
val pass: String = call.argument("pass") ?: ""

Loading…
Cancel
Save