Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
MediaRecorder.OnInfoListener
android.media.MediaRecorder.OnInfoListener
|
Interface definition of a callback to be invoked to communicate some
info and/or warning about the recording.
Summary
Public methods |
abstract
void
|
onInfo(MediaRecorder mr, int what, int extra)
Called to indicate an info or a warning during recording.
|
Public methods
public abstract void onInfo (MediaRecorder mr,
int what,
int extra)
Called to indicate an info or a warning during recording.
Parameters |
mr |
MediaRecorder : the MediaRecorder the info pertains to |
what |
int : the type of info or warning that has occurred
|
extra |
int : an extra code, specific to the info type |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# MediaRecorder.OnInfoListener\n\nAdded in [API level 3](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nMediaRecorder.OnInfoListener\n============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/MediaRecorder.OnInfoListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nMediaRecorder.OnInfoListener\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------|\n| android.media.MediaRecorder.OnInfoListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition of a callback to be invoked to communicate some\ninfo and/or warning about the recording.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onInfo](/reference/android/media/MediaRecorder.OnInfoListener#onInfo(android.media.MediaRecorder,%20int,%20int))`(`[MediaRecorder](/reference/android/media/MediaRecorder)` mr, int what, int extra) ` Called to indicate an info or a warning during recording. |\n\nPublic methods\n--------------\n\n### onInfo\n\nAdded in [API level 3](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onInfo (MediaRecorder mr, \n int what, \n int extra)\n```\n\nCalled to indicate an info or a warning during recording.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `mr` | `MediaRecorder`: the MediaRecorder the info pertains to \u003cbr /\u003e |\n| `what` | `int`: the type of info or warning that has occurred - [MediaRecorder.MEDIA_RECORDER_INFO_UNKNOWN](/reference/android/media/MediaRecorder#MEDIA_RECORDER_INFO_UNKNOWN) - [MediaRecorder.MEDIA_RECORDER_INFO_MAX_DURATION_REACHED](/reference/android/media/MediaRecorder#MEDIA_RECORDER_INFO_MAX_DURATION_REACHED) - [MediaRecorder.MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED](/reference/android/media/MediaRecorder#MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED) \u003cbr /\u003e |\n| `extra` | `int`: an extra code, specific to the info type \u003cbr /\u003e |"]]