Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
MediaScannerConnection.MediaScannerConnectionClient
implements
MediaScannerConnection.OnScanCompletedListener
android.media.MediaScannerConnection.MediaScannerConnectionClient
|
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
void
|
onMediaScannerConnected()
Called to notify the client when a connection to the
MediaScanner service has been established.
|
Public methods
public abstract void onMediaScannerConnected ()
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.
[[["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,["# MediaScannerConnection.MediaScannerConnectionClient\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nMediaScannerConnection.MediaScannerConnectionClient\n===================================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/MediaScannerConnection.MediaScannerConnectionClient \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nMediaScannerConnection.MediaScannerConnectionClient\n`\n\n\n`\n\n\nimplements\n\n`[MediaScannerConnection.OnScanCompletedListener](/reference/android/media/MediaScannerConnection.OnScanCompletedListener)`\n\n\n`\n\n|-------------------------------------------------------------------|\n| android.media.MediaScannerConnection.MediaScannerConnectionClient |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface for notifying clients of MediaScannerConnection\nwhen a connection to the MediaScanner service has been established\nand when the scanning of a file has completed.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onMediaScannerConnected](/reference/android/media/MediaScannerConnection.MediaScannerConnectionClient#onMediaScannerConnected())`() ` Called to notify the client when a connection to the MediaScanner service has been established. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From interface ` `[android.media.MediaScannerConnection.OnScanCompletedListener](/reference/android/media/MediaScannerConnection.OnScanCompletedListener)` ` |------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[onScanCompleted](/reference/android/media/MediaScannerConnection.OnScanCompletedListener#onScanCompleted(java.lang.String,%20android.net.Uri))`(`[String](/reference/java/lang/String)` path, `[Uri](/reference/android/net/Uri)` uri) ` Called to notify the client when the media scanner has finished scanning a file. | ||\n\nPublic methods\n--------------\n\n### onMediaScannerConnected\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onMediaScannerConnected ()\n```\n\nCalled to notify the client when a connection to the\nMediaScanner service has been established.\n\n\u003cbr /\u003e"]]