summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-06-03 20:40:06 -0400
committerCharles Lombardo <clombardo169@gmail.com>2023-06-05 20:08:53 -0400
commitb5c63b995ce7d9a7c8eb131567c2759950a925a5 (patch)
treea43e7046ddd58c80e154328c45081c12d69b7c44 /Source/Android/app/src/main/java
parent01d4e6fe87aa09ce19d9ef3dddd057c65b322bc7 (diff)
Android: Convert MainView to Kotlin
Diffstat (limited to 'Source/Android/app/src/main/java')
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainView.java41
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainView.kt40
2 files changed, 40 insertions, 41 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainView.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainView.java
deleted file mode 100644
index 604cb5d1a8..0000000000
--- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainView.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-package org.dolphinemu.dolphinemu.ui.main;
-
-import org.dolphinemu.dolphinemu.features.settings.ui.MenuTag;
-
-/**
- * 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);
-
- void launchSettingsActivity(MenuTag menuTag);
-
- void launchFileListActivity();
-
- void launchOpenFileActivity(int requestCode);
-
- /**
- * Shows or hides the loading indicator.
- */
- void setRefreshing(boolean refreshing);
-
- /**
- * To be called when the game file cache is updated.
- */
- void showGames();
-
- void reloadGrid();
-
- void showGridOptions();
-}
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainView.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainView.kt
new file mode 100644
index 0000000000..3892ee7599
--- /dev/null
+++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainView.kt
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.dolphinemu.dolphinemu.ui.main
+
+import org.dolphinemu.dolphinemu.features.settings.ui.MenuTag
+
+/**
+ * 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)
+
+ fun launchSettingsActivity(menuTag: MenuTag?)
+
+ fun launchFileListActivity()
+
+ fun launchOpenFileActivity(requestCode: Int)
+
+ /**
+ * Shows or hides the loading indicator.
+ */
+ fun setRefreshing(refreshing: Boolean)
+
+ /**
+ * To be called when the game file cache is updated.
+ */
+ fun showGames()
+
+ fun reloadGrid()
+
+ fun showGridOptions()
+}