Move doc to the interface.
This commit is contained in:
parent
9042b8e2ad
commit
df1f5ec313
1 changed files with 5 additions and 5 deletions
|
|
@ -46,6 +46,11 @@ interface ShareIntentHandler {
|
||||||
val mimeType: String,
|
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(
|
suspend fun handleIncomingShareIntent(
|
||||||
intent: Intent,
|
intent: Intent,
|
||||||
onUris: suspend (List<UriToShare>) -> Boolean,
|
onUris: suspend (List<UriToShare>) -> Boolean,
|
||||||
|
|
@ -57,11 +62,6 @@ interface ShareIntentHandler {
|
||||||
class DefaultShareIntentHandler @Inject constructor(
|
class DefaultShareIntentHandler @Inject constructor(
|
||||||
@ApplicationContext private val context: Context,
|
@ApplicationContext private val context: Context,
|
||||||
) : ShareIntentHandler {
|
) : ShareIntentHandler {
|
||||||
/**
|
|
||||||
* This methods aims to handle incoming share intents.
|
|
||||||
*
|
|
||||||
* @return true if it can handle the intent data, false otherwise
|
|
||||||
*/
|
|
||||||
override suspend fun handleIncomingShareIntent(
|
override suspend fun handleIncomingShareIntent(
|
||||||
intent: Intent,
|
intent: Intent,
|
||||||
onUris: suspend (List<ShareIntentHandler.UriToShare>) -> Boolean,
|
onUris: suspend (List<ShareIntentHandler.UriToShare>) -> Boolean,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue