diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-19 23:19:33 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-12-19 23:19:33 +0000 |
commit | d972f8c3fb80b1bd102fd7b93ef2f25ecb3cb916 (patch) | |
tree | b9c55745f7af2aee300e7e6ac98ad472415dd768 | |
parent | 148c452e13842f8795c4a88fba11e18454b6301f (diff) | |
parent | ff4bac35f86cf23a4c4256792f530e0d6c1ebe5e (diff) | |
download | support-d972f8c3fb80b1bd102fd7b93ef2f25ecb3cb916.tar.gz |
Merge "Cherry pick DragAndDrop API review; removed factory method for DragAndDropTarget, users should implement the interface directly Test: Existing tests Relnote: The DragAndDropTarget factory method has been removed. Instead, implement the DragAndDropTarget interface directly. (cherry picked from https://android-review.googlesource.com/q/commit:fe89006cb340d8b8838bb357d909e866c14c46a6) Merged-In: Idfe0047733cd480e47bb7ebe9e097b30eab9925b Change-Id: Idfe0047733cd480e47bb7ebe9e097b30eab9925b" into snap-temp-L70200030000920617
-rw-r--r-- | compose/ui/ui/api/1.6.0-beta03.txt | 4 | ||||
-rw-r--r-- | compose/ui/ui/api/restricted_1.6.0-beta03.txt | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/compose/ui/ui/api/1.6.0-beta03.txt b/compose/ui/ui/api/1.6.0-beta03.txt index 6532b0ded55..bc051e8845c 100644 --- a/compose/ui/ui/api/1.6.0-beta03.txt +++ b/compose/ui/ui/api/1.6.0-beta03.txt @@ -257,10 +257,6 @@ package androidx.compose.ui.draganddrop { ctor public DragAndDropEvent(android.view.DragEvent dragEvent); } - public final class DragAndDropKt { - method public static androidx.compose.ui.draganddrop.DragAndDropTarget DragAndDropTarget(kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,java.lang.Boolean> onDrop, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onStarted, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onEntered, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onMoved, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onChanged, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onExited, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onEnded); - } - public interface DragAndDropModifierNode extends androidx.compose.ui.node.DelegatableNode androidx.compose.ui.draganddrop.DragAndDropTarget { method public boolean acceptDragAndDropTransfer(androidx.compose.ui.draganddrop.DragAndDropEvent startEvent); method public void drag(androidx.compose.ui.draganddrop.DragAndDropTransferData transferData, long decorationSize, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> drawDragDecoration); diff --git a/compose/ui/ui/api/restricted_1.6.0-beta03.txt b/compose/ui/ui/api/restricted_1.6.0-beta03.txt index 2b9b0057080..ceaee0cb1d4 100644 --- a/compose/ui/ui/api/restricted_1.6.0-beta03.txt +++ b/compose/ui/ui/api/restricted_1.6.0-beta03.txt @@ -257,10 +257,6 @@ package androidx.compose.ui.draganddrop { ctor public DragAndDropEvent(android.view.DragEvent dragEvent); } - public final class DragAndDropKt { - method public static androidx.compose.ui.draganddrop.DragAndDropTarget DragAndDropTarget(kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,java.lang.Boolean> onDrop, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onStarted, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onEntered, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onMoved, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onChanged, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onExited, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.draganddrop.DragAndDropEvent,kotlin.Unit>? onEnded); - } - public interface DragAndDropModifierNode extends androidx.compose.ui.node.DelegatableNode androidx.compose.ui.draganddrop.DragAndDropTarget { method public boolean acceptDragAndDropTransfer(androidx.compose.ui.draganddrop.DragAndDropEvent startEvent); method public void drag(androidx.compose.ui.draganddrop.DragAndDropTransferData transferData, long decorationSize, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> drawDragDecoration); |