summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-06-03 20:41:29 -0400
committerCharles Lombardo <clombardo169@gmail.com>2023-06-05 20:08:54 -0400
commitf117e8a2f96ee5e5578407c38697cc20ed91a3cd (patch)
tree9e0b272cc6e901a3242f29fe636e1c33a768a9e2 /Source/Android/app/src/main/java
parent3e8d6b8aa2ef35e710a5bfcc90174250e643d4bf (diff)
Android: Convert PlatformGamesView to Kotlin
Diffstat (limited to 'Source/Android/app/src/main/java')
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesView.java32
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesView.kt31
2 files changed, 31 insertions, 32 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesView.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesView.java
deleted file mode 100644
index 642c531946..0000000000
--- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesView.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-package org.dolphinemu.dolphinemu.ui.platform;
-
-/**
- * Abstraction for a screen representing a single platform's games.
- */
-public interface PlatformGamesView
-{
- /**
- * Pass a click event to the view's Presenter. Typically called from the
- * view's list adapter.
- *
- * @param gameId The ID of the game that was clicked.
- */
- void onItemClick(String gameId);
-
- /**
- * Shows or hides the loading indicator.
- */
- void setRefreshing(boolean refreshing);
-
- /**
- * To be called when the game file cache is updated.
- */
- void showGames();
-
- /**
- * Re-fetches game metadata from the game file cache.
- */
- void refetchMetadata();
-}
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesView.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesView.kt
new file mode 100644
index 0000000000..b9d188c2e9
--- /dev/null
+++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesView.kt
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.dolphinemu.dolphinemu.ui.platform
+
+/**
+ * Abstraction for a screen representing a single platform's games.
+ */
+interface PlatformGamesView {
+ /**
+ * Pass a click event to the view's Presenter. Typically called from the
+ * view's list adapter.
+ *
+ * @param gameId The ID of the game that was clicked.
+ */
+ fun onItemClick(gameId: String) { /* Empty default impl */ }
+
+ /**
+ * Shows or hides the loading indicator.
+ */
+ fun setRefreshing(refreshing: Boolean)
+
+ /**
+ * To be called when the game file cache is updated.
+ */
+ fun showGames()
+
+ /**
+ * Re-fetches game metadata from the game file cache.
+ */
+ fun refetchMetadata()
+}