Android.App.RemoteInput Class
A RemoteInput object specifies input to be collected from a user to be passed along with an intent inside a Android.App.PendingIntent that is sent.

See Also: RemoteInput Members

Syntax

[Android.Runtime.Register("android/app/RemoteInput", DoNotGenerateAcw=true)]
public sealed class RemoteInput : Java.Lang.Object, Android.OS.IParcelable, IDisposable

Remarks

A RemoteInput object specifies input to be collected from a user to be passed along with an intent inside a Android.App.PendingIntent that is sent. Always use NoType:android/app/RemoteInput$Builder;Href=../../../reference/android/app/RemoteInput.Builder.html to create instances of this class.

See Receiving Voice Input from a Notification for more information on how to use this class.

The following example adds a RemoteInput to a NoType:android/app/Notification$Action;Href=../../../reference/android/app/Notification.Action.html, sets the result key as quick_reply, and sets the label as Quick reply. Users are prompted to input a response when they trigger the action. The results are sent along with the intent and can be retrieved with the result key (provided to the NoType:android/app/RemoteInput$Builder;Href=../../../reference/android/app/RemoteInput.Builder.html constructor) from the Bundle returned by RemoteInput.GetResultsFromIntent(Android.Content.Intent).

When the Android.App.PendingIntent is fired, the intent inside will contain the input results if collected. To access these results, use the RemoteInput.GetResultsFromIntent(Android.Content.Intent) function. The result values will present under the result key passed to the NoType:android/app/RemoteInput$Builder;Href=../../../reference/android/app/RemoteInput.Builder.html constructor.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0