Stay organized with collections
Save and categorize content based on your preferences.
SuggestionUserApprovalStatusListener
interface SuggestionUserApprovalStatusListener
Interface for network suggestion user approval status change listener. Should be implemented by applications and registered using addSuggestionUserApprovalStatusListener(java.util.concurrent.Executor,android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener)
(
Summary
Public methods |
abstract Unit |
Called when the user approval status of the App has changed.
|
Public methods
onUserApprovalStatusChange
abstract fun onUserApprovalStatusChange(status: Int): Unit
Called when the user approval status of the App has changed.
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,["# WifiManager.SuggestionUserApprovalStatusListener\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSuggestionUserApprovalStatusListener\n====================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/wifi/WifiManager.SuggestionUserApprovalStatusListener \"View this page in Java\") \n\n```\ninterface SuggestionUserApprovalStatusListener\n```\n\n|------------------------------------------------------------------------|\n| [android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener](#) |\n\nInterface for network suggestion user approval status change listener. Should be implemented by applications and registered using [addSuggestionUserApprovalStatusListener(java.util.concurrent.Executor,android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener)](/reference/kotlin/android/net/wifi/WifiManager#addSuggestionUserApprovalStatusListener(java.util.concurrent.Executor,%20android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener)) (\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onUserApprovalStatusChange](#onUserApprovalStatusChange(kotlin.Int))`(`status:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Called when the user approval status of the App has changed. |\n\nPublic methods\n--------------\n\n### onUserApprovalStatusChange\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onUserApprovalStatusChange(status: Int): Unit\n```\n\nCalled when the user approval status of the App has changed.\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `status` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The current status code for the user approval. One of the `STATUS_SUGGESTION_APPROVAL_` values. Value is [android.net.wifi.WifiManager#STATUS_SUGGESTION_APPROVAL_UNKNOWN](/reference/kotlin/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_UNKNOWN:kotlin.Int), [android.net.wifi.WifiManager#STATUS_SUGGESTION_APPROVAL_PENDING](/reference/kotlin/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_PENDING:kotlin.Int), [android.net.wifi.WifiManager#STATUS_SUGGESTION_APPROVAL_APPROVED_BY_USER](/reference/kotlin/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_APPROVED_BY_USER:kotlin.Int), [android.net.wifi.WifiManager#STATUS_SUGGESTION_APPROVAL_REJECTED_BY_USER](/reference/kotlin/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_REJECTED_BY_USER:kotlin.Int), or [android.net.wifi.WifiManager#STATUS_SUGGESTION_APPROVAL_APPROVED_BY_CARRIER_PRIVILEGE](/reference/kotlin/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_APPROVED_BY_CARRIER_PRIVILEGE:kotlin.Int) |"]]