Share via


AlwaysOnHotwordDetector.GetParameter(Int32) Method

Definition

Get a model specific ModelParams.

[Android.Runtime.Register("getParameter", "(I)I", "GetGetParameter_IHandler", ApiSince=30)]
public virtual int GetParameter (int modelParam);
[<Android.Runtime.Register("getParameter", "(I)I", "GetGetParameter_IHandler", ApiSince=30)>]
abstract member GetParameter : int -> int
override this.GetParameter : int -> int

Parameters

modelParam
Int32

ModelParams

Returns

value of parameter

Attributes

Remarks

Get a model specific ModelParams. This parameter will keep its value for the duration the model is loaded regardless of starting and stopping recognition. Once the model is unloaded, the value will be lost. If the value is not set, a default value is returned. See ModelParams for parameter default values. AlwaysOnHotwordDetector#queryParameter should be checked first before calling this method. Caller must be the active voice interaction service via Settings.Secure.VOICE_INTERACTION_SERVICE.

Java documentation for android.service.voice.AlwaysOnHotwordDetector.getParameter(int).

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.

Applies to