# WifiManager.InterfaceCreationImpact

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# InterfaceCreationImpact

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/net/wifi/WifiManager.InterfaceCreationImpact "View this page in Java")  

```
open class InterfaceCreationImpact
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                               ||
| ↳ | [android.net.wifi.WifiManager.InterfaceCreationImpact](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.InterfaceCreationImpact#) |

Class describing an impact of interface creation - returned by[reportCreateInterfaceImpact(int,boolean,java.util.concurrent.Executor,java.util.function.BiConsumer)](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#reportCreateInterfaceImpact(kotlin.Int,%20kotlin.Boolean,%20java.util.concurrent.Executor,%20java.util.function.BiConsumer)). Due to Wi-Fi concurrency limitations certain interfaces may have to be torn down. Each of these interfaces was requested by a set of applications who could potentially be impacted. This class contain the information for a single interface: the interface type with[InterfaceCreationImpact.getInterfaceType()](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.InterfaceCreationImpact#getInterfaceType())and the set of impacted packages with[InterfaceCreationImpact.getPackages()](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.InterfaceCreationImpact#getPackages()).

## Summary

|                                                                                                                                                                                                                                                  Public constructors                                                                                                                                                                                                                                                   ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [InterfaceCreationImpact](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.InterfaceCreationImpact#InterfaceCreationImpact(kotlin.Int,%20kotlin.collections.MutableSet))`(`interfaceType:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `packages:` `[MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>`)` <br /> |

|                                                                                                                                                                                                          Public methods                                                                                                                                                                                                           ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                         | [equals](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.InterfaceCreationImpact#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` <br /> |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                 | [getInterfaceType](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.InterfaceCreationImpact#getInterfaceType())`()` <br />                                                                             |
| open[MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\> | [getPackages](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.InterfaceCreationImpact#getPackages())`()` <br />                                                                                       |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                 | [hashCode](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.InterfaceCreationImpact#hashCode())`()` <br />                                                                                             |

## Public constructors

### InterfaceCreationImpact

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
InterfaceCreationImpact(
    interfaceType: Int, 
    packages: MutableSet<String!>)
```

|                                                                                                                                                                                                                                                                                                                                                                                                 Parameters                                                                                                                                                                                                                                                                                                                                                                                                 ||
|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `interfaceType` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Value is[android.net.wifi.WifiManager#WIFI_INTERFACE_TYPE_STA](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#WIFI_INTERFACE_TYPE_STA:kotlin.Int),[android.net.wifi.WifiManager#WIFI_INTERFACE_TYPE_AP](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#WIFI_INTERFACE_TYPE_AP:kotlin.Int),[android.net.wifi.WifiManager#WIFI_INTERFACE_TYPE_AWARE](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#WIFI_INTERFACE_TYPE_AWARE:kotlin.Int), or[android.net.wifi.WifiManager#WIFI_INTERFACE_TYPE_DIRECT](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#WIFI_INTERFACE_TYPE_DIRECT:kotlin.Int) |
| `packages`      | [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>:This value cannot be`null`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |

## Public methods

### equals

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun equals(other: Any?): Boolean
```

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |

|                                                                           Return                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true`if this object is the same as the obj argument;`false`otherwise. |

### getInterfaceType

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getInterfaceType(): Int
```

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Return                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ||
|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | The interface type which will be torn down to make room for the interface requested in[reportCreateInterfaceImpact(int,boolean,java.util.concurrent.Executor,java.util.function.BiConsumer)](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#reportCreateInterfaceImpact(kotlin.Int,%20kotlin.Boolean,%20java.util.concurrent.Executor,%20java.util.function.BiConsumer)). Value is[android.net.wifi.WifiManager#WIFI_INTERFACE_TYPE_STA](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#WIFI_INTERFACE_TYPE_STA:kotlin.Int),[android.net.wifi.WifiManager#WIFI_INTERFACE_TYPE_AP](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#WIFI_INTERFACE_TYPE_AP:kotlin.Int),[android.net.wifi.WifiManager#WIFI_INTERFACE_TYPE_AWARE](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#WIFI_INTERFACE_TYPE_AWARE:kotlin.Int), or[android.net.wifi.WifiManager#WIFI_INTERFACE_TYPE_DIRECT](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager#WIFI_INTERFACE_TYPE_DIRECT:kotlin.Int) |

### getPackages

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getPackages(): MutableSet<String!>
```

|                                                                                                                                                                                                                           Return                                                                                                                                                                                                                            ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!> | The list of potentially impacted packages due to tearing down the interface specified in[getInterfaceType()](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.InterfaceCreationImpact#getInterfaceType()). This value cannot be`null`. |

### hashCode

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun hashCode(): Int
```

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |