From e83de8eefbb556a909ecb1c509bb45240537b521 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Sat, 11 Mar 2023 00:35:14 -0500 Subject: android: Convert PlatformGamesView to Kotlin --- .../yuzu_emu/ui/platform/PlatformGamesView.java | 21 --------------------- .../yuzu/yuzu_emu/ui/platform/PlatformGamesView.kt | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesView.java create mode 100644 src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesView.kt (limited to 'src/android/app') diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesView.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesView.java deleted file mode 100644 index a4e3f1eea..000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesView.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.yuzu.yuzu_emu.ui.platform; - -import android.database.Cursor; - -/** - * Abstraction for a screen representing a single platform's games. - */ -public interface PlatformGamesView { - /** - * Tell the view to refresh its contents. - */ - void refresh(); - - /** - * To be called when an asynchronous database read completes. Passes the - * result, in this case a {@link Cursor}, to the view. - * - * @param games A Cursor containing the games read from the database. - */ - void showGames(Cursor games); -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesView.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesView.kt new file mode 100644 index 000000000..b2c1397ce --- /dev/null +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesView.kt @@ -0,0 +1,21 @@ +package org.yuzu.yuzu_emu.ui.platform + +import android.database.Cursor + +/** + * Abstraction for a screen representing a single platform's games. + */ +interface PlatformGamesView { + /** + * Tell the view to refresh its contents. + */ + fun refresh() + + /** + * To be called when an asynchronous database read completes. Passes the + * result, in this case a [Cursor], to the view. + * + * @param games A Cursor containing the games read from the database. + */ + fun showGames(games: Cursor) +} -- cgit v1.2.3