public interface Recorder
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Close the opened file.
|
Content |
createContent() |
Create a content from the recording, for example to send it in a chat message.
|
float |
getCaptureVolume() |
Get linear volume when capturing audio.
|
int |
getDuration() |
Gets the duration of the recording.
|
java.lang.String |
getFile() |
Gets the file used for recording.
|
long |
getNativePointer() |
Gets the native pointer used by this class to make native method calls.
|
RecorderParams |
getParams() |
Retrieve the
RecorderParams object. |
RecorderState |
getState() |
Gets the current state of the recorder.
|
java.lang.Object |
getUserData() |
Gets the object stored in this object user's data
|
int |
open(java.lang.String file) |
Open a file for recording.
|
int |
pause() |
Pause the recording.
|
void |
setParams(RecorderParams params) |
Set the
RecorderParams object. |
void |
setUserData(java.lang.Object data) |
Sets the object to store in this object user's data
|
int |
start() |
Start the recording into the opened file.
|
java.lang.String |
toString() |
float getCaptureVolume()
int getDuration()
@Nullable java.lang.String getFile()
@NonNull RecorderParams getParams()
RecorderParams
object. void setParams(@NonNull RecorderParams params)
params
- The RecorderParams
object to set. RecorderState getState()
RecorderState
. void close()
@Nullable Content createContent()
Content
matching the recording, or null. int open(@NonNull java.lang.String file)
file
- The path to the file to open. int pause()
int start()
void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object