SearchSpec.SearchSourceLogTag Property

Definition

Gets a tag to indicate the source of this search, or null if Builder#setSearchSourceLogTag(String) was not called.

public string? SearchSourceLogTag { [Android.Runtime.Register("getSearchSourceLogTag", "()Ljava/lang/String;", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getSearchSourceLogTag", "()Ljava/lang/String;", "", ApiSince=35)>]
member this.SearchSourceLogTag : string

Property Value

Attributes

Remarks

Gets a tag to indicate the source of this search, or null if Builder#setSearchSourceLogTag(String) was not called.

Some AppSearch implementations may log a hash of this tag using statsd. This tag may be used for tracing performance issues and crashes to a component of an app.

Call Builder#setSearchSourceLogTag and give a unique value if you want to distinguish this search scenario with other search scenarios during performance analysis.

Under no circumstances will AppSearch log the raw String value using statsd, but it will be provided as-is to custom AppSearchLogger implementations you have registered in your app.

Java documentation for android.app.appsearch.SearchSpec.getSearchSourceLogTag().

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