ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
RecorderAction (Function)
In french: MagnetoAction
Runs an action on the recorder or dictaphone found on the current device.
Remark: This function is only available if the current device has a recorder.
Example
AndroidAndroid Widget
// Read the sound file named "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
The call to this function modifies the permissions required by the application.
Required permission: RECORD_AUDIO
This permission is used to record the sounds.
Component: wd290android.aar
Minimum version required
  • Version 11
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help