Language

URLUtil.ComposeSearchUrl(String, String, String) Method

Definition

Inserts the inQuery in the template after URL-encoding it.

[Android.Runtime.Register("composeSearchUrl", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? ComposeSearchUrl(string? inQuery, string? template, string? queryPlaceHolder);
[<Android.Runtime.Register("composeSearchUrl", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member ComposeSearchUrl : string * string * string -> string

Parameters

inQuery
String

The search text to encode as UTF-8 form data.

template
String

The URL template in which to insert the encoded search text.

queryPlaceHolder
String

The text in the template to replace with the encoded query.

Returns

The URL with the first placeholder replaced by the encoded query, or null if the placeholder is absent.

Attributes

Remarks

Inserts the inQuery in the template after URL-encoding it. The encoded query will replace the queryPlaceHolder.

Java documentation for android.webkit.URLUtil.composeSearchUrl(java.lang.String, java.lang.String, java.lang.String).

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