VoiceInteractionService.IsActiveService(Context, ComponentName) 方法

定义

检查给定的服务组件是否为当前处于活动状态的 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.service.voice.VoiceInteractionService.isActiveService(android.content.Context, android.content.ComponentName)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于