summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-01-07 19:37:39 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-01-07 19:37:39 -0800
commitdfc9f679f4e2cc358465a35ff6a1a298a9d2571c (patch)
treeed3aa444e5b03a05d5703ca9d9e354a498bb5daf /include
parent77b3f6fe69b779e00bbc55017050ca8a7ff04599 (diff)
parent2fd24c02ab7b7bd2e7592eb08f1e60ee578ff5a3 (diff)
Merge "Document what onKeyEvent/onMotionEvent return values mean" into main
Diffstat (limited to 'include')
-rw-r--r--include/android/surface_control_input_receiver.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/android/surface_control_input_receiver.h b/include/android/surface_control_input_receiver.h
index f0503f6324..59d3a31b30 100644
--- a/include/android/surface_control_input_receiver.h
+++ b/include/android/surface_control_input_receiver.h
@@ -39,11 +39,11 @@ __BEGIN_DECLS
*
* \param motionEvent The motion event. This must be released with AInputEvent_release.
*
+ * \return true if the event is handled by the client, false otherwise.
* Available since API level 35.
*/
typedef bool (*AInputReceiver_onMotionEvent)(void *_Null_unspecified context,
- AInputEvent *_Nonnull motionEvent)
- __INTRODUCED_IN(__ANDROID_API_V__);
+ AInputEvent *_Nonnull motionEvent);
/**
* The AInputReceiver_onKeyEvent callback is invoked when the registered input channel receives
* a key event.
@@ -53,11 +53,12 @@ typedef bool (*AInputReceiver_onMotionEvent)(void *_Null_unspecified context,
*
* \param keyEvent The key event. This must be released with AInputEvent_release.
*
+ * \return true if the event is handled by the client, false otherwise. System may generate
+ * a fallback key event if the event is not handled.
* Available since API level 35.
*/
typedef bool (*AInputReceiver_onKeyEvent)(void *_Null_unspecified context,
- AInputEvent *_Nonnull keyEvent)
- __INTRODUCED_IN(__ANDROID_API_V__);
+ AInputEvent *_Nonnull keyEvent);
typedef struct AInputReceiverCallbacks AInputReceiverCallbacks;