From 67c2e89d2c3d69df4c983d34500e111fc0b9cd6f Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Sat, 11 Mar 2023 00:34:33 -0500 Subject: android: Convert MainView to Kotlin --- .../java/org/yuzu/yuzu_emu/ui/main/MainView.java | 25 ---------------------- .../java/org/yuzu/yuzu_emu/ui/main/MainView.kt | 23 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 25 deletions(-) delete mode 100644 src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.java create mode 100644 src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.kt (limited to 'src') diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.java deleted file mode 100644 index c2ff086ee..000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.yuzu.yuzu_emu.ui.main; - -/** - * Abstraction for the screen that shows on application launch. - * Implementations will differ primarily to target touch-screen - * or non-touch screen devices. - */ -public interface MainView { - /** - * Pass the view the native library's version string. Displaying - * it is optional. - * - * @param version A string pulled from native code. - */ - void setVersionString(String version); - - /** - * Tell the view to refresh its contents. - */ - void refresh(); - - void launchSettingsActivity(String menuTag); - - void launchFileListActivity(int request); -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.kt new file mode 100644 index 000000000..5f5138a88 --- /dev/null +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.kt @@ -0,0 +1,23 @@ +package org.yuzu.yuzu_emu.ui.main + +/** + * Abstraction for the screen that shows on application launch. + * Implementations will differ primarily to target touch-screen + * or non-touch screen devices. + */ +interface MainView { + /** + * Pass the view the native library's version string. Displaying + * it is optional. + * + * @param version A string pulled from native code. + */ + fun setVersionString(version: String) + + /** + * Tell the view to refresh its contents. + */ + fun refresh() + fun launchSettingsActivity(menuTag: String) + fun launchFileListActivity(request: Int) +} -- cgit v1.2.3