We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f2d53 commit 1c2e8afCopy full SHA for 1c2e8af
compose/snippets/src/main/java/com/example/compose/snippets/stylus/StylusSnippets.kt
@@ -22,6 +22,17 @@ import androidx.compose.foundation.Canvas
22
import androidx.compose.runtime.Composable
23
import androidx.compose.ui.ExperimentalComposeUiApi
24
import androidx.compose.ui.Modifier
25
+import androidx.compose.ui.draw.clipToBounds
26
+import androidx.compose.ui.input.pointer.pointerInteropFilter
27
+import androidx.lifecycle.ViewModel
28
+
29
+class UserViewModel: ViewModel() {
30
+ fun processMotionEvent(e: MotionEvent): Boolean {
31
+ return true
32
+ }
33
+}
34
35
+val viewModel = UserViewModel()
36
37
// [START android_compose_stylus_motion_event_access]
38
@Composable
0 commit comments