Stay organized with collections
Save and categorize content based on your preferences.
TetheringEventCallback
interface TetheringEventCallback
Callback for use with registerTetheringEventCallback to find out tethering upstream status.
Summary
Public methods |
open Unit |
Called when there was a change in the list of tethered interfaces.
|
Public methods
onTetheredInterfacesChanged
open fun onTetheredInterfacesChanged(interfaces: MutableSet<TetheringInterface!>): Unit
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 |
MutableSet<TetheringInterface!>: 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.
[null,null,["Last updated 2025-03-13 UTC."],[],[],null,["# TetheringManager.TetheringEventCallback\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nTetheringEventCallback\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/TetheringManager.TetheringEventCallback \"View this page in Java\") \n\n```\ninterface TetheringEventCallback\n```\n\n|----------------------------------------------------------|\n| [android.net.TetheringManager.TetheringEventCallback](#) |\n\nCallback for use with registerTetheringEventCallback to find out tethering upstream status.\n\nSummary\n-------\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onTetheredInterfacesChanged](#onTetheredInterfacesChanged(kotlin.collections.MutableSet))`(`interfaces:` `[MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[TetheringInterface](/reference/kotlin/android/net/TetheringInterface)!\u003e`)` 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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun onTetheredInterfacesChanged(interfaces: MutableSet\u003cTetheringInterface!\u003e): Unit\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 multiple times later upon changes.\n\n| Parameters ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `interfaces` | [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[TetheringInterface](/reference/kotlin/android/net/TetheringInterface)!\\\u003e: The set of 0 or more TetheringInterface of currently tethered interface. This value cannot be `null`. |"]]