ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
RecorderAction (Function)
In french: MagnetoAction
Runs an action on the recorder or dictaphone found on the current device.
Note: This function is only available if the current device has a tape recorder function.
Example
AndroidAndroid Widget
// Lecture du fichier son "Music.3gpp"
RecorderAction(recorderPlay, "Music.3gpp")
Syntax
<Result> = RecorderAction(<Action> [, <File name>])
<Result>: Boolean
  • True if the specified action was started,
  • False otherwise.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
<Action>: Integer constant
Type of action to perform:
recorderCloseCloses the recorder.
recorderPlayOpens the recorder and plays the specified sound file.
recorderRecordOpens the recorder and starts recording.
The recording starts when the user presses the button that calls RecorderAction.
recorderStopStops the current recording.
The recording stops when the user releases the button that calls RecorderAction.
<File name>: Optional character string
Name and full path of the sound file:
  • to record (recorderRecord constant).
  • to play (recorderPlay constant).
This file has the following format:
  • AndroidAndroid Widget ".3gpp" in Android.
  • iPhone/iPadMac Catalyst ".WAV" in iPhone/iPad.
Remarks
AndroidAndroid Widget Required permissions
This function changes the permissions required by the application.
Permission required: RECORD_AUDIO
This permission is used to record the sounds.
Component: wd300android.aar
See also
Minimum version required
  • Version 11
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help