Stay organized with collections
Save and categorize content based on your preferences.
TetheringManager.TetheringEventCallback
public
static
interface
TetheringManager.TetheringEventCallback
android.net.TetheringManager.TetheringEventCallback
|
Callback for use with ERROR(/registerTetheringEventCallback)
to find out tethering
upstream status.
Summary
Public methods
onTetheredInterfacesChanged
public void onTetheredInterfacesChanged (Set<TetheringInterface> interfaces)
Called when there was a change in the list of tethered interfaces.
This will be called immediately after the callback is registered, and may be called
multiple times later upon changes.
Parameters |
interfaces |
Set : The set of 0 or more TetheringInterface of currently tethered
interface.
This value cannot be null . |
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-03-13 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-03-13 UTC."],[],[],null,["# TetheringManager.TetheringEventCallback\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nTetheringManager.TetheringEventCallback\n=======================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/net/TetheringManager.TetheringEventCallback \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nTetheringManager.TetheringEventCallback\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------|\n| android.net.TetheringManager.TetheringEventCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback for use with [ERROR(/registerTetheringEventCallback)](/) to find out tethering\nupstream status.\n\nSummary\n-------\n\n| ### Public methods ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` default void` | ` `[onTetheredInterfacesChanged](/reference/android/net/TetheringManager.TetheringEventCallback#onTetheredInterfacesChanged(java.util.Set\u003candroid.net.TetheringInterface\u003e))`(`[Set](/reference/java/util/Set)`\u003c`[TetheringInterface](/reference/android/net/TetheringInterface)`\u003e interfaces) ` Called when there was a change in the list of tethered interfaces. |\n\nPublic methods\n--------------\n\n### onTetheredInterfacesChanged\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic void onTetheredInterfacesChanged (Set\u003cTetheringInterface\u003e interfaces)\n```\n\nCalled when there was a change in the list of tethered interfaces.\n\nThis will be called immediately after the callback is registered, and may be called\nmultiple times later upon changes.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|---------------------------------------------------------------------------------------------------------------------|\n| `interfaces` | `Set`: The set of 0 or more TetheringInterface of currently tethered interface. This value cannot be `null`. \u003cbr /\u003e |"]]