Function List | Description |
Determine whether the current camera is front-facing (only for mobile terminal) | |
Switch between front and rear cameras (only for mobile terminal) | |
Check if automatic face position recognition is supported (only for mobile terminal) | |
Enable autofocus feature (only for mobile terminal) | |
Turn the flash on/off, also known as flashlight mode (only for mobile terminal) | |
Set audio routing (only for mobile terminal) |
Enumeration Types | Description |
Audio routing (i.e., sound playback mode) |
void switchCamera | (boolean frontCamera) |
void enableCameraAutoFocus | (boolean enabled) |
void enableCameraTorch | (boolean enable) |
void setAudioRoute |
Enumeration | Value | Description |
speakerphone | 0 | Speakerphone: Play sound through the speaker (i.e., "hands-free"), which is located at the bottom of the phone. The volume tends to be loud, suitable for playing music out loud. |
earpiece | 1 | Earpiece: Plays through the earpiece, the earpiece is located at the top of the phone, the sound is small, suitable for privacy-protected call scenarios. |
Was this page helpful?