Activity.IsVoiceInteractionRoot プロパティ

定義

isVoiceInteraction() と同様ですが、これが音声操作のルートでもある場合にのみ true を返します。

public virtual bool IsVoiceInteractionRoot { [Android.Runtime.Register("isVoiceInteractionRoot", "()Z", "GetIsVoiceInteractionRootHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("isVoiceInteractionRoot", "()Z", "GetIsVoiceInteractionRootHandler", ApiSince=23)>]
member this.IsVoiceInteractionRoot : bool

プロパティ値

属性

注釈

isVoiceInteraction() と同様ですが、これが音声操作のルートでもある場合にのみ true を返します。 つまり、このアクティビティが音声操作の開始として音声対話サービスによって直接開始された場合は true を返します。 それ以外の場合(たとえば、音声操作中に別のアクティビティによって開始された場合)、false が返されます。 アクティビティ launchMode が singleTask の場合、アクティビティを開始したタスクとは別に、新しいタスクで強制的に起動します。 そのため、それらの間にリレーションシップが存在しなくなり、この場合、isVoiceInteractionRoot() は false を返します。

android.app.Activity.isVoiceInteractionRootの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象