Context.GetSystemServiceName(Class) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取由指定类表示的系统级服务的名称。
[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
参数
- serviceClass
- Class
所需服务的类。
返回
如果类不是受支持的系统服务,则为服务名称或 null。
- 属性
注解
获取由指定类表示的系统级服务的名称。
的 android.content.Context.getSystemServiceName(java.lang.Class<?>)
Java 文档。
此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。