SpeechRecognizer.IsOnDeviceRecognitionAvailable(Context) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks whether an on-device speech recognition service is available on the system.
[Android.Runtime.Register("isOnDeviceRecognitionAvailable", "(Landroid/content/Context;)Z", "", ApiSince=31)]
public static bool IsOnDeviceRecognitionAvailable (Android.Content.Context context);
[<Android.Runtime.Register("isOnDeviceRecognitionAvailable", "(Landroid/content/Context;)Z", "", ApiSince=31)>]
static member IsOnDeviceRecognitionAvailable : Android.Content.Context -> bool
Parameters
- context
- Context
with which on-device SpeechRecognizer
will be created
Returns
true
if on-device recognition is available, false
otherwise
- Attributes
Remarks
Checks whether an on-device speech recognition service is available on the system. If this method returns false
, SpeechRecognizer#createOnDeviceSpeechRecognizer(Context)
will fail.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.