···1+// Copyright 2020-2025, Collabora, Ltd.
2+// SPDX-License-Identifier: BSL-1.0
3+/*!
4+ * @file
5+ * @brief Dependency injection interface for about activity menu.
6+ * @author Rylie Pavlik <rylie.pavlik@collabora.com>
7+ * @author Simon Zeni <simon.zeni@collabora.com>
8+ */
9+package org.freedesktop.monado.android_common
10+11+import android.content.Context
12+import android.view.Menu
13+import android.view.MenuItem
14+15+/**
16+ * Menu handler for the about activity. This interface may be provided by any Android final target,
17+ * optionally.
18+ *
19+ * Intended for use in dependency injection, so you can add your own menu items
20+ */
21+interface AboutMenuProvider {
22+ fun onCreateOptionsMenu(menuInflater: android.view.MenuInflater, menu: Menu?)
23+24+ fun onOptionsItemSelected(context: Context, item: MenuItem): Boolean
25+}