BluetoothHeadset.StartVoiceRecognition(BluetoothDevice) メソッド

定義

音声認識Bluetooth開始します。

[Android.Runtime.Register("startVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")]
public bool StartVoiceRecognition(Android.Bluetooth.BluetoothDevice? device);
[Android.Runtime.Register("startVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool StartVoiceRecognition(Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("startVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")>]
member this.StartVoiceRecognition : Android.Bluetooth.BluetoothDevice -> bool
[<Android.Runtime.Register("startVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.StartVoiceRecognition : Android.Bluetooth.BluetoothDevice -> bool

パラメーター

device
BluetoothDevice

Bluetooth ヘッドセット

返品

接続されているヘッドセットがない場合、または接続されているヘッドセットが音声認識をサポートしていない場合、または音声認識が既に開始されている場合、またはオーディオ チャネルが占有されている場合、またはエラーが発生した場合は false。それ以外の場合は true

属性

注釈

音声認識Bluetooth開始します。 このメソッドは、音声認識 AT コマンドをヘッドセットに送信し、オーディオ接続を確立します。

ユーザーは #ACTION_AUDIO_STATE_CHANGEDをリッスンできます。 この関数が true を返す場合、この意図は #EXTRA_STATE#STATE_AUDIO_CONNECTING に設定されてブロードキャストされます。

#EXTRA_STATE は、オーディオ接続が確立されたときに #STATE_AUDIO_CONNECTING から #STATE_AUDIO_CONNECTED に移行し、オーディオ接続の確立に失敗した場合に #STATE_AUDIO_DISCONNECTED します。

Javaドキュメント。

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

適用対象