-
I have a password generation Slint app that I use in GNU/Linux that has three buttons, one for generating the password via the Rust backend, the second button for copying the password text to clipboard via the This doesn't work on Android which makes sense as a completely different backend is being used via How can I get this working if I want to copy the text of a LineEdit component on Android - via |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is not yet implemented yes. I've filled issue #4865 We would need to implement the trait method and call into java (in SlintAndroidJavaHelper.java) to get the clipboard with something like this: https://developer.android.com/reference/android/content/ClipboardManager |
Beta Was this translation helpful? Give feedback.
-
Does this works on Windows ? And if yes , how ? Looking to get the "paste()" working on LineEdit. Thanks |
Beta Was this translation helpful? Give feedback.
This is not yet implemented yes. I've filled issue #4865
We would need to implement the trait method
clipboard_text
andset_clipboard_text
inslint/internal/backends/android-activity/lib.rs
Line 89 in 3aafce2
and call into java (in SlintAndroidJavaHelper.java) to get the clipboard with something like this: https://developer.android.com/reference/android/content/ClipboardManager