Stay organized with collections
Save and categorize content based on your preferences.
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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nWifiManager.SuggestionUserApprovalStatusListener\n================================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/net/wifi/WifiManager.SuggestionUserApprovalStatusListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nWifiManager.SuggestionUserApprovalStatusListener\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------------------------|\n| android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for network suggestion user approval status change listener.\nShould be implemented by applications and registered using\n[WifiManager.addSuggestionUserApprovalStatusListener(java.util.concurrent.Executor, android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener)](/reference/android/net/wifi/WifiManager#addSuggestionUserApprovalStatusListener(java.util.concurrent.Executor,%20android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener)) (\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onUserApprovalStatusChange](/reference/android/net/wifi/WifiManager.SuggestionUserApprovalStatusListener#onUserApprovalStatusChange(int))`(int status) ` Called when the user approval status of the App has changed. |\n\nPublic methods\n--------------\n\n### onUserApprovalStatusChange\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onUserApprovalStatusChange (int status)\n```\n\nCalled when the user approval status of the App has changed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `status` | `int`: The current status code for the user approval. One of the `STATUS_SUGGESTION_APPROVAL_` values. Value is [WifiManager.STATUS_SUGGESTION_APPROVAL_UNKNOWN](/reference/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_UNKNOWN), [WifiManager.STATUS_SUGGESTION_APPROVAL_PENDING](/reference/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_PENDING), [WifiManager.STATUS_SUGGESTION_APPROVAL_APPROVED_BY_USER](/reference/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_APPROVED_BY_USER), [WifiManager.STATUS_SUGGESTION_APPROVAL_REJECTED_BY_USER](/reference/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_REJECTED_BY_USER), or [WifiManager.STATUS_SUGGESTION_APPROVAL_APPROVED_BY_CARRIER_PRIVILEGE](/reference/android/net/wifi/WifiManager#STATUS_SUGGESTION_APPROVAL_APPROVED_BY_CARRIER_PRIVILEGE) \u003cbr /\u003e |"]]