Partager via


EventLog.GetTagCode(String) Method

Definition

Get the event type tag code associated with an event name.

[Android.Runtime.Register("getTagCode", "(Ljava/lang/String;)I", "")]
public static int GetTagCode (string? name);
[<Android.Runtime.Register("getTagCode", "(Ljava/lang/String;)I", "")>]
static member GetTagCode : string -> int

Parameters

name
String

of event to look up

Returns

the tag code, or -1 if no tag has that name

Attributes

Remarks

Get the event type tag code associated with an event name.

Java documentation for android.util.EventLog.getTagCode(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