summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java
diff options
context:
space:
mode:
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()
+}