VoiceInteractionService.IsActiveService(Context, ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检查给定的服务组件是否为当前处于活动状态的 VoiceInteractionService。
[Android.Runtime.Register("isActiveService", "(Landroid/content/Context;Landroid/content/ComponentName;)Z", "")]
public static bool IsActiveService (Android.Content.Context? context, Android.Content.ComponentName? service);
[<Android.Runtime.Register("isActiveService", "(Landroid/content/Context;Landroid/content/ComponentName;)Z", "")>]
static member IsActiveService : Android.Content.Context * Android.Content.ComponentName -> bool
参数
- context
- Context
- service
- ComponentName
返回
- 属性
注解
检查给定的服务组件是否为当前处于活动状态的 VoiceInteractionService。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。