From 8135b2231897669637d5e05c33a4ee9dac2af914 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Fri, 14 Aug 2026 03:59:06 -0500 Subject: [PATCH 1/2] Document Android.Window back events Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Android.Window/BackEvent.xml | 10 +++++----- docs/xml/Android.Window/BackEventEdge.xml | 17 ++++++++++++----- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/docs/xml/Android.Window/BackEvent.xml b/docs/xml/Android.Window/BackEvent.xml index 87e60cc91..b951a97fe 100644 --- a/docs/xml/Android.Window/BackEvent.xml +++ b/docs/xml/Android.Window/BackEvent.xml @@ -316,7 +316,7 @@ Returns the frameTime of the BackEvent in milliseconds. - To be added. + The frame time of this event, in milliseconds. Returns the frameTime of the BackEvent in milliseconds. Useful for calculating velocity. @@ -386,7 +386,7 @@ Returns a value between 0 and 1 on how far along the back gesture is. - To be added. + A value from 0.0f to 1.0f, inclusive, representing the back gesture's progress. Returns a value between 0 and 1 on how far along the back gesture is. This value is driven by the horizontal location of the touch point, and should be used as the fraction to @@ -441,7 +441,7 @@ Returns the screen edge that the swipe starts from. - To be added. + The screen edge from which the swipe begins. Returns the screen edge that the swipe starts from. @@ -541,7 +541,7 @@ Returns the absolute X location of the touch point, or NaN if the event is from a button press. - To be added. + The absolute X location of the touch point, or for a button press. Returns the absolute X location of the touch point, or NaN if the event is from a button press. @@ -584,7 +584,7 @@ Returns the absolute Y location of the touch point, or NaN if the event is from a button press. - To be added. + The absolute Y location of the touch point, or for a button press. Returns the absolute Y location of the touch point, or NaN if the event is from a button press. diff --git a/docs/xml/Android.Window/BackEventEdge.xml b/docs/xml/Android.Window/BackEventEdge.xml index 9cdf41d01..88c22b24b 100644 --- a/docs/xml/Android.Window/BackEventEdge.xml +++ b/docs/xml/Android.Window/BackEventEdge.xml @@ -11,8 +11,15 @@ System.Enum - To be added. - To be added. + Defines the edge from which a back swipe begins. + + The values correspond to the edge constants reported by BackEvent. + + + Java documentation for android.window.BackEvent. + + + @@ -40,7 +47,7 @@ 0 - To be added. + The back swipe begins at the left edge of the screen. @@ -68,7 +75,7 @@ 2 - To be added. + The back event did not begin as an edge swipe, such as when invoked by 3-button navigation or a hardware back button. @@ -96,7 +103,7 @@ 1 - To be added. + The back swipe begins at the right edge of the screen. From 8456bf15ea2151f3894449bd19d61dfe9655a1c6 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Fri, 14 Aug 2026 04:10:08 -0500 Subject: [PATCH 2/2] Address Android Window docs review Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Android.Window/BackEvent.xml | 4 ++-- docs/xml/Android.Window/BackEventEdge.xml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/xml/Android.Window/BackEvent.xml b/docs/xml/Android.Window/BackEvent.xml index b951a97fe..ad930ee00 100644 --- a/docs/xml/Android.Window/BackEvent.xml +++ b/docs/xml/Android.Window/BackEvent.xml @@ -541,7 +541,7 @@ Returns the absolute X location of the touch point, or NaN if the event is from a button press. - The absolute X location of the touch point, or for a button press. + The absolute X location of the touch point, or NaN for a button press. Returns the absolute X location of the touch point, or NaN if the event is from a button press. @@ -584,7 +584,7 @@ Returns the absolute Y location of the touch point, or NaN if the event is from a button press. - The absolute Y location of the touch point, or for a button press. + The absolute Y location of the touch point, or NaN for a button press. Returns the absolute Y location of the touch point, or NaN if the event is from a button press. diff --git a/docs/xml/Android.Window/BackEventEdge.xml b/docs/xml/Android.Window/BackEventEdge.xml index 88c22b24b..98bae5e95 100644 --- a/docs/xml/Android.Window/BackEventEdge.xml +++ b/docs/xml/Android.Window/BackEventEdge.xml @@ -19,6 +19,11 @@ Java documentation for android.window.BackEvent. + + Portions of this page are modifications based on work created and shared by the + Android Open Source Project + and used according to terms described in the + Creative Commons 2.5 Attribution License.