Stay organized with collections
Save and categorize content based on your preferences.
interface MediaScannerConnectionClient : MediaScannerConnection.OnScanCompletedListener
An interface for notifying clients of MediaScannerConnection when a connection to the MediaScanner service has been established and when the scanning of a file has completed.
Summary
Public methods |
abstract Unit |
Called to notify the client when a connection to the MediaScanner service has been established.
|
Public methods
abstract fun onMediaScannerConnected(): Unit
Called to notify the client when a connection to the MediaScanner service has been established.
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,["# MediaScannerConnection.MediaScannerConnectionClient\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMediaScannerConnectionClient\n============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaScannerConnection.MediaScannerConnectionClient \"View this page in Java\") \n\n```\ninterface MediaScannerConnectionClient : MediaScannerConnection.OnScanCompletedListener\n```\n\n|------------------------------------------------------------------------|\n| [android.media.MediaScannerConnection.MediaScannerConnectionClient](#) |\n\nAn interface for notifying clients of MediaScannerConnection when a connection to the MediaScanner service has been established and when the scanning of a file has completed.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onMediaScannerConnected](#onMediaScannerConnected())`()` Called to notify the client when a connection to the MediaScanner service has been established. |\n\n| Inherited functions ||\n|---|---|\n| From class [OnScanCompletedListener](/reference/kotlin/android/media/MediaScannerConnection.OnScanCompletedListener) |------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onScanCompleted](/reference/kotlin/android/media/MediaScannerConnection.OnScanCompletedListener#onScanCompleted(kotlin.String,%20android.net.Uri))`(`path:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `uri:` `[Uri](../net/Uri.html#)!`)` Called to notify the client when the media scanner has finished scanning a file. \u003cbr /\u003e | ||\n\nPublic methods\n--------------\n\n### onMediaScannerConnected\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onMediaScannerConnected(): Unit\n```\n\nCalled to notify the client when a connection to the MediaScanner service has been established."]]