AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas para móviles / Funciones de teléfono
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Identifies or modifies the sound source associated with the physical buttons used to set the volume of the device.
Note: This function can be used in the emulator.
Ejemplo
// Modify the sound source associated with the buttons used to set the volume 
// in a window containing a multimedia control:
VolumePhysicalButton(MyWindow, volumeMusic)
Sintaxis

Retrieving the sound source associated with the physical buttons used to set the volume (for a window) Ocultar los detalles

<Result> = VolumePhysicalButton([<Window name>])
<Result>: Integer
Sound source associated with the buttons used to set the volume:
volumeAlarmVolume of the alarme.
volumeCallVolume of calls.
volumeDefaultVolume of default source. This source depends on the phone configuration.
volumeMusicVolume used when playing an audio or video file.
volumeNotificationVolume of the sound emitted during a new notification.
volumeRingVolume of phone ring.
volumeSystemVolume of system sounds.
<Window name>: Optional character string
Name or alias of the window to be used.
If this parameter is not specified or is an empty string (""), the current window will be manipulated..

Modifying the sound source associated with the physical buttons used to set the volume (for a window) Ocultar los detalles

<Result> = VolumePhysicalButton(<Window name> , <Source>)
<Result>: Boolean
  • True if the modification was performed. This modification is taken into account for the specified window and it is not applied anymore when this window is closed.
  • False otherwise. If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
<Window name>: Character string
  • Name or alias of the window to be used.
  • Empty string ("") to handle the current window.
<Source>: Integer constant
Sound source that must be assigned to the buttons used to set the volume:
volumeAlarmVolume of the alarme.
volumeCallVolume of calls.
volumeDefaultRestore the default source, configured on the phone.
volumeMusicVolume used when playing an audio or video file.
volumeNotificationVolume of the sound emitted during a new notification.
volumeRingVolume of phone ring.
volumeSystemVolume of system sounds.
Observaciones
  • In some cases, the buttons used to set the volume can act on a sound source other than the one assigned by VolumePhysicalButton (if a call is in progress for example).
  • To modify the setting of the volume for a sound source, use VolumeModify.
  • To find out the value of the current setting for the volume of a sound source, use VolumeGet.
Componente: wd300android.jar
Versión mínima requerida
  • Versión 17
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local