[go: nahoru, domu]

Removed return value from onPointerEvent(...)

This is the 2nd CL in a 2 CL change to make
consumption of pointer event data mutable.
The first was CL 1441975.

RelNote: "Breaking change: removed the return value from PointerInputFilter.onPointerEvent(...) given that the only value that should be able to be changed in pointer events is consumption data.
Instead of returning data from PointerInputFilter.onPointerEvent(...), now you can just mutate the consumption data of the PointerEvents passed in."

Bug: 168815763
Test: ./gradlew compose:ui:ui:test
Test: ./gradlew compose:ui:ui:connectedCheck

Change-Id: I6acd06e56ab49c8ca932ff7c2d35a517a412e2d2
diff --git a/compose/ui/ui/api/public_plus_experimental_current.txt b/compose/ui/ui/api/public_plus_experimental_current.txt
index ea49d5f..2439a40 100644
--- a/compose/ui/ui/api/public_plus_experimental_current.txt
+++ b/compose/ui/ui/api/public_plus_experimental_current.txt
@@ -1544,7 +1544,7 @@
 
   @androidx.compose.ui.gesture.ExperimentalPointerInput @kotlin.coroutines.RestrictsSuspension public interface HandlePointerInputScope {
     method public suspend Object? awaitCustomEvent(optional androidx.compose.ui.input.pointer.PointerEventPass pass, optional kotlin.coroutines.Continuation<? super androidx.compose.ui.input.pointer.CustomEvent> p);
-    method public suspend Object? awaitPointerEvent(optional androidx.compose.ui.input.pointer.PointerEventPass pass, optional kotlin.coroutines.Continuation<? super androidx.compose.ui.input.pointer.MutablePointerEvent> p);
+    method public suspend Object? awaitPointerEvent(optional androidx.compose.ui.input.pointer.PointerEventPass pass, optional kotlin.coroutines.Continuation<? super androidx.compose.ui.input.pointer.PointerEvent> p);
   }
 
   public final class HitPathTrackerKt {
@@ -1553,15 +1553,6 @@
   public final class MotionEventAdapterKt {
   }
 
-  @androidx.compose.ui.gesture.ExperimentalPointerInput public final class MutablePointerEvent {
-    ctor public MutablePointerEvent(androidx.compose.ui.input.pointer.PointerEvent originalEvent);
-    method public java.util.List<androidx.compose.ui.input.pointer.PointerInputChange> getChanges();
-    method public androidx.compose.ui.unit.Uptime? getInputTime-T5nwvdw();
-    method public void setChanges(java.util.List<androidx.compose.ui.input.pointer.PointerInputChange> p);
-    property public final java.util.List<androidx.compose.ui.input.pointer.PointerInputChange> changes;
-    property public final androidx.compose.ui.unit.Uptime? inputTime;
-  }
-
   public final class PointerEvent {
     ctor public PointerEvent(java.util.List<androidx.compose.ui.input.pointer.PointerInputChange> changes);
     method public java.util.List<androidx.compose.ui.input.pointer.PointerInputChange> component1();
@@ -1660,7 +1651,7 @@
     method public abstract void onCancel();
     method public void onCustomEvent(androidx.compose.ui.input.pointer.CustomEvent customEvent, androidx.compose.ui.input.pointer.PointerEventPass pass);
     method public void onInit(androidx.compose.ui.input.pointer.CustomEventDispatcher customEventDispatcher);
-    method public abstract java.util.List<androidx.compose.ui.input.pointer.PointerInputChange> onPointerEvent-d1fqKvQ(androidx.compose.ui.input.pointer.PointerEvent pointerEvent, androidx.compose.ui.input.pointer.PointerEventPass pass, long bounds);
+    method public abstract void onPointerEvent-d1fqKvQ(androidx.compose.ui.input.pointer.PointerEvent pointerEvent, androidx.compose.ui.input.pointer.PointerEventPass pass, long bounds);
     property public final long size;
   }