Context.GetSystemServiceName(Class) 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.
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.