/**@class android.hardware.soundtrigger.KeyphraseEnrollmentInfo @extends java.lang.Object Enrollment information about the different available keyphrases. @hide */ var KeyphraseEnrollmentInfo = { /** Activity Action: Show activity for managing the keyphrases for hotword detection. This needs to be defined by an activity that supports enrolling users for hotword/keyphrase detection. */ ACTION_MANAGE_VOICE_KEYPHRASES : "com.android.intent.action.MANAGE_VOICE_KEYPHRASES", /** Intent extra: The intent extra for the specific manage action that needs to be performed. Possible values are {@link AlwaysOnHotwordDetector#MANAGE_ACTION_ENROLL}, {@link AlwaysOnHotwordDetector#MANAGE_ACTION_RE_ENROLL} or {@link AlwaysOnHotwordDetector#MANAGE_ACTION_UN_ENROLL}. */ EXTRA_VOICE_KEYPHRASE_ACTION : "com.android.intent.extra.VOICE_KEYPHRASE_ACTION", /** Intent extra: The hint text to be shown on the voice keyphrase management UI. */ EXTRA_VOICE_KEYPHRASE_HINT_TEXT : "com.android.intent.extra.VOICE_KEYPHRASE_HINT_TEXT", /** Intent extra: The voice locale to use while managing the keyphrase. This is a BCP-47 language tag. */ EXTRA_VOICE_KEYPHRASE_LOCALE : "com.android.intent.extra.VOICE_KEYPHRASE_LOCALE", /** */ getParseError : function( ) {}, /** @return {Object {android.hardware.soundtrigger.KeyphraseMetadata}} An array of available keyphrases that can be enrolled on the system. It may be null if no keyphrases can be enrolled. */ listKeyphraseMetadata : function( ) {}, /**Returns an intent to launch an activity that manages the given keyphrase for the locale. @param {Number} action The enrollment related action that this intent is supposed to perform. This can be one of {@link AlwaysOnHotwordDetector#MANAGE_ACTION_ENROLL}, {@link AlwaysOnHotwordDetector#MANAGE_ACTION_RE_ENROLL} or {@link AlwaysOnHotwordDetector#MANAGE_ACTION_UN_ENROLL} @param {String} keyphrase The keyphrase that the user needs to be enrolled to. @param {Object {Locale}} locale The locale for which the enrollment needs to be performed. @return {Object {android.content.Intent}} An {@link Intent} to manage the keyphrase. This can be null if managing the given keyphrase/locale combination isn't possible. */ getManageKeyphraseIntent : function( ) {}, /**Gets the {@link android.hardware.soundtrigger.KeyphraseMetadata} for the given keyphrase and locale, null if any metadata isn't available for the given combination. @param {String} keyphrase The keyphrase that the user needs to be enrolled to. @param {Object {Locale}} locale The locale for which the enrollment needs to be performed. This is a Java locale, for example "en_US". @return {Object {android.hardware.soundtrigger.KeyphraseMetadata}} The metadata, if the enrollment client supports the given keyphrase and locale, null otherwise. */ getKeyphraseMetadata : function( ) {}, /** */ toString : function( ) {}, };