From 265764ddf6bb4bbb9c00d98a42f6764de6b1d3a5 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 6 Jun 2024 09:51:40 +0200 Subject: [PATCH] Move doc to the interface. --- .../android/features/share/impl/ShareIntentHandler.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/features/share/impl/src/main/kotlin/io/element/android/features/share/impl/ShareIntentHandler.kt b/features/share/impl/src/main/kotlin/io/element/android/features/share/impl/ShareIntentHandler.kt index f2871d4393..aeeec7abf8 100644 --- a/features/share/impl/src/main/kotlin/io/element/android/features/share/impl/ShareIntentHandler.kt +++ b/features/share/impl/src/main/kotlin/io/element/android/features/share/impl/ShareIntentHandler.kt @@ -46,6 +46,11 @@ interface ShareIntentHandler { val mimeType: String, ) + /** + * This methods aims to handle incoming share intents. + * + * @return true if it can handle the intent data, false otherwise + */ suspend fun handleIncomingShareIntent( intent: Intent, onUris: suspend (List) -> Boolean, @@ -57,11 +62,6 @@ interface ShareIntentHandler { class DefaultShareIntentHandler @Inject constructor( @ApplicationContext private val context: Context, ) : ShareIntentHandler { - /** - * This methods aims to handle incoming share intents. - * - * @return true if it can handle the intent data, false otherwise - */ override suspend fun handleIncomingShareIntent( intent: Intent, onUris: suspend (List) -> Boolean,