EgressReceiverService.OnQueryReceived Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when a query is received from a client running inside the Private Compute Core (PCC) sandbox.
[Android.Runtime.Register("onQueryReceived", "(Landroid/app/privatecompute/AssistantQueryRequest;Landroid/os/OutcomeReceiver;)V", "GetOnQueryReceived_Landroid_app_privatecompute_AssistantQueryRequest_Landroid_os_OutcomeReceiver_Handler", ApiSince=37)]
public virtual void OnQueryReceived(Android.App.PrivateCompute.AssistantQueryRequest request, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("onQueryReceived", "(Landroid/app/privatecompute/AssistantQueryRequest;Landroid/os/OutcomeReceiver;)V", "GetOnQueryReceived_Landroid_app_privatecompute_AssistantQueryRequest_Landroid_os_OutcomeReceiver_Handler", ApiSince=37)>]
abstract member OnQueryReceived : Android.App.PrivateCompute.AssistantQueryRequest * Android.OS.IOutcomeReceiver -> unit
override this.OnQueryReceived : Android.App.PrivateCompute.AssistantQueryRequest * Android.OS.IOutcomeReceiver -> unit
Parameters
- request
- AssistantQueryRequest
The AssistantQueryRequest containing the query payload. This value cannot be null.
- callback
- IOutcomeReceiver
The OutcomeReceiver to return the result or error. This value cannot be null.
- Attributes
Remarks
Called when a query is received from a client running inside the Private Compute Core (PCC) sandbox.
Note: This method is invoked on the main thread. Implementations should offload heavy work to a background thread/executor to avoid blocking the main thread. This method must be called from the main thread of your app.
Android reference for android.app.privatecompute.EgressReceiverService.onQueryReceived.
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.