From c0990eaf18c67233656cdaa1e7124d2b0f84ae34 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Thu, 1 Oct 2026 01:02:50 -0500 Subject: [PATCH] Import official AppSearch observer documentation Refs #71. Preserve exact schema-filter and Parcelable contracts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../ObserverSpec+Builder.xml | 18 +++++++++++++---- .../ObserverSpec.xml | 20 +++++++++++++------ 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/docs/xml/Android.App.AppSearch.Observers/ObserverSpec+Builder.xml b/docs/xml/Android.App.AppSearch.Observers/ObserverSpec+Builder.xml index 3d479cef5..d7a09cbc1 100644 --- a/docs/xml/Android.App.AppSearch.Observers/ObserverSpec+Builder.xml +++ b/docs/xml/Android.App.AppSearch.Observers/ObserverSpec+Builder.xml @@ -95,9 +95,14 @@ To be added. - To be added. + Restricts an observer using this spec to triggering only for documents of one of the provided schema types. To be added. - To be added. + + Restricts an observer using this spec to triggering only for documents of one of the provided schema types. + If unset, the observer will match documents of all types. + Android reference for android.app.appsearch.observer.ObserverSpec.Builder.addFilterSchemas. + 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. + @@ -135,9 +140,14 @@ To be added. - To be added. + Restricts an observer using this spec to triggering only for documents of one of the provided schema types. To be added. - To be added. + + Restricts an observer using this spec to triggering only for documents of one of the provided schema types. + If unset, the observer will match documents of all types. + Android reference for android.app.appsearch.observer.ObserverSpec.Builder.addFilterSchemas. + 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. + diff --git a/docs/xml/Android.App.AppSearch.Observers/ObserverSpec.xml b/docs/xml/Android.App.AppSearch.Observers/ObserverSpec.xml index c9f3602d8..ebc723998 100644 --- a/docs/xml/Android.App.AppSearch.Observers/ObserverSpec.xml +++ b/docs/xml/Android.App.AppSearch.Observers/ObserverSpec.xml @@ -118,9 +118,13 @@ - To be added. - To be added. - To be added. + Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. + a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR + + Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit. + Android reference for android.app.appsearch.observer.ObserverSpec.describeContents. + 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. + @@ -316,9 +320,13 @@ To be added. - To be added. - To be added. - To be added. + Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following: Parcelable.PARCELABLE_WRITE_RETURN_VALUE + Flatten this object in to a Parcel. + + Flatten this object in to a Parcel. + Android reference for android.app.appsearch.observer.ObserverSpec.writeToParcel. + 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. +