Skip to content

Commit 3c9756e

Browse files
committed
add android clipboard stub
1 parent a442f7f commit 3c9756e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

aui.core/src/AUI/Platform/android/OSAndroid.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace com::github::aui::android {
2121
AUI_JNI_STATIC_METHOD(void, setMobileScreenOrientation, ((int) orientation))
2222
AUI_JNI_STATIC_METHOD(void, hideKeyboard, ())
2323
AUI_JNI_STATIC_METHOD(void, showMessageBox, ((const AString&) title, (const AString&) message))
24+
AUI_JNI_STATIC_METHOD(void, copyToClipboard, ((const AString&) text))
2425
};
2526
}
2627

aui.views/src/AUI/Platform/android/AClipboardImpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
#include "AUI/Platform/AClipboard.h"
1717
#include "AUI/Platform/AWindow.h"
1818
#include "AUI/Platform/AWindowManager.h"
19+
#include "AUI/Platform/android/OSAndroid.h"
1920

2021

2122
void AClipboard::copyToClipboard(const AString &text) {
22-
// stub
23+
com::github::aui::android::Platform::copyToClipboard(text);
2324
}
2425

2526
bool AClipboard::isEmpty() {

platform/android/lib/src/java/com/github/aui/android/Platform.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ object Platform {
3535
AuiView.ourCurrentSurface?.requestRender()
3636
}
3737

38+
39+
@JvmStatic
40+
fun copyToClipboard(text: String) {
41+
}
42+
3843
@JvmStatic
3944
private fun showKeyboard(iKeyboardType: Int, iKeyboardAction: Int, isPassword: Boolean) {
4045
// TODO

0 commit comments

Comments
 (0)