A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.
feat(hostbridge): add NotificationPoster seam
ExTv4ef4302f1671
diff --git a/app/src/main/java/com/excp/podroid/engine/hostbridge/NotificationPoster.kt b/app/src/main/java/com/excp/podroid/engine/hostbridge/NotificationPoster.ktnew file mode 100644index 0000000..5cda7e0--- /dev/null+++ b/app/src/main/java/com/excp/podroid/engine/hostbridge/NotificationPoster.kt@@ -0,0 +1,20 @@+/*+ * Podroid - Rootless Podman for Android+ * Copyright (C) 2024-2026 Podroid contributors+ *+ * Seam between the host-bridge dispatcher and Android's NotificationManager,+ * so the dispatcher can be unit-tested with a fake.+ */+package com.excp.podroid.engine.hostbridge++interface NotificationPoster {+ /** True when the app may post notifications (Android 13+ runtime grant). */+ fun notificationsPermitted(): Boolean++ /**+ * Post (or, when [id] is non-null and matches an earlier call, replace) a+ * notification. Returns the notification id actually used.+ * @param priority one of HostProtocol.PRIO_* ; callers pass a validated value.+ */+ fun post(title: String?, body: String, priority: String, id: Int?): Int+}