Stay organized with collections
Save and categorize content based on your preferences.
AudioRecord.OnRecordPositionUpdateListener
public
static
interface
AudioRecord.OnRecordPositionUpdateListener
android.media.AudioRecord.OnRecordPositionUpdateListener
|
Interface definition for a callback to be invoked when an AudioRecord has
reached a notification marker set by AudioRecord.setNotificationMarkerPosition(int)
or for periodic updates on the progress of the record head, as set by
AudioRecord.setPositionNotificationPeriod(int)
.
Summary
Public methods |
abstract
void
|
onMarkerReached(AudioRecord recorder)
Called on the listener to notify it that the previously set marker has been reached
by the recording head.
|
abstract
void
|
onPeriodicNotification(AudioRecord recorder)
Called on the listener to periodically notify it that the record head has reached
a multiple of the notification period.
|
Public methods
public abstract void onMarkerReached (AudioRecord recorder)
Called on the listener to notify it that the previously set marker has been reached
by the recording head.
Parameters |
recorder |
AudioRecord |
public abstract void onPeriodicNotification (AudioRecord recorder)
Called on the listener to periodically notify it that the record head has reached
a multiple of the notification period.
Parameters |
recorder |
AudioRecord |
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,["# AudioRecord.OnRecordPositionUpdateListener\n\nAdded in [API level 3](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nAudioRecord.OnRecordPositionUpdateListener\n==========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/AudioRecord.OnRecordPositionUpdateListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nAudioRecord.OnRecordPositionUpdateListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------|\n| android.media.AudioRecord.OnRecordPositionUpdateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition for a callback to be invoked when an AudioRecord has\nreached a notification marker set by [AudioRecord.setNotificationMarkerPosition(int)](/reference/android/media/AudioRecord#setNotificationMarkerPosition(int))\nor for periodic updates on the progress of the record head, as set by\n[AudioRecord.setPositionNotificationPeriod(int)](/reference/android/media/AudioRecord#setPositionNotificationPeriod(int)).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onMarkerReached](/reference/android/media/AudioRecord.OnRecordPositionUpdateListener#onMarkerReached(android.media.AudioRecord))`(`[AudioRecord](/reference/android/media/AudioRecord)` recorder) ` Called on the listener to notify it that the previously set marker has been reached by the recording head. |\n| ` abstract void` | ` `[onPeriodicNotification](/reference/android/media/AudioRecord.OnRecordPositionUpdateListener#onPeriodicNotification(android.media.AudioRecord))`(`[AudioRecord](/reference/android/media/AudioRecord)` recorder) ` Called on the listener to periodically notify it that the record head has reached a multiple of the notification period. |\n\nPublic methods\n--------------\n\n### onMarkerReached\n\nAdded in [API level 3](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onMarkerReached (AudioRecord recorder)\n```\n\nCalled on the listener to notify it that the previously set marker has been reached\nby the recording head.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|----------------------|\n| `recorder` | `AudioRecord` \u003cbr /\u003e |\n\n### onPeriodicNotification\n\nAdded in [API level 3](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onPeriodicNotification (AudioRecord recorder)\n```\n\nCalled on the listener to periodically notify it that the record head has reached\na multiple of the notification period.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|----------------------|\n| `recorder` | `AudioRecord` \u003cbr /\u003e |"]]