Aracılığıyla paylaş


InputMethodService.OnCreateInlineSuggestionsRequest(Bundle) Method

Definition

Called when Autofill is requesting an InlineSuggestionsRequest from the IME.

[Android.Runtime.Register("onCreateInlineSuggestionsRequest", "(Landroid/os/Bundle;)Landroid/view/inputmethod/InlineSuggestionsRequest;", "GetOnCreateInlineSuggestionsRequest_Landroid_os_Bundle_Handler", ApiSince=30)]
public virtual Android.Views.InputMethods.InlineSuggestionsRequest? OnCreateInlineSuggestionsRequest (Android.OS.Bundle uiExtras);
[<Android.Runtime.Register("onCreateInlineSuggestionsRequest", "(Landroid/os/Bundle;)Landroid/view/inputmethod/InlineSuggestionsRequest;", "GetOnCreateInlineSuggestionsRequest_Landroid_os_Bundle_Handler", ApiSince=30)>]
abstract member OnCreateInlineSuggestionsRequest : Android.OS.Bundle -> Android.Views.InputMethods.InlineSuggestionsRequest
override this.OnCreateInlineSuggestionsRequest : Android.OS.Bundle -> Android.Views.InputMethods.InlineSuggestionsRequest

Parameters

uiExtras
Bundle

the extras that contain the UI renderer related information

Returns

an InlineSuggestionsRequest to be sent to Autofill.

Attributes

Remarks

Called when Autofill is requesting an InlineSuggestionsRequest from the IME.

The Autofill Framework will first request the IME to create and send an InlineSuggestionsRequest back. Once Autofill Framework receives a valid request and also receives valid inline suggestions, they will be returned via #onInlineSuggestionsResponse(InlineSuggestionsResponse).

IME Lifecycle - The request will wait to be created after inputStarted

If the IME wants to support displaying inline suggestions, they must set supportsInlineSuggestions in its XML and implement this method to return a valid InlineSuggestionsRequest.

Java documentation for android.inputmethodservice.InputMethodService.onCreateInlineSuggestionsRequest(android.os.Bundle).

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