RemoteInput.SetResultsSource(Intent, RemoteInputSource) Method

Definition

Set the source of the RemoteInput results.

[Android.Runtime.Register("setResultsSource", "(Landroid/content/Intent;I)V", "", ApiSince=28)]
public static void SetResultsSource(Android.Content.Intent? intent, Android.App.RemoteInputSource source);
[<Android.Runtime.Register("setResultsSource", "(Landroid/content/Intent;I)V", "", ApiSince=28)>]
static member SetResultsSource : Android.Content.Intent * Android.App.RemoteInputSource -> unit

Parameters

intent
Intent

Intent: The intent to add remote input source to. The ClipData field of the intent will be modified to contain the source.

source
RemoteInputSource

int: The source of the results. Value is one of the following: SOURCE_FREE_FORM_INPUT SOURCE_CHOICE

Attributes

Remarks

Set the source of the RemoteInput results. This method should only be called by remote input collection services (e.g. NotificationListenerService) when sending results to a pending intent.

See also:

Android reference for android.app.RemoteInput.setResultsSource.

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.

Applies to