Skip to content

Commit 187b520

Browse files
author
Rob Orgiu
committed
Add comment to clarify that both callbacks can be used
1 parent 3fbcdcb commit 187b520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/draganddrop/DragAndDropSnippets.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private fun DragAndDropSnippet() {
9393
Modifier.dragAndDropTarget(
9494
shouldStartDragAndDrop = { event ->
9595
event.mimeTypes().contains(ClipDescription.MIMETYPE_TEXT_PLAIN)
96-
}, target = callback
96+
}, target = callback //or externalAppCallback
9797
)
9898
// [END android_compose_drag_and_drop_5]
9999

0 commit comments

Comments
 (0)