Stay organized with collections
Save and categorize content based on your preferences.
OnInfoListener
interface OnInfoListener
Interface definition of a callback to be invoked to communicate some info and/or warning about the recording.
Summary
Public methods |
abstract Unit |
Called to indicate an info or a warning during recording.
|
Public methods
onInfo
abstract fun onInfo(
mr: MediaRecorder!,
what: Int,
extra: Int
): Unit
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaRecorder.OnInfoListener\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnInfoListener\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaRecorder.OnInfoListener \"View this page in Java\") \n\n```\ninterface OnInfoListener\n```\n\n|-------------------------------------------------|\n| [android.media.MediaRecorder.OnInfoListener](#) |\n\nInterface definition of a callback to be invoked to communicate some info and/or warning about the recording.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onInfo](#onInfo(android.media.MediaRecorder,%20kotlin.Int,%20kotlin.Int))`(`mr:` `[MediaRecorder](/reference/kotlin/android/media/MediaRecorder)!`, `what:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `extra:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Called to indicate an info or a warning during recording. |\n\nPublic methods\n--------------\n\n### onInfo\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onInfo(\n mr: MediaRecorder!, \n what: Int, \n extra: Int\n): Unit\n```\n\nCalled to indicate an info or a warning during recording.\n\n| Parameters ||\n|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `mr` | [MediaRecorder](/reference/kotlin/android/media/MediaRecorder)!: the MediaRecorder the info pertains to |\n| `what` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the type of info or warning that has occurred - [MEDIA_RECORDER_INFO_UNKNOWN](/reference/kotlin/android/media/MediaRecorder#MEDIA_RECORDER_INFO_UNKNOWN:kotlin.Int) - [MEDIA_RECORDER_INFO_MAX_DURATION_REACHED](/reference/kotlin/android/media/MediaRecorder#MEDIA_RECORDER_INFO_MAX_DURATION_REACHED:kotlin.Int) - [MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED](/reference/kotlin/android/media/MediaRecorder#MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED:kotlin.Int) |\n| `extra` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): an extra code, specific to the info type |"]]