Added in API level XE12
Extra constants for Glass-specific sounds effects.
This set extends the existing AudioManager
constants with
Glass-specific sounds.
General usage
To play a sound, call playSoundEffect(int)
with
the desired sound. For example, to play the TAP
sound:
AudioManager audio = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); audio.playSoundEffect(Sounds.TAP);
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DISALLOWED | User tried a disallowed action. | |||||||||
int | DISMISSED | User dismissed an item. | |||||||||
int | ERROR | An error occurred. | |||||||||
int | SELECTED | An item became selected. | |||||||||
int | SUCCESS | An action completed successfully. | |||||||||
int | TAP | User tapped on item. |
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constants
Added in API level XE12
public static final int DISALLOWED
Added in API level XE12
public static final int DISMISSED
Added in API level XE12
public static final int ERROR
Added in API level XE12
public static final int SELECTED
Added in API level XE12
public static final int SUCCESS
Added in API level XE12