TracingConfig.Builder.AddCategories Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddCategories(Categories[]) |
Adds predefined sets of categories to be included in the trace output. |
| AddCategories(ICollection<String>) |
Adds custom categories to be included in trace output. |
| AddCategories(String[]) |
Adds custom categories to be included in trace output. |
AddCategories(Categories[])
Adds predefined sets of categories to be included in the trace output.
[Android.Runtime.Register("addCategories", "([I)Landroid/webkit/TracingConfig$Builder;", "GetAddCategories_arrayIHandler", ApiSince=28)]
public virtual Android.Webkit.TracingConfig.Builder? AddCategories(Android.Webkit.Categories[]? predefinedCategories);
[<Android.Runtime.Register("addCategories", "([I)Landroid/webkit/TracingConfig$Builder;", "GetAddCategories_arrayIHandler", ApiSince=28)>]
abstract member AddCategories : Android.Webkit.Categories[] -> Android.Webkit.TracingConfig.Builder
override this.AddCategories : Android.Webkit.Categories[] -> Android.Webkit.TracingConfig.Builder
Parameters
- predefinedCategories
- Categories[]
A list or bitmask of predefined category sets. Value is either 0 or a combination of the following: TracingConfig.CATEGORIES_NONE; TracingConfig.CATEGORIES_ALL; TracingConfig.CATEGORIES_ANDROID_WEBVIEW; TracingConfig.CATEGORIES_WEB_DEVELOPER; TracingConfig.CATEGORIES_INPUT_LATENCY; TracingConfig.CATEGORIES_RENDERING; TracingConfig.CATEGORIES_JAVASCRIPT_AND_RENDERING; TracingConfig.CATEGORIES_FRAME_VIEWER
Returns
The builder to facilitate chaining.
- Attributes
Remarks
Adds predefined sets of categories to be included in the trace output. A predefined category set can be one of TracingConfig.CATEGORIES_NONE, TracingConfig.CATEGORIES_ALL, TracingConfig.CATEGORIES_ANDROID_WEBVIEW, TracingConfig.CATEGORIES_WEB_DEVELOPER, TracingConfig.CATEGORIES_INPUT_LATENCY, TracingConfig.CATEGORIES_RENDERING, TracingConfig.CATEGORIES_JAVASCRIPT_AND_RENDERING or TracingConfig.CATEGORIES_FRAME_VIEWER.
Android reference for android.webkit.TracingConfig.Builder.addCategories.
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
AddCategories(ICollection<String>)
Adds custom categories to be included in trace output.
[Android.Runtime.Register("addCategories", "(Ljava/util/Collection;)Landroid/webkit/TracingConfig$Builder;", "GetAddCategories_Ljava_util_Collection_Handler", ApiSince=28)]
public virtual Android.Webkit.TracingConfig.Builder? AddCategories(System.Collections.Generic.ICollection<string>? categories);
[<Android.Runtime.Register("addCategories", "(Ljava/util/Collection;)Landroid/webkit/TracingConfig$Builder;", "GetAddCategories_Ljava_util_Collection_Handler", ApiSince=28)>]
abstract member AddCategories : System.Collections.Generic.ICollection<string> -> Android.Webkit.TracingConfig.Builder
override this.AddCategories : System.Collections.Generic.ICollection<string> -> Android.Webkit.TracingConfig.Builder
Parameters
- categories
- ICollection<String>
A list of category patterns.
Returns
The builder to facilitate chaining.
- Attributes
Remarks
Adds custom categories to be included in trace output. Same as addCategories(String...) but allows to pass a Collection as a parameter.
Android reference for android.webkit.TracingConfig.Builder.addCategories.
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
AddCategories(String[])
Adds custom categories to be included in trace output.
[Android.Runtime.Register("addCategories", "([Ljava/lang/String;)Landroid/webkit/TracingConfig$Builder;", "GetAddCategories_arrayLjava_lang_String_Handler", ApiSince=28)]
public virtual Android.Webkit.TracingConfig.Builder? AddCategories(params string[]? categories);
[<Android.Runtime.Register("addCategories", "([Ljava/lang/String;)Landroid/webkit/TracingConfig$Builder;", "GetAddCategories_arrayLjava_lang_String_Handler", ApiSince=28)>]
abstract member AddCategories : string[] -> Android.Webkit.TracingConfig.Builder
override this.AddCategories : string[] -> Android.Webkit.TracingConfig.Builder
Parameters
- categories
- String[]
A list of category patterns. A category pattern can contain wildcards, e.g. "blink*" or full category name e.g. "renderer.scheduler".
Returns
The builder to facilitate chaining.
- Attributes
Remarks
Adds custom categories to be included in trace output. Note that the categories are defined by the currently-in-use version of WebView. They live in chromium code and are not part of the Android API. See chromium documentation on tracing for more details.
Android reference for android.webkit.TracingConfig.Builder.addCategories.
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.