From 449e419dfbafeed9a446e36f8de1903981cd0b02 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Thu, 29 Apr 2021 02:25:01 +0530 Subject: Add initial implementation of mvi based on kotlin flow --- .../src/main/java/foundation/e/flowmvi/MVIView.kt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 flow-mvi/src/main/java/foundation/e/flowmvi/MVIView.kt (limited to 'flow-mvi/src/main/java/foundation/e/flowmvi/MVIView.kt') diff --git a/flow-mvi/src/main/java/foundation/e/flowmvi/MVIView.kt b/flow-mvi/src/main/java/foundation/e/flowmvi/MVIView.kt new file mode 100644 index 0000000..aa6f624 --- /dev/null +++ b/flow-mvi/src/main/java/foundation/e/flowmvi/MVIView.kt @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 E FOUNDATION + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package foundation.e.flowmvi + +import kotlinx.coroutines.flow.Flow + +interface MVIView { + + fun render(state: State) + + fun actions(): Flow +} -- cgit v1.2.3