JobInfo.Builder.SetTraceTag(String) 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.
Set a tag that will be used in traces.
[Android.Runtime.Register("setTraceTag", "(Ljava/lang/String;)Landroid/app/job/JobInfo$Builder;", "", ApiSince=35)]
public Android.App.Job.JobInfo.Builder SetTraceTag(string? traceTag);
[<Android.Runtime.Register("setTraceTag", "(Ljava/lang/String;)Landroid/app/job/JobInfo$Builder;", "", ApiSince=35)>]
member this.SetTraceTag : string -> Android.App.Job.JobInfo.Builder
Parameters
- traceTag
- String
The tag to use in traces. This value may be null.
Returns
This object for method chaining. This value cannot be null.
- Attributes
Remarks
Set a tag that will be used in traces. Since this is a trace tag, it must follow the rules set in android.os.Trace.beginSection(String), such as it cannot be more than 127 Unicode code units. Additionally, since leading and trailing whitespace can lead to hard-to-debug issues, they will be trimmed. An empty String (after trimming) is not allowed.
Android reference for android.app.job.JobInfo.Builder.setTraceTag.
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.