Freigeben über


Context.GetSystemServiceName(Class) Method

Definition

Gets the name of the system-level service that is represented by the specified class.

[Android.Runtime.Register("getSystemServiceName", "(Ljava/lang/Class;)Ljava/lang/String;", "GetGetSystemServiceName_Ljava_lang_Class_Handler", ApiSince=23)]
public abstract string? GetSystemServiceName (Java.Lang.Class serviceClass);
[<Android.Runtime.Register("getSystemServiceName", "(Ljava/lang/Class;)Ljava/lang/String;", "GetGetSystemServiceName_Ljava_lang_Class_Handler", ApiSince=23)>]
abstract member GetSystemServiceName : Java.Lang.Class -> string

Parameters

serviceClass
Class

The class of the desired service.

Returns

The service name or null if the class is not a supported system service.

Attributes

Remarks

Gets the name of the system-level service that is represented by the specified class.

Java documentation for android.content.Context.getSystemServiceName(java.lang.Class<?>).

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