From 3f46a1445ba1351b8523fa7d78018e3d93fae03f Mon Sep 17 00:00:00 2001 From: Patches Date: Mon, 9 Aug 2021 21:21:19 -0400 Subject: [PATCH] issue139 - Add newer Android OS support (#150) --- .circleci/config.yml | 84 - .editorconfig | 3 + .gitignore | 1 + .idea/.name | 1 + CHANGE.md | 11 - CHANGELOG.md | 0 README.md | 188 +- {wisefysample => app}/.gitignore | 0 app/build.gradle.kts | 126 + .../proguard-rules-common.pro | 8 - .../proguard-rules-debug.pro | 2 +- .../proguard-rules-release.pro | 0 {wisefysample => app}/proguard-test-rules.pro | 0 .../src/debug/AndroidManifest.xml | 8 +- .../wisefy/sample}/DebugMainApplication.kt | 2 +- .../src/main/AndroidManifest.xml | 9 +- .../android/wisefy/sample}/MainApplication.kt | 29 +- .../sample}/internal/base/BaseActivity.kt | 14 +- .../internal/base/BaseDialogFragment.kt | 14 +- .../sample}/internal/base/BaseFragment.kt | 48 +- .../internal/di/ScreenBindingsModule.kt | 18 +- .../sample/internal/entities}/NetworkType.kt | 10 +- .../sample/internal/entities}/SearchType.kt | 4 +- .../internal/logging/WisefySampleLogger.kt | 90 + .../sample/internal/scaffolding/BaseModel.kt | 16 +- .../internal/scaffolding/BasePresenter.kt | 62 + .../sample/internal/scaffolding/BaseStore.kt | 42 + .../sample/internal/scaffolding/BaseView.kt | 24 + .../sample}/internal/util/BundleUtil.kt | 13 +- .../sample}/internal/util/EditTextUtil.kt | 4 +- .../wisefy/sample}/internal/util/HtmlUtil.kt | 9 +- .../sample}/internal/util/KeyboardUtil.kt | 6 +- .../sample}/internal/util/PermissionsUtil.kt | 4 +- .../wisefy/sample}/internal/util/SdkUtil.kt | 8 +- .../sample/internal/util/WiseFyFactory.kt | 21 +- .../sample/ui/add/AddNetworkFragment.kt | 298 +++ .../wisefy/sample/ui/add/AddNetworkModel.kt | 178 ++ .../wisefy/sample/ui/add/AddNetworkModule.kt | 40 + .../sample/ui/add/AddNetworkPresenter.kt | 164 ++ .../wisefy/sample/ui/add}/AddNetworkStore.kt | 22 +- .../ui/dialogs/BaseNoticeDialogFragment.kt | 23 +- .../dialogs/FullScreenNoticeDialogFragment.kt | 71 + .../sample/ui/dialogs/NoticeDialogFragment.kt | 62 + .../wisefy/sample/ui/main/MainActivity.kt | 113 + .../wisefy/sample/ui/main/MainFragment.kt | 38 + .../wisefy/sample}/ui/misc/MiscFragment.kt | 140 +- .../wisefy/sample/ui/misc/MiscModel.kt | 100 + .../wisefy/sample/ui/misc/MiscModule.kt | 17 +- .../wisefy/sample/ui/misc/MiscPresenter.kt | 268 ++ .../sample/ui/remove/RemoveNetworkFragment.kt | 150 ++ .../sample/ui/remove/RemoveNetworkModel.kt | 44 + .../sample/ui/remove/RemoveNetworkModule.kt | 41 + .../ui/remove/RemoveNetworkPresenter.kt | 73 + .../sample/ui/remove}/RemoveNetworkStore.kt | 21 +- .../sample}/ui/search/SearchFragment.kt | 221 +- .../wisefy/sample/ui/search/SearchModel.kt | 152 ++ .../wisefy/sample/ui/search/SearchModule.kt | 36 +- .../sample/ui/search/SearchPresenter.kt | 225 ++ .../wisefy/sample/ui/search}/SearchStore.kt | 23 +- .../src/main/res/drawable/button_pressed.xml | 0 .../src/main/res/drawable/button_selector.xml | 0 .../main/res/drawable/button_unpressed.xml | 0 .../src/main/res/drawable/ic_add_circle.xml | 0 .../src/main/res/drawable/ic_apps.xml | 0 .../src/main/res/drawable/ic_home.xml | 0 .../res/drawable/ic_launcher_background.xml | 0 .../res/drawable/ic_launcher_foreground.xml | 0 .../src/main/res/drawable/ic_logo.xml | 0 .../main/res/drawable/ic_remove_circle.xml | 0 .../src/main/res/drawable/ic_search.xml | 0 .../src/main/res/layout/activity_main.xml | 10 +- .../src/main/res/layout/dialog_base.xml | 0 .../res/layout/dialog_base_fullscreen.xml | 0 .../main/res/layout/fragment_add_network.xml | 8 +- .../src/main/res/layout/fragment_main.xml | 2 +- .../src/main/res/layout/fragment_misc.xml | 0 .../res/layout/fragment_remove_network.xml | 0 .../src/main/res/layout/fragment_search.xml | 0 .../src/main/res/menu/menu_main.xml | 12 +- .../res/mipmap-anydpi-v26/ic_launcher.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../main/res/navigation/main_nav_graph.xml | 43 + .../src/main/res/values/add_network.xml | 10 +- .../src/main/res/values/colors.xml | 0 .../main/res/values/content_descriptions.xml | 0 .../src/main/res/values/dimens.xml | 0 .../src/main/res/values/misc.xml | 2 +- .../src/main/res/values/nav.xml | 0 .../src/main/res/values/preferences.xml | 6 +- app/src/main/res/values/remove_network.xml | 17 + .../src/main/res/values/search.xml | 0 .../src/main/res/values/strings.xml | 12 +- .../src/main/res/values/styles.xml | 0 build.gradle | 151 -- build.gradle.kts | 101 + buildSrc/.gitignore | 1 + buildSrc/build.gradle.kts | 12 + buildSrc/settings.gradle | 1 + .../android/wisefy/build/Android.kt | 37 + .../android/wisefy/build/BuildVersions.kt | 25 +- .../android/wisefy/build/Dependencies.kt | 55 + .../wisefy/build/DependencyConstants.kt | 21 + .../android/wisefy/build/Groupings.kt | 35 + .../wisefy/build/PublishingConstants.kt | 8 +- .../android/wisefy/build/Versions.kt | 54 + .../build/plugins/BaseGraldleModulePlugin.kt | 137 + .../build/plugins/DocumentationPlugin.kt | 26 + .../wisefy/build/plugins/PublishingPlugin.kt | 181 ++ ....plugins.BaseGradleModulePlugin.properties | 1 + ...ild.plugins.DocumentationPlugin.properties | 1 + ....build.plugins.PublishingPlugin.properties | 1 + config/detekt-config.yml | 348 --- config/detekt.yml | 746 ++++++ documentation/adding_and_removing_networks.md | 237 -- documentation/checking_device_connectivity.md | 85 - ...necting_and_disconnecting_from_networks.md | 126 - documentation/current_network.md | 118 - documentation/enabling_and_disabling_wifi.md | 116 - documentation/frequency.md | 147 -- documentation/index.md | 45 + documentation/ip.md | 58 - documentation/nearby_access_points.md | 288 --- documentation/network_security.md | 85 - documentation/rssi.md | 91 - documentation/saved_networks.md | 186 -- .../using_legacy_classes_and_logic.md | 41 - .../-l-o-g_-t-a-g.md | 6 + .../-legacy-access-points-api-impl.md | 6 + .../access-point-matches-regex.md | 6 + .../get-nearby-access-points.md | 9 + .../get-r-s-s-i.md | 9 + .../has-highest-signal-strength.md | 6 + .../-legacy-access-points-api-impl/index.md | 31 + .../-legacy-access-points-api-impl/logger.md | 6 + ...move-entries-with-lower-signal-strength.md | 6 + .../scan-results-provider.md | 6 + .../search-for-access-point.md | 9 + .../search-for-access-points.md | 9 + .../search-for-s-s-i-d.md | 9 + .../search-for-s-s-i-ds.md | 9 + .../wifi-manager.md | 6 + .../get-nearby-access-points.md | 9 + .../-legacy-access-points-api/get-r-s-s-i.md | 9 + .../-legacy-access-points-api/index.md | 26 + .../search-for-access-point.md | 9 + .../search-for-access-points.md | 9 + .../search-for-s-s-i-d.md | 9 + .../search-for-s-s-i-ds.md | 9 + .../-legacy-access-points-delegate.md | 6 + .../get-nearby-access-points.md | 9 + .../get-r-s-s-i.md | 9 + .../-legacy-access-points-delegate/impl.md | 6 + .../-legacy-access-points-delegate/index.md | 26 + .../search-for-access-point.md | 9 + .../search-for-access-points.md | 9 + .../search-for-s-s-i-d.md | 9 + .../search-for-s-s-i-ds.md | 9 + .../index.md | 17 + .../-access-point-data/-access-point-data.md | 6 + .../-scan-data/-scan-data.md | 6 + .../-scan-data/component1.md | 6 + .../-access-point-data/-scan-data/copy.md | 6 + .../-access-point-data/-scan-data/data.md | 6 + .../-access-point-data/-scan-data/index.md | 22 + .../-access-point-data/index.md | 26 + .../index.md | 9 + .../get-nearby-access-points.md | 9 + .../-access-points-api-async/get-r-s-s-i.md | 9 + .../-access-points-api-async/index.md | 27 + .../search-for-access-point.md | 9 + .../search-for-access-points.md | 9 + .../search-for-s-s-i-d.md | 9 + .../search-for-s-s-i-ds.md | 9 + .../get-nearby-access-points.md | 9 + .../-access-points-api/get-r-s-s-i.md | 9 + .../-access-points-api/index.md | 28 + .../search-for-access-point.md | 9 + .../search-for-access-points.md | 9 + .../-access-points-api/search-for-s-s-i-d.md | 9 + .../-access-points-api/search-for-s-s-i-ds.md | 9 + .../-access-points-util/index.md | 26 + .../-l-o-g_-t-a-g.md | 6 + .../-wisefy-access-points-util.md | 6 + .../access-point-scope.md | 6 + .../coroutine-dispatcher-provider.md | 6 + .../-wisefy-access-points-util/delegate.md | 6 + .../get-nearby-access-points.md | 13 + .../-wisefy-access-points-util/get-r-s-s-i.md | 13 + .../-wisefy-access-points-util/index.md | 28 + .../search-for-access-point.md | 13 + .../search-for-access-points.md | 13 + .../search-for-s-s-i-d.md | 13 + .../search-for-s-s-i-ds.md | 13 + .../index.md | 18 + ..._-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md | 6 + .../-android29-add-network-api-impl.md | 6 + .../add-open-network.md | 9 + .../add-w-p-a2-network.md | 9 + .../add-w-p-a3-network.md | 9 + .../-android29-add-network-api-impl/index.md | 26 + .../-android29-add-network-api-impl/logger.md | 6 + .../wifi-manager.md | 6 + .../add-open-network.md | 9 + .../add-w-p-a2-network.md | 9 + .../add-w-p-a3-network.md | 9 + .../-android29-add-network-api/index.md | 25 + .../-android29-add-network-delegate.md | 6 + .../add-open-network.md | 9 + .../add-w-p-a2-network.md | 9 + .../add-w-p-a3-network.md | 9 + .../-android29-add-network-delegate/impl.md | 6 + .../-android29-add-network-delegate/index.md | 25 + .../-android30-add-network-api-impl.md | 6 + .../add-open-network.md | 9 + .../add-w-p-a2-network.md | 9 + .../add-w-p-a3-network.md | 9 + .../-android30-add-network-api-impl/index.md | 26 + .../launch-intent.md | 9 + .../wifi-manager.md | 6 + .../add-open-network.md | 9 + .../add-w-p-a2-network.md | 9 + .../add-w-p-a3-network.md | 9 + .../-android30-add-network-api/index.md | 23 + .../-android30-add-network-delegate.md | 6 + .../add-open-network.md | 9 + .../add-w-p-a2-network.md | 9 + .../add-w-p-a3-network.md | 9 + .../-android30-add-network-delegate/impl.md | 6 + .../-android30-add-network-delegate/index.md | 25 + .../-l-o-g_-t-a-g.md | 6 + .../-legacy-add-network-api-impl.md | 6 + .../add-open-network.md | 9 + .../add-w-p-a2-network.md | 9 + .../-legacy-add-network-api-impl/index.md | 22 + .../wifi-manager.md | 6 + .../add-open-network.md | 6 + .../add-w-p-a2-network.md | 6 + .../-legacy-add-network-api/index.md | 22 + .../-legacy-add-network-delegate.md | 6 + .../add-open-network.md | 9 + .../add-w-p-a2-network.md | 9 + .../add-w-p-a3-network.md | 9 + .../-legacy-add-network-delegate/impl.md | 6 + .../-legacy-add-network-delegate/index.md | 23 + .../index.md | 24 + .../-add-network-result.md | 6 + .../-intent-launched/index.md | 14 + .../-result-code/-result-code.md | 6 + .../-result-code/component1.md | 6 + .../-add-network-result/-result-code/copy.md | 6 + .../-add-network-result/-result-code/data.md | 6 + .../-add-network-result/-result-code/index.md | 22 + .../-wrong-s-d-k-level-error.md | 6 + .../-wrong-s-d-k-level-error/component1.md | 6 + .../-wrong-s-d-k-level-error/copy.md | 6 + .../-wrong-s-d-k-level-error/index.md | 22 + .../-wrong-s-d-k-level-error/message.md | 6 + .../-add-network-result/index.md | 30 + .../-open-network-data/-open-network-data.md | 6 + .../-ssid-and-activity-result-launcher.md | 6 + .../activity-result-launcher.md | 6 + .../component1.md | 6 + .../component2.md | 6 + .../copy.md | 6 + .../index.md | 26 + .../ssid.md | 6 + .../-open-network-data/-ssid/-ssid.md | 6 + .../-open-network-data/-ssid/component1.md | 6 + .../-open-network-data/-ssid/copy.md | 6 + .../-open-network-data/-ssid/index.md | 22 + .../-open-network-data/-ssid/ssid.md | 6 + .../-open-network-data/index.md | 28 + .../-ssid-and-passphrase.md | 6 + .../-ssid-and-passphrase/component1.md | 6 + .../-ssid-and-passphrase/component2.md | 6 + .../-ssid-and-passphrase/copy.md | 6 + .../-ssid-and-passphrase/index.md | 24 + .../-ssid-and-passphrase/passphrase.md | 6 + .../-ssid-and-passphrase/ssid.md | 6 + ...passphrase-and-activity-result-launcher.md | 6 + .../activity-result-launcher.md | 6 + .../component1.md | 6 + .../component2.md | 6 + .../component3.md | 6 + .../copy.md | 6 + .../index.md | 28 + .../passphrase.md | 6 + .../ssid.md | 6 + .../-w-p-a2-network-data.md | 6 + .../-w-p-a2-network-data/index.md | 28 + .../-ssid-and-passphrase.md | 6 + .../-ssid-and-passphrase/component1.md | 6 + .../-ssid-and-passphrase/component2.md | 6 + .../-ssid-and-passphrase/copy.md | 6 + .../-ssid-and-passphrase/index.md | 26 + .../-ssid-and-passphrase/passphrase.md | 6 + .../-ssid-and-passphrase/ssid.md | 6 + ...passphrase-and-activity-result-launcher.md | 6 + .../activity-result-launcher.md | 6 + .../component1.md | 6 + .../component2.md | 6 + .../component3.md | 6 + .../copy.md | 6 + .../index.md | 28 + .../passphrase.md | 6 + .../ssid.md | 6 + .../-w-p-a3-network-data.md | 6 + .../-w-p-a3-network-data/index.md | 30 + .../index.md | 12 + .../add-open-network.md | 9 + .../add-w-p-a2-network.md | 9 + .../add-w-p-a3-network.md | 11 + .../-add-network-api-async/index.md | 24 + .../-add-network-api/add-open-network.md | 9 + .../-add-network-api/add-w-p-a2-network.md | 9 + .../-add-network-api/add-w-p-a3-network.md | 11 + .../-add-network-api/index.md | 27 + .../-add-network-util/index.md | 23 + .../-l-o-g_-t-a-g.md | 6 + .../-wisefy-add-network-util.md | 6 + .../add-network-scope.md | 6 + .../add-open-network.md | 13 + .../add-w-p-a2-network.md | 13 + .../add-w-p-a3-network.md | 17 + .../coroutine-dispatcher-provider.md | 6 + .../-wisefy-add-network-util/delegate.md | 6 + .../-wisefy-add-network-util/index.md | 25 + .../index.md | 18 + .../-add-network-callbacks/index.md | 17 + .../on-failure-adding-network.md | 6 + .../on-network-added.md | 6 + .../-base-wisefy-callbacks/index.md | 39 + .../on-wisefy-async-failure.md | 6 + .../-connect-to-network-callbacks/index.md | 19 + .../on-connected-to-network.md | 6 + .../on-connection-request-placed.md | 6 + .../on-failure-connecting-to-network.md | 6 + .../on-network-not-found-to-connect-to.md | 6 + .../-disable-wifi-callbacks/index.md | 17 + .../on-failure-disabling-wifi.md | 6 + .../on-wifi-disabled.md | 6 + .../index.md | 17 + .../on-disconnected-from-current-network.md | 6 + ...lure-disconnecting-from-current-network.md | 6 + .../-enable-wifi-callbacks/index.md | 17 + .../on-failure-enabling-wifi.md | 6 + .../-enable-wifi-callbacks/on-wifi-enabled.md | 6 + .../-get-current-network-callbacks/index.md | 17 + .../on-current-network-retrieved.md | 6 + .../on-no-current-network.md | 6 + .../index.md | 17 + .../on-current-network-info-retrieved.md | 6 + .../on-no-current-network-info.md | 6 + .../-get-frequency-callbacks/index.md | 17 + .../on-failure-retrieving-frequency.md | 6 + .../on-frequency-retrieved.md | 6 + .../-get-i-p-callbacks/index.md | 17 + .../on-failure-retrieving-i-p.md | 6 + .../-get-i-p-callbacks/on-i-p-retrieved.md | 6 + .../index.md | 17 + .../on-nearby-access-points-retrieved.md | 6 + .../on-no-nearby-access-points.md | 6 + .../-get-r-s-s-i-callbacks/index.md | 17 + .../on-no-network-to-retrieve-r-s-s-i.md | 6 + .../on-r-s-s-i-retrieved.md | 6 + .../-get-saved-networks-callbacks/index.md | 17 + .../on-no-saved-networks-found.md | 6 + .../on-saved-networks-retrieved.md | 6 + .../-remove-network-callbacks/index.md | 18 + .../on-failure-removing-network.md | 6 + .../on-network-not-found-to-remove.md | 6 + .../on-network-removed.md | 6 + .../index.md | 17 + .../on-access-point-found.md | 6 + .../on-no-access-point-found.md | 6 + .../index.md | 17 + .../on-access-points-found.md | 6 + .../on-no-access-points-found.md | 6 + .../-search-for-s-s-i-d-callbacks/index.md | 17 + .../on-s-s-i-d-found.md | 6 + .../on-s-s-i-d-not-found.md | 6 + .../-search-for-s-s-i-ds-callbacks/index.md | 17 + .../on-no-s-s-i-ds-found.md | 6 + .../on-s-s-i-ds-found.md | 6 + .../index.md | 17 + .../on-saved-network-not-found.md | 6 + .../on-saved-network-retrieved.md | 6 + .../index.md | 17 + .../on-no-saved-networks-found.md | 6 + .../on-saved-networks-retrieved.md | 6 + .../index.md | 28 + .../-c-a-l-c-u-l-a-t-e_-b-a-r-s.md | 6 + .../-d-i-s-a-b-l-e_-w-i-f-i.md | 6 + .../-e-n-a-b-l-e_-w-i-f-i.md | 6 + .../-deprecation-messages/index.md | 22 + .../-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md | 6 + .../-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md | 6 + .../-activity-result-launcher/index.md | 21 + .../-p-r-e_-a-n-d-r-o-i-d_29.md | 6 + .../-add-network/-w-p-a3-network/index.md | 20 + .../-error-messages/-add-network/index.md | 21 + ...-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md | 6 + ...c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md | 6 + .../-error-messages/index.md | 27 + .../-q-u-o-t-e.md | 6 + .../index.md | 16 + .../-legacy-frequency-api-impl.md | 6 + .../get-frequency.md | 15 + .../-legacy-frequency-api-impl/index.md | 22 + .../is-network5g-hz.md | 15 + .../wifi-manager.md | 6 + .../-legacy-frequency-api/get-frequency.md | 13 + .../-legacy-frequency-api/index.md | 22 + .../-legacy-frequency-api/is-network5g-hz.md | 11 + .../-legacy-frequency-delegate.md | 6 + .../get-frequency.md | 15 + .../-legacy-frequency-delegate/impl.md | 6 + .../-legacy-frequency-delegate/index.md | 22 + .../is-network5g-hz.md | 15 + .../index.md | 11 + .../-frequency-api-async/get-frequency.md | 11 + .../-frequency-api-async/index.md | 21 + .../-frequency-api/get-frequency.md | 15 + .../-frequency-api/index.md | 24 + .../-frequency-api/is-network5g-hz.md | 15 + .../-frequency-util/get-frequency.md | 11 + .../-frequency-util/index.md | 22 + .../-l-o-g_-t-a-g.md | 6 + .../-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md | 6 + .../-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md | 6 + .../-wisefy-frequency-util.md | 6 + .../coroutine-dispatcher-provider.md | 6 + .../-wisefy-frequency-util/delegate.md | 6 + .../-wisefy-frequency-util/frequency-scope.md | 6 + .../-wisefy-frequency-util/get-frequency.md | 21 + .../-wisefy-frequency-util/index.md | 24 + .../-wisefy-frequency-util/is-network5g-hz.md | 15 + .../index.md | 20 + .../-wisefy-logger/d.md | 6 + .../-wisefy-logger/e.md | 8 + .../-wisefy-logger/i.md | 6 + .../-wisefy-logger/index.md | 20 + .../-wisefy-logger/v.md | 6 + .../-wisefy-logger/w.md | 6 + .../-wisefy-logger/wtf.md | 8 + .../index.md | 9 + .../-android29-network-connection-api-impl.md | 6 + .../connect-to-network.md | 9 + .../connection-manager.md | 6 + .../disconnect-from-current-network.md | 6 + .../index.md | 31 + .../logger.md | 6 + .../network-callback.md | 6 + .../connect-to-network.md | 9 + .../disconnect-from-current-network.md | 6 + .../index.md | 22 + .../-android29-network-connection-delegate.md | 6 + .../connect-to-network.md | 9 + .../disconnect-from-current-network.md | 6 + .../impl.md | 6 + .../index.md | 22 + .../-l-o-g_-t-a-g.md | 6 + .../-legacy-network-connection-api-impl.md | 6 + .../connect-to-network.md | 9 + .../disconnect-from-current-network.md | 6 + .../index.md | 34 + ...is-current-network-connected-to-s-s-i-d.md | 6 + .../logger.md | 6 + .../network-connection-status-util.md | 6 + .../saved-network-util.md | 6 + .../wait-to-connect-to-s-s-i-d.md | 6 + .../wifi-manager.md | 6 + .../connect-to-network.md | 6 + .../disconnect-from-current-network.md | 6 + .../-legacy-network-connection-api/index.md | 22 + .../-legacy-network-connection-delegate.md | 11 + .../connect-to-network.md | 6 + .../disconnect-from-current-network.md | 6 + .../impl.md | 6 + .../index.md | 22 + .../index.md | 21 + .../-connection-request-placed/index.md | 14 + .../-network-connection-result.md | 6 + .../-network-not-found/index.md | 14 + .../-succeeded/-succeeded.md | 6 + .../-succeeded/component1.md | 6 + .../-succeeded/copy.md | 6 + .../-succeeded/data.md | 6 + .../-succeeded/index.md | 22 + .../-unregister-request-sent/index.md | 14 + .../-network-connection-result/index.md | 32 + .../index.md | 9 + .../-l-o-g_-t-a-g.md | 6 + .../connect-to-network.md | 6 + .../disconnect-from-current-network.md | 6 + .../-network-connection-api-async/index.md | 23 + .../connect-to-network.md | 6 + .../disconnect-from-current-network.md | 6 + .../-network-connection-api/index.md | 25 + .../-network-connection-util/index.md | 22 + .../-wisefy-network-connection-util.md | 6 + .../connect-to-network.md | 8 + .../coroutine-dispatcher-provider.md | 6 + .../delegate.md | 6 + .../disconnect-from-current-network.md | 8 + .../-wisefy-network-connection-util/index.md | 24 + .../network-connection-scope.md | 6 + .../index.md | 18 + .../-l-o-g_-t-a-g.md | 6 + ...gacy-network-connection-status-api-impl.md | 6 + .../attach-network-watcher.md | 9 + .../connection-status.md | 6 + .../connectivity-manager.md | 6 + .../detach-network-watcher.md | 6 + .../does-network-have-capability.md | 9 + ...-transport-type-and-internet-capability.md | 9 + .../get-active-network-capabilities.md | 9 + .../index.md | 44 + .../is-device-connected-to-mobile-network.md | 9 + ...ice-connected-to-mobile-or-wifi-network.md | 6 + .../is-device-connected-to-s-s-i-d.md | 6 + .../is-device-connected-to-wifi-network.md | 9 + .../is-device-roaming.md | 9 + .../is-network-connected.md | 6 + .../logger.md | 6 + .../on-available.md | 6 + .../on-capabilities-changed.md | 6 + .../on-link-properties-changed.md | 6 + .../on-losing.md | 6 + .../on-lost.md | 6 + .../on-unavailable.md | 6 + .../sdk-util.md | 6 + .../start-listening-for-network-changes.md | 9 + .../stop-listening-for-network-changes.md | 6 + .../wifi-manager.md | 6 + .../attach-network-watcher.md | 9 + .../detach-network-watcher.md | 6 + .../index.md | 27 + .../is-device-connected-to-mobile-network.md | 9 + ...ice-connected-to-mobile-or-wifi-network.md | 6 + .../is-device-connected-to-s-s-i-d.md | 6 + .../is-device-connected-to-wifi-network.md | 9 + .../is-device-roaming.md | 9 + ...gacy-network-connection-status-delegate.md | 11 + .../attach-network-watcher.md | 9 + .../detach-network-watcher.md | 6 + .../impl.md | 6 + .../index.md | 27 + .../is-device-connected-to-mobile-network.md | 9 + ...ice-connected-to-mobile-or-wifi-network.md | 6 + .../is-device-connected-to-s-s-i-d.md | 6 + .../is-device-connected-to-wifi-network.md | 9 + .../is-device-roaming.md | 9 + .../index.md | 17 + .../-a-v-a-i-l-a-b-l-e/index.md | 25 + .../-a-v-a-i-l-a-b-l-e/name.md | 6 + .../-a-v-a-i-l-a-b-l-e/ordinal.md | 6 + .../-l-o-s-i-n-g/index.md | 25 + .../-l-o-s-i-n-g/name.md | 6 + .../-l-o-s-i-n-g/ordinal.md | 6 + .../-l-o-s-t/index.md | 25 + .../-l-o-s-t/name.md | 6 + .../-l-o-s-t/ordinal.md | 6 + .../-network-connection-status.md | 6 + .../-u-n-a-v-a-i-l-a-b-l-e/index.md | 25 + .../-u-n-a-v-a-i-l-a-b-l-e/name.md | 6 + .../-u-n-a-v-a-i-l-a-b-l-e/ordinal.md | 6 + .../-network-connection-status/index.md | 34 + .../index.md | 9 + .../-l-o-g_-t-a-g.md | 6 + .../attach-network-watcher.md | 6 + .../detach-network-watcher.md | 6 + .../-network-connection-status-api/index.md | 29 + .../is-device-connected-to-mobile-network.md | 6 + ...ice-connected-to-mobile-or-wifi-network.md | 6 + .../is-device-connected-to-s-s-i-d.md | 6 + .../is-device-connected-to-wifi-network.md | 6 + .../is-device-roaming.md | 6 + .../-network-connection-status-util/index.md | 27 + .../-wisefy-network-connection-status-util.md | 6 + .../attach-network-watcher.md | 9 + .../delegate.md | 6 + .../detach-network-watcher.md | 6 + .../index.md | 27 + .../is-device-connected-to-mobile-network.md | 9 + ...ice-connected-to-mobile-or-wifi-network.md | 6 + .../is-device-connected-to-s-s-i-d.md | 6 + .../is-device-connected-to-wifi-network.md | 9 + .../is-device-roaming.md | 9 + .../index.md | 17 + .../-l-o-g_-t-a-g.md | 6 + .../-legacy-network-info-api-impl.md | 6 + .../connectivity-manager.md | 6 + .../get-current-network-info.md | 9 + .../get-current-network.md | 6 + .../-legacy-network-info-api-impl/get-i-p.md | 6 + .../-legacy-network-info-api-impl/index.md | 25 + .../-legacy-network-info-api-impl/logger.md | 6 + .../wifi-manager.md | 6 + .../get-current-network-info.md | 6 + .../get-current-network.md | 6 + .../-legacy-network-info-api/get-i-p.md | 6 + .../-legacy-network-info-api/index.md | 23 + .../-legacy-network-info-delegate.md | 10 + .../get-current-network-info.md | 9 + .../get-current-network.md | 6 + .../-legacy-network-info-delegate/get-i-p.md | 6 + .../-legacy-network-info-delegate/impl.md | 6 + .../-legacy-network-info-delegate/index.md | 23 + .../index.md | 17 + .../-current-network-data.md | 6 + .../-current-network-data/component1.md | 6 + .../-current-network-data/copy.md | 6 + .../-current-network-data/data.md | 6 + .../-current-network-data/index.md | 22 + .../-current-network-info-data.md | 6 + .../capabilities.md | 6 + .../-current-network-info-data/component1.md | 6 + .../-current-network-info-data/component2.md | 6 + .../-current-network-info-data/copy.md | 6 + .../-current-network-info-data/index.md | 24 + .../link-properties.md | 6 + .../index.md | 10 + .../-l-o-g_-t-a-g.md | 6 + .../get-current-network-info.md | 9 + .../get-current-network.md | 6 + .../-network-info-api-async/get-i-p.md | 6 + .../-network-info-api-async/index.md | 24 + .../get-current-network-info.md | 9 + .../-network-info-api/get-current-network.md | 6 + .../-network-info-api/get-i-p.md | 6 + .../-network-info-api/index.md | 25 + .../-network-info-util/index.md | 23 + .../-wisefy-network-info-util.md | 6 + .../coroutine-dispatcher-provider.md | 6 + .../-wisefy-network-info-util/delegate.md | 6 + .../get-current-network-info.md | 13 + .../get-current-network.md | 8 + .../-wisefy-network-info-util/get-i-p.md | 8 + .../-wisefy-network-info-util/index.md | 25 + .../network-info-scope.md | 6 + .../index.md | 18 + .../-android29-remove-network-api-impl.md | 6 + .../index.md | 21 + .../remove-network.md | 11 + .../wifi-manager.md | 6 + .../-android29-remove-network-api/index.md | 21 + .../remove-network.md | 11 + .../-android29-remove-network-delegate.md | 6 + .../impl.md | 6 + .../index.md | 22 + .../remove-network.md | 11 + .../wifi-manager.md | 6 + .../-legacy-remove-network-api-impl.md | 6 + .../-legacy-remove-network-api-impl/index.md | 22 + .../remove-network.md | 9 + .../saved-network-util.md | 6 + .../wifi-manager.md | 6 + .../-legacy-remove-network-api/index.md | 21 + .../remove-network.md | 9 + .../-legacy-remove-network-delegate.md | 9 + .../-legacy-remove-network-delegate/impl.md | 6 + .../-legacy-remove-network-delegate/index.md | 23 + .../remove-network.md | 9 + .../saved-network-util.md | 6 + .../wifi-manager.md | 6 + .../index.md | 14 + .../-network-not-found/index.md | 14 + .../-remove-network-result.md | 6 + .../-result-code/-result-code.md | 6 + .../-result-code/component1.md | 6 + .../-result-code/copy.md | 6 + .../-result-code/data.md | 6 + .../-result-code/index.md | 22 + .../-succeeded/-succeeded.md | 6 + .../-succeeded/component1.md | 6 + .../-remove-network-result/-succeeded/copy.md | 6 + .../-remove-network-result/-succeeded/data.md | 6 + .../-succeeded/index.md | 22 + .../-remove-network-result/index.md | 30 + .../index.md | 9 + .../-l-o-g_-t-a-g.md | 6 + .../-remove-network-api-async/index.md | 22 + .../remove-network.md | 9 + .../-remove-network-api/index.md | 24 + .../-remove-network-api/remove-network.md | 9 + .../-remove-network-util/index.md | 21 + .../-wisefy-remove-network-util.md | 6 + .../coroutine-dispatcher-provider.md | 6 + .../-wisefy-remove-network-util/delegate.md | 6 + .../-wisefy-remove-network-util/index.md | 23 + .../remove-network-scope.md | 6 + .../remove-network.md | 13 + .../index.md | 18 + ...s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md | 6 + .../-android29-saved-network-api-impl.md | 6 + .../get-saved-networks.md | 6 + .../index.md | 18 + .../is-network-saved.md | 6 + .../search-for-saved-network.md | 6 + .../search-for-saved-networks.md | 6 + .../get-saved-networks.md | 6 + .../-android29-saved-network-api/index.md | 24 + .../is-network-saved.md | 6 + .../search-for-saved-network.md | 6 + .../search-for-saved-networks.md | 6 + .../-android29-saved-network-delegate.md | 6 + .../get-saved-networks.md | 9 + .../-android29-saved-network-delegate/impl.md | 6 + .../index.md | 24 + .../is-network-saved.md | 9 + .../search-for-saved-network.md | 9 + .../search-for-saved-networks.md | 9 + .../-android30-saved-network-api-impl.md | 6 + .../get-saved-networks.md | 11 + .../index.md | 25 + .../is-network-saved.md | 11 + .../matches-regex-for-s-s-i-d.md | 9 + .../search-for-saved-network.md | 11 + .../search-for-saved-networks.md | 11 + .../wifi-manager.md | 6 + .../get-saved-networks.md | 11 + .../-android30-saved-network-api/index.md | 24 + .../is-network-saved.md | 11 + .../search-for-saved-network.md | 11 + .../search-for-saved-networks.md | 11 + .../-android30-saved-network-delegate.md | 6 + .../get-saved-networks.md | 9 + .../-android30-saved-network-delegate/impl.md | 6 + .../index.md | 26 + .../is-network-saved.md | 9 + .../search-for-saved-network.md | 9 + .../search-for-saved-networks.md | 9 + .../-legacy-saved-network-api-impl.md | 6 + .../get-saved-networks.md | 9 + .../-legacy-saved-network-api-impl/index.md | 25 + .../is-network-saved.md | 9 + .../matches-regex-for-s-s-i-d.md | 6 + .../search-for-saved-network.md | 9 + .../search-for-saved-networks.md | 9 + .../wifi-manager.md | 6 + .../get-saved-networks.md | 9 + .../-legacy-saved-network-api/index.md | 24 + .../is-network-saved.md | 9 + .../search-for-saved-network.md | 9 + .../search-for-saved-networks.md | 9 + .../-legacy-saved-network-delegate.md | 6 + .../get-saved-networks.md | 9 + .../-legacy-saved-network-delegate/impl.md | 6 + .../-legacy-saved-network-delegate/index.md | 24 + .../is-network-saved.md | 9 + .../search-for-saved-network.md | 9 + .../search-for-saved-networks.md | 9 + .../index.md | 23 + .../-configuration/-configuration.md | 6 + .../-configuration/component1.md | 6 + .../-configuration/copy.md | 6 + .../-configuration/data.md | 6 + .../-configuration/index.md | 22 + .../-saved-network-data.md | 6 + .../-suggestion/-suggestion.md | 6 + .../-suggestion/component1.md | 6 + .../-saved-network-data/-suggestion/copy.md | 6 + .../-saved-network-data/-suggestion/data.md | 6 + .../-saved-network-data/-suggestion/index.md | 22 + .../-saved-network-data/index.md | 28 + .../index.md | 9 + .../-l-o-g_-t-a-g.md | 6 + .../get-saved-networks.md | 9 + .../-saved-network-api-async/index.md | 24 + .../search-for-saved-network.md | 9 + .../search-for-saved-networks.md | 9 + .../-saved-network-api/get-saved-networks.md | 9 + .../-saved-network-api/index.md | 28 + .../-saved-network-api/is-network-saved.md | 9 + .../search-for-saved-network.md | 9 + .../search-for-saved-networks.md | 9 + .../-saved-network-util/index.md | 24 + .../-wisefy-saved-network-util.md | 6 + .../coroutine-dispatcher-provider.md | 6 + .../-wisefy-saved-network-util/delegate.md | 6 + .../get-saved-networks.md | 13 + .../-wisefy-saved-network-util/index.md | 26 + .../is-network-saved.md | 9 + .../saved-network-scope.md | 6 + .../search-for-saved-network.md | 13 + .../search-for-saved-networks.md | 13 + .../index.md | 18 + .../-legacy-security-api-impl.md | 6 + .../contains-capability.md | 6 + .../-legacy-security-api-impl/index.md | 22 + .../is-network-e-a-p.md | 6 + .../is-network-p-s-k.md | 6 + .../is-network-secure.md | 6 + .../is-network-w-e-p.md | 6 + .../is-network-w-p-a.md | 6 + .../is-network-w-p-a2.md | 6 + .../is-network-w-p-a3.md | 6 + .../-legacy-security-api/index.md | 27 + .../-legacy-security-api/is-network-e-a-p.md | 6 + .../-legacy-security-api/is-network-p-s-k.md | 6 + .../-legacy-security-api/is-network-secure.md | 6 + .../-legacy-security-api/is-network-w-e-p.md | 6 + .../-legacy-security-api/is-network-w-p-a.md | 6 + .../-legacy-security-api/is-network-w-p-a2.md | 6 + .../-legacy-security-api/is-network-w-p-a3.md | 6 + .../-legacy-security-delegate.md | 6 + .../-legacy-security-delegate/impl.md | 6 + .../-legacy-security-delegate/index.md | 27 + .../is-network-e-a-p.md | 6 + .../is-network-p-s-k.md | 6 + .../is-network-secure.md | 6 + .../is-network-w-e-p.md | 6 + .../is-network-w-p-a.md | 6 + .../is-network-w-p-a2.md | 6 + .../is-network-w-p-a3.md | 6 + .../index.md | 11 + .../-capability/-capability.md | 6 + .../-capability/index.md | 14 + .../-e-a-p.md | 6 + .../-p-s-k.md | 6 + .../-w-e-p.md | 6 + .../-w-p-a.md | 6 + .../-w-p-a2.md | 6 + .../-w-p-a3.md | 6 + .../index.md | 20 + .../-l-o-g_-t-a-g.md | 6 + .../-security-api/index.md | 29 + .../-security-api/is-network-e-a-p.md | 6 + .../-security-api/is-network-p-s-k.md | 6 + .../-security-api/is-network-secure.md | 6 + .../-security-api/is-network-w-e-p.md | 6 + .../-security-api/is-network-w-p-a.md | 6 + .../-security-api/is-network-w-p-a2.md | 6 + .../-security-api/is-network-w-p-a3.md | 6 + .../-security-util/index.md | 27 + .../-wisefy-security-util.md | 6 + .../-wisefy-security-util/delegate.md | 6 + .../-wisefy-security-util/index.md | 27 + .../-wisefy-security-util/is-network-e-a-p.md | 6 + .../-wisefy-security-util/is-network-p-s-k.md | 6 + .../is-network-secure.md | 6 + .../-wisefy-security-util/is-network-w-e-p.md | 6 + .../-wisefy-security-util/is-network-w-p-a.md | 6 + .../is-network-w-p-a2.md | 6 + .../is-network-w-p-a3.md | 6 + .../index.md | 17 + .../-android30-signal-api-impl.md | 6 + .../calculate-bars.md | 11 + .../compare-signal-level.md | 6 + .../-android30-signal-api-impl/index.md | 22 + .../wifi-manager.md | 6 + .../-android30-signal-api/calculate-bars.md | 11 + .../compare-signal-level.md | 6 + .../-android30-signal-api/index.md | 22 + .../-android30-signal-delegate.md | 6 + .../calculate-bars.md | 11 + .../compare-signal-level.md | 6 + .../-android30-signal-delegate/impl.md | 6 + .../-android30-signal-delegate/index.md | 22 + .../-legacy-signal-api-impl.md | 6 + .../-legacy-signal-api-impl/calculate-bars.md | 11 + .../compare-signal-level.md | 6 + .../-legacy-signal-api-impl/index.md | 16 + .../-legacy-signal-api/calculate-bars.md | 11 + .../compare-signal-level.md | 6 + .../-legacy-signal-api/index.md | 22 + .../-legacy-signal-delegate.md | 6 + .../-legacy-signal-delegate/calculate-bars.md | 11 + .../compare-signal-level.md | 6 + .../-legacy-signal-delegate/impl.md | 6 + .../-legacy-signal-delegate/index.md | 22 + .../index.md | 14 + .../-l-o-g_-t-a-g.md | 6 + .../-signal-api/calculate-bars.md | 11 + .../-signal-api/compare-signal-level.md | 6 + .../-signal-api/index.md | 25 + .../-signal-util/index.md | 22 + .../-wisefy-signal-util.md | 6 + .../-wisefy-signal-util/calculate-bars.md | 11 + .../compare-signal-level.md | 6 + .../-wisefy-signal-util/delegate.md | 6 + .../-wisefy-signal-util/index.md | 22 + .../index.md | 17 + .../-coroutine-dispatcher-provider.md | 6 + .../-coroutine-dispatcher-provider/index.md | 21 + .../-coroutine-dispatcher-provider/io.md | 6 + .../-coroutine-dispatcher-provider/main.md | 6 + ...create-base-coroutine-exception-handler.md | 6 + .../index.md | 15 + .../convert-s-s-i-d-for-config.md | 6 + .../generate-open-network-configuration.md | 6 + .../generate-w-p-a2-network-configuration.md | 6 + .../index.md | 11 + .../-b-a-s-e_-d-e-l-a-y.md | 6 + .../-sdk-util-impl/-sdk-util-impl.md | 6 + .../-sdk-util-impl/index.md | 17 + .../-sdk-util-impl/is-at-least-p.md | 6 + .../-sdk-util-impl/is-at-least-q.md | 6 + .../-sdk-util-impl/is-at-least-r.md | 6 + .../-sdk-util/index.md | 23 + .../-sdk-util/is-at-least-p.md | 6 + .../-sdk-util/is-at-least-q.md | 6 + .../-sdk-util/is-at-least-r.md | 6 + .../create-open-network-suggestion.md | 9 + .../create-w-p-a2-network-suggestion.md | 9 + .../create-w-p-a3-network-suggestion.md | 9 + .../fail.md | 6 + .../index.md | 27 + .../rest.md | 6 + .../sleep.md | 6 + .../-android29-wifi-api-impl.md | 6 + .../-android29-wifi-api-impl/disable-wifi.md | 6 + .../-android29-wifi-api-impl/enable-wifi.md | 6 + .../-android29-wifi-api-impl/index.md | 23 + .../is-wifi-enabled.md | 6 + .../-android29-wifi-api-impl/wifi-manager.md | 6 + .../-android29-wifi-api/disable-wifi.md | 6 + .../-android29-wifi-api/enable-wifi.md | 6 + .../-android29-wifi-api/index.md | 23 + .../-android29-wifi-api/is-wifi-enabled.md | 6 + .../-android29-wifi-delegate.md | 6 + .../-android29-wifi-delegate/disable-wifi.md | 6 + .../-android29-wifi-delegate/enable-wifi.md | 6 + .../-android29-wifi-delegate/impl.md | 6 + .../-android29-wifi-delegate/index.md | 23 + .../is-wifi-enabled.md | 6 + .../-legacy-wifi-api-impl.md | 6 + .../-legacy-wifi-api-impl/disable-wifi.md | 6 + .../-legacy-wifi-api-impl/enable-wifi.md | 6 + .../-legacy-wifi-api-impl/index.md | 23 + .../-legacy-wifi-api-impl/is-wifi-enabled.md | 6 + .../-legacy-wifi-api-impl/wifi-manager.md | 6 + .../-legacy-wifi-api/disable-wifi.md | 6 + .../-legacy-wifi-api/enable-wifi.md | 6 + .../-legacy-wifi-api/index.md | 23 + .../-legacy-wifi-api/is-wifi-enabled.md | 6 + .../-legacy-wifi-delegate.md | 6 + .../-legacy-wifi-delegate/disable-wifi.md | 6 + .../-legacy-wifi-delegate/enable-wifi.md | 6 + .../-legacy-wifi-delegate/impl.md | 6 + .../-legacy-wifi-delegate/index.md | 23 + .../-legacy-wifi-delegate/is-wifi-enabled.md | 6 + .../index.md | 14 + .../-l-o-g_-t-a-g.md | 6 + .../-wifi-api-async/disable-wifi.md | 6 + .../-wifi-api-async/enable-wifi.md | 6 + .../-wifi-api-async/index.md | 23 + .../-wifi-api/disable-wifi.md | 6 + .../-wifi-api/enable-wifi.md | 6 + .../-wifi-api/index.md | 26 + .../-wifi-api/is-wifi-enabled.md | 6 + .../-wifi-util/index.md | 23 + .../-wisefy-wifi-util/-wisefy-wifi-util.md | 6 + .../coroutine-dispatcher-provider.md | 6 + .../-wisefy-wifi-util/delegate.md | 6 + .../-wisefy-wifi-util/disable-wifi.md | 8 + .../-wisefy-wifi-util/enable-wifi.md | 8 + .../-wisefy-wifi-util/index.md | 25 + .../-wisefy-wifi-util/is-wifi-enabled.md | 6 + .../-wisefy-wifi-util/wifi-scope.md | 6 + .../index.md | 18 + .../-wisefy-api/index.md | 96 + .../-wisefy/-brains/-brains.md | 9 + .../-wisefy/-brains/access-points-util.md | 6 + .../-wisefy/-brains/add-network-util.md | 6 + .../-wisefy/-brains/connectivity-manager.md | 6 + .../-brains/custom-access-points-util.md | 6 + .../-brains/custom-add-network-util.md | 6 + .../-brains/custom-connectivity-manager.md | 6 + .../-wisefy/-brains/custom-frequency-util.md | 6 + .../custom-network-connection-status-util.md | 6 + .../-brains/custom-network-connection-util.md | 6 + .../-brains/custom-network-info-util.md | 6 + .../-brains/custom-remove-network-util.md | 6 + .../-brains/custom-saved-network-util.md | 6 + .../-wisefy/-brains/custom-security-util.md | 6 + .../-wisefy/-brains/custom-signal-util.md | 6 + .../-wisefy/-brains/custom-wifi-manager.md | 6 + .../-wisefy/-brains/custom-wifi-util.md | 6 + .../-wisefy/-brains/frequency-util.md | 6 + .../-wisefy/-brains/get-smarts.md | 6 + .../-wisefy/-brains/index.md | 48 + .../-wisefy/-brains/logger.md | 8 + .../-brains/network-connection-status-util.md | 6 + .../-brains/network-connection-util.md | 6 + .../-wisefy/-brains/network-info-util.md | 6 + .../-wisefy/-brains/remove-network-util.md | 6 + .../-wisefy/-brains/saved-network-util.md | 6 + .../-wisefy/-brains/security-util.md | 6 + .../-wisefy/-brains/signal-util.md | 6 + .../-wisefy/-brains/wifi-manager.md | 6 + .../-wisefy/-brains/wifi-util.md | 6 + .../-wisefy/-wisefy.md | 6 + .../-wisefy/access-points-util.md | 6 + .../-wisefy/add-network-util.md | 6 + .../-wisefy/add-open-network.md | 13 + .../-wisefy/add-w-p-a2-network.md | 13 + .../-wisefy/add-w-p-a3-network.md | 17 + .../-wisefy/attach-network-watcher.md | 6 + .../-wisefy/calculate-bars.md | 10 + .../-wisefy/compare-signal-level.md | 6 + .../-wisefy/connect-to-network.md | 13 + .../-wisefy/detach-network-watcher.md | 6 + .../-wisefy/disable-wifi.md | 8 + .../disconnect-from-current-network.md | 8 + .../-wisefy/enable-wifi.md | 8 + .../-wisefy/frequency-util.md | 6 + .../-wisefy/get-current-network-info.md | 13 + .../-wisefy/get-current-network.md | 8 + .../-wisefy/get-frequency.md | 21 + .../-wisefy/get-i-p.md | 8 + .../-wisefy/get-nearby-access-points.md | 13 + .../-wisefy/get-r-s-s-i.md | 13 + .../-wisefy/get-saved-networks.md | 13 + .../-wisefy/index.md | 76 + .../is-device-connected-to-mobile-network.md | 6 + ...ice-connected-to-mobile-or-wifi-network.md | 6 + .../-wisefy/is-device-connected-to-s-s-i-d.md | 6 + .../is-device-connected-to-wifi-network.md | 6 + .../-wisefy/is-device-roaming.md | 6 + .../-wisefy/is-network-e-a-p.md | 6 + .../-wisefy/is-network-p-s-k.md | 6 + .../-wisefy/is-network-saved.md | 9 + .../-wisefy/is-network-secure.md | 6 + .../-wisefy/is-network-w-e-p.md | 6 + .../-wisefy/is-network-w-p-a.md | 6 + .../-wisefy/is-network-w-p-a2.md | 6 + .../-wisefy/is-network-w-p-a3.md | 6 + .../-wisefy/is-network5g-hz.md | 11 + .../-wisefy/is-wifi-enabled.md | 6 + .../-wisefy/network-connection-status-util.md | 6 + .../-wisefy/network-connection-util.md | 6 + .../-wisefy/network-info-util.md | 6 + .../-wisefy/remove-network-util.md | 6 + .../-wisefy/remove-network.md | 13 + .../-wisefy/saved-network-util.md | 6 + .../-wisefy/search-for-access-point.md | 13 + .../-wisefy/search-for-access-points.md | 13 + .../-wisefy/search-for-s-s-i-d.md | 13 + .../-wisefy/search-for-s-s-i-ds.md | 13 + .../-wisefy/search-for-saved-network.md | 13 + .../-wisefy/search-for-saved-networks.md | 13 + .../-wisefy/security-util.md | 6 + .../-wisefy/signal-util.md | 6 + .../-wisefy/wifi-util.md | 6 + .../com.isupatches.android.wisefy/index.md | 10 + documentation/wisefy/package-list | 1027 ++++++++ gradle.properties | 2 +- gradle/code-coverage.gradle | 35 - gradle/cpd.gradle | 25 - gradle/cpd.gradle.kts | 35 + gradle/detekt.gradle | 7 - gradle/detekt.gradle.kts | 21 + gradle/dexcount.gradle | 10 - gradle/dexcount.gradle.kts | 26 + gradle/dokka.gradle | 6 - gradle/gradle-bintray-install.gradle | 38 - gradle/gradle-bintray-upload.gradle | 73 - gradle/jacoco.gradle | 163 -- gradle/jacoco.gradle.kts | 149 ++ gradle/ktlint.gradle | 12 - gradle/ktlint.gradle.kts | 30 + gradle/pmd.gradle | 17 - gradle/static-analysis.gradle | 69 - gradle/versions.gradle | 25 - gradle/wrapper/gradle-wrapper.jar | Bin 58702 -> 59203 bytes gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew | 2 + gradlew.bat | 25 +- javadoc/style.css | 283 -- javadoc/wisefy/alltypes/index.html | 283 -- .../failure-adding-network.html | 23 - .../-add-network-callbacks/index.html | 62 - .../-add-network-callbacks/network-added.html | 22 - .../-base-callback/index.html | 210 -- .../-base-callback/wisefy-failure.html | 25 - .../connected-to-network.html | 19 - .../failure-connecting-to-network.html | 23 - .../-connect-to-network-callbacks/index.html | 70 - .../network-not-found-to-connect-to.html | 23 - .../failure-disabling-wifi.html | 19 - .../-disable-wifi-callbacks/index.html | 60 - .../wifi-disabled.html | 19 - .../disconnected-from-current-network.html | 19 - ...re-disconnecting-from-current-network.html | 19 - .../index.html | 60 - .../failure-enabling-wifi.html | 19 - .../-enable-wifi-callbacks/index.html | 60 - .../-enable-wifi-callbacks/wifi-enabled.html | 19 - .../-get-current-network-callbacks/index.html | 60 - .../no-current-network.html | 19 - .../retrieved-current-network.html | 22 - .../index.html | 60 - .../no-current-network-info.html | 19 - .../retrieved-current-network-info.html | 22 - .../failure-getting-frequency.html | 20 - .../-get-frequency-callbacks/index.html | 60 - .../retrieved-frequency.html | 19 - .../failure-retrieving-i-p.html | 20 - .../-get-i-p-callbacks/index.html | 60 - .../-get-i-p-callbacks/retrieved-i-p.html | 19 - .../index.html | 60 - .../no-access-points-found.html | 19 - .../retrieved-nearby-access-points.html | 22 - .../-get-r-s-s-i-callbacks/index.html | 61 - ...network-not-found-to-retrieve-r-s-s-i.html | 20 - .../retrieved-r-s-s-i.html | 19 - .../-get-saved-network-callbacks/index.html | 58 - .../retrieved-saved-network.html | 22 - .../saved-network-not-found.html | 19 - .../-get-saved-networks-callbacks/index.html | 60 - .../no-saved-networks-found.html | 19 - .../retrieved-saved-networks.html | 22 - .../failure-removing-network.html | 19 - .../-remove-network-callbacks/index.html | 70 - .../network-not-found-to-remove.html | 21 - .../network-removed.html | 20 - .../access-point-found.html | 22 - .../access-point-not-found.html | 19 - .../index.html | 60 - .../found-access-points.html | 22 - .../index.html | 58 - .../no-access-points-found.html | 19 - .../-search-for-s-s-i-d-callbacks/index.html | 60 - .../ssid-found.html | 19 - .../ssid-not-found.html | 19 - .../-search-for-s-s-i-ds-callbacks/index.html | 60 - .../no-s-s-i-ds-found.html | 19 - .../retrieved-s-s-i-ds.html | 19 - .../index.html | 58 - .../retrieved-saved-network.html | 22 - .../saved-network-not-found.html | 19 - .../index.html | 62 - .../no-saved-networks-found.html | 20 - .../retrieved-saved-networks.html | 23 - .../index.html | 198 -- .../-capability/-init-.html | 19 - .../-capability/index.html | 32 - ...p-r-e-c-h-e-c-k_-r-e-t-u-r-n_-c-o-d-e.html | 19 - .../-e-a-p.html | 19 - .../-m-i-s-s-i-n-g_-p-a-r-a-m-e-t-e-r.html | 19 - .../-m-o-b-i-l-e.html | 19 - ...k_-a-l-r-e-a-d-y_-c-o-n-f-i-g-u-r-e-d.html | 19 - .../-network-type/-init-.html | 19 - .../-network-type/index.html | 32 - .../-p-s-k.html | 19 - .../-w-e-p.html | 19 - .../-w-i-f-i.html | 19 - .../-w-p-a.html | 19 - .../-w-p-a2.html | 19 - .../-wise-fy-code/-init-.html | 19 - .../-wise-fy-code/index.html | 32 - .../index.html | 139 - .../-wise-fy-receiver/-init-.html | 14 - .../-wise-fy-receiver/index.html | 37 - .../-wise-fy-receiver/on-receive.html | 14 - .../com.isupatches.wisefy.reciever/index.html | 24 - .../-wise-fy-handler-thread/-init-.html | 20 - .../-wise-fy-handler-thread/index.html | 33 - .../com.isupatches.wisefy.threads/index.html | 26 - .../get-nearby-access-points.html | 48 - .../-access-point-api/get-r-s-s-i.html | 53 - .../-access-point-api/index.html | 98 - .../search-for-access-point.html | 54 - .../search-for-access-points.html | 50 - .../-access-point-api/search-for-s-s-i-d.html | 47 - .../search-for-s-s-i-ds.html | 43 - .../-add-network-api/add-open-network.html | 43 - .../-add-network-api/add-w-e-p-network.html | 47 - .../-add-network-api/add-w-p-a2-network.html | 47 - .../-add-network-api/index.html | 68 - .../-connection-api/connect-to-network.html | 47 - .../disconnect-from-current-network.html | 38 - .../-connection-api/index.html | 58 - .../-device-api/index.html | 83 - ...is-device-connected-to-mobile-network.html | 24 - ...e-connected-to-mobile-or-wifi-network.html | 24 - .../is-device-connected-to-s-s-i-d.html | 27 - .../is-device-connected-to-wifi-network.html | 24 - .../-device-api/is-device-roaming.html | 24 - .../-frequency-api/get-frequency.html | 71 - .../-frequency-api/index.html | 62 - .../-frequency-api/is-network5g-hz.html | 41 - .../get-current-network-info.html | 39 - .../get-current-network.html | 39 - .../-network-info-api/get-i-p.html | 38 - .../-network-info-api/index.html | 68 - .../-remove-network-api/index.html | 48 - .../-remove-network-api/remove-network.html | 43 - .../get-saved-networks.html | 39 - .../-saved-network-api/index.html | 77 - .../-saved-network-api/is-network-saved.html | 27 - .../search-for-saved-network.html | 44 - .../search-for-saved-networks.html | 44 - .../-security-api/index.html | 92 - .../-security-api/is-network-e-a-p.html | 28 - .../-security-api/is-network-p-s-k.html | 28 - .../-security-api/is-network-secure.html | 28 - .../-security-api/is-network-w-e-p.html | 28 - .../-security-api/is-network-w-p-a.html | 28 - .../-security-api/is-network-w-p-a2.html | 28 - .../-signal-strength-api/calculate-bars.html | 29 - .../compare-signal-level.html | 34 - .../-signal-strength-api/index.html | 56 - .../-wifi-api/disable-wifi.html | 35 - .../-wifi-api/enable-wifi.html | 38 - .../-wifi-api/index.html | 67 - .../-wifi-api/is-wifi-enabled.html | 24 - .../com.isupatches.wisefy/-wise-fy-lock.html | 21 - .../-wise-fy-public-api/dump.html | 22 - .../-wise-fy-public-api/get-wise-fy-lock.html | 25 - .../-wise-fy-public-api/index.html | 443 ---- .../is-logging-enabled.html | 24 - .../-wise-fy/-brains/-init-.html | 29 - .../-wise-fy/-brains/get-smarts.html | 23 - .../-wise-fy/-brains/index.html | 65 - .../-wise-fy/-brains/logging.html | 22 - .../-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.html | 19 - .../-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.html | 19 - ...w-i-f-i_-m-a-n-a-g-e-r_-f-a-i-l-u-r-e.html | 22 - .../-wise-fy/add-open-network.html | 51 - .../-wise-fy/add-w-e-p-network.html | 60 - .../-wise-fy/add-w-p-a2-network.html | 54 - .../-wise-fy/calculate-bars.html | 30 - .../-wise-fy/compare-signal-level.html | 35 - .../-wise-fy/connect-to-network.html | 59 - .../-wise-fy/disable-wifi.html | 44 - .../disconnect-from-current-network.html | 44 - .../com.isupatches.wisefy/-wise-fy/dump.html | 25 - .../-wise-fy/enable-wifi.html | 44 - .../-wise-fy/get-current-network-info.html | 46 - .../-wise-fy/get-current-network.html | 46 - .../-wise-fy/get-frequency.html | 79 - .../-wise-fy/get-i-p.html | 48 - .../-wise-fy/get-nearby-access-points.html | 54 - .../-wise-fy/get-r-s-s-i.html | 61 - .../-wise-fy/get-saved-network.html | 49 - .../-wise-fy/get-saved-networks.html | 46 - .../-wise-fy/get-wise-fy-lock.html | 25 - .../com.isupatches.wisefy/-wise-fy/index.html | 456 ---- ...is-device-connected-to-mobile-network.html | 26 - ...e-connected-to-mobile-or-wifi-network.html | 26 - .../is-device-connected-to-s-s-i-d.html | 29 - .../is-device-connected-to-wifi-network.html | 27 - .../-wise-fy/is-device-roaming.html | 26 - .../-wise-fy/is-logging-enabled.html | 25 - .../-wise-fy/is-network-e-a-p.html | 30 - .../-wise-fy/is-network-p-s-k.html | 30 - .../-wise-fy/is-network-saved.html | 29 - .../-wise-fy/is-network-secure.html | 33 - .../-wise-fy/is-network-w-e-p.html | 30 - .../-wise-fy/is-network-w-p-a.html | 30 - .../-wise-fy/is-network-w-p-a2.html | 30 - .../-wise-fy/is-network5g-hz.html | 46 - .../-wise-fy/is-wifi-enabled.html | 26 - .../-wise-fy/remove-network.html | 55 - .../-wise-fy/search-for-access-point.html | 61 - .../-wise-fy/search-for-access-points.html | 57 - .../-wise-fy/search-for-s-s-i-d.html | 55 - .../-wise-fy/search-for-s-s-i-ds.html | 49 - .../-wise-fy/search-for-saved-network.html | 51 - .../-wise-fy/search-for-saved-networks.html | 51 - .../wisefy/com.isupatches.wisefy/index.html | 145 -- javadoc/wisefy/index-outline.html | 1363 ---------- javadoc/wisefy/index.html | 46 - javadoc/wisefy/package-list | 7 - settings.gradle | 1 - settings.gradle.kts | 3 + wisefy/build.gradle | 107 - wisefy/build.gradle.kts | 31 + wisefy/proguard-rules.pro | 3 + .../isupatches/wisefy/AddOpenNetworkTests.kt | 96 - .../isupatches/wisefy/AddWEPNetworkTests.kt | 97 - .../isupatches/wisefy/AddWPA2NetworkTests.kt | 96 - .../wisefy/ConnectToNetworkTests.kt | 127 - .../com/isupatches/wisefy/DisableWifiTests.kt | 94 - .../DisconnectFromCurrentNetworkTests.kt | 94 - .../com/isupatches/wisefy/EnableWifiTests.kt | 94 - .../wisefy/GetCurrentNetworkInfoTest.kt | 101 - .../wisefy/GetCurrentNetworkTests.kt | 97 - .../isupatches/wisefy/GetFrequencyTests.kt | 168 -- .../java/com/isupatches/wisefy/GetIPTests.kt | 79 - .../wisefy/GetNearbyAccessPointsTests.kt | 155 -- .../com/isupatches/wisefy/GetRSSITests.kt | 164 -- .../wisefy/GetSavedNetworksTests.kt | 104 - .../IsDeviceConnectedToMobileNetworkTests.kt | 36 - ...viceConnectedToMobileOrWifiNetworkTests.kt | 36 - .../wisefy/IsDeviceConnectedToSSIDTests.kt | 35 - .../IsDeviceConnectedToWifiNetworkTests.kt | 36 - .../isupatches/wisefy/IsDeviceRoamingTests.kt | 35 - .../isupatches/wisefy/IsNetwork5gHzTests.kt | 80 - .../isupatches/wisefy/IsNetworkEAPTests.kt | 45 - .../com/isupatches/wisefy/IsNetworkPSKTest.kt | 45 - .../isupatches/wisefy/IsNetworkSavedTests.kt | 34 - .../isupatches/wisefy/IsNetworkSecureTests.kt | 73 - .../isupatches/wisefy/IsNetworkWPA2Test.kt | 45 - .../isupatches/wisefy/IsNetworkWPATests.kt | 45 - .../isupatches/wisefy/IsNetworkWepTests.kt | 45 - .../isupatches/wisefy/IsWifiEnabledTests.kt | 34 - .../isupatches/wisefy/RemoveNetworkTests.kt | 126 - .../wisefy/SearchForAccessPointTests.kt | 151 -- .../wisefy/SearchForAccessPointsTests.kt | 151 -- .../isupatches/wisefy/SearchForSSIDTests.kt | 85 - .../isupatches/wisefy/SearchForSSIDsTests.kt | 85 - .../wisefy/SearchForSavedNetworkTests.kt | 85 - .../wisefy/SearchForSavedNetworksTests.kt | 96 - .../isupatches/wisefy/WiseFyPrechecksTests.kt | 335 --- .../java/com/isupatches/wisefy/WiseFyTests.kt | 37 - .../connection/WiseFyConnectionLegacyTests.kt | 351 --- .../connection/WisefyConnectionSDK23Tests.kt | 511 ---- .../wisefy/internal/GeneratorUtil.kt | 106 - .../internal/NetworkCapabilitiesUtil.kt | 113 - .../wisefy/internal/NullCallbackUtil.kt | 398 --- .../wisefy/internal/ReflectionHelpers.java | 112 - .../wisefy/internal/TestWiseFyLogger.kt | 38 - .../wisefy/internal/VerificationUtil.kt | 296 --- .../internal/base/BaseInstrumentationTest.kt | 89 - .../wisefy/internal/mock/MockNetworkUtil.kt | 870 ------- .../internal/mock/MockWiseFyConnectionUtil.kt | 103 - .../internal/mock/MockWiseFyPrechecksUtil.kt | 678 ----- .../internal/mock/MockWiseFySearchUtil.kt | 254 -- .../search/AbstractWiseFySearchTests.kt | 222 -- .../wisefy/search/WiseFySearchLegacyTests.kt | 655 ----- .../wisefy/search/WiseFySearchSdk23Tests.kt | 650 ----- .../java/com/isupatches/wisefy/TestUtils.kt | 65 - wisefy/src/debug/AndroidManifest.xml | 8 - wisefy/src/main/AndroidManifest.xml | 13 +- .../com/isupatches/android/wisefy/Wisefy.kt | 613 +++++ .../isupatches/android/wisefy/WisefyApi.kt | 83 + .../wisefy/accesspoints/AccessPointsApi.kt | 84 + .../accesspoints/WisefyAccessPointsUtil.kt | 179 ++ .../delegates/LegacyAccessPointsApi.kt | 247 ++ .../delegates/LegacyAccessPointsDelegate.kt | 64 + .../accesspoints/entities/AccessPointData.kt | 24 + .../wisefy/addnetwork/AddNetworkApi.kt | 53 + .../wisefy/addnetwork/WisefyAddNetworkUtil.kt | 134 + .../delegates/Android29AddNetworkApi.kt | 75 + .../delegates/Android29AddNetworkDelegate.kt | 81 + .../delegates/Android30AddNetworkApi.kt | 108 + .../delegates/Android30AddNetworkDelegate.kt | 79 + .../delegates/LegacyAddNetworkApi.kt | 47 + .../delegates/LegacyAddNetworkDelegate.kt | 68 + .../addnetwork/entities/AddNetworkData.kt | 64 + .../addnetwork/entities/AddNetworkResult.kt} | 25 +- .../wisefy/callbacks/AccessPointCallbacks.kt | 48 + .../wisefy/callbacks/AddNetworkCallbacks.kt | 23 + .../wisefy/callbacks/BaseWisefyCallbacks.kt | 20 + .../wisefy/callbacks/GetFrequencyCallbacks.kt | 21 + .../wisefy/callbacks/GetIPCallbacks.kt | 21 + .../callbacks/NetworkConnectionCallbacks.kt | 28 + .../wisefy/callbacks/NetworkInfoCallbacks.kt | 29 + .../callbacks/RemoveNetworkCallbacks.kt | 24 + .../wisefy/callbacks/SavedNetworkCallbacks.kt | 33 + .../android/wisefy/callbacks/WifiCallbacks.kt | 26 + .../wisefy/constants/DeprecationMessages.kt | 27 + .../android/wisefy/constants/ErrorMessages.kt | 38 + .../{ => android}/wisefy/constants/Symbols.kt | 10 +- .../android/wisefy/frequency/FrequencyApi.kt | 49 + .../wisefy/frequency/WisefyFrequencyUtil.kt | 92 + .../frequency/delegates/LegacyFrequencyApi.kt | 68 + .../delegates/LegacyFrequencyDelegate.kt | 52 + .../android/wisefy/logging/WisefyLogger.kt | 34 + .../networkconnection/NetworkConnectionApi.kt | 30 + .../WisefyNetworkConnectionUtil.kt | 122 + .../Android29NetworkConnectionApi.kt | 74 + .../Android29NetworkConnectionDelegate.kt | 39 + .../delegates/LegacyNetworkConnectionApi.kt | 105 + .../LegacyNetworkConnectionDelegate.kt | 46 + .../entities/NetworkConnectionResult.kt | 29 + .../NetworkConnectionStatusApi.kt | 31 + .../WisefyNetworkConnectionStatusUtil.kt | 79 + .../LegacyNetworkConnectionStatusApi.kt | 182 ++ .../LegacyNetworkConnectionStatusDelegate.kt | 70 + .../entities/NetworkConnectionStatus.kt} | 14 +- .../wisefy/networkinfo/NetworkInfoApi.kt | 48 + .../networkinfo/WisefyNetworkInfoUtil.kt | 110 + .../delegates/LegacyNetworkInfoApi.kt | 77 + .../delegates/LegacyNetworkInfoDelegate.kt | 51 + .../entities/CurrentNetworkData.kt | 10 +- .../entities/CurrentNetworkInfoData.kt | 24 + .../wisefy/removenetwork/RemoveNetworkApi.kt | 26 +- .../removenetwork/WisefyRemoveNetworkUtil.kt | 90 + .../delegates/Android29RemoveNetworkApi.kt | 45 + .../Android29RemoveNetworkDelegate.kt | 37 + .../delegates/LegacyRemoveNetworkApi.kt | 50 + .../delegates/LegacyRemoveNetworkDelegate.kt | 39 + .../entities/RemoveNetworkResult.kt | 28 + .../wisefy/savednetworks/SavedNetworkApi.kt | 49 + .../savednetworks/WisefySavedNetworkUtil.kt | 121 + .../delegates/Android29SavedNetworkApi.kt | 55 + .../Android29SavedNetworkDelegate.kt | 46 + .../delegates/Android30SavedNetworkApi.kt | 93 + .../Android30SavedNetworkDelegate.kt | 51 + .../delegates/LegacySavedNetworkApi.kt | 83 + .../delegates/LegacySavedNetworkDelegate.kt | 49 + .../entities/SavedNetworkData.kt | 30 + .../android/wisefy/security/SecurityApi.kt | 28 + .../wisefy/security/WisefySecurityUtil.kt | 63 + .../security/delegates/LegacySecurityApi.kt | 82 + .../delegates/LegacySecurityDelegate.kt | 52 + .../wisefy/security/entities/Capabilities.kt} | 41 +- .../android/wisefy/signal/SignalApi.kt | 34 + .../android/wisefy/signal/WisefySignalUtil.kt | 59 + .../signal/delegates/Android30SignalApi.kt | 56 + .../delegates/Android30SignalDelegate.kt | 45 + .../signal/delegates/LegacySignalApi.kt | 54 + .../signal/delegates/LegacySignalDelegate.kt | 43 + .../android/wisefy/util/Assertions.kt | 24 + .../isupatches/android/wisefy/util/SdkUtil.kt | 23 +- .../wisefy/util/SleepUtil.kt} | 28 +- .../android/wisefy/util/WifiSuggestionUtil.kt | 49 + .../coroutines/CoroutineDispatcherProvider.kt | 24 + .../coroutines/CoroutineExceptionHandler.kt} | 22 +- .../util/legacy/WifiConfigurationUtil.kt | 61 + .../isupatches/android/wisefy/wifi/WifiApi.kt | 40 + .../android/wisefy/wifi/WisefyWifiUtil.kt | 95 + .../wisefy/wifi/delegates/Android29WifiApi.kt | 48 + .../wifi/delegates/Android29WifiDelegate.kt | 40 + .../wisefy/wifi/delegates/LegacyWifiApi.kt | 49 + .../wifi/delegates/LegacyWifiDelegate.kt | 40 + .../main/java/com/isupatches/wisefy/WiseFy.kt | 2297 ----------------- .../com/isupatches/wisefy/WiseFyPrechecks.kt | 675 ----- .../com/isupatches/wisefy/WisePublicApi.kt | 1248 --------- .../wisefy/annotations/WaitsForTimeout.kt | 30 - .../wisefy/annotations/WiseFyThread.kt | 32 - .../wisefy/callbacks/AddNetworkCallbacks.kt | 58 - .../wisefy/callbacks/BaseCallback.kt | 44 - .../callbacks/ConnectToNetworkCallbacks.kt | 58 - .../wisefy/callbacks/DisableWifiCallbacks.kt | 44 - .../DisconnectFromCurrentNetworkCallbacks.kt | 44 - .../wisefy/callbacks/EnableWifiCallbacks.kt | 44 - .../callbacks/GetCurrentNetworkCallbacks.kt | 53 - .../GetCurrentNetworkInfoCallbacks.kt | 53 - .../wisefy/callbacks/GetFrequencyCallbacks.kt | 48 - .../wisefy/callbacks/GetIPCallbacks.kt | 48 - .../GetNearbyAccessPointsCallbacks.kt | 53 - .../wisefy/callbacks/GetRSSICallbacks.kt | 47 - .../callbacks/GetSavedNetworksCallbacks.kt | 50 - .../callbacks/RemoveNetworkCallbacks.kt | 56 - .../SearchForAccessPointCallbacks.kt | 50 - .../SearchForAccessPointsCallbacks.kt | 50 - .../callbacks/SearchForSSIDCallbacks.kt | 46 - .../callbacks/SearchForSSIDsCallbacks.kt | 46 - .../SearchForSavedNetworkCallbacks.kt | 50 - .../SearchForSavedNetworksCallbacks.kt | 52 - .../connection/AbstractWiseFyConnection.kt | 119 - .../wisefy/connection/WiseFyConnection.kt | 52 - .../connection/WiseFyConnectionLegacy.kt | 227 -- .../connection/WiseFyConnectionSDK23.kt | 329 --- .../wisefy/constants/Capabilities.kt | 70 - .../wisefy/constants/WiseFyCodes.kt | 58 - .../isupatches/wisefy/logging/WiseFyLogger.kt | 123 - .../wisefy/search/AbstractWiseFySearch.kt | 493 ---- .../isupatches/wisefy/search/WiseFySearch.kt | 61 - .../wisefy/search/WiseFySearchLegacy.kt | 57 - .../wisefy/search/WiseFySearchSDK23.kt | 55 - .../com/isupatches/wisefy/utils/SleepUtil.kt | 48 - .../com/isupatches/wisefy/utils/StringUtil.kt | 31 - .../wisefy/utils/WifiConfigurationUtil.kt | 151 -- .../wisefy/main/PublicApiVisibilityTests.kt | 574 ---- wisefysample/build.gradle | 102 - .../base/AbstractEspressoTestClass.kt | 76 - .../wisefysample/internal/base/BaseRobot.kt | 81 - .../internal/di/TestCommonModule.kt | 9 - .../di/TestMainApplicationComponent.kt | 18 - .../di/TestMainApplicationComponentBuilder.kt | 63 - .../wisefysample/internal/di/TestRxModule.kt | 11 - .../internal/di/TestScreenBindingsModule.kt | 20 - .../internal/espresso/ActivityTestRule.kt | 11 - .../internal/espresso/SetProgress.kt | 26 - .../internal/espresso/ViewInteractions.kt | 41 - .../preferences/InMemoryAddNetworkStore.kt | 43 - .../preferences/InMemoryRemoveNetworkStore.kt | 15 - .../preferences/InMemorySearchStore.kt | 65 - .../ui/add/AddNetworkFragmentTest.kt | 559 ---- .../wisefysample/ui/add/AddNetworkRobot.kt | 333 --- .../wisefysample/ui/main/MainFragmentTest.kt | 106 - .../wisefysample/ui/main/MainRobot.kt | 69 - .../wisefysample/ui/misc/MiscFragmentTest.kt | 855 ------ .../wisefysample/ui/misc/MiscRobot.kt | 406 --- .../ui/remove/RemoveNetworkFragmentTest.kt | 227 -- .../ui/remove/RemoveNetworkRobot.kt | 160 -- .../ui/search/SearchFragmentTest.kt | 1441 ----------- .../wisefysample/ui/search/SearchRobot.kt | 549 ---- .../isupatches/wisefysample/TestConstants.kt | 12 - .../wisefysample/TestRxSchedulersProvider.kt | 10 - .../internal/base/BasePresenter.kt | 62 - .../internal/di/PreferencesModule.kt | 51 - .../internal/logging/WiseFySampleLogger.kt | 66 - .../wisefysample/internal/nav/MainRouter.kt | 38 - .../internal/util/RxSchedulersProvider.kt | 37 - .../internal/util/WiseFyFactory.kt | 33 - .../wisefysample/ui/add/AddNetworkFragment.kt | 241 -- .../wisefysample/ui/add/AddNetworkModel.kt | 51 - .../wisefysample/ui/add/AddNetworkMvp.kt | 55 - .../ui/add/AddNetworkPresenter.kt | 65 - .../ui/dialogs/BaseNoticeDialogFragment.kt | 51 - .../dialogs/FullScreenNoticeDialogFragment.kt | 45 - .../ui/dialogs/NoticeDialogFragment.kt | 34 - .../wisefysample/ui/main/MainActivity.kt | 122 - .../wisefysample/ui/misc/MiscModel.kt | 73 - .../wisefysample/ui/misc/MiscMvp.kt | 101 - .../wisefysample/ui/misc/MiscPresenter.kt | 179 -- .../ui/remove/RemoveNetworkFragment.kt | 152 -- .../ui/remove/RemoveNetworkMvp.kt | 43 - .../ui/remove/RemoveNetworkPresenter.kt | 55 - .../wisefysample/ui/search/SearchModel.kt | 81 - .../wisefysample/ui/search/SearchMvp.kt | 97 - .../wisefysample/ui/search/SearchPresenter.kt | 151 -- .../src/main/res/values/remove_network.xml | 17 - .../internal/models/NetworkTypeTest.kt | 33 - .../internal/models/SearchTypeTest.kt | 33 - .../BaseSharedPreferencesStoreTest.kt | 23 - .../SharedPreferencesAddNetworkStoreTest.kt | 68 - ...SharedPreferencesRemoveNetworkStoreTest.kt | 34 - .../SharedPreferencesSearchStoreTest.kt | 104 - .../ui/add/AddNetworkModelTest.kt | 66 - .../ui/add/AddNetworkPresenterTest.kt | 226 -- .../wisefysample/ui/misc/MiscModelTest.kt | 172 -- .../wisefysample/ui/misc/MiscPresenterTest.kt | 509 ---- .../wisefysample/ui/remove/RemoveModelTest.kt | 39 - .../ui/remove/RemovePresenterTest.kt | 114 - .../wisefysample/ui/search/SearchModelTest.kt | 150 -- .../ui/search/SearchPresenterTest.kt | 407 --- 1529 files changed, 21116 insertions(+), 39606 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .editorconfig create mode 100644 .idea/.name delete mode 100644 CHANGE.md create mode 100644 CHANGELOG.md rename {wisefysample => app}/.gitignore (100%) create mode 100644 app/build.gradle.kts rename {wisefysample => app}/proguard-rules-common.pro (71%) rename {wisefysample => app}/proguard-rules-debug.pro (55%) rename {wisefysample => app}/proguard-rules-release.pro (100%) rename {wisefysample => app}/proguard-test-rules.pro (100%) rename {wisefysample => app}/src/debug/AndroidManifest.xml (61%) rename {wisefysample/src/debug/java/com/isupatches/wisefysample => app/src/debug/java/com/isupatches/android/wisefy/sample}/DebugMainApplication.kt (83%) rename {wisefysample => app}/src/main/AndroidManifest.xml (78%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/MainApplication.kt (71%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/base/BaseActivity.kt (66%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/base/BaseDialogFragment.kt (69%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/base/BaseFragment.kt (74%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/di/ScreenBindingsModule.kt (61%) rename {wisefysample/src/main/java/com/isupatches/wisefysample/internal/models => app/src/main/java/com/isupatches/android/wisefy/sample/internal/entities}/NetworkType.kt (85%) rename {wisefysample/src/main/java/com/isupatches/wisefysample/internal/models => app/src/main/java/com/isupatches/android/wisefy/sample/internal/entities}/SearchType.kt (91%) create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/internal/logging/WisefySampleLogger.kt rename wisefy/src/main/java/com/isupatches/wisefy/WiseFyLock.kt => app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseModel.kt (71%) create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BasePresenter.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseStore.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseView.kt rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/util/BundleUtil.kt (66%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/util/EditTextUtil.kt (87%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/util/HtmlUtil.kt (78%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/util/KeyboardUtil.kt (84%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/util/PermissionsUtil.kt (91%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/internal/util/SdkUtil.kt (76%) rename wisefysample/src/main/java/com/isupatches/wisefysample/ui/main/MainFragment.kt => app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/WiseFyFactory.kt (57%) create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkFragment.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkModel.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkModule.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkPresenter.kt rename {wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences => app/src/main/java/com/isupatches/android/wisefy/sample/ui/add}/AddNetworkStore.kt (78%) rename wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseMvp.kt => app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/BaseNoticeDialogFragment.kt (52%) create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/FullScreenNoticeDialogFragment.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/NoticeDialogFragment.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/main/MainActivity.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/main/MainFragment.kt rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/ui/misc/MiscFragment.kt (63%) create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscModel.kt rename wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/PermissionsModule.kt => app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscModule.kt (60%) create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscPresenter.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkFragment.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkModel.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkModule.kt create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkPresenter.kt rename {wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences => app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove}/RemoveNetworkStore.kt (64%) rename {wisefysample/src/main/java/com/isupatches/wisefysample => app/src/main/java/com/isupatches/android/wisefy/sample}/ui/search/SearchFragment.kt (63%) create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchModel.kt rename wisefy/src/main/java/com/isupatches/wisefy/annotations/CallingThread.kt => app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchModule.kt (51%) create mode 100644 app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchPresenter.kt rename {wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences => app/src/main/java/com/isupatches/android/wisefy/sample/ui/search}/SearchStore.kt (82%) rename {wisefysample => app}/src/main/res/drawable/button_pressed.xml (100%) rename {wisefysample => app}/src/main/res/drawable/button_selector.xml (100%) rename {wisefysample => app}/src/main/res/drawable/button_unpressed.xml (100%) rename {wisefysample => app}/src/main/res/drawable/ic_add_circle.xml (100%) rename {wisefysample => app}/src/main/res/drawable/ic_apps.xml (100%) rename {wisefysample => app}/src/main/res/drawable/ic_home.xml (100%) rename {wisefysample => app}/src/main/res/drawable/ic_launcher_background.xml (100%) rename {wisefysample => app}/src/main/res/drawable/ic_launcher_foreground.xml (100%) rename {wisefysample => app}/src/main/res/drawable/ic_logo.xml (100%) rename {wisefysample => app}/src/main/res/drawable/ic_remove_circle.xml (100%) rename {wisefysample => app}/src/main/res/drawable/ic_search.xml (100%) rename {wisefysample => app}/src/main/res/layout/activity_main.xml (85%) rename {wisefysample => app}/src/main/res/layout/dialog_base.xml (100%) rename {wisefysample => app}/src/main/res/layout/dialog_base_fullscreen.xml (100%) rename wisefysample/src/main/res/layout/fragment_add.xml => app/src/main/res/layout/fragment_add_network.xml (98%) rename {wisefysample => app}/src/main/res/layout/fragment_main.xml (98%) rename {wisefysample => app}/src/main/res/layout/fragment_misc.xml (100%) rename wisefysample/src/main/res/layout/fragment_remove.xml => app/src/main/res/layout/fragment_remove_network.xml (100%) rename {wisefysample => app}/src/main/res/layout/fragment_search.xml (100%) rename {wisefysample => app}/src/main/res/menu/menu_main.xml (81%) rename {wisefysample => app}/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (100%) rename {wisefysample => app}/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename {wisefysample => app}/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename {wisefysample => app}/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename {wisefysample => app}/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename {wisefysample => app}/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) create mode 100644 app/src/main/res/navigation/main_nav_graph.xml rename {wisefysample => app}/src/main/res/values/add_network.xml (63%) rename {wisefysample => app}/src/main/res/values/colors.xml (100%) rename {wisefysample => app}/src/main/res/values/content_descriptions.xml (100%) rename {wisefysample => app}/src/main/res/values/dimens.xml (100%) rename {wisefysample => app}/src/main/res/values/misc.xml (94%) rename {wisefysample => app}/src/main/res/values/nav.xml (100%) rename {wisefysample => app}/src/main/res/values/preferences.xml (61%) create mode 100644 app/src/main/res/values/remove_network.xml rename {wisefysample => app}/src/main/res/values/search.xml (100%) rename {wisefysample => app}/src/main/res/values/strings.xml (63%) rename {wisefysample => app}/src/main/res/values/styles.xml (100%) delete mode 100644 build.gradle create mode 100644 build.gradle.kts create mode 100644 buildSrc/.gitignore create mode 100644 buildSrc/build.gradle.kts create mode 100644 buildSrc/settings.gradle create mode 100644 buildSrc/src/main/java/com/isupatches/android/wisefy/build/Android.kt rename wisefy/src/main/java/com/isupatches/wisefy/annotations/Async.kt => buildSrc/src/main/java/com/isupatches/android/wisefy/build/BuildVersions.kt (61%) create mode 100644 buildSrc/src/main/java/com/isupatches/android/wisefy/build/Dependencies.kt create mode 100644 buildSrc/src/main/java/com/isupatches/android/wisefy/build/DependencyConstants.kt create mode 100644 buildSrc/src/main/java/com/isupatches/android/wisefy/build/Groupings.kt rename wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SharedPreferenceKeys.kt => buildSrc/src/main/java/com/isupatches/android/wisefy/build/PublishingConstants.kt (77%) create mode 100644 buildSrc/src/main/java/com/isupatches/android/wisefy/build/Versions.kt create mode 100644 buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/BaseGraldleModulePlugin.kt create mode 100644 buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/DocumentationPlugin.kt create mode 100644 buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/PublishingPlugin.kt create mode 100644 buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.BaseGradleModulePlugin.properties create mode 100644 buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.DocumentationPlugin.properties create mode 100644 buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.PublishingPlugin.properties delete mode 100644 config/detekt-config.yml create mode 100644 config/detekt.yml delete mode 100644 documentation/adding_and_removing_networks.md delete mode 100644 documentation/checking_device_connectivity.md delete mode 100644 documentation/connecting_and_disconnecting_from_networks.md delete mode 100644 documentation/current_network.md delete mode 100644 documentation/enabling_and_disabling_wifi.md delete mode 100644 documentation/frequency.md create mode 100644 documentation/index.md delete mode 100644 documentation/ip.md delete mode 100644 documentation/nearby_access_points.md delete mode 100644 documentation/network_security.md delete mode 100644 documentation/rssi.md delete mode 100644 documentation/saved_networks.md delete mode 100644 documentation/using_legacy_classes_and_logic.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/-legacy-access-points-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/access-point-matches-regex.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-nearby-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-r-s-s-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/has-highest-signal-strength.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/logger.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/remove-entries-with-lower-signal-strength.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/scan-results-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-point.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-ds.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-nearby-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-r-s-s-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-point.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-ds.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/-legacy-access-points-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-nearby-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-r-s-s-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-point.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-ds.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-access-point-data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/-scan-data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-nearby-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-r-s-s-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-point.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-ds.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-nearby-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-r-s-s-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-point.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-ds.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/-wisefy-access-points-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/access-point-scope.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/coroutine-dispatcher-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-nearby-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-r-s-s-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-point.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-ds.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.accesspoints/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/-android29-add-network-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/logger.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/-android29-add-network-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/-android30-add-network-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/launch-intent.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/-android30-add-network-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/-legacy-add-network-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/-legacy-add-network-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-add-network-result.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-intent-launched/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/-result-code.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/-wrong-s-d-k-level-error.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/message.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-open-network-data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/-ssid-and-activity-result-launcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/activity-result-launcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/ssid.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/-ssid.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/ssid.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/passphrase.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/ssid.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-w-p-a2-network-data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/passphrase.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/ssid.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-w-p-a3-network-data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/-wisefy-add-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-network-scope.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/coroutine-dispatcher-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.addnetwork/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-failure-adding-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-network-added.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/on-wisefy-async-failure.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connected-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connection-request-placed.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-failure-connecting-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-network-not-found-to-connect-to.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-failure-disabling-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-wifi-disabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-disconnected-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-failure-disconnecting-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-failure-enabling-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-current-network-retrieved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-no-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-current-network-info-retrieved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-no-current-network-info.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-failure-retrieving-frequency.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-frequency-retrieved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-failure-retrieving-i-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-i-p-retrieved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-nearby-access-points-retrieved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-no-nearby-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-no-network-to-retrieve-r-s-s-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-r-s-s-i-retrieved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-no-saved-networks-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-saved-networks-retrieved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-failure-removing-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-not-found-to-remove.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-removed.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-access-point-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-no-access-point-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-access-points-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-no-access-points-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-not-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-no-s-s-i-ds-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-s-s-i-ds-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-not-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-retrieved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-no-saved-networks-found.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-saved-networks-retrieved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.callbacks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-d-i-s-a-b-l-e_-w-i-f-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-e-n-a-b-l-e_-w-i-f-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/-p-r-e_-a-n-d-r-o-i-d_29.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/-q-u-o-t-e.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.constants/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/-legacy-frequency-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/get-frequency.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/is-network5g-hz.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/get-frequency.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/is-network5g-hz.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/-legacy-frequency-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/get-frequency.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/is-network5g-hz.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/get-frequency.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/get-frequency.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/is-network5g-hz.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/get-frequency.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/-wisefy-frequency-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/coroutine-dispatcher-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/frequency-scope.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/get-frequency.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/is-network5g-hz.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.frequency/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/e.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/v.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/w.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/wtf.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.logging/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/-android29-network-connection-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connection-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/logger.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/network-callback.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/-android29-network-connection-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/-legacy-network-connection-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/is-current-network-connected-to-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/logger.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/network-connection-status-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/saved-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wait-to-connect-to-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/-legacy-network-connection-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-connection-request-placed/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-connection-result.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-not-found/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/-succeeded.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-unregister-request-sent/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/-wisefy-network-connection-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/coroutine-dispatcher-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/network-connection-scope.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnection/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/-legacy-network-connection-status-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/attach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connection-status.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connectivity-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/detach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-capability.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-transport-type-and-internet-capability.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/get-active-network-capabilities.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-or-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-roaming.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-network-connected.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/logger.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-available.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-capabilities-changed.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-link-properties-changed.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-losing.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-lost.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-unavailable.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/sdk-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/start-listening-for-network-changes.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/stop-listening-for-network-changes.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/attach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/detach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-roaming.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/-legacy-network-connection-status-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/attach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/detach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-or-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-roaming.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/name.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/ordinal.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/name.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/ordinal.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/name.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/ordinal.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-network-connection-status.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/name.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/ordinal.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/attach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/detach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-roaming.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/-wisefy-network-connection-status-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/attach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/detach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-or-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-roaming.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/-legacy-network-info-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/connectivity-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network-info.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-i-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/logger.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network-info.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-i-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/-legacy-network-info-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network-info.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-i-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/-current-network-data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/-current-network-info-data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/capabilities.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/link-properties.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network-info.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-i-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network-info.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-i-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/-wisefy-network-info-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/coroutine-dispatcher-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network-info.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-i-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/network-info-scope.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.networkinfo/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/-android29-remove-network-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/-android29-remove-network-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/-legacy-remove-network-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/saved-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/-legacy-remove-network-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/saved-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-network-not-found/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-remove-network-result.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/-result-code.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/-succeeded.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/-wisefy-remove-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/coroutine-dispatcher-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network-scope.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.removenetwork/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/-android29-saved-network-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/-android29-saved-network-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/-android30-saved-network-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/matches-regex-for-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/-android30-saved-network-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/-legacy-saved-network-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/matches-regex-for-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/-legacy-saved-network-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/-configuration.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-saved-network-data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/-suggestion.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/component1.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/copy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/data.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/-wisefy-saved-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/coroutine-dispatcher-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/saved-network-scope.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.savednetworks/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/-legacy-security-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/contains-capability.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-e-a-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-p-s-k.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-secure.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-e-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a3.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-e-a-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-p-s-k.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-secure.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-e-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a3.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/-legacy-security-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-e-a-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-p-s-k.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-secure.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-e-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a3.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.entities/-capability/-capability.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.entities/-capability/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.entities/-e-a-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.entities/-p-s-k.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-e-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a3.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security.entities/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-e-a-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-p-s-k.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-secure.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-e-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a3.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-security-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/-wisefy-security-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-e-a-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-p-s-k.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-secure.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-e-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a3.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.security/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/-android30-signal-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/calculate-bars.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/compare-signal-level.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/calculate-bars.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/compare-signal-level.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/-android30-signal-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/calculate-bars.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/compare-signal-level.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/-legacy-signal-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/calculate-bars.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/compare-signal-level.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/calculate-bars.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/compare-signal-level.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/-legacy-signal-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/calculate-bars.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/compare-signal-level.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/calculate-bars.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/compare-signal-level.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/-wisefy-signal-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/calculate-bars.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/compare-signal-level.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.signal/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/-coroutine-dispatcher-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/io.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/main.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/create-base-coroutine-exception-handler.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.legacy/convert-s-s-i-d-for-config.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.legacy/generate-open-network-configuration.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.legacy/generate-w-p-a2-network-configuration.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util.legacy/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-b-a-s-e_-d-e-l-a-y.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/-sdk-util-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-q.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-r.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-q.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-r.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/create-open-network-suggestion.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/create-w-p-a2-network-suggestion.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/create-w-p-a3-network-suggestion.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/fail.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/rest.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.util/sleep.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/-android29-wifi-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/is-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/is-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/-android29-wifi-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/is-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/-legacy-wifi-api-impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/is-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/is-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/-legacy-wifi-delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/impl.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/is-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-l-o-g_-t-a-g.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/is-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/-wisefy-wifi-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/coroutine-dispatcher-provider.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/delegate.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/is-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/wifi-scope.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy.wifi/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy-api/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/-brains.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/access-points-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/add-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/connectivity-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-access-points-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-add-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-connectivity-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-frequency-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-status-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-info-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-remove-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-saved-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-security-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-signal-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/frequency-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/get-smarts.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/logger.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-status-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-info-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/remove-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/saved-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/security-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/signal-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-manager.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-wisefy.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/access-points-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-open-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a2-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a3-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/attach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/calculate-bars.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/compare-signal-level.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/connect-to-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/detach-network-watcher.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/disable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/disconnect-from-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/enable-wifi.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/frequency-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network-info.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-frequency.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-i-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-nearby-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-r-s-s-i.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/index.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-or-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-wifi-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-roaming.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-e-a-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-p-s-k.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-saved.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-secure.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-e-p.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a2.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a3.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network5g-hz.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-wifi-enabled.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-status-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-info-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/saved-network-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-point.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-points.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-d.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-ds.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-network.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-networks.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/security-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/signal-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/-wisefy/wifi-util.md create mode 100644 documentation/wisefy/com.isupatches.android.wisefy/index.md create mode 100644 documentation/wisefy/package-list delete mode 100644 gradle/code-coverage.gradle delete mode 100644 gradle/cpd.gradle create mode 100644 gradle/cpd.gradle.kts delete mode 100644 gradle/detekt.gradle create mode 100644 gradle/detekt.gradle.kts delete mode 100644 gradle/dexcount.gradle create mode 100644 gradle/dexcount.gradle.kts delete mode 100644 gradle/dokka.gradle delete mode 100644 gradle/gradle-bintray-install.gradle delete mode 100644 gradle/gradle-bintray-upload.gradle delete mode 100644 gradle/jacoco.gradle create mode 100644 gradle/jacoco.gradle.kts delete mode 100644 gradle/ktlint.gradle create mode 100644 gradle/ktlint.gradle.kts delete mode 100644 gradle/pmd.gradle delete mode 100644 gradle/static-analysis.gradle delete mode 100644 gradle/versions.gradle delete mode 100644 javadoc/style.css delete mode 100644 javadoc/wisefy/alltypes/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/failure-adding-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/network-added.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-base-callback/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-base-callback/wisefy-failure.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/connected-to-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/failure-connecting-to-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/network-not-found-to-connect-to.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/failure-disabling-wifi.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/wifi-disabled.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/disconnected-from-current-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/failure-disconnecting-from-current-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/failure-enabling-wifi.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/wifi-enabled.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/no-current-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/retrieved-current-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/no-current-network-info.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/retrieved-current-network-info.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/failure-getting-frequency.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/retrieved-frequency.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/failure-retrieving-i-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/retrieved-i-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/no-access-points-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/retrieved-nearby-access-points.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/network-not-found-to-retrieve-r-s-s-i.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/retrieved-r-s-s-i.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/retrieved-saved-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/saved-network-not-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/no-saved-networks-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/retrieved-saved-networks.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/failure-removing-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/network-not-found-to-remove.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/network-removed.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/access-point-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/access-point-not-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/found-access-points.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/no-access-points-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/ssid-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/ssid-not-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/no-s-s-i-ds-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/retrieved-s-s-i-ds.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/retrieved-saved-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/saved-network-not-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/no-saved-networks-found.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/retrieved-saved-networks.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.callbacks/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-capability/-init-.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-capability/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-d-e-f-a-u-l-t_-p-r-e-c-h-e-c-k_-r-e-t-u-r-n_-c-o-d-e.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-e-a-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-m-i-s-s-i-n-g_-p-a-r-a-m-e-t-e-r.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-m-o-b-i-l-e.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-n-e-t-w-o-r-k_-a-l-r-e-a-d-y_-c-o-n-f-i-g-u-r-e-d.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-network-type/-init-.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-network-type/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-p-s-k.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-w-e-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-w-i-f-i.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-w-p-a.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-w-p-a2.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-wise-fy-code/-init-.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/-wise-fy-code/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.constants/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/-init-.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/on-receive.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.reciever/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.threads/-wise-fy-handler-thread/-init-.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.threads/-wise-fy-handler-thread/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy.threads/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-access-point-api/get-nearby-access-points.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-access-point-api/get-r-s-s-i.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-access-point-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-access-point.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-access-points.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-s-s-i-d.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-s-s-i-ds.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-open-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-w-e-p-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-w-p-a2-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-add-network-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-connection-api/connect-to-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-connection-api/disconnect-from-current-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-connection-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-device-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-mobile-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-mobile-or-wifi-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-s-s-i-d.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-wifi-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-roaming.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-frequency-api/get-frequency.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-frequency-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-frequency-api/is-network5g-hz.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-current-network-info.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-current-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-i-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-network-info-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-remove-network-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-remove-network-api/remove-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/get-saved-networks.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/is-network-saved.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/search-for-saved-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/search-for-saved-networks.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-security-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-e-a-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-p-s-k.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-secure.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-e-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-p-a.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-p-a2.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/calculate-bars.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/compare-signal-level.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wifi-api/disable-wifi.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wifi-api/enable-wifi.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wifi-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wifi-api/is-wifi-enabled.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy-lock.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/dump.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/get-wise-fy-lock.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/is-logging-enabled.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/-init-.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/get-smarts.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/logging.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-w-i-f-i_-m-a-n-a-g-e-r_-f-a-i-l-u-r-e.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-open-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-w-e-p-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-w-p-a2-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/calculate-bars.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/compare-signal-level.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/connect-to-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/disable-wifi.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/disconnect-from-current-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/dump.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/enable-wifi.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-current-network-info.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-current-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-frequency.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-i-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-nearby-access-points.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-r-s-s-i.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-saved-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-saved-networks.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-wise-fy-lock.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/index.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-mobile-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-mobile-or-wifi-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-s-s-i-d.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-wifi-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-roaming.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-logging-enabled.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-e-a-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-p-s-k.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-saved.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-secure.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-e-p.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-p-a.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-p-a2.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network5g-hz.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-wifi-enabled.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/remove-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-access-point.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-access-points.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-s-s-i-d.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-s-s-i-ds.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-saved-network.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-saved-networks.html delete mode 100644 javadoc/wisefy/com.isupatches.wisefy/index.html delete mode 100644 javadoc/wisefy/index-outline.html delete mode 100644 javadoc/wisefy/index.html delete mode 100644 javadoc/wisefy/package-list delete mode 100644 settings.gradle create mode 100644 settings.gradle.kts delete mode 100644 wisefy/build.gradle create mode 100644 wisefy/build.gradle.kts delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/AddOpenNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/AddWEPNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/AddWPA2NetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/ConnectToNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/DisableWifiTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/DisconnectFromCurrentNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/EnableWifiTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/GetCurrentNetworkInfoTest.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/GetCurrentNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/GetFrequencyTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/GetIPTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/GetNearbyAccessPointsTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/GetRSSITests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/GetSavedNetworksTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToMobileNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToMobileOrWifiNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToSSIDTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToWifiNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceRoamingTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetwork5gHzTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkEAPTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkPSKTest.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkSavedTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkSecureTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWPA2Test.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWPATests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWepTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/IsWifiEnabledTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/RemoveNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForAccessPointTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForAccessPointsTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSSIDTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSSIDsTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSavedNetworkTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSavedNetworksTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/WiseFyPrechecksTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/WiseFyTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/connection/WiseFyConnectionLegacyTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/connection/WisefyConnectionSDK23Tests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/GeneratorUtil.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/NetworkCapabilitiesUtil.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/NullCallbackUtil.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/ReflectionHelpers.java delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/TestWiseFyLogger.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/VerificationUtil.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/base/BaseInstrumentationTest.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockNetworkUtil.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFyConnectionUtil.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFyPrechecksUtil.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFySearchUtil.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/search/AbstractWiseFySearchTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/search/WiseFySearchLegacyTests.kt delete mode 100644 wisefy/src/androidTest/java/com/isupatches/wisefy/search/WiseFySearchSdk23Tests.kt delete mode 100644 wisefy/src/commonTest/java/com/isupatches/wisefy/TestUtils.kt delete mode 100644 wisefy/src/debug/AndroidManifest.xml create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/Wisefy.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/WisefyApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/AccessPointsApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/WisefyAccessPointsUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/delegates/LegacyAccessPointsApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/delegates/LegacyAccessPointsDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/entities/AccessPointData.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/AddNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/WisefyAddNetworkUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android29AddNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android29AddNetworkDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android30AddNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android30AddNetworkDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/LegacyAddNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/LegacyAddNetworkDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/entities/AddNetworkData.kt rename wisefy/src/main/java/com/isupatches/{wisefy/annotations/PublicAPI.kt => android/wisefy/addnetwork/entities/AddNetworkResult.kt} (62%) create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/AccessPointCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/AddNetworkCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/BaseWisefyCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/GetFrequencyCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/GetIPCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/NetworkConnectionCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/NetworkInfoCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/RemoveNetworkCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/SavedNetworkCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/WifiCallbacks.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/constants/DeprecationMessages.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/constants/ErrorMessages.kt rename wisefy/src/main/java/com/isupatches/{ => android}/wisefy/constants/Symbols.kt (78%) create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/frequency/FrequencyApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/frequency/WisefyFrequencyUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/frequency/delegates/LegacyFrequencyApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/frequency/delegates/LegacyFrequencyDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/logging/WisefyLogger.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/NetworkConnectionApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/WisefyNetworkConnectionUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/Android29NetworkConnectionApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/Android29NetworkConnectionDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/LegacyNetworkConnectionApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/LegacyNetworkConnectionDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/entities/NetworkConnectionResult.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/NetworkConnectionStatusApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/WisefyNetworkConnectionStatusUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/delegates/LegacyNetworkConnectionStatusApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/delegates/LegacyNetworkConnectionStatusDelegate.kt rename wisefy/src/main/java/com/isupatches/{wisefy/connection/WiseFyConnectionStatus.kt => android/wisefy/networkconnectionstatus/entities/NetworkConnectionStatus.kt} (69%) create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/NetworkInfoApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/WisefyNetworkInfoUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/delegates/LegacyNetworkInfoApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/delegates/LegacyNetworkInfoDelegate.kt rename wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/ViewNotAttachedException.kt => wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/entities/CurrentNetworkData.kt (70%) create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/entities/CurrentNetworkInfoData.kt rename wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkModel.kt => wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/RemoveNetworkApi.kt (50%) create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/WisefyRemoveNetworkUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/Android29RemoveNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/Android29RemoveNetworkDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/LegacyRemoveNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/LegacyRemoveNetworkDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/entities/RemoveNetworkResult.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/SavedNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/WisefySavedNetworkUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android29SavedNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android29SavedNetworkDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android30SavedNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android30SavedNetworkDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/LegacySavedNetworkApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/LegacySavedNetworkDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/entities/SavedNetworkData.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/security/SecurityApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/security/WisefySecurityUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/security/delegates/LegacySecurityApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/security/delegates/LegacySecurityDelegate.kt rename wisefy/src/main/java/com/isupatches/{wisefy/constants/NetworkTypes.kt => android/wisefy/security/entities/Capabilities.kt} (56%) create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/signal/SignalApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/signal/WisefySignalUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/Android30SignalApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/Android30SignalDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/LegacySignalApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/LegacySignalDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/util/Assertions.kt rename wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SharedPreferences.kt => wisefy/src/main/java/com/isupatches/android/wisefy/util/SdkUtil.kt (52%) rename wisefy/src/main/java/com/isupatches/{wisefy/annotations/Sync.kt => android/wisefy/util/SleepUtil.kt} (62%) create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/util/WifiSuggestionUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/util/coroutines/CoroutineDispatcherProvider.kt rename wisefy/src/main/java/com/isupatches/{wisefy/threads/WiseFyHandlerThread.kt => android/wisefy/util/coroutines/CoroutineExceptionHandler.kt} (56%) create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/util/legacy/WifiConfigurationUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/wifi/WifiApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/wifi/WisefyWifiUtil.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/Android29WifiApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/Android29WifiDelegate.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/LegacyWifiApi.kt create mode 100644 wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/LegacyWifiDelegate.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/WiseFy.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/WiseFyPrechecks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/WisePublicApi.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/annotations/WaitsForTimeout.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/annotations/WiseFyThread.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/AddNetworkCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/BaseCallback.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/ConnectToNetworkCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/DisableWifiCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/DisconnectFromCurrentNetworkCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/EnableWifiCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetCurrentNetworkCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetCurrentNetworkInfoCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetFrequencyCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetIPCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetNearbyAccessPointsCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetRSSICallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetSavedNetworksCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/RemoveNetworkCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForAccessPointCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForAccessPointsCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSSIDCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSSIDsCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSavedNetworkCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSavedNetworksCallbacks.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/connection/AbstractWiseFyConnection.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnection.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionLegacy.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionSDK23.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/constants/Capabilities.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/constants/WiseFyCodes.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/logging/WiseFyLogger.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/search/AbstractWiseFySearch.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearch.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearchLegacy.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearchSDK23.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/utils/SleepUtil.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/utils/StringUtil.kt delete mode 100644 wisefy/src/main/java/com/isupatches/wisefy/utils/WifiConfigurationUtil.kt delete mode 100644 wisefy/src/test/java/com/isupatches/wisefy/main/PublicApiVisibilityTests.kt delete mode 100644 wisefysample/build.gradle delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/base/AbstractEspressoTestClass.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/base/BaseRobot.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestCommonModule.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestMainApplicationComponent.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestMainApplicationComponentBuilder.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestRxModule.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestScreenBindingsModule.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/ActivityTestRule.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/SetProgress.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/ViewInteractions.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemoryAddNetworkStore.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemoryRemoveNetworkStore.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemorySearchStore.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/add/AddNetworkFragmentTest.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/add/AddNetworkRobot.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/main/MainFragmentTest.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/main/MainRobot.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/misc/MiscFragmentTest.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/misc/MiscRobot.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkFragmentTest.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkRobot.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/search/SearchFragmentTest.kt delete mode 100644 wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/search/SearchRobot.kt delete mode 100644 wisefysample/src/commonTest/java/com/isupatches/wisefysample/TestConstants.kt delete mode 100644 wisefysample/src/commonTest/java/com/isupatches/wisefysample/TestRxSchedulersProvider.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BasePresenter.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/PreferencesModule.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/internal/logging/WiseFySampleLogger.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/internal/nav/MainRouter.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/RxSchedulersProvider.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/WiseFyFactory.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkFragment.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkModel.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkMvp.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkPresenter.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/BaseNoticeDialogFragment.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/FullScreenNoticeDialogFragment.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/NoticeDialogFragment.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/main/MainActivity.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscModel.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscMvp.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscPresenter.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkFragment.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkMvp.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkPresenter.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchModel.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchMvp.kt delete mode 100644 wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchPresenter.kt delete mode 100644 wisefysample/src/main/res/values/remove_network.xml delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/internal/models/NetworkTypeTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/internal/models/SearchTypeTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/BaseSharedPreferencesStoreTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesAddNetworkStoreTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesRemoveNetworkStoreTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesSearchStoreTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/ui/add/AddNetworkModelTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/ui/add/AddNetworkPresenterTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/ui/misc/MiscModelTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/ui/misc/MiscPresenterTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/ui/remove/RemoveModelTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/ui/remove/RemovePresenterTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/ui/search/SearchModelTest.kt delete mode 100644 wisefysample/src/test/java/com/isupatches/wisefysample/ui/search/SearchPresenterTest.kt diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 33e4fc47..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,84 +0,0 @@ -version: 2.1 - -orbs: - codecov: codecov/codecov@1.0.5 - -jobs: - ci_checks: - working_directory: ~/code - docker: - - image: circleci/android:api-29 - environment: - JVM_OPTS: -Xmx3200m - steps: - - checkout - - restore_cache: - key: jars-{{ checksum "build.gradle" }}-{{ checksum "wisefy/build.gradle" }}-{{ checksum "wisefysample/build.gradle" }} - - run: - name: Chmod permissions - command: sudo chmod +x ./gradlew - - run: - name: Download dependencies - command: ./gradlew androidDependencies - - run: - name: Clean build - command: ./gradlew clean assembleDebug wisefy:assembleDebugAndroidTest wisefysample:assembleDebugAndroidTest --stacktrace - - run: - name: Static code analysis - command: ./gradlew staticAnalysisSanityCheck - - run: - name: Unit tests - command: ./gradlew :wisefy:jacocoDebugUnitTest :wisefysample:jacocoDebugUnitTest --stacktrace - - run: - name: Store Service Account - command: echo $GCLOUD_SERVICE_KEY > ${HOME}/gcloud-service-key.json - - run: - name: Firebase Testing - command: | - sudo pip install -U crcmod - sudo gcloud auth activate-service-account --key-file=${HOME}/gcloud-service-key.json - sudo gcloud --quiet config set project ${GOOGLE_PROJECT_ID} - sudo gcloud firebase test android run \ - --type instrumentation \ - --app wisefysample/build/outputs/apk/debug/wisefysample-debug.apk \ - --test wisefy/build/outputs/apk/androidTest/debug/wisefy-debug-androidTest.apk \ - --device model=Pixel2,version=28,locale=en,orientation=portrait \ - --device model=Nexus6,version=23,locale=en,orientation=portrait \ - --device model=Nexus5,version=19,locale=en,orientation=portrait \ - --environment-variables coverage=true,coverageFile="/sdcard/coverage.ec" \ - --directories-to-pull=/sdcard \ - --results-dir=${CIRCLE_BRANCH}_${CIRCLE_BUILD_NUM} - sudo gsutil -m cp -r -U gs://${GCLOUD_BUCKET_LOCATION}/${CIRCLE_BRANCH}_${CIRCLE_BUILD_NUM}/Nexus5-19-en-portrait/artifacts/coverage.ec wisefy/build/outputs/code-coverage/connected/wisefy-Nexus5-sdk19-coverage.ec - sudo gsutil -m cp -r -U gs://${GCLOUD_BUCKET_LOCATION}/${CIRCLE_BRANCH}_${CIRCLE_BUILD_NUM}/Nexus6-23-en-portrait/artifacts/coverage.ec wisefy/build/outputs/code-coverage/connected/wisefy-Nexus6-sdk23-coverage.ec - sudo gsutil -m cp -r -U gs://${GCLOUD_BUCKET_LOCATION}/${CIRCLE_BRANCH}_${CIRCLE_BUILD_NUM}/Pixel2-28-en-portrait/artifacts/coverage.ec wisefy/build/outputs/code-coverage/connected/wisefy-Pixel2-sdk28-coverage.ec - sudo gcloud firebase test android run \ - --type instrumentation \ - --app wisefysample/build/outputs/apk/debug/wisefysample-debug.apk \ - --test wisefysample/build/outputs/apk/androidTest/debug/wisefysample-debug-androidTest.apk \ - --device model=Pixel2,version=28,locale=en,orientation=portrait \ - --environment-variables coverage=true,coverageFile="/sdcard/coverage.ec" \ - --directories-to-pull=/sdcard \ - --results-dir=${CIRCLE_BRANCH}_${CIRCLE_BUILD_NUM} - sudo gsutil -m cp -r -U gs://${GCLOUD_BUCKET_LOCATION}/${CIRCLE_BRANCH}_${CIRCLE_BUILD_NUM}/Pixel2-28-en-portrait/artifacts/coverage.ec wisefysample/build/outputs/code-coverage/connected/wisefysample-coverage.ec - sudo gsutil rm -r gs://${GCLOUD_BUCKET_LOCATION}/${CIRCLE_BRANCH}_${CIRCLE_BUILD_NUM} - - run: - name: Generate coverage report - command: ./gradlew :wisefy:jacocoDebugCombinedTestReport :wisefysample:jacocoDebugCombinedTestReport --stacktrace - - codecov/upload: - file: /reports/jacoco/*.xml - - store_artifacts: - path: wisefy/build/reports - destination: reports/wisefy - - store_artifacts: - path: wisefysample/build/reports - destination: reports/wisefysample - - save_cache: - key: jars-{{ checksum "build.gradle" }}-{{ checksum "wisefy/build.gradle" }}-{{ checksum "wisefysample/build.gradle" }} - paths: - - ~/.gradle - -workflows: - version: 2 - workflow: - jobs: - - ci_checks \ No newline at end of file diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..8ef8f371 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,3 @@ +[*.{kt,kts}] +max_line_length = 120 +ij_continuation_indent_size = 4 diff --git a/.gitignore b/.gitignore index b9341982..051ba5a8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /.idea/caches/* /.idea/libraries/* /.idea/codestyles/* +keystore.properties diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 00000000..7ff90dfe --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +android-wisefy \ No newline at end of file diff --git a/CHANGE.md b/CHANGE.md deleted file mode 100644 index dec0bce3..00000000 --- a/CHANGE.md +++ /dev/null @@ -1,11 +0,0 @@ -#### Change Logs - -WiseFy upon each new major release will start a brand new change log. - -[1.x Changes](/changes/1.x.md) - -[2.x Changes](/changes/2.x.md) - -[3.x Changes](/changes/3.x.md) - -[3.x Changes](/changes/4.x.md) \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..e69de29b diff --git a/README.md b/README.md index c083e5c4..945ae1f8 100644 --- a/README.md +++ b/README.md @@ -1,177 +1,57 @@ - - -Wifi configuration and util library built for Android. - ->
*Developed by Patches 04/24/2016 - present*
->
Logo/icon created by mansya (2018)
->
Supports Android SDK levels 16-28

- -[![Build Status](https://travis-ci.org/isuPatches/WiseFy.svg?branch=master)](https://travis-ci.org/isuPatches/WiseFy) [ ![Download](https://api.bintray.com/packages/isupatches/Maven/wisefy/images/download.svg) ](https://bintray.com/isupatches/Maven/wisefy/_latestVersion) [![codecov](https://codecov.io/gh/isuPatches/WiseFy/branch/4.x/graph/badge.svg)](https://codecov.io/gh/isuPatches/WiseFy) - -[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-WiseFy-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/6011) [![Android Weekly](https://img.shields.io/badge/Android%20Weekly-%23230-blue.svg)](http://androidweekly.net/issues/issue-230) - -## What's New in 4.x - -- Android P Support - - New isDeviceRoaming logic -- New logic for SDK 23 and above - - WiseFySearch rewritten to remove deprecated APIs from Android OS - - WiseFyConnection rewritten to remove deprecated APIs from Android OS - - Ability to use legacy search logic - - Ability to use legacy connection logic -- Update to Android X -- Improved annotations for required permissions -- Update to gradle 5.x -- Static analysis tools updated -- WEP is now deprecated due to security and other issues with this network type and will be phased out -- Better naming for some saved network functions - - GetSavedNetworkCallbacks renamed SearchForSavedNetworkCallbacks - - Added SearchForSavedNetworksCallbacks - - getSavedNetwork(regex: String?): List? refactored to searchForSavedNetwork(regexForSSID: String?): WifiConfiguration? - - getSavedNetwork(regexForSSID: String?, callbacks: GetSavedNetworkCallbacks?) refactored to searchForSavedNetwork(regexForSSID: String?, callbacks: SearchForSavedNetworkCallbacks?) - - getSavedNetworks(regexForSSID: String?, callbacks: GetSavedNetworksCallbacks?) refactored to searchForSavedNetworks(regexForSSID: String?, callbacks: SearchForSavedNetworksCallbacks?) -- Moved from TravisCI to CircleCI -- Instrumentation tests are now run on Google's Firebase TestLab -- Removal of Checkstyle and FindBugs since project is no longer Java -- Removal of GCM support due to GCM being sunset -- New [sample app](/wisefysample) included as part of the repo - - This replaces the previous permissions example -- Crash fixes for: - - Async api with null current network - - Async api with null current network info - - Async api with null nearby access points -- Fix for searching when empty list returned from OS -- More tests -- Removal of some generic variable names from documentation for clarity - -Previous updates: -- [What's New in 3.x](/changes/whatsnew/3.x.md) -- [What's New in 2.x](/changes/whatsnew/2.x.md) - -## Adding to your project - -Make sure you have one of the following repositories accessible: - -```groovy - repositories { - jcenter() - } -``` - -```groovy - repositories { - mavenCentral() - } -``` - -```groovy - repositories { - maven { - url "http://dl.bintray.com/isupatches/Maven" - } - } -``` - -Then add it as a dependency (please see https://github.com/isuPatches/WiseFy/releases for the latest version): - -For Gradle: - -```groovy - implementation 'com.isupatches:wisefy:' -``` - -For Maven: - -```xml - - com.isupatches - wisefy - LATEST_VERSION - pom - -``` - -You may also download the @aar from the releases page and import it into your project manually. - -## Getting An Instance - -WiseFy is constructed with the builder pattern that allows you access to the synchronous and asynchronous APIs. - -*NOTE* The context passed in must be non-null. - -To grab a default instance: - -_With Kotlin_ +## Wisefy -```kotlin -val wisefy = WiseFy.Brains(activity!!).getSmarts() -``` - -_With Java_ - -```java -WiseFy wisefy = new WiseFy.Brains(getActivity()).getSmarts(); -``` +## Installation -To grab an instance with logging enabled: - -_With Kotlin_ +There is a new package for 5.0. Please use: ```kotlin -val wisefy = WiseFy.Brains(activity!!).logging(true).getSmarts() -``` - -_With Java_ - -```java -WiseFy wisefy = new WiseFy.Brains(getActivity()).logging(true).getSmarts(); +implementation("com.isupatches.android:wisefy:5.0.0-RC1") ``` -By default, legacy logic is disabled on devices with SDK 23 or higher. If you want to use or test against the legacy search or connection logic, please see: [Using Legacy Classes And Logic](/documentation/using_legacy_classes_and_logic.md). +## 5.0 Rewrite -## Cleanup +The 5.0 version of WiseFy works to rectify the problems that caused it to be overly challenging as a single developer +to keep up with the ever-changing Wifi APIs for new Android OS's, especially with a lot of functionality becoming +privatized. -Since the Async API of WiseFy is run on a background thread, it is necessary to make sure it is exited and cleanup up properly. +I hope you enjoy the rewrite and please create an issue if you see anything odd or have questions! -To stop the WiseFy thread and nullify it along with it's handler please call: +### Highlights -_With Kotlin_ +- Android P, Android Q, and Android R are now supported +- Rewritten with extensibility and future Android OS's in-mind + * Future versions of the Android OS will be easier to support with the new delegate system + * Improved modularity where APIs for OS versions are contained in their own API / API implementation files +- Async operations updated to internally leverage Coroutines and new exception handler +- Returns are now WiseFy classes or primitives opposed to a class from the OS, making it easier to add new variants + in the future through sealed classes +- Updated names for callbacks +- Kotlin first mentality (but willing to support Java as first class too!) +- WPA3 networks now supported +- wisefysample renamed to app -```kotlin -wisefy.dump() -``` - -_With Java_ - -```java -wisefy.dump(); -``` +### Work Remaining Before Official Release -## Permissions +- Documentation added +- Unit and instrumentation tests added back -For the sake of transparency and because you're probably curious as to what permissions this library adds to your app, here are the additional expected permissions: - -```xml - - - - - - -``` +### New Structure - * NOTE * +- WiseFy API -> WiseFy -> Internal util -> Delegate -> OS API and OS API implementation -If access points or SSIDs are not being returned on >= 6.x devices but there are visible networks, it's most likely because you haven't asked in your application for the `Manifest.permission.ACCESS_FINE_LOCATION` permission which is what allows us to see the access points nearby. This permission request will not be added to the WiseFy library to reduce package bloat and so users can determine their own UI/UX. +### Deprecations -Please check [the sample app](/wisefysample) for an example of how to request permissions for WiseFy. +- disableWifi() and disableWifi(callbacks: DisableWifiCallbacks?) +- enableWifi() and enableWifi(callbacks: EnableWifiCallbacks?) +- calculateBars(rssiLevel: Int, targetNumberOfBars: Int) -## Usage +### Known Android Q Problems -Please check [the documentation markdown directory](/documentation) for usage examples and details about both the synchronous and asynchronous API. +- Saving a network doesn't seem possible. A notification is presented if not connected to the suggestion, but even the +appearance of the notification seems flakey ## License ## -Copyright 2019 Patches Klinefelter +Copyright 2021 Patches Klinefelter Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/wisefysample/.gitignore b/app/.gitignore similarity index 100% rename from wisefysample/.gitignore rename to app/.gitignore diff --git a/app/build.gradle.kts b/app/build.gradle.kts new file mode 100644 index 00000000..9b2e9513 --- /dev/null +++ b/app/build.gradle.kts @@ -0,0 +1,126 @@ +import com.isupatches.android.wisefy.build.BuildVersions +import com.isupatches.android.wisefy.build.Dependencies +import com.isupatches.android.wisefy.build.Versions +import com.isupatches.android.wisefy.build.dagger +import com.isupatches.android.wisefy.build.debug +import com.isupatches.android.wisefy.build.navigation +import com.isupatches.android.wisefy.build.release +import java.util.Properties + +plugins { + id("com.android.application") + id("kotlin-android") + id("kotlin-kapt") +} + +val keystoreProperties: Properties = Properties() +val keystoreFile: File = rootProject.file("keystore.properties") +if (keystoreFile.exists()) { + keystoreFile.inputStream().use { keystoreProperties.load(it) } +} + +android { + compileSdkVersion(BuildVersions.COMPILE_SDK) + buildToolsVersion = BuildVersions.BUILD_TOOLS + + defaultConfig { + applicationId = "com.isupatches.android.wisefy.sample" + + minSdk = BuildVersions.MIN_SDK + targetSdk = BuildVersions.TARGET_SDK + + versionCode = BuildVersions.MODULE_VERSION_CODE + versionName = BuildVersions.MODULE_VERSION_NAME + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + + signingConfigs { + getByName("debug") { + storeFile = file(keystoreProperties.getProperty("app.debug.keystore_location")) + keyAlias = keystoreProperties.getProperty("app.debug.key_alias") + storePassword = System.getenv("APP_DEBUG_PASSWORD") ?: keystoreProperties.getProperty("app.debug.password") + keyPassword = System.getenv("APP_DEBUG_PASSWORD") ?: keystoreProperties.getProperty("app.debug.password") + } + + create("release") { + storeFile = file(keystoreProperties.getProperty("app.release.keystore_location")) + keyAlias = keystoreProperties.getProperty("app.release.key_alias") + storePassword = keystoreProperties.getProperty("app.release.password") + keyPassword = keystoreProperties.getProperty("app.release.password") + } + } + + buildTypes { + debug { + applicationIdSuffix = ".debug" + isTestCoverageEnabled = true + isMinifyEnabled = false + isShrinkResources = false + proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules-debug.pro") + testProguardFile(file("proguard-rules-test.pro")) + signingConfig = signingConfigs.getByName("debug") + } + + release { + isTestCoverageEnabled = false + isMinifyEnabled = true + isShrinkResources = true + proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules-release.pro") + signingConfig = signingConfigs.getByName("release") + } + } + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = "${JavaVersion.VERSION_1_8}" + } + + buildFeatures { + viewBinding = true + } + + jacoco { + version = Versions.JACOCO + } + + lintOptions { + isCheckAllWarnings = true + isShowAll = true + isExplainIssues = true + isAbortOnError = true + isWarningsAsErrors = true + disable("UnusedIds") + } +} + +dependencies { + /* + * Toggle these to test release binary vs. source code + */ + implementation(project(":wisefy")) +// implementation("com.isupatches.android:wisefy:5.0.0-RC1") { +// isChanging = true +// } + + implementation(Dependencies.VIEWGLU) + + // AndroidX + implementation(Dependencies.AndroidX.APPCOMPAT) + implementation(Dependencies.AndroidX.CONSTRAINT_LAYOUT) + implementation(Dependencies.AndroidX.CORE_KTX) + navigation() + + // Koltin + implementation(Dependencies.Kotlin.STD_LIB) + + // Google + implementation(Dependencies.Google.MATERIAL) + + // Dependency Injection + dagger() +} diff --git a/wisefysample/proguard-rules-common.pro b/app/proguard-rules-common.pro similarity index 71% rename from wisefysample/proguard-rules-common.pro rename to app/proguard-rules-common.pro index 0ff2fd3f..b7062e79 100644 --- a/wisefysample/proguard-rules-common.pro +++ b/app/proguard-rules-common.pro @@ -1,8 +1,5 @@ -dontnote --dontskipnonpubliclibraryclasses --dontskipnonpubliclibraryclassmembers - -keepattributes *Annotation*, EnclosingMethod, InnerClasses, Signature # Kotlin @@ -16,8 +13,3 @@ -assumenosideeffects class kotlin.jvm.internal.Intrinsics { static void checkParameterIsNotNull(java.lang.Object, java.lang.String); } - -# RxJava --keep class io.reactivex.schedulers.Schedulers { - public static ; -} diff --git a/wisefysample/proguard-rules-debug.pro b/app/proguard-rules-debug.pro similarity index 55% rename from wisefysample/proguard-rules-debug.pro rename to app/proguard-rules-debug.pro index 12ff5f85..5ca67fd6 100644 --- a/wisefysample/proguard-rules-debug.pro +++ b/app/proguard-rules-debug.pro @@ -4,4 +4,4 @@ -keepattributes SourceFile, LineNumberTable --keep class com.isupatches.wisefysample.DebugMainApplication { *; } +-keep class com.isupatches.android.wisefy.sample.DebugMainApplication { *; } diff --git a/wisefysample/proguard-rules-release.pro b/app/proguard-rules-release.pro similarity index 100% rename from wisefysample/proguard-rules-release.pro rename to app/proguard-rules-release.pro diff --git a/wisefysample/proguard-test-rules.pro b/app/proguard-test-rules.pro similarity index 100% rename from wisefysample/proguard-test-rules.pro rename to app/proguard-test-rules.pro diff --git a/wisefysample/src/debug/AndroidManifest.xml b/app/src/debug/AndroidManifest.xml similarity index 61% rename from wisefysample/src/debug/AndroidManifest.xml rename to app/src/debug/AndroidManifest.xml index f3245d4e..809412e8 100644 --- a/wisefysample/src/debug/AndroidManifest.xml +++ b/app/src/debug/AndroidManifest.xml @@ -2,14 +2,12 @@ - - + package="com.isupatches.android.wisefy.sample"> - \ No newline at end of file + diff --git a/wisefysample/src/debug/java/com/isupatches/wisefysample/DebugMainApplication.kt b/app/src/debug/java/com/isupatches/android/wisefy/sample/DebugMainApplication.kt similarity index 83% rename from wisefysample/src/debug/java/com/isupatches/wisefysample/DebugMainApplication.kt rename to app/src/debug/java/com/isupatches/android/wisefy/sample/DebugMainApplication.kt index fbf18130..a866892d 100644 --- a/wisefysample/src/debug/java/com/isupatches/wisefysample/DebugMainApplication.kt +++ b/app/src/debug/java/com/isupatches/android/wisefy/sample/DebugMainApplication.kt @@ -1,4 +1,4 @@ -package com.isupatches.wisefysample +package com.isupatches.android.wisefy.sample internal open class DebugMainApplication : MainApplication() { diff --git a/wisefysample/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml similarity index 78% rename from wisefysample/src/main/AndroidManifest.xml rename to app/src/main/AndroidManifest.xml index 25049a7c..6c5f905c 100644 --- a/wisefysample/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,7 +2,7 @@ + package="com.isupatches.android.wisefy.sample"> @@ -15,7 +15,7 @@ - + diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/MainApplication.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/MainApplication.kt similarity index 71% rename from wisefysample/src/main/java/com/isupatches/wisefysample/MainApplication.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/MainApplication.kt index 5597a1a2..d06f4724 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/MainApplication.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/MainApplication.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample +package com.isupatches.android.wisefy.sample import android.app.Application import android.content.Context -import com.isupatches.wisefysample.internal.di.PermissionsModule -import com.isupatches.wisefysample.internal.di.PreferencesModule -import com.isupatches.wisefysample.internal.di.ScreenBindingsModule -import com.isupatches.wisefysample.internal.util.RxSchedulersProvider +import com.isupatches.android.wisefy.sample.internal.di.ScreenBindingsModule +import com.isupatches.android.wisefy.sample.internal.util.PermissionUtil +import com.isupatches.android.wisefy.sample.internal.util.PermissionsUtilImpl import dagger.BindsInstance import dagger.Component import dagger.android.DispatchingAndroidInjector @@ -40,7 +39,7 @@ internal open class MainApplication : Application(), HasAndroidInjector { private fun initializeDependencyInjection() { mainApplicationComponent = DaggerMainApplication_MainApplicationComponent.builder() .application(this) - .rxSchedulersProvider(RxSchedulersProvider()) + .permissionsUtil(PermissionsUtilImpl()) .build() mainApplicationComponent.inject(this) } @@ -51,12 +50,12 @@ internal open class MainApplication : Application(), HasAndroidInjector { protected lateinit var mainApplicationComponent: MainApplicationComponent @Singleton - @Component(modules = [ - AndroidSupportInjectionModule::class, - ScreenBindingsModule::class, - PermissionsModule::class, - PreferencesModule::class - ]) + @Component( + modules = [ + AndroidSupportInjectionModule::class, + ScreenBindingsModule::class + ] + ) internal interface MainApplicationComponent { fun inject(mainApplication: MainApplication) @@ -64,8 +63,8 @@ internal open class MainApplication : Application(), HasAndroidInjector { @Component.Builder interface Builder { fun build(): MainApplicationComponent - @BindsInstance fun application(application: Context): Builder - @BindsInstance fun rxSchedulersProvider(prov: RxSchedulersProvider): Builder + @BindsInstance fun application(prov: Context): Builder + @BindsInstance fun permissionsUtil(prov: PermissionUtil): Builder } } } diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseActivity.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/base/BaseActivity.kt similarity index 66% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseActivity.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/base/BaseActivity.kt index b3b73bca..a9470c52 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseActivity.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/base/BaseActivity.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.base +package com.isupatches.android.wisefy.sample.internal.base import android.os.Bundle -import androidx.appcompat.app.AppCompatActivity -import dagger.android.AndroidInjection +import androidx.viewbinding.ViewBinding +import dagger.android.support.DaggerAppCompatActivity -internal abstract class BaseActivity : AppCompatActivity() { +internal abstract class BaseActivity : DaggerAppCompatActivity() { + + protected abstract val binding: ViewBinding override fun onCreate(savedInstanceState: Bundle?) { - AndroidInjection.inject(this) super.onCreate(savedInstanceState) + setContentView(binding.root) } } diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseDialogFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/base/BaseDialogFragment.kt similarity index 69% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseDialogFragment.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/base/BaseDialogFragment.kt index 8ae32f5b..a5f6f644 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseDialogFragment.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/base/BaseDialogFragment.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.base +package com.isupatches.android.wisefy.sample.internal.base import android.os.Bundle -import android.view.LayoutInflater -import android.view.View -import android.view.ViewGroup -import androidx.annotation.LayoutRes import androidx.fragment.app.DialogFragment import androidx.fragment.app.FragmentManager internal abstract class BaseDialogFragment : DialogFragment() { - @get:LayoutRes abstract val layoutRes: Int - - override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { - return inflater.inflate(layoutRes, container, false) - } - override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setStyle(STYLE_NO_TITLE, 0) diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/base/BaseFragment.kt similarity index 74% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseFragment.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/base/BaseFragment.kt index d11bdd2a..689da0cf 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseFragment.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/base/BaseFragment.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,41 +13,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.base +package com.isupatches.android.wisefy.sample.internal.base import android.content.Context -import android.os.Bundle -import android.view.LayoutInflater -import android.view.View -import android.view.ViewGroup -import androidx.annotation.LayoutRes import androidx.annotation.StringRes -import androidx.fragment.app.Fragment -import com.isupatches.wisefy.constants.WiseFyCode -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.util.PermissionUtil -import com.isupatches.wisefysample.ui.dialogs.FullScreenNoticeDialogFragment -import com.isupatches.wisefysample.ui.dialogs.NoticeDialogFragment +import com.isupatches.android.wisefy.sample.R +import com.isupatches.android.wisefy.sample.internal.scaffolding.BaseView +import com.isupatches.android.wisefy.sample.internal.util.PermissionUtil +import com.isupatches.android.wisefy.sample.ui.dialogs.FullScreenNoticeDialogFragment +import com.isupatches.android.wisefy.sample.ui.dialogs.NoticeDialogFragment import dagger.android.support.AndroidSupportInjection import javax.inject.Inject -internal abstract class BaseFragment : Fragment() { - - @get:LayoutRes abstract val layoutRes: Int +internal abstract class BaseFragment : BaseView() { @Inject lateinit var permissionUtil: PermissionUtil - private fun isActivityInvalid(): Boolean = activity == null || activity!!.isFinishing + private fun isActivityInvalid(): Boolean = activity == null || (activity?.isFinishing == true) override fun onAttach(context: Context) { AndroidSupportInjection.inject(this) super.onAttach(context) } - override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { - return inflater.inflate(layoutRes, container, false) - } - protected fun displayInfo(@StringRes infoMessageResId: Int, @StringRes infoTitleResId: Int = R.string.info) { showDialogNoDuplicates( tag = NoticeDialogFragment.TAG, @@ -98,23 +86,23 @@ internal abstract class BaseFragment : Fragment() { ) } - private fun showDialogNoDuplicates(tag: String, dialog: T) { - if (isActivityInvalid()) return - dialog.showNoDuplicates(childFragmentManager, tag) - } - - protected fun displayWiseFyFailureWithCode(@WiseFyCode wiseFyFailureCode: Int) { + protected fun displayWisefyAsyncErrorDialog(throwable: Throwable) { showDialogNoDuplicates( tag = NoticeDialogFragment.TAG, dialog = NoticeDialogFragment.newInstance( - title = getString(R.string.wisefy_error), - message = getString(R.string.wisefy_error_descriptions_args, wiseFyFailureCode) + title = getString(R.string.wisefy_async_error), + message = getString(R.string.wisefy_async_error_descriptions_args, throwable.message) ) ) } + private fun showDialogNoDuplicates(tag: String, dialog: T) { + if (isActivityInvalid()) return + dialog.showNoDuplicates(childFragmentManager, tag) + } + protected fun isPermissionGranted(permission: String, requestCode: Int): Boolean { - return if (!permissionUtil.isPermissionGranted(activity!!, permission)) { + return if (!permissionUtil.isPermissionGranted(requireActivity(), permission)) { // Logic may be added here to display rationale if needed requestPermissions(arrayOf(permission), requestCode) false diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/ScreenBindingsModule.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/di/ScreenBindingsModule.kt similarity index 61% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/ScreenBindingsModule.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/di/ScreenBindingsModule.kt index 1efa25b3..f08bd4bb 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/ScreenBindingsModule.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/di/ScreenBindingsModule.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.di +package com.isupatches.android.wisefy.sample.internal.di -import com.isupatches.wisefysample.ui.main.MainActivity +import com.isupatches.android.wisefy.sample.ui.main.MainActivity +import com.isupatches.android.wisefy.sample.ui.main.MainActivityFragmentBindings +import com.isupatches.android.wisefy.sample.ui.main.MainActivityModule import dagger.Module import dagger.android.ContributesAndroidInjector @Suppress("unused") @Module internal interface ScreenBindingsModule { - @ContributesAndroidInjector(modules = [ - MainActivity.MainActivityModule::class, - MainActivity.FragmentBindings::class - ]) + @ContributesAndroidInjector( + modules = [ + MainActivityModule::class, + MainActivityFragmentBindings::class + ] + ) fun mainActivity(): MainActivity } diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/models/NetworkType.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/entities/NetworkType.kt similarity index 85% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/models/NetworkType.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/entities/NetworkType.kt index 068509f4..b7351744 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/models/NetworkType.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/entities/NetworkType.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.models +package com.isupatches.android.wisefy.sample.internal.entities internal enum class NetworkType(val intVal: Int) { OPEN(0), - WEP(1), - WPA2(2); + WPA2(1), + WPA3(2); companion object { fun of(intVal: Int): NetworkType { return when (intVal) { OPEN.intVal -> OPEN - WEP.intVal -> WEP WPA2.intVal -> WPA2 + WPA3.intVal -> WPA3 else -> throw IllegalArgumentException("Invalid NetworkType, intVal: $intVal") } } diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/models/SearchType.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/entities/SearchType.kt similarity index 91% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/models/SearchType.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/entities/SearchType.kt index 1281e84a..f4e933d0 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/models/SearchType.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/entities/SearchType.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.models +package com.isupatches.android.wisefy.sample.internal.entities internal enum class SearchType(val intVal: Int) { ACCESS_POINT(0), diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/internal/logging/WisefySampleLogger.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/logging/WisefySampleLogger.kt new file mode 100644 index 00000000..d6b66e0c --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/logging/WisefySampleLogger.kt @@ -0,0 +1,90 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.internal.logging + +import android.util.Log +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.sample.BuildConfig +import java.util.Locale + +private const val LOG_TAG = "WisefySample" + +internal object WisefySampleLogger : WisefyLogger { + + override fun i(tag: String, message: String, vararg args: Any): Int { + if (BuildConfig.DEBUG) { + return Log.i(LOG_TAG, createMessage(tag, message, *args)) + } + return 0 + } + + override fun v(tag: String, message: String, vararg args: Any): Int { + if (BuildConfig.DEBUG) { + return Log.v(LOG_TAG, createMessage(tag, message, *args)) + } + return 0 + } + + override fun d(tag: String, message: String, vararg args: Any): Int { + if (BuildConfig.DEBUG) { + return Log.d(LOG_TAG, createMessage(tag, message, *args)) + } + return 0 + } + + override fun w(tag: String, message: String, vararg args: Any): Int { + if (BuildConfig.DEBUG) { + return Log.w(LOG_TAG, createMessage(tag, message, *args)) + } + return 0 + } + + override fun e(tag: String, message: String, vararg args: Any): Int { + if (BuildConfig.DEBUG) { + return Log.e(LOG_TAG, createMessage(tag, message, *args)) + } + return 0 + } + + override fun e(tag: String, throwable: Throwable, message: String, vararg args: Any): Int { + if (BuildConfig.DEBUG) { + return Log.e(LOG_TAG, createMessage(tag, message, *args), throwable) + } + return 0 + } + + override fun wtf(tag: String, message: String, vararg args: Any): Int { + if (BuildConfig.DEBUG) { + return Log.wtf(LOG_TAG, createMessage(tag, message, *args)) + } + return 0 + } + + override fun wtf(tag: String, throwable: Throwable, message: String, vararg args: Any): Int { + if (BuildConfig.DEBUG) { + Log.wtf(LOG_TAG, createMessage(tag, message, *args), throwable) + } + return 0 + } + + /* + * Private Helpers + */ + + private fun createMessage(tag: String, message: String, vararg args: Any): String { + return "$tag - ${message.format(Locale.US, *args)}" + } +} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/WiseFyLock.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseModel.kt similarity index 71% rename from wisefy/src/main/java/com/isupatches/wisefy/WiseFyLock.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseModel.kt index 1fe767ee..b7b62b59 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/WiseFyLock.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseModel.kt @@ -1,5 +1,5 @@ /* - * Copyright 2018 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefy +package com.isupatches.android.wisefy.sample.internal.scaffolding -/** - * A class used to synchronize logic. - * - * @see [WiseFy.getWiseFyLock] - * - * @author Patches - * @since 3.0 - */ -class WiseFyLock internal constructor() +private interface Model + +internal abstract class BaseModel : Model diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BasePresenter.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BasePresenter.kt new file mode 100644 index 00000000..7b4cedea --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BasePresenter.kt @@ -0,0 +1,62 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.internal.scaffolding + +import com.isupatches.android.wisefy.sample.internal.logging.WisefySampleLogger +import java.lang.RuntimeException + +internal interface Presenter { + fun attachView(view: VIEW) + fun detachView() +} + +private const val LOG_TAG = "BasePresenter" + +internal abstract class BasePresenter : Presenter { + + private var view: VIEW? = null + + private val isViewAttached: Boolean + get() = view != null + + override fun attachView(view: VIEW) { + this.view = view + } + + override fun detachView() { + view = null + } + + protected fun getView(): VIEW = view ?: throw ViewNotAttachedException() + + protected fun doSafelyWithView(viewCommand: (view: VIEW) -> Unit) { + if (isViewAttached) { +// view?.scheduleDirect { + if (isViewAttached) { + val view = view + requireNotNull(view) + viewCommand(view) + } else { + WisefySampleLogger.w(LOG_TAG, "ViewCommand was scheduled., but view is now detached!") + } +// } + } + } +} + +private class ViewNotAttachedException : RuntimeException( + "New view attached. Did you forget to call attachView()?" +) diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseStore.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseStore.kt new file mode 100644 index 00000000..92183a6e --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseStore.kt @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.internal.scaffolding + +import android.content.Context +import android.content.SharedPreferences +import androidx.annotation.StringRes +import androidx.core.content.edit + +internal interface Store + +private const val PREF_LAST_USED_REGEX = "last used regex" + +internal abstract class BaseSharedPreferenceStore : Store { + + protected fun getSharedPreferences(context: Context, @StringRes prefKey: Int): SharedPreferences { + return context.getSharedPreferences(context.getString(prefKey), Context.MODE_PRIVATE) + } + + protected fun SharedPreferences.getLastUsedRegex() = getNonNullString(PREF_LAST_USED_REGEX) + + protected fun SharedPreferences.setLastUsedRegex(lastUsedRegex: String) { + edit { + putString(PREF_LAST_USED_REGEX, lastUsedRegex) + } + } + + protected fun SharedPreferences.getNonNullString(key: String) = getString(key, "") ?: "" +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseView.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseView.kt new file mode 100644 index 00000000..1445c678 --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/scaffolding/BaseView.kt @@ -0,0 +1,24 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.internal.scaffolding + +import androidx.fragment.app.Fragment + +internal interface View { + fun displayWisefyAsyncError(throwable: Throwable) +} + +internal abstract class BaseView : Fragment(), View diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/BundleUtil.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/BundleUtil.kt similarity index 66% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/BundleUtil.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/BundleUtil.kt index 3609aeb8..9e7eafdd 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/BundleUtil.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/BundleUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.util +package com.isupatches.android.wisefy.sample.internal.util import android.os.Bundle import androidx.fragment.app.Fragment -/** - * A syntactic-sugar function used to apply arguments to a Fragment's bundle - * - * @param block The arguments to add to the bundle - * - * @return The fragment whose bundle was altered - */ -fun T.applyArguments(block: Bundle.() -> Unit): T { +internal fun T.applyArguments(block: Bundle.() -> Unit): T { arguments = Bundle().apply(block) return this } diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/EditTextUtil.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/EditTextUtil.kt similarity index 87% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/EditTextUtil.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/EditTextUtil.kt index bd8542c6..368138d8 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/EditTextUtil.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/EditTextUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.util +package com.isupatches.android.wisefy.sample.internal.util import android.widget.EditText diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/HtmlUtil.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/HtmlUtil.kt similarity index 78% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/HtmlUtil.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/HtmlUtil.kt index 274417fc..09930bd5 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/HtmlUtil.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/HtmlUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.util +package com.isupatches.android.wisefy.sample.internal.util import android.os.Build import android.text.Html import android.text.Spanned @Suppress("deprecation") -internal fun String.asHtmlSpanned(): Spanned = - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { +internal fun String.asHtmlSpanned(): Spanned { + return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { Html.fromHtml(this, Html.FROM_HTML_MODE_COMPACT) } else { Html.fromHtml(this) } +} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/KeyboardUtil.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/KeyboardUtil.kt similarity index 84% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/KeyboardUtil.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/KeyboardUtil.kt index a5d26d03..3ca8f3f3 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/KeyboardUtil.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/KeyboardUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.util +package com.isupatches.android.wisefy.sample.internal.util import android.app.Activity import android.view.View import android.view.inputmethod.InputMethodManager -import com.isupatches.wisefysample.internal.base.BaseFragment +import com.isupatches.android.wisefy.sample.internal.base.BaseFragment internal fun BaseFragment.hideKeyboardFrom(view: View) { activity?.let { diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/PermissionsUtil.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/PermissionsUtil.kt similarity index 91% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/PermissionsUtil.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/PermissionsUtil.kt index ddd38f97..aa034689 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/PermissionsUtil.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/PermissionsUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.util +package com.isupatches.android.wisefy.sample.internal.util import android.content.Context import android.content.pm.PackageManager diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/SdkUtil.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/SdkUtil.kt similarity index 76% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/SdkUtil.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/SdkUtil.kt index 6c29f36f..2e896cff 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/SdkUtil.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/SdkUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.util +package com.isupatches.android.wisefy.sample.internal.util import android.os.Build import javax.inject.Inject internal interface SdkUtil { - fun isAtLeastLollipop(): Boolean + fun isAtLeastQ(): Boolean } internal class SdkUtilImpl @Inject constructor() : SdkUtil { - override fun isAtLeastLollipop() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP + override fun isAtLeastQ() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q } diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/main/MainFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/WiseFyFactory.kt similarity index 57% rename from wisefysample/src/main/java/com/isupatches/wisefysample/ui/main/MainFragment.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/WiseFyFactory.kt index 598c74dc..7698aaaa 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/main/MainFragment.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/internal/util/WiseFyFactory.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.ui.main +package com.isupatches.android.wisefy.sample.internal.util -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.base.BaseFragment +import android.content.Context +import com.isupatches.android.wisefy.Wisefy +import com.isupatches.android.wisefy.WisefyApi +import com.isupatches.android.wisefy.sample.internal.logging.WisefySampleLogger -internal class MainFragment : BaseFragment() { - - override val layoutRes = R.layout.fragment_main - - companion object { - val TAG: String = MainFragment::class.java.simpleName - - fun newInstance() = MainFragment() - } +internal fun createWiseFy(context: Context): WisefyApi { + return Wisefy.Brains(context, WisefySampleLogger).getSmarts() } diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkFragment.kt new file mode 100644 index 00000000..68c963fe --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkFragment.kt @@ -0,0 +1,298 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.add + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.app.Activity +import android.content.Intent +import android.content.pm.PackageManager +import android.os.Build +import android.os.Bundle +import android.provider.Settings.ADD_WIFI_RESULT_SUCCESS +import android.provider.Settings.EXTRA_WIFI_NETWORK_RESULT_LIST +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import androidx.activity.result.ActivityResult +import androidx.activity.result.ActivityResultLauncher +import androidx.activity.result.contract.ActivityResultContracts +import androidx.annotation.VisibleForTesting +import com.isupatches.android.viewglu.paste +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.sample.R +import com.isupatches.android.wisefy.sample.databinding.FragmentAddNetworkBinding +import com.isupatches.android.wisefy.sample.internal.base.BaseFragment +import com.isupatches.android.wisefy.sample.internal.entities.NetworkType +import com.isupatches.android.wisefy.sample.internal.logging.WisefySampleLogger +import com.isupatches.android.wisefy.sample.internal.util.SdkUtil +import com.isupatches.android.wisefy.sample.internal.util.getTrimmedInput +import com.isupatches.android.wisefy.sample.internal.util.hideKeyboardFrom +import javax.inject.Inject + +@VisibleForTesting internal const val WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE = 1 +@VisibleForTesting internal const val WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE = 2 +@VisibleForTesting internal const val WISEFY_ADD_WPA3_NETWORK_REQUEST_CODE = 3 + +private const val LOG_TAG = "AddNetworkFragment" + +internal interface AddNetworkView { + fun displayFailureAddingNetwork(result: AddNetworkResult) + fun displayNetworkAdded(result: AddNetworkResult) +} + +internal class AddNetworkFragment : BaseFragment(), AddNetworkView { + + @AddNetworkScope @Inject lateinit var presenter: AddNetworkPresenter + @AddNetworkScope @Inject lateinit var addNetworkStore: AddNetworkStore + @AddNetworkScope @Inject lateinit var sdkUtil: SdkUtil + + private var binding: FragmentAddNetworkBinding by paste() + private lateinit var addNetworkResult: ActivityResultLauncher + + override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { + binding = FragmentAddNetworkBinding.inflate(inflater, container, false) + return binding.root + } + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + addNetworkResult = registerForActivityResult( + ActivityResultContracts.StartActivityForResult() + ) { result: ActivityResult -> + when (result.resultCode) { + Activity.RESULT_OK -> { + val data = result.data ?: return@registerForActivityResult + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { + val networkResultList = data.getIntegerArrayListExtra(EXTRA_WIFI_NETWORK_RESULT_LIST) + ?: emptyList() + for (resultCode in networkResultList) { + if (resultCode == ADD_WIFI_RESULT_SUCCESS) { + displayNetworkAdded(AddNetworkResult.ResultCode(resultCode)) + } else { + displayFailureAddingNetwork(AddNetworkResult.ResultCode(resultCode)) + } + } + } + } + } + } + } + + override fun onStart() { + super.onStart() + presenter.attachView(this) + } + + override fun onStop() { + presenter.detachView() + super.onStop() + addNetworkStore.setLastUsedNetworkName(binding.networkNameEdt.getTrimmedInput()) + addNetworkStore.setLastUsedNetworkPassword(binding.networkPasswordEdt.getTrimmedInput()) + hideKeyboardFrom(binding.addNetworkBtn) + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + + if (savedInstanceState == null) { + restoreUI() + } + + binding.addNetworkBtn.setOnClickListener { + when (binding.addNetworkTypeRdg.checkedRadioButtonId) { + R.id.openNetworkRdb -> addOpenNetwork() + R.id.wpa2NetworkRdb -> addWPA2Network() + R.id.wpa3NetworkRdb -> addWPA3Network() + } + } + binding.addNetworkTypeRdg.setOnCheckedChangeListener { _, checkedId -> + when (checkedId) { + R.id.openNetworkRdb -> addNetworkStore.setNetworkType(NetworkType.OPEN) + R.id.wpa2NetworkRdb -> addNetworkStore.setNetworkType(NetworkType.WPA2) + R.id.wpa3NetworkRdb -> addNetworkStore.setNetworkType(NetworkType.WPA2) + } + updateUI() + } + } + + /* + * View helpers + */ + + private fun adjustNetworkPasswordVisibility(visibility: Int) { + binding.networkPasswordTil.visibility = visibility + binding.networkPasswordEdt.visibility = visibility + } + + private fun restoreUI() { + // Restore edit text values + binding.networkNameEdt.setText(addNetworkStore.getLastUsedNetworkName()) + binding.networkPasswordEdt.setText(addNetworkStore.getLastUsedNetworkPassword()) + + // Restore checked state + val checkedId = when (addNetworkStore.getNetworkType()) { + NetworkType.OPEN -> R.id.openNetworkRdb + NetworkType.WPA2 -> R.id.wpa2NetworkRdb + NetworkType.WPA3 -> R.id.wpa3NetworkRdb + } + binding.addNetworkTypeRdg.check(checkedId) + + // Show/hide password edit + when (addNetworkStore.getNetworkType()) { + NetworkType.OPEN -> adjustNetworkPasswordVisibility(View.INVISIBLE) + else -> adjustNetworkPasswordVisibility(View.VISIBLE) + } + } + + private fun updateUI() { + when (binding.addNetworkTypeRdg.checkedRadioButtonId) { + R.id.openNetworkRdb -> adjustNetworkPasswordVisibility(View.INVISIBLE) + else -> adjustNetworkPasswordVisibility(View.VISIBLE) + } + } + + /* + * Presenter callback overrides + */ + + override fun displayFailureAddingNetwork(result: AddNetworkResult) { + displayInfo(getString(R.string.failed_adding_network_args, result), R.string.add_network_result) + } + + override fun displayNetworkAdded(result: AddNetworkResult) { + displayInfoFullScreen( + getString(R.string.succeeded_adding_network_args, result), + R.string.add_network_result + ) + } + + override fun displayWisefyAsyncError(throwable: Throwable) { + displayWisefyAsyncErrorDialog(throwable) + } + + /* + * WiseFy helpers + */ + + @Throws(SecurityException::class) + private fun addOpenNetwork() { + if (checkAddOpenNetworkPermissions()) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { + presenter.addOpenNetwork( + ssid = binding.networkNameEdt.getTrimmedInput(), + activityResultLauncher = addNetworkResult + ) + } else { + presenter.addOpenNetwork(ssid = binding.networkNameEdt.getTrimmedInput()) + } + } + } + + @Throws(SecurityException::class) + private fun addWPA2Network() { + if (checkAddWPA2NetworkPermissions()) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { + presenter.addWPA2Network( + ssid = binding.networkNameEdt.getTrimmedInput(), + passphrase = binding.networkPasswordEdt.getTrimmedInput(), + activityResultLauncher = addNetworkResult + ) + } else { + presenter.addWPA2Network( + ssid = binding.networkNameEdt.getTrimmedInput(), + passphrase = binding.networkPasswordEdt.getTrimmedInput() + ) + } + } + } + + @Throws(SecurityException::class) + private fun addWPA3Network() { + if (sdkUtil.isAtLeastQ()) { + if (checkAddWPA3NetworkPermissions()) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { + presenter.addWPA3Network( + ssid = binding.networkNameEdt.getTrimmedInput(), + passphrase = binding.networkPasswordEdt.getTrimmedInput(), + activityResultLauncher = addNetworkResult + ) + } else { + presenter.addWPA3Network( + ssid = binding.networkNameEdt.getTrimmedInput(), + passphrase = binding.networkPasswordEdt.getTrimmedInput() + ) + } + } + } else { + displayInfo(R.string.add_wpa3_android_q_notice) + } + } + + /* + * Permission helpers + */ + + private fun checkAddOpenNetworkPermissions(): Boolean { + return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE) && + isPermissionGranted(CHANGE_WIFI_STATE, WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE) + } + + private fun checkAddWPA2NetworkPermissions(): Boolean { + return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE) && + isPermissionGranted(CHANGE_WIFI_STATE, WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE) + } + + private fun checkAddWPA3NetworkPermissions(): Boolean { + return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_ADD_WPA3_NETWORK_REQUEST_CODE) && + isPermissionGranted(CHANGE_WIFI_STATE, WISEFY_ADD_WPA3_NETWORK_REQUEST_CODE) + } + + override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray) { + when (requestCode) { + WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE -> { + if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { + addOpenNetwork() + } else { + WisefySampleLogger.w(LOG_TAG, "Permissions for adding an open network are denied") + displayPermissionErrorDialog(R.string.permission_error_add_open_network) + } + } + WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE -> { + if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { + addWPA2Network() + } else { + WisefySampleLogger.w(LOG_TAG, "Permissions for adding a WPA2 network are denied") + displayPermissionErrorDialog(R.string.permission_error_add_wpa2_network) + } + } + WISEFY_ADD_WPA3_NETWORK_REQUEST_CODE -> { + if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { + addWPA3Network() + } else { + WisefySampleLogger.w(LOG_TAG, "Permissions for adding a WPA3 network are denied") + displayPermissionErrorDialog(R.string.permission_error_add_wpa3_network) + } + } + else -> { + WisefySampleLogger.wtf(LOG_TAG, "Weird permission requested, not handled") + displayPermissionErrorDialog( + getString(R.string.permission_error_unhandled_request_code_args, requestCode) + ) + } + } + } +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkModel.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkModel.kt new file mode 100644 index 00000000..90b9d04a --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkModel.kt @@ -0,0 +1,178 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.add + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.content.Intent +import android.os.Build +import androidx.activity.result.ActivityResultLauncher +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.WisefyApi +import com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData +import com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks +import com.isupatches.android.wisefy.sample.internal.scaffolding.BaseModel +import javax.inject.Inject + +internal interface AddNetworkModel { + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addOpenNetwork(ssid: String, callbacks: AddNetworkCallbacks?) + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addOpenNetwork( + ssid: String, + activityResultLauncher: ActivityResultLauncher, + callbacks: AddNetworkCallbacks? + ) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addWPA2Network( + ssid: String, + passphrase: String, + callbacks: AddNetworkCallbacks? + ) + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addWPA2Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher, + callbacks: AddNetworkCallbacks? + ) + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addWPA3Network( + ssid: String, + passphrase: String, + callbacks: AddNetworkCallbacks? + ) + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addWPA3Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher, + callbacks: AddNetworkCallbacks? + ) +} + +@AddNetworkScope +internal class DefaultAddNetworkModel @Inject constructor( + private val wisefy: WisefyApi +) : BaseModel(), AddNetworkModel { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork( + ssid: String, + callbacks: AddNetworkCallbacks? + ) { + wisefy.addOpenNetwork( + data = OpenNetworkData.Ssid(ssid = ssid), + callbacks = callbacks + ) + } + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork( + ssid: String, + activityResultLauncher: ActivityResultLauncher, + callbacks: AddNetworkCallbacks? + ) { + wisefy.addOpenNetwork( + data = OpenNetworkData.SsidAndActivityResultLauncher( + ssid = ssid, + activityResultLauncher = activityResultLauncher + ), + callbacks = callbacks + ) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network( + ssid: String, + passphrase: String, + callbacks: AddNetworkCallbacks? + ) { + wisefy.addWPA2Network( + data = WPA2NetworkData.SsidAndPassphrase( + ssid = ssid, + passphrase = passphrase + ), + callbacks = callbacks + ) + } + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher, + callbacks: AddNetworkCallbacks? + ) { + wisefy.addWPA2Network( + data = WPA2NetworkData.SsidPassphraseAndActivityResultLauncher( + ssid = ssid, + passphrase = passphrase, + activityResultLauncher = activityResultLauncher + ), + callbacks = callbacks + ) + } + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network( + ssid: String, + passphrase: String, + callbacks: AddNetworkCallbacks? + ) { + wisefy.addWPA3Network( + data = WPA3NetworkData.SsidAndPassphrase( + ssid = ssid, + passphrase = passphrase + ), + callbacks = callbacks + ) + } + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher, + callbacks: AddNetworkCallbacks? + ) { + wisefy.addWPA3Network( + data = WPA3NetworkData.SsidPassphraseAndActivityResultLauncher( + ssid = ssid, + passphrase = passphrase, + activityResultLauncher = activityResultLauncher + ), + callbacks = callbacks + ) + } +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkModule.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkModule.kt new file mode 100644 index 00000000..b2b7f8a0 --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkModule.kt @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.add + +import dagger.Binds +import dagger.Module +import javax.inject.Scope + +@Scope +@Retention(AnnotationRetention.RUNTIME) +internal annotation class AddNetworkScope + +@Suppress("unused") +@Module +internal interface AddNetworkFragmentModule { + @Binds + @AddNetworkScope + fun bindAddNetworkModel(impl: DefaultAddNetworkModel): AddNetworkModel + + @Binds + @AddNetworkScope + fun bindAddNetworkPresenter(impl: DefaultAddNetworkPresenter): AddNetworkPresenter + + @Binds + @AddNetworkScope + fun bindAddNetworkStore(impl: SharedPreferencesAddNetworkStore): AddNetworkStore +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkPresenter.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkPresenter.kt new file mode 100644 index 00000000..958b7eec --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkPresenter.kt @@ -0,0 +1,164 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.add + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.content.Intent +import android.os.Build +import androidx.activity.result.ActivityResultLauncher +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks +import com.isupatches.android.wisefy.sample.internal.scaffolding.BasePresenter +import com.isupatches.android.wisefy.sample.internal.scaffolding.Presenter +import javax.inject.Inject + +internal interface AddNetworkPresenter : Presenter { + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addOpenNetwork(ssid: String) + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addOpenNetwork( + ssid: String, + activityResultLauncher: ActivityResultLauncher + ) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addWPA2Network(ssid: String, passphrase: String) + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addWPA2Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher + ) + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addWPA3Network(ssid: String, passphrase: String) + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_FINE_LOCATION) + fun addWPA3Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher + ) +} + +@AddNetworkScope +internal class DefaultAddNetworkPresenter @Inject constructor( + private val model: AddNetworkModel, +) : BasePresenter(), AddNetworkPresenter { + + private val addNetworkCallbacks = object : AddNetworkCallbacks { + override fun onFailureAddingNetwork(result: AddNetworkResult) { + doSafelyWithView { view -> + view.displayFailureAddingNetwork(result) + } + } + + override fun onNetworkAdded(result: AddNetworkResult) { + doSafelyWithView { view -> + view.displayNetworkAdded(result) + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + + /* + * Model call-throughs + */ + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addOpenNetwork(ssid: String) { + model.addOpenNetwork( + ssid = ssid, + callbacks = addNetworkCallbacks + ) + } + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addOpenNetwork( + ssid: String, + activityResultLauncher: ActivityResultLauncher + ) { + model.addOpenNetwork( + ssid = ssid, + activityResultLauncher = activityResultLauncher, + callbacks = addNetworkCallbacks + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addWPA2Network(ssid: String, passphrase: String) { + model.addWPA2Network( + ssid = ssid, + passphrase = passphrase, + callbacks = addNetworkCallbacks + ) + } + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addWPA2Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher + ) { + model.addWPA2Network( + ssid = ssid, + passphrase = passphrase, + activityResultLauncher = activityResultLauncher, + callbacks = addNetworkCallbacks + ) + } + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addWPA3Network(ssid: String, passphrase: String) { + model.addWPA3Network( + ssid = ssid, + passphrase = passphrase, + callbacks = addNetworkCallbacks + ) + } + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addWPA3Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher + ) { + model.addWPA3Network( + ssid = ssid, + passphrase = passphrase, + activityResultLauncher = activityResultLauncher, + callbacks = addNetworkCallbacks + ) + } +} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/AddNetworkStore.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkStore.kt similarity index 78% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/AddNetworkStore.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkStore.kt index 1e42e575..3366ddd3 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/AddNetworkStore.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/add/AddNetworkStore.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.preferences +package com.isupatches.android.wisefy.sample.ui.add +import android.content.Context import android.content.SharedPreferences import androidx.annotation.VisibleForTesting import androidx.core.content.edit -import com.isupatches.wisefysample.internal.models.NetworkType +import com.isupatches.android.wisefy.sample.R +import com.isupatches.android.wisefy.sample.internal.entities.NetworkType +import com.isupatches.android.wisefy.sample.internal.scaffolding.BaseSharedPreferenceStore +import javax.inject.Inject @VisibleForTesting internal const val PREF_NETWORK_TYPE = "network type" @VisibleForTesting internal const val PREF_LAST_USED_NETWORK_NAME = "last used network name" @@ -36,9 +40,15 @@ internal interface AddNetworkStore { fun setLastUsedNetworkPassword(lastUsedNetworkPassword: String) } -internal class SharedPreferencesAddNetworkStore( - private val sharedPreferences: SharedPreferences -) : AddNetworkStore { +@AddNetworkScope +internal class SharedPreferencesAddNetworkStore @Inject constructor( + context: Context +) : BaseSharedPreferenceStore(), AddNetworkStore { + + private val sharedPreferences: SharedPreferences = getSharedPreferences( + context, + R.string.preferences_add_network_data + ) override fun clear() { sharedPreferences.edit { clear() } diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseMvp.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/BaseNoticeDialogFragment.kt similarity index 52% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseMvp.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/BaseNoticeDialogFragment.kt index c1d1e09b..cb96adc4 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BaseMvp.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/BaseNoticeDialogFragment.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.base +package com.isupatches.android.wisefy.sample.ui.dialogs -import com.isupatches.wisefy.constants.WiseFyCode +import android.os.Bundle +import com.isupatches.android.wisefy.sample.internal.base.BaseDialogFragment -@Suppress("UndocumentedPublicClass", "UndocumentedPublicFunction") -internal interface BaseMvp { +internal const val EXTRA_DIALOG_TITLE = "dialog title" +internal const val EXTRA_DIALOG_MESSAGE = "dialog message" - interface View { - fun displayWiseFyFailure(@WiseFyCode wiseFyFailureCode: Int) - } - - interface Presenter { - fun attachView(view: V) - fun detachView() +internal abstract class BaseNoticeDialogFragment : BaseDialogFragment() { - fun displayWiseFyFailure(@WiseFyCode wiseFyFailureCode: Int) + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + isCancelable = false } } diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/FullScreenNoticeDialogFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/FullScreenNoticeDialogFragment.kt new file mode 100644 index 00000000..ef2160ec --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/FullScreenNoticeDialogFragment.kt @@ -0,0 +1,71 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.dialogs + +import android.app.Dialog +import android.os.Bundle +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import com.isupatches.android.viewglu.paste +import com.isupatches.android.wisefy.sample.databinding.DialogBaseFullscreenBinding +import com.isupatches.android.wisefy.sample.internal.util.applyArguments + +internal class FullScreenNoticeDialogFragment : BaseNoticeDialogFragment() { + + private var binding: DialogBaseFullscreenBinding by paste() + + private val dialogTitle: String by lazy { + arguments?.getString(EXTRA_DIALOG_TITLE) ?: "" + } + + private val dialogMessage: String by lazy { + arguments?.getString(EXTRA_DIALOG_MESSAGE) ?: "" + } + + override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { + binding = DialogBaseFullscreenBinding.inflate(inflater, container, false) + return binding.root + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + binding.dialogTitleTxt.text = dialogTitle + binding.dialogMessageTxt.text = dialogMessage + binding.okBtn.setOnClickListener { + dismiss() + } + } + + override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { + dialog?.window?.setLayout( + ViewGroup.LayoutParams.MATCH_PARENT, + ViewGroup.LayoutParams.MATCH_PARENT + ) + return super.onCreateDialog(savedInstanceState) + } + + companion object { + val TAG: String = FullScreenNoticeDialogFragment::class.java.simpleName + + fun newInstance(title: String, message: String): FullScreenNoticeDialogFragment { + return FullScreenNoticeDialogFragment().applyArguments { + putString(EXTRA_DIALOG_TITLE, title) + putString(EXTRA_DIALOG_MESSAGE, message) + } + } + } +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/NoticeDialogFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/NoticeDialogFragment.kt new file mode 100644 index 00000000..79a30e0c --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/dialogs/NoticeDialogFragment.kt @@ -0,0 +1,62 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.dialogs + +import android.os.Bundle +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import com.isupatches.android.viewglu.paste +import com.isupatches.android.wisefy.sample.databinding.DialogBaseBinding +import com.isupatches.android.wisefy.sample.internal.util.applyArguments + +internal class NoticeDialogFragment : BaseNoticeDialogFragment() { + + private var binding: DialogBaseBinding by paste() + + private val dialogTitle: String by lazy { + arguments?.getString(EXTRA_DIALOG_TITLE) ?: "" + } + + private val dialogMessage: String by lazy { + arguments?.getString(EXTRA_DIALOG_MESSAGE) ?: "" + } + + override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { + binding = DialogBaseBinding.inflate(inflater, container, false) + return binding.root + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + binding.dialogTitleTxt.text = dialogTitle + binding.dialogMessageTxt.text = dialogMessage + binding.okBtn.setOnClickListener { + dismiss() + } + } + + companion object { + val TAG: String = NoticeDialogFragment::class.java.simpleName + + fun newInstance(title: String, message: String): NoticeDialogFragment { + return NoticeDialogFragment().applyArguments { + putString(EXTRA_DIALOG_TITLE, title) + putString(EXTRA_DIALOG_MESSAGE, message) + } + } + } +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/main/MainActivity.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/main/MainActivity.kt new file mode 100644 index 00000000..54c03544 --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/main/MainActivity.kt @@ -0,0 +1,113 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.main + +import android.content.Context +import android.os.Bundle +import androidx.navigation.fragment.NavHostFragment +import androidx.navigation.ui.NavigationUI +import com.isupatches.android.viewglu.paste +import com.isupatches.android.wisefy.WisefyApi +import com.isupatches.android.wisefy.sample.R +import com.isupatches.android.wisefy.sample.databinding.ActivityMainBinding +import com.isupatches.android.wisefy.sample.internal.base.BaseActivity +import com.isupatches.android.wisefy.sample.internal.util.SdkUtil +import com.isupatches.android.wisefy.sample.internal.util.SdkUtilImpl +import com.isupatches.android.wisefy.sample.internal.util.createWiseFy +import com.isupatches.android.wisefy.sample.ui.add.AddNetworkFragment +import com.isupatches.android.wisefy.sample.ui.add.AddNetworkFragmentModule +import com.isupatches.android.wisefy.sample.ui.add.AddNetworkScope +import com.isupatches.android.wisefy.sample.ui.misc.MiscFragment +import com.isupatches.android.wisefy.sample.ui.misc.MiscFragmentModule +import com.isupatches.android.wisefy.sample.ui.misc.MiscScope +import com.isupatches.android.wisefy.sample.ui.remove.RemoveNetworkFragment +import com.isupatches.android.wisefy.sample.ui.remove.RemoveNetworkFragmentModule +import com.isupatches.android.wisefy.sample.ui.remove.RemoveNetworkScope +import com.isupatches.android.wisefy.sample.ui.search.SearchFragment +import com.isupatches.android.wisefy.sample.ui.search.SearchFragmentModule +import com.isupatches.android.wisefy.sample.ui.search.SearchScope +import dagger.Binds +import dagger.Module +import dagger.Provides +import dagger.android.ContributesAndroidInjector +import javax.inject.Inject + +internal class MainActivity : BaseActivity() { + + override val binding: ActivityMainBinding by paste(ActivityMainBinding::inflate) + + @Inject lateinit var wisefy: WisefyApi + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + val navHostFragment = supportFragmentManager.findFragmentById(R.id.main_nav_host) as NavHostFragment + val navController = navHostFragment.navController + NavigationUI.setupWithNavController(binding.bottomNavigationView, navController) + + wisefy.attachNetworkWatcher() + } + + override fun onDestroy() { + wisefy.detachNetworkWatcher() + super.onDestroy() + } +} + +@Suppress("unused") +@Module internal interface MainActivityFragmentBindings { + + @AddNetworkScope + @ContributesAndroidInjector( + modules = [ + AddNetworkFragmentModule::class + ] + ) fun addNetworkFragment(): AddNetworkFragment + + @RemoveNetworkScope + @ContributesAndroidInjector( + modules = [ + RemoveNetworkFragmentModule::class + ] + ) fun removeNetworkFragment(): RemoveNetworkFragment + + @ContributesAndroidInjector + fun mainFragment(): MainFragment + + @MiscScope + @ContributesAndroidInjector( + modules = [ + MiscFragmentModule::class + ] + ) fun miscFragment(): MiscFragment + + @SearchScope + @ContributesAndroidInjector( + modules = [ + SearchFragmentModule::class + ] + ) fun searchFragment(): SearchFragment +} + +@Suppress("unused") +@Module internal abstract class MainActivityModule { + + @Binds abstract fun bindSdkUtil(impl: SdkUtilImpl): SdkUtil + + companion object { + @Provides + fun provideWiseFy(app: Context) = createWiseFy(app) + } +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/main/MainFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/main/MainFragment.kt new file mode 100644 index 00000000..55a4f39f --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/main/MainFragment.kt @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.main + +import android.os.Bundle +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import androidx.fragment.app.Fragment +import com.isupatches.android.viewglu.paste +import com.isupatches.android.wisefy.sample.databinding.FragmentMainBinding + +internal class MainFragment : Fragment() { + + private var binding: FragmentMainBinding by paste() + + override fun onCreateView( + inflater: LayoutInflater, + container: ViewGroup?, + savedInstanceState: Bundle? + ): View { + binding = FragmentMainBinding.inflate(inflater, container, false) + return binding.root + } +} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscFragment.kt similarity index 63% rename from wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscFragment.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscFragment.kt index af6ea401..8c861ee4 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscFragment.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscFragment.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,78 +13,90 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.ui.misc +package com.isupatches.android.wisefy.sample.ui.misc import android.Manifest.permission.ACCESS_FINE_LOCATION import android.content.pm.PackageManager -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo import android.os.Bundle -import android.util.Log +import android.view.LayoutInflater import android.view.View +import android.view.ViewGroup import androidx.annotation.VisibleForTesting -import com.isupatches.wisefy.constants.WiseFyCode -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.base.BaseFragment -import com.isupatches.wisefysample.internal.util.SdkUtil -import dagger.Binds -import dagger.Module +import com.isupatches.android.viewglu.paste +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkData +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkInfoData +import com.isupatches.android.wisefy.sample.R +import com.isupatches.android.wisefy.sample.databinding.FragmentMiscBinding +import com.isupatches.android.wisefy.sample.internal.base.BaseFragment +import com.isupatches.android.wisefy.sample.internal.logging.WisefySampleLogger +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData import javax.inject.Inject -import kotlinx.android.synthetic.main.fragment_misc.disableWifiBtn -import kotlinx.android.synthetic.main.fragment_misc.enableWifiBtn -import kotlinx.android.synthetic.main.fragment_misc.getCurrentNetworkBtn -import kotlinx.android.synthetic.main.fragment_misc.getCurrentNetworkInfoBtn -import kotlinx.android.synthetic.main.fragment_misc.getFrequencyBtn -import kotlinx.android.synthetic.main.fragment_misc.getIPBtn -import kotlinx.android.synthetic.main.fragment_misc.getNearbyAccessPointsBtn -import kotlinx.android.synthetic.main.fragment_misc.getSavedNetworksBtn -@Suppress("LargeClass") -internal class MiscFragment : BaseFragment(), MiscMvp.View { - - override val layoutRes = R.layout.fragment_misc +@VisibleForTesting internal const val WISEFY_GET_FREQUENCY_REQUEST_CODE = 1 +@VisibleForTesting internal const val WISEFY_GET_IP_REQUEST_CODE = 2 +@VisibleForTesting internal const val WISEFY_GET_NEARBY_ACCESS_POINTS_REQUEST_CODE = 3 +@VisibleForTesting internal const val WISEFY_GET_SAVED_NETWORKS_REQUEST_CODE = 4 + +private const val LOG_TAG = "MiscFragment" + +internal interface MiscView { + fun displayAndroidQWifiMessage() + fun displayWifiDisabled() + fun displayFailureDisablingWifi() + fun displayWifiEnabled() + fun displayFailureEnablingWifi() + fun displayCurrentNetwork(currentNetwork: CurrentNetworkData) + fun displayNoCurrentNetwork() + fun displayCurrentNetworkInfo(currentNetworkInfo: CurrentNetworkInfoData) + fun displayNoCurrentNetworkInfo() + fun displayFrequency(frequency: Int) + fun displayFailureRetrievingFrequency() + fun displayIP(ip: String) + fun displayFailureRetrievingIP() + fun displayNearbyAccessPoints(accessPoints: List) + fun displayNoAccessPointsFound() + fun displayNoSavedNetworksFound() + fun displaySavedNetworks(savedNetworks: List) +} - @Inject lateinit var presenter: MiscMvp.Presenter - @Inject lateinit var sdkUtil: SdkUtil +@Suppress("LargeClass") +internal class MiscFragment : BaseFragment(), MiscView { - companion object { - val TAG: String = MiscFragment::class.java.simpleName + @MiscScope @Inject lateinit var presenter: MiscPresenter - fun newInstance() = MiscFragment() + private var binding: FragmentMiscBinding by paste() - @VisibleForTesting internal const val WISEFY_GET_FREQUENCY_REQUEST_CODE = 1 - @VisibleForTesting internal const val WISEFY_GET_IP_REQUEST_CODE = 2 - @VisibleForTesting internal const val WISEFY_GET_NEARBY_ACCESS_POINTS_REQUEST_CODE = 3 - @VisibleForTesting internal const val WISEFY_GET_SAVED_NETWORKS_REQUEST_CODE = 4 + override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { + binding = FragmentMiscBinding.inflate(inflater, container, false) + return binding.root } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - disableWifiBtn.setOnClickListener { + binding.disableWifiBtn.setOnClickListener { presenter.disableWifi() } - enableWifiBtn.setOnClickListener { + binding.enableWifiBtn.setOnClickListener { presenter.enableWifi() } - getCurrentNetworkBtn.setOnClickListener { + binding.getCurrentNetworkBtn.setOnClickListener { presenter.getCurrentNetwork() } - getCurrentNetworkInfoBtn.setOnClickListener { + binding.getCurrentNetworkInfoBtn.setOnClickListener { presenter.getCurrentNetworkInfo() } - getFrequencyBtn.setOnClickListener { + binding.getFrequencyBtn.setOnClickListener { getFrequency() } - getIPBtn.setOnClickListener { + binding.getIPBtn.setOnClickListener { getIP() } - getNearbyAccessPointsBtn.setOnClickListener { + binding.getNearbyAccessPointsBtn.setOnClickListener { getNearbyAccessPoints() } - getSavedNetworksBtn.setOnClickListener { + binding.getSavedNetworksBtn.setOnClickListener { getSavedNetworks() } } @@ -103,6 +115,10 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { * Presenter overrides */ + override fun displayAndroidQWifiMessage() { + displayInfo(R.string.android_q_wifi_message, R.string.android_q_notice) + } + override fun displayWifiDisabled() { displayInfo(R.string.wifi_disabled, R.string.wisefy_action_result) } @@ -119,7 +135,7 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { displayInfo(R.string.failure_enabling_wifi, R.string.wisefy_action_result) } - override fun displayCurrentNetwork(currentNetwork: WifiInfo) { + override fun displayCurrentNetwork(currentNetwork: CurrentNetworkData) { displayInfoFullScreen( getString(R.string.current_network_args, currentNetwork), R.string.wisefy_action_result @@ -130,7 +146,7 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { displayInfo(R.string.no_current_network, R.string.wisefy_action_result) } - override fun displayCurrentNetworkInfo(currentNetworkInfo: NetworkInfo) { + override fun displayCurrentNetworkInfo(currentNetworkInfo: CurrentNetworkInfoData) { displayInfoFullScreen( getString(R.string.current_network_info_args, currentNetworkInfo), R.string.wisefy_action_result @@ -157,7 +173,7 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { displayInfo(R.string.failure_retrieving_ip, R.string.wisefy_action_result) } - override fun displayNearbyAccessPoints(accessPoints: List) { + override fun displayNearbyAccessPoints(accessPoints: List) { displayInfoFullScreen( getString(R.string.access_points_args, accessPoints), R.string.wisefy_action_result @@ -168,7 +184,7 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { displayInfo(R.string.no_access_points_found, R.string.wisefy_action_result) } - override fun displaySavedNetworks(savedNetworks: List) { + override fun displaySavedNetworks(savedNetworks: List) { displayInfoFullScreen( getString(R.string.saved_networks_args, savedNetworks), R.string.wisefy_action_result @@ -179,8 +195,8 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { displayInfo(R.string.no_saved_networks_found, R.string.wisefy_action_result) } - override fun displayWiseFyFailure(@WiseFyCode wiseFyFailureCode: Int) { - displayWiseFyFailureWithCode(wiseFyFailureCode) + override fun displayWisefyAsyncError(throwable: Throwable) { + displayWisefyAsyncErrorDialog(throwable) } /* @@ -189,12 +205,8 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { @Throws(SecurityException::class) private fun getFrequency() { - if (sdkUtil.isAtLeastLollipop()) { - if (checkGetFrequencyPermissions()) { - presenter.getFrequency() - } - } else { - displayInfo(R.string.frequency_lollipop_notice) + if (checkGetFrequencyPermissions()) { + presenter.getFrequency() } } @@ -245,7 +257,7 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { getFrequency() } else { - Log.w(TAG, "Permissions for getting frequency are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for getting frequency are denied") displayPermissionErrorDialog(R.string.permission_error_get_frequency) } } @@ -253,7 +265,7 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { getIP() } else { - Log.w(TAG, "Permissions for getting ip are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for getting ip are denied") displayPermissionErrorDialog(R.string.permission_error_get_ip) } } @@ -261,7 +273,7 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { getNearbyAccessPoints() } else { - Log.w(TAG, "Permissions for getting nearby access points are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for getting nearby access points are denied") displayPermissionErrorDialog(R.string.permission_error_get_nearby_access_points) } } @@ -269,26 +281,16 @@ internal class MiscFragment : BaseFragment(), MiscMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { getSavedNetworks() } else { - Log.w(TAG, "Permissions for getting saved networks are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for getting saved networks are denied") displayPermissionErrorDialog(R.string.permission_error_get_saved_networks) } } else -> { - Log.wtf(TAG, "Weird permission requested, not handled") + WisefySampleLogger.wtf(LOG_TAG, "Weird permission requested, not handled") displayPermissionErrorDialog( getString(R.string.permission_error_unhandled_request_code_args, requestCode) ) } } } - - /* - * Dagger - */ - - @Suppress("unused") - @Module internal interface MiscFragmentModule { - @Binds fun bindMiscModel(impl: MiscModel): MiscMvp.Model - @Binds fun bindMiscPresenter(impl: MiscPresenter): MiscMvp.Presenter - } } diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscModel.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscModel.kt new file mode 100644 index 00000000..4d8bd90f --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscModel.kt @@ -0,0 +1,100 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.misc + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.WisefyApi +import com.isupatches.android.wisefy.callbacks.DisableWifiCallbacks +import com.isupatches.android.wisefy.callbacks.EnableWifiCallbacks +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkInfoCallbacks +import com.isupatches.android.wisefy.callbacks.GetFrequencyCallbacks +import com.isupatches.android.wisefy.callbacks.GetIPCallbacks +import com.isupatches.android.wisefy.callbacks.GetNearbyAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.GetSavedNetworksCallbacks +import com.isupatches.android.wisefy.sample.internal.scaffolding.BaseModel +import javax.inject.Inject + +internal interface MiscModel { + + fun disableWifi(callbacks: DisableWifiCallbacks?) + + fun enableWifi(callbacks: EnableWifiCallbacks?) + + fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?) + + fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?) + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + fun getFrequency(callbacks: GetFrequencyCallbacks?) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getIP(callbacks: GetIPCallbacks?) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getNearbyAccessPoints(callbacks: GetNearbyAccessPointCallbacks?) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?) +} + +@MiscScope +internal class DefaultMiscModel @Inject constructor( + private val wiseFy: WisefyApi +) : BaseModel(), MiscModel { + + override fun disableWifi(callbacks: DisableWifiCallbacks?) { + wiseFy.disableWifi(callbacks) + } + + override fun enableWifi(callbacks: EnableWifiCallbacks?) { + wiseFy.enableWifi(callbacks) + } + + override fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?) { + wiseFy.getCurrentNetwork(callbacks) + } + + override fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?) { + wiseFy.getCurrentNetworkInfo(callbacks) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun getFrequency(callbacks: GetFrequencyCallbacks?) { + wiseFy.getFrequency(callbacks) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getIP(callbacks: GetIPCallbacks?) { + wiseFy.getIP(callbacks) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getNearbyAccessPoints(callbacks: GetNearbyAccessPointCallbacks?) { + return wiseFy.getNearbyAccessPoints(true, callbacks) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?) { + wiseFy.getSavedNetworks() + } +} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/PermissionsModule.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscModule.kt similarity index 60% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/PermissionsModule.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscModule.kt index deb81936..1d19bed2 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/PermissionsModule.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscModule.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.di +package com.isupatches.android.wisefy.sample.ui.misc -import com.isupatches.wisefysample.internal.util.PermissionUtil -import com.isupatches.wisefysample.internal.util.PermissionsUtilImpl import dagger.Binds import dagger.Module +import javax.inject.Scope + +@Scope +@Retention(AnnotationRetention.RUNTIME) +internal annotation class MiscScope @Suppress("unused") -@Module internal interface PermissionsModule { - @Binds fun bindPermissionUtil(impl: PermissionsUtilImpl): PermissionUtil +@Module +internal interface MiscFragmentModule { + @Binds @MiscScope fun bindMiscModel(impl: DefaultMiscModel): MiscModel + @Binds @MiscScope fun bindMiscPresenter(impl: DefaultMiscPresenter): MiscPresenter } diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscPresenter.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscPresenter.kt new file mode 100644 index 00000000..0932a723 --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/misc/MiscPresenter.kt @@ -0,0 +1,268 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.misc + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData +import com.isupatches.android.wisefy.callbacks.DisableWifiCallbacks +import com.isupatches.android.wisefy.callbacks.EnableWifiCallbacks +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkInfoCallbacks +import com.isupatches.android.wisefy.callbacks.GetFrequencyCallbacks +import com.isupatches.android.wisefy.callbacks.GetIPCallbacks +import com.isupatches.android.wisefy.callbacks.GetNearbyAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.GetSavedNetworksCallbacks +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkData +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkInfoData +import com.isupatches.android.wisefy.sample.internal.scaffolding.BasePresenter +import com.isupatches.android.wisefy.sample.internal.scaffolding.Presenter +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData +import javax.inject.Inject + +internal interface MiscPresenter : Presenter { + + fun disableWifi() + + fun enableWifi() + + fun getCurrentNetwork() + + fun getCurrentNetworkInfo() + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getFrequency() + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getIP() + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getNearbyAccessPoints() + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getSavedNetworks() +} + +@MiscScope +internal class DefaultMiscPresenter @Inject constructor( + private val model: MiscModel, +) : BasePresenter(), MiscPresenter { + + /* + * Model call-throughs + */ + + override fun disableWifi() { + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { + model.disableWifi( + callbacks = object : DisableWifiCallbacks { + override fun onFailureDisablingWifi() { + doSafelyWithView { view -> + view.displayFailureDisablingWifi() + } + } + + override fun onWifiDisabled() { + doSafelyWithView { view -> + view.displayWifiDisabled() + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } else { + doSafelyWithView { view -> view.displayAndroidQWifiMessage() } + } + } + + override fun enableWifi() { + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { + model.enableWifi( + callbacks = object : EnableWifiCallbacks { + override fun onFailureEnablingWifi() { + doSafelyWithView { view -> + view.displayFailureEnablingWifi() + } + } + + override fun onWifiEnabled() { + doSafelyWithView { view -> + view.displayWifiEnabled() + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } else { + doSafelyWithView { view -> view.displayAndroidQWifiMessage() } + } + } + + override fun getCurrentNetwork() { + model.getCurrentNetwork( + callbacks = object : GetCurrentNetworkCallbacks { + override fun onNoCurrentNetwork() { + doSafelyWithView { view -> + view.displayNoCurrentNetwork() + } + } + + override fun onCurrentNetworkRetrieved(currentNetwork: CurrentNetworkData) { + doSafelyWithView { view -> + view.displayCurrentNetwork(currentNetwork) + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } + + override fun getCurrentNetworkInfo() { + model.getCurrentNetworkInfo( + callbacks = object : GetCurrentNetworkInfoCallbacks { + override fun onNoCurrentNetworkInfo() { + doSafelyWithView { view -> + view.displayNoCurrentNetworkInfo() + } + } + + override fun onCurrentNetworkInfoRetrieved(currentNetworkInfo: CurrentNetworkInfoData) { + doSafelyWithView { view -> + view.displayCurrentNetworkInfo(currentNetworkInfo) + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun getFrequency() { + model.getFrequency( + callbacks = object : GetFrequencyCallbacks { + override fun onFailureRetrievingFrequency() { + doSafelyWithView { view -> view.displayFailureRetrievingFrequency() } + } + + override fun onFrequencyRetrieved(frequency: Int) { + doSafelyWithView { view -> view.displayFrequency(frequency) } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> view.displayWisefyAsyncError(throwable) } + } + } + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getIP() { + model.getIP( + callbacks = object : GetIPCallbacks { + override fun onFailureRetrievingIP() { + doSafelyWithView { view -> + view.displayFailureRetrievingIP() + } + } + + override fun onIPRetrieved(ip: String) { + doSafelyWithView { view -> + view.displayIP(ip) + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getNearbyAccessPoints() { + model.getNearbyAccessPoints( + callbacks = object : GetNearbyAccessPointCallbacks { + override fun onNearbyAccessPointsRetrieved(accessPoints: List) { + doSafelyWithView { view -> + view.displayNearbyAccessPoints(accessPoints) + } + } + + override fun onNoNearbyAccessPoints() { + doSafelyWithView { view -> + view.displayNoAccessPointsFound() + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getSavedNetworks() { + model.getSavedNetworks( + callbacks = object : GetSavedNetworksCallbacks { + override fun onNoSavedNetworksFound() { + doSafelyWithView { view -> + view.displayNoSavedNetworksFound() + } + } + + override fun onSavedNetworksRetrieved(savedNetworks: List) { + doSafelyWithView { view -> + view.displaySavedNetworks(savedNetworks) + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkFragment.kt new file mode 100644 index 00000000..9790f27b --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkFragment.kt @@ -0,0 +1,150 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.remove + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.content.pm.PackageManager +import android.os.Bundle +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import androidx.annotation.VisibleForTesting +import com.isupatches.android.viewglu.paste +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult +import com.isupatches.android.wisefy.sample.R +import com.isupatches.android.wisefy.sample.databinding.FragmentRemoveNetworkBinding +import com.isupatches.android.wisefy.sample.internal.base.BaseFragment +import com.isupatches.android.wisefy.sample.internal.logging.WisefySampleLogger +import com.isupatches.android.wisefy.sample.internal.util.getTrimmedInput +import com.isupatches.android.wisefy.sample.internal.util.hideKeyboardFrom +import javax.inject.Inject + +@VisibleForTesting internal const val WISEFY_REMOVE_NETWORK_REQUEST_CODE = 1 + +private const val LOG_TAG = "RemoveNetworkFragment" + +internal interface RemoveNetworkView { + fun displayFailureRemovingNetwork(result: RemoveNetworkResult) + fun displayNetworkNotFountToRemove() + fun displayNetworkRemoved(result: RemoveNetworkResult) +} + +internal class RemoveNetworkFragment : BaseFragment(), RemoveNetworkView { + + @RemoveNetworkScope @Inject lateinit var presenter: RemoveNetworkPresenter + @RemoveNetworkScope @Inject lateinit var removeNetworkStore: RemoveNetworkStore + + private var binding: FragmentRemoveNetworkBinding by paste() + + override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { + binding = FragmentRemoveNetworkBinding.inflate(inflater, container, false) + return binding.root + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + + if (savedInstanceState == null) { + restoreUI() + } + + binding.removeNetworkBtn.setOnClickListener { + hideKeyboardFrom(binding.removeNetworkBtn) + removeNetwork() + } + } + + override fun onStart() { + super.onStart() + presenter.attachView(this) + } + + override fun onStop() { + presenter.detachView() + super.onStop() + removeNetworkStore.setLastUsedRegex(binding.networkNameEdt.getTrimmedInput()) + hideKeyboardFrom(binding.removeNetworkBtn) + } + + /* + * View helpers + */ + + private fun restoreUI() { + // Restore edit text value + binding.networkNameEdt.setText(removeNetworkStore.getLastUsedRegex()) + } + + /* + * Presenter callback overrides + */ + + override fun displayNetworkRemoved(result: RemoveNetworkResult) { + displayInfo(getString(R.string.succeeded_removing_network_args, result), R.string.remove_network_result) + } + + override fun displayNetworkNotFountToRemove() { + displayInfo(getString(R.string.network_not_fount_to_remove), R.string.remove_network_result) + } + + override fun displayFailureRemovingNetwork(result: RemoveNetworkResult) { + displayInfo(getString(R.string.failed_removing_network_args, result), R.string.remove_network_result) + } + + override fun displayWisefyAsyncError(throwable: Throwable) { + displayWisefyAsyncErrorDialog(throwable) + } + + /* + * WiseFy helpers + */ + + @Throws(SecurityException::class) + private fun removeNetwork() { + if (checkRemoveNetworkPermissions()) { + presenter.removeNetwork(binding.networkNameEdt.getTrimmedInput()) + } + } + + /* + * Permission helpers + */ + + private fun checkRemoveNetworkPermissions(): Boolean { + return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_REMOVE_NETWORK_REQUEST_CODE) && + isPermissionGranted(CHANGE_WIFI_STATE, WISEFY_REMOVE_NETWORK_REQUEST_CODE) + } + + override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray) { + when (requestCode) { + WISEFY_REMOVE_NETWORK_REQUEST_CODE -> { + if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { + removeNetwork() + } else { + WisefySampleLogger.w(LOG_TAG, "Permissions for remove saved network are denied") + displayPermissionErrorDialog(R.string.permission_error_remove_network) + } + } + else -> { + WisefySampleLogger.wtf(LOG_TAG, "Weird permission requested, not handled") + displayPermissionErrorDialog( + getString(R.string.permission_error_unhandled_request_code_args, requestCode) + ) + } + } + } +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkModel.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkModel.kt new file mode 100644 index 00000000..0f4fc2bd --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkModel.kt @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.remove + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.WisefyApi +import com.isupatches.android.wisefy.callbacks.RemoveNetworkCallbacks +import com.isupatches.android.wisefy.sample.internal.scaffolding.BaseModel +import javax.inject.Inject + +internal interface RemoveNetworkModel { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun removeNetwork( + networkName: String, + callbacks: RemoveNetworkCallbacks? + ) +} + +@RemoveNetworkScope +internal class DefaultRemoveNetworkModel @Inject constructor( + private val wiseFy: WisefyApi +) : BaseModel(), RemoveNetworkModel { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun removeNetwork(networkName: String, callbacks: RemoveNetworkCallbacks?) { + wiseFy.removeNetwork(networkName) + } +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkModule.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkModule.kt new file mode 100644 index 00000000..aaf4e6fc --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkModule.kt @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.remove + +import dagger.Binds +import dagger.Module +import javax.inject.Scope + +@Scope +@Retention(AnnotationRetention.RUNTIME) +internal annotation class RemoveNetworkScope + +@Suppress("unused") +@Module +internal interface RemoveNetworkFragmentModule { + + @Binds + @RemoveNetworkScope + fun bindRemoveNetworkModel(impl: DefaultRemoveNetworkModel): RemoveNetworkModel + + @Binds + @RemoveNetworkScope + fun bindRemoveNetworkPresenter(impl: DefaultRemoveNetworkPresenter): RemoveNetworkPresenter + + @Binds + @RemoveNetworkScope + fun bindRemoveNetworkStore(impl: SharedPreferencesRemoveNetworkStore): RemoveNetworkStore +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkPresenter.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkPresenter.kt new file mode 100644 index 00000000..28593ed2 --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkPresenter.kt @@ -0,0 +1,73 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.remove + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.callbacks.RemoveNetworkCallbacks +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult +import com.isupatches.android.wisefy.sample.internal.scaffolding.BasePresenter +import com.isupatches.android.wisefy.sample.internal.scaffolding.Presenter +import javax.inject.Inject + +internal interface RemoveNetworkPresenter : Presenter { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun removeNetwork(networkName: String) +} + +@RemoveNetworkScope +internal class DefaultRemoveNetworkPresenter @Inject constructor( + private val model: RemoveNetworkModel, +) : BasePresenter(), RemoveNetworkPresenter { + + /* + * Model call-throughs + */ + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun removeNetwork(networkName: String) { + model.removeNetwork( + networkName = networkName, + callbacks = object : RemoveNetworkCallbacks { + override fun onFailureRemovingNetwork(result: RemoveNetworkResult) { + doSafelyWithView { view -> + view.displayFailureRemovingNetwork(result) + } + } + + override fun onNetworkNotFoundToRemove() { + doSafelyWithView { view -> + view.displayNetworkNotFountToRemove() + } + } + + override fun onNetworkRemoved(result: RemoveNetworkResult) { + doSafelyWithView { view -> + view.displayNetworkRemoved(result) + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } +} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/RemoveNetworkStore.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkStore.kt similarity index 64% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/RemoveNetworkStore.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkStore.kt index d33984f3..32bf3ae5 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/RemoveNetworkStore.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/remove/RemoveNetworkStore.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.preferences +package com.isupatches.android.wisefy.sample.ui.remove -import android.content.SharedPreferences +import android.content.Context import androidx.core.content.edit +import com.isupatches.android.wisefy.sample.R +import com.isupatches.android.wisefy.sample.internal.scaffolding.BaseSharedPreferenceStore +import javax.inject.Inject internal interface RemoveNetworkStore { fun clear() @@ -26,9 +29,15 @@ internal interface RemoveNetworkStore { fun setLastUsedRegex(lastUsedRegex: String) } -internal class SharedPreferencesRemoveNetworkStore( - private val sharedPreferences: SharedPreferences -) : RemoveNetworkStore { +@RemoveNetworkScope +internal class SharedPreferencesRemoveNetworkStore @Inject constructor( + context: Context +) : BaseSharedPreferenceStore(), RemoveNetworkStore { + + private val sharedPreferences = getSharedPreferences( + context, + R.string.preferences_remove_network_data + ) override fun clear() { sharedPreferences.edit { clear() } diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchFragment.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchFragment.kt similarity index 63% rename from wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchFragment.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchFragment.kt index 68998d6a..9a6168f4 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchFragment.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchFragment.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,61 +13,71 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.ui.search +package com.isupatches.android.wisefy.sample.ui.search import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE import android.content.pm.PackageManager -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration import android.os.Bundle -import android.util.Log +import android.view.LayoutInflater import android.view.View +import android.view.ViewGroup import android.widget.SeekBar import androidx.annotation.VisibleForTesting -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.base.BaseFragment -import com.isupatches.wisefysample.internal.models.SearchType -import com.isupatches.wisefysample.internal.preferences.SearchStore -import com.isupatches.wisefysample.internal.util.asHtmlSpanned -import com.isupatches.wisefysample.internal.util.getTrimmedInput -import com.isupatches.wisefysample.internal.util.hideKeyboardFrom -import dagger.Binds -import dagger.Module +import com.isupatches.android.viewglu.paste +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData +import com.isupatches.android.wisefy.sample.R +import com.isupatches.android.wisefy.sample.databinding.FragmentSearchBinding +import com.isupatches.android.wisefy.sample.internal.base.BaseFragment +import com.isupatches.android.wisefy.sample.internal.entities.SearchType +import com.isupatches.android.wisefy.sample.internal.logging.WisefySampleLogger +import com.isupatches.android.wisefy.sample.internal.util.asHtmlSpanned +import com.isupatches.android.wisefy.sample.internal.util.getTrimmedInput +import com.isupatches.android.wisefy.sample.internal.util.hideKeyboardFrom +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData import javax.inject.Inject import kotlin.math.max -import kotlinx.android.synthetic.main.fragment_search.filterDupesRdg -import kotlinx.android.synthetic.main.fragment_search.filterDupesTxt -import kotlinx.android.synthetic.main.fragment_search.returnFullListRdg -import kotlinx.android.synthetic.main.fragment_search.searchBtn -import kotlinx.android.synthetic.main.fragment_search.searchRegexEdt -import kotlinx.android.synthetic.main.fragment_search.searchTypeRdg -import kotlinx.android.synthetic.main.fragment_search.timeoutSeek -import kotlinx.android.synthetic.main.fragment_search.timeoutTxt -@Suppress("LargeClass") -internal class SearchFragment : BaseFragment(), SearchMvp.View { - - override val layoutRes = R.layout.fragment_search - - @Inject lateinit var presenter: SearchMvp.Presenter - @Inject lateinit var searchStore: SearchStore - - companion object { - val TAG: String = SearchFragment::class.java.simpleName +@VisibleForTesting internal const val WISEFY_SEARCH_FOR_SAVED_NETWORK_REQUEST_CODE = 1 +@VisibleForTesting internal const val WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE = 2 +@VisibleForTesting internal const val WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE = 3 +@VisibleForTesting internal const val WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE = 4 +@VisibleForTesting internal const val WISEFY_SEARCH_FOR_SSID_REQUEST_CODE = 5 +@VisibleForTesting internal const val WISEFY_SEARCH_FOR_SSIDS_REQUEST_CODE = 6 + +private const val TIMEOUT_MIN = 1 +private const val TIMEOUT_MAX = 60 + +private const val SEEK_MILLI_OFFSET = 1000 + +private const val LOG_TAG = "SearchFragment" + +internal interface SearchView { + fun displaySavedNetwork(savedNetwork: SavedNetworkData?) + fun displaySavedNetworkNotFound() + fun displaySavedNetworks(savedNetworks: List) + fun displayNoSavedNetworksFound() + fun displayAccessPoint(accessPoint: AccessPointData?) + fun displayAccessPointNotFound() + fun displayAccessPoints(accessPoints: List) + fun displayNoAccessPointsFound() + fun displaySSID(ssid: String?) + fun displaySSIDNotFound() + fun displaySSIDs(ssids: List) + fun displayNoSSIDsFound() +} - fun newInstance() = SearchFragment() +@Suppress("LargeClass") +internal class SearchFragment : BaseFragment(), SearchView { - private const val TIMEOUT_MIN = 1 - private const val TIMEOUT_MAX = 60 + @SearchScope @Inject lateinit var presenter: SearchPresenter + @SearchScope @Inject lateinit var searchStore: SearchStore - private const val SEEK_MILLI_OFFSET = 1000 + private var binding: FragmentSearchBinding by paste() - @VisibleForTesting internal const val WISEFY_SEARCH_FOR_SAVED_NETWORK_REQUEST_CODE = 1 - @VisibleForTesting internal const val WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE = 2 - @VisibleForTesting internal const val WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE = 3 - @VisibleForTesting internal const val WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE = 4 - @VisibleForTesting internal const val WISEFY_SEARCH_FOR_SSID_REQUEST_CODE = 5 - @VisibleForTesting internal const val WISEFY_SEARCH_FOR_SSIDS_REQUEST_CODE = 6 + override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { + binding = FragmentSearchBinding.inflate(inflater, container, false) + return binding.root } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { @@ -77,7 +87,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { restoreUI() } - searchTypeRdg.setOnCheckedChangeListener { _, checkedId -> + binding.searchTypeRdg.setOnCheckedChangeListener { _, checkedId -> when (checkedId) { R.id.accessPointRdb -> searchStore.setSearchType(SearchType.ACCESS_POINT) R.id.ssidRdb -> searchStore.setSearchType(SearchType.SSID) @@ -85,28 +95,32 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { } updateUI() } - filterDupesRdg.setOnCheckedChangeListener { _, checkedId -> + binding.filterDupesRdg.setOnCheckedChangeListener { _, checkedId -> when (checkedId) { R.id.yesFilterDupesRdb -> searchStore.setFilterDuplicates(true) else -> searchStore.setFilterDuplicates(false) } } - returnFullListRdg.setOnCheckedChangeListener { _, checkedId -> + binding.returnFullListRdg.setOnCheckedChangeListener { _, checkedId -> when (checkedId) { R.id.yesFullListRdb -> searchStore.setReturnFullList(true) else -> searchStore.setReturnFullList(false) } updateUI() } - searchBtn.setOnClickListener { search() } + binding.searchBtn.setOnClickListener { search() } - with(timeoutSeek) { + with(binding.timeoutSeek) { max = TIMEOUT_MAX setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener { override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) { val timeout = max(TIMEOUT_MIN, progress) searchStore.setTimeout(timeout) - timeoutTxt.text = getString(R.string.timeout_after_x_seconds_args_html, timeout).asHtmlSpanned() + @Suppress("SyntheticAccessor") + binding.timeoutTxt.text = getString( + R.string.timeout_after_x_seconds_args_html, + timeout + ).asHtmlSpanned() } override fun onStartTrackingTouch(seekBar: SeekBar?) { @@ -128,8 +142,8 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { override fun onStop() { presenter.detachView() super.onStop() - searchStore.setLastUsedRegex(searchRegexEdt.getTrimmedInput()) - hideKeyboardFrom(searchBtn) + searchStore.setLastUsedRegex(binding.searchRegexEdt.getTrimmedInput()) + hideKeyboardFrom(binding.searchBtn) } /* @@ -137,23 +151,24 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { */ private fun adjustFilterDupesVisibility(visibility: Int) { - filterDupesTxt.visibility = visibility - filterDupesRdg.visibility = visibility + binding.filterDupesTxt.visibility = visibility + binding.filterDupesRdg.visibility = visibility } private fun adjustTimeoutVisibility(visibility: Int) { - timeoutSeek.visibility = visibility - timeoutTxt.visibility = visibility + binding.timeoutSeek.visibility = visibility + binding.timeoutTxt.visibility = visibility } - private fun getFilterDuplicates(): Boolean = - filterDupesRdg.checkedRadioButtonId == R.id.yesFilterDupesRdb + private fun getFilterDuplicates(): Boolean { + return binding.filterDupesRdg.checkedRadioButtonId == R.id.yesFilterDupesRdb + } - private fun getSelectedTimeout(): Int = timeoutSeek.progress * SEEK_MILLI_OFFSET + private fun getSelectedTimeout(): Int = binding.timeoutSeek.progress * SEEK_MILLI_OFFSET private fun restoreUI() { // Restore edit text value - searchRegexEdt.setText(searchStore.getLastUsedRegex()) + binding.searchRegexEdt.setText(searchStore.getLastUsedRegex()) // Restore checked state val checkedId = when (searchStore.getSearchType()) { @@ -170,7 +185,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { R.id.savedNetworkRdb } } - searchTypeRdg.check(checkedId) + binding.searchTypeRdg.check(checkedId) // Restore return full list val fullListCheckedId = if (searchStore.shouldReturnFullList()) { @@ -178,7 +193,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { } else { R.id.noFullListRdb } - returnFullListRdg.check(fullListCheckedId) + binding.returnFullListRdg.check(fullListCheckedId) // Restore filter duplicates val filterDupesCheckedId = if (searchStore.shouldFilterDuplicates()) { @@ -186,12 +201,12 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { } else { R.id.noFilterDupesRdb } - filterDupesRdg.check(filterDupesCheckedId) + binding.filterDupesRdg.check(filterDupesCheckedId) // Restore timeout val timeout = searchStore.getTimeout() - timeoutSeek.progress = timeout - timeoutTxt.text = getString(R.string.timeout_after_x_seconds_args_html, timeout).asHtmlSpanned() + binding.timeoutSeek.progress = timeout + binding.timeoutTxt.text = getString(R.string.timeout_after_x_seconds_args_html, timeout).asHtmlSpanned() when (searchStore.getSearchType()) { SearchType.SAVED_NETWORK -> adjustTimeoutVisibility(View.INVISIBLE) else -> toggleSeekVisibility() @@ -199,21 +214,21 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { } private fun search() { - when (searchTypeRdg.checkedRadioButtonId) { + when (binding.searchTypeRdg.checkedRadioButtonId) { R.id.accessPointRdb -> { - when (returnFullListRdg.checkedRadioButtonId) { + when (binding.returnFullListRdg.checkedRadioButtonId) { R.id.yesFullListRdb -> searchForAccessPoints() R.id.noFullListRdb -> searchForAccessPoint() } } R.id.savedNetworkRdb -> { - when (returnFullListRdg.checkedRadioButtonId) { + when (binding.returnFullListRdg.checkedRadioButtonId) { R.id.yesFullListRdb -> searchForSavedNetworks() R.id.noFullListRdb -> searchForSavedNetwork() } } R.id.ssidRdb -> { - when (returnFullListRdg.checkedRadioButtonId) { + when (binding.returnFullListRdg.checkedRadioButtonId) { R.id.yesFullListRdb -> searchForSSIDs() R.id.noFullListRdb -> searchForSSID() } @@ -237,14 +252,14 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { } private fun toggleSeekVisibility() { - when (returnFullListRdg.checkedRadioButtonId) { + when (binding.returnFullListRdg.checkedRadioButtonId) { R.id.yesFullListRdb -> adjustTimeoutVisibility(View.INVISIBLE) R.id.noFullListRdb -> adjustTimeoutVisibility(View.VISIBLE) } } private fun updateUI() { - when (searchTypeRdg.checkedRadioButtonId) { + when (binding.searchTypeRdg.checkedRadioButtonId) { R.id.accessPointRdb -> showAccessPointUI() R.id.ssidRdb -> showSSIDUI() R.id.savedNetworkRdb -> showSavedNetworkUI() @@ -259,7 +274,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { private fun searchForAccessPoint() { if (checkSearchForAccessPointPermissions()) { presenter.searchForAccessPoint( - searchRegexEdt.getTrimmedInput(), + binding.searchRegexEdt.getTrimmedInput(), getSelectedTimeout(), getFilterDuplicates() ) @@ -269,35 +284,35 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { @Throws(SecurityException::class) private fun searchForAccessPoints() { if (checkSearchForAccessPointsPermissions()) { - presenter.searchForAccessPoints(searchRegexEdt.getTrimmedInput(), getFilterDuplicates()) + presenter.searchForAccessPoints(binding.searchRegexEdt.getTrimmedInput(), getFilterDuplicates()) } } @Throws(SecurityException::class) private fun searchForSavedNetwork() { if (checkSearchForSavedNetworkPermissions()) { - presenter.searchForSavedNetwork(searchRegexEdt.getTrimmedInput()) + presenter.searchForSavedNetwork(binding.searchRegexEdt.getTrimmedInput()) } } @Throws(SecurityException::class) private fun searchForSavedNetworks() { if (checkSearchForSavedNetworksPermissions()) { - presenter.searchForSavedNetworks(searchRegexEdt.getTrimmedInput()) + presenter.searchForSavedNetworks(binding.searchRegexEdt.getTrimmedInput()) } } @Throws(SecurityException::class) private fun searchForSSID() { if (checkSearchForSSIDPermissions()) { - presenter.searchForSSID(searchRegexEdt.getTrimmedInput(), getSelectedTimeout()) + presenter.searchForSSID(binding.searchRegexEdt.getTrimmedInput(), getSelectedTimeout()) } } @Throws(SecurityException::class) private fun searchForSSIDs() { if (checkSearchForSSIDsPermissions()) { - presenter.searchForSSIDs(searchRegexEdt.getTrimmedInput()) + presenter.searchForSSIDs(binding.searchRegexEdt.getTrimmedInput()) } } @@ -305,7 +320,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { * Presenter callback overrides */ - override fun displaySavedNetwork(savedNetwork: WifiConfiguration) { + override fun displaySavedNetwork(savedNetwork: SavedNetworkData?) { displayInfoFullScreen(getString(R.string.saved_network_args, savedNetwork), R.string.search_result) } @@ -313,7 +328,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { displayInfo(R.string.saved_network_not_found, R.string.search_result) } - override fun displaySavedNetworks(savedNetworks: List) { + override fun displaySavedNetworks(savedNetworks: List) { displayInfoFullScreen(getString(R.string.saved_networks_args, savedNetworks), R.string.search_result) } @@ -321,7 +336,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { displayInfo(R.string.no_saved_networks_found, R.string.search_result) } - override fun displayAccessPoint(accessPoint: ScanResult) { + override fun displayAccessPoint(accessPoint: AccessPointData?) { displayInfoFullScreen(getString(R.string.access_point_args, accessPoint), R.string.search_result) } @@ -329,7 +344,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { displayInfo(R.string.access_point_not_found, R.string.search_result) } - override fun displayAccessPoints(accessPoints: List) { + override fun displayAccessPoints(accessPoints: List) { displayInfoFullScreen(getString(R.string.access_points_args, accessPoints), R.string.search_result) } @@ -337,7 +352,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { displayInfo(R.string.no_access_points_found, R.string.search_result) } - override fun displaySSID(ssid: String) { + override fun displaySSID(ssid: String?) { displayInfoFullScreen(getString(R.string.ssid_args, ssid), R.string.search_result) } @@ -353,22 +368,14 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { displayInfo(R.string.no_ssids_found, R.string.search_result) } - override fun displayWiseFyFailure(wiseFyFailureCode: Int) { - displayWiseFyFailureWithCode(wiseFyFailureCode) + override fun displayWisefyAsyncError(throwable: Throwable) { + displayWisefyAsyncErrorDialog(throwable) } /* * Permission helpers */ - private fun checkSearchForSavedNetworkPermissions(): Boolean { - return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_SEARCH_FOR_SAVED_NETWORK_REQUEST_CODE) - } - - private fun checkSearchForSavedNetworksPermissions(): Boolean { - return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE) - } - private fun checkSearchForAccessPointPermissions(): Boolean { return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE) } @@ -377,6 +384,16 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE) } + private fun checkSearchForSavedNetworkPermissions(): Boolean { + return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_SEARCH_FOR_SAVED_NETWORK_REQUEST_CODE) && + isPermissionGranted(ACCESS_WIFI_STATE, WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE) + } + + private fun checkSearchForSavedNetworksPermissions(): Boolean { + return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE) && + isPermissionGranted(ACCESS_WIFI_STATE, WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE) + } + private fun checkSearchForSSIDPermissions(): Boolean { return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_SEARCH_FOR_SSID_REQUEST_CODE) } @@ -392,7 +409,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { searchForSavedNetwork() } else { - Log.w(TAG, "Permissions for getting a saved network are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for getting a saved network are denied") displayPermissionErrorDialog(R.string.permission_error_search_for_saved_network) } } @@ -400,7 +417,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { searchForSavedNetworks() } else { - Log.w(TAG, "Permissions for getting saved networks are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for getting saved networks are denied") displayPermissionErrorDialog(R.string.permission_error_search_for_saved_networks) } } @@ -408,7 +425,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { searchForAccessPoint() } else { - Log.w(TAG, "Permissions for searching for an access point are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for searching for an access point are denied") displayPermissionErrorDialog(R.string.permission_error_search_for_access_point) } } @@ -416,7 +433,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { searchForAccessPoints() } else { - Log.w(TAG, "Permissions for searching for access points are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for searching for access points are denied") displayPermissionErrorDialog(R.string.permission_error_search_for_access_points) } } @@ -424,7 +441,7 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { searchForSSID() } else { - Log.w(TAG, "Permissions for searching for an SSID are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for searching for an SSID are denied") displayPermissionErrorDialog(R.string.permission_error_search_for_ssid) } } @@ -432,26 +449,16 @@ internal class SearchFragment : BaseFragment(), SearchMvp.View { if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { searchForSSIDs() } else { - Log.w(TAG, "Permissions for searching for SSIDs are denied") + WisefySampleLogger.w(LOG_TAG, "Permissions for searching for SSIDs are denied") displayPermissionErrorDialog(R.string.permission_error_search_for_ssids) } } else -> { - Log.wtf(TAG, "Weird permission requested, not handled") + WisefySampleLogger.wtf(LOG_TAG, "Weird permission requested, not handled") displayPermissionErrorDialog( getString(R.string.permission_error_unhandled_request_code_args, requestCode) ) } } } - - /* - * Dagger - */ - - @Suppress("unused") - @Module internal interface SearchFragmentModule { - @Binds fun bindSearchModel(impl: SearchModel): SearchMvp.Model - @Binds fun bindSearchPresenter(impl: SearchPresenter): SearchMvp.Presenter - } } diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchModel.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchModel.kt new file mode 100644 index 00000000..c8f06e52 --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchModel.kt @@ -0,0 +1,152 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.search + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.WisefyApi +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointsCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDsCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworksCallbacks +import com.isupatches.android.wisefy.sample.internal.scaffolding.BaseModel +import javax.inject.Inject + +internal interface SearchModel { + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointCallbacks? + ) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoints( + regexForSSID: String, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointsCallbacks? + ) + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetwork( + regexForSSID: String, + callbacks: SearchForSavedNetworkCallbacks? + ) + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetworks( + regexForSSID: String, + callbacks: SearchForSavedNetworksCallbacks? + ) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSID( + regexForSSID: String, + timeoutInMillis: Int, + callbacks: SearchForSSIDCallbacks? + ) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSIDs( + regexForSSID: String, + callbacks: SearchForSSIDsCallbacks? + ) +} + +@SearchScope +internal class DefaultSearchModel @Inject constructor( + private val wisefy: WisefyApi +) : BaseModel(), SearchModel { + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointCallbacks? + ) { + wisefy.searchForAccessPoint( + regexForSSID = regexForSSID, + timeoutInMillis = timeoutInMillis, + filterDuplicates = filterDuplicates, + callbacks = callbacks + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoints( + regexForSSID: String, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointsCallbacks? + ) { + wisefy.searchForAccessPoints( + regexForSSID = regexForSSID, + filterDuplicates = filterDuplicates, + callbacks = callbacks + ) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork( + regexForSSID: String, + callbacks: SearchForSavedNetworkCallbacks? + ) { + wisefy.searchForSavedNetwork( + regexForSSID = regexForSSID, + callbacks = callbacks + ) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks( + regexForSSID: String, + callbacks: SearchForSavedNetworksCallbacks? + ) { + wisefy.searchForSavedNetworks( + regexForSSID = regexForSSID, + callbacks = callbacks + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSID( + regexForSSID: String, + timeoutInMillis: Int, + callbacks: SearchForSSIDCallbacks? + ) { + wisefy.searchForSSID( + regexForSSID = regexForSSID, + timeoutInMillis = timeoutInMillis, + callbacks = callbacks + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSIDs( + regexForSSID: String, + callbacks: SearchForSSIDsCallbacks? + ) { + wisefy.searchForSSIDs( + regexForSSID = regexForSSID, + callbacks = callbacks + ) + } +} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/annotations/CallingThread.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchModule.kt similarity index 51% rename from wisefy/src/main/java/com/isupatches/wisefy/annotations/CallingThread.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchModule.kt index fbf6e767..aa9eeba6 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/annotations/CallingThread.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchModule.kt @@ -1,5 +1,5 @@ /* - * Copyright 2018 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefy.annotations +package com.isupatches.android.wisefy.sample.ui.search -import java.lang.annotation.Inherited +import dagger.Binds +import dagger.Module +import javax.inject.Scope -/** - * Denotes that a method is executed on the calling thread. - * - * @author Patches - * @since 3.0 - */ -@MustBeDocumented -@Target(AnnotationTarget.FUNCTION) -@Inherited +@Scope @Retention(AnnotationRetention.RUNTIME) -internal annotation class CallingThread +internal annotation class SearchScope + +@Suppress("unused") +@Module +internal interface SearchFragmentModule { + @Binds + @SearchScope + fun bindSearchModel(impl: DefaultSearchModel): SearchModel + + @Binds + @SearchScope + fun bindSearchPresenter(impl: DefaultSearchPresenter): SearchPresenter + + @Binds + @SearchScope + fun bindSearchStore(impl: SharedPreferencesSearchStore): SearchStore +} diff --git a/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchPresenter.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchPresenter.kt new file mode 100644 index 00000000..4c62bc2d --- /dev/null +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchPresenter.kt @@ -0,0 +1,225 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.sample.ui.search + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointsCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDsCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworksCallbacks +import com.isupatches.android.wisefy.sample.internal.scaffolding.BasePresenter +import com.isupatches.android.wisefy.sample.internal.scaffolding.Presenter +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData +import javax.inject.Inject + +internal interface SearchPresenter : Presenter { + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoint(regexForSSID: String, timeoutInMillis: Int, filterDuplicates: Boolean) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoints(regexForSSID: String, filterDuplicates: Boolean) + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetwork(regexForSSID: String) + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetworks(regexForSSID: String) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSID(regexForSSID: String, timeoutInMillis: Int) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSIDs(regexForSSID: String) +} + +@SearchScope +internal class DefaultSearchPresenter @Inject constructor( + private val model: SearchModel +) : BasePresenter(), SearchPresenter { + + /* + * Model call-throughs + */ + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean + ) { + model.searchForAccessPoint( + regexForSSID = regexForSSID, + timeoutInMillis = timeoutInMillis, + filterDuplicates = filterDuplicates, + callbacks = object : SearchForAccessPointCallbacks { + override fun onAccessPointFound(accessPoint: AccessPointData) { + doSafelyWithView { view -> + view.displayAccessPoint(accessPoint) + } + } + + override fun onNoAccessPointFound() { + doSafelyWithView { view -> + view.displayAccessPointNotFound() + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoints(regexForSSID: String, filterDuplicates: Boolean) { + model.searchForAccessPoints( + regexForSSID = regexForSSID, + filterDuplicates = filterDuplicates, + callbacks = object : SearchForAccessPointsCallbacks { + override fun onAccessPointsFound(accessPoints: List) { + doSafelyWithView { view -> + view.displayAccessPoints(accessPoints) + } + } + + override fun onNoAccessPointsFound() { + doSafelyWithView { view -> + view.displayNoAccessPointsFound() + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork(regexForSSID: String) { + model.searchForSavedNetwork( + regexForSSID = regexForSSID, + callbacks = object : SearchForSavedNetworkCallbacks { + override fun onSavedNetworkNotFound() { + doSafelyWithView { view -> + view.displaySavedNetworkNotFound() + } + } + + override fun onSavedNetworkRetrieved(savedNetwork: SavedNetworkData) { + doSafelyWithView { view -> + view.displaySavedNetwork(savedNetwork) + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks(regexForSSID: String) { + model.searchForSavedNetworks( + regexForSSID = regexForSSID, + callbacks = object : SearchForSavedNetworksCallbacks { + override fun onNoSavedNetworksFound() { + doSafelyWithView { view -> + view.displayNoSavedNetworksFound() + } + } + + override fun onSavedNetworksRetrieved(savedNetworks: List) { + doSafelyWithView { view -> + view.displaySavedNetworks(savedNetworks) + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSID(regexForSSID: String, timeoutInMillis: Int) { + model.searchForSSID( + regexForSSID = regexForSSID, + timeoutInMillis = timeoutInMillis, + callbacks = object : SearchForSSIDCallbacks { + override fun onSSIDFound(ssid: String) { + doSafelyWithView { view -> + view.displaySSID(ssid) + } + } + + override fun onSSIDNotFound() { + doSafelyWithView { view -> + view.displaySSIDNotFound() + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSIDs(regexForSSID: String) { + model.searchForSSIDs( + regexForSSID = regexForSSID, + callbacks = object : SearchForSSIDsCallbacks { + override fun onSSIDsFound(ssids: List) { + doSafelyWithView { view -> + view.displaySSIDs(ssids) + } + } + + override fun onNoSSIDsFound() { + doSafelyWithView { view -> + view.displayNoSSIDsFound() + } + } + + override fun onWisefyAsyncFailure(throwable: Throwable) { + doSafelyWithView { view -> + view.displayWisefyAsyncError(throwable) + } + } + } + ) + } +} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SearchStore.kt b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchStore.kt similarity index 82% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SearchStore.kt rename to app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchStore.kt index 82dff2de..1e013074 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SearchStore.kt +++ b/app/src/main/java/com/isupatches/android/wisefy/sample/ui/search/SearchStore.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.preferences +package com.isupatches.android.wisefy.sample.ui.search -import android.content.SharedPreferences +import android.content.Context import androidx.annotation.VisibleForTesting import androidx.core.content.edit -import com.isupatches.wisefysample.internal.models.SearchType +import com.isupatches.android.wisefy.sample.R +import com.isupatches.android.wisefy.sample.internal.entities.SearchType +import com.isupatches.android.wisefy.sample.internal.scaffolding.BaseSharedPreferenceStore +import javax.inject.Inject @VisibleForTesting internal const val PREF_SEARCH_TYPE = "search type" @VisibleForTesting internal const val PREF_RETURN_FULL_LIST = "return full list" @@ -41,9 +44,15 @@ internal interface SearchStore { fun setTimeout(timeout: Int) } -internal class SharedPreferencesSearchStore( - private val sharedPreferences: SharedPreferences -) : SearchStore { +@SearchScope +internal class SharedPreferencesSearchStore @Inject constructor( + context: Context +) : BaseSharedPreferenceStore(), SearchStore { + + private val sharedPreferences = getSharedPreferences( + context, + R.string.preferences_search_data + ) override fun clear() { sharedPreferences.edit { clear() } diff --git a/wisefysample/src/main/res/drawable/button_pressed.xml b/app/src/main/res/drawable/button_pressed.xml similarity index 100% rename from wisefysample/src/main/res/drawable/button_pressed.xml rename to app/src/main/res/drawable/button_pressed.xml diff --git a/wisefysample/src/main/res/drawable/button_selector.xml b/app/src/main/res/drawable/button_selector.xml similarity index 100% rename from wisefysample/src/main/res/drawable/button_selector.xml rename to app/src/main/res/drawable/button_selector.xml diff --git a/wisefysample/src/main/res/drawable/button_unpressed.xml b/app/src/main/res/drawable/button_unpressed.xml similarity index 100% rename from wisefysample/src/main/res/drawable/button_unpressed.xml rename to app/src/main/res/drawable/button_unpressed.xml diff --git a/wisefysample/src/main/res/drawable/ic_add_circle.xml b/app/src/main/res/drawable/ic_add_circle.xml similarity index 100% rename from wisefysample/src/main/res/drawable/ic_add_circle.xml rename to app/src/main/res/drawable/ic_add_circle.xml diff --git a/wisefysample/src/main/res/drawable/ic_apps.xml b/app/src/main/res/drawable/ic_apps.xml similarity index 100% rename from wisefysample/src/main/res/drawable/ic_apps.xml rename to app/src/main/res/drawable/ic_apps.xml diff --git a/wisefysample/src/main/res/drawable/ic_home.xml b/app/src/main/res/drawable/ic_home.xml similarity index 100% rename from wisefysample/src/main/res/drawable/ic_home.xml rename to app/src/main/res/drawable/ic_home.xml diff --git a/wisefysample/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml similarity index 100% rename from wisefysample/src/main/res/drawable/ic_launcher_background.xml rename to app/src/main/res/drawable/ic_launcher_background.xml diff --git a/wisefysample/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml similarity index 100% rename from wisefysample/src/main/res/drawable/ic_launcher_foreground.xml rename to app/src/main/res/drawable/ic_launcher_foreground.xml diff --git a/wisefysample/src/main/res/drawable/ic_logo.xml b/app/src/main/res/drawable/ic_logo.xml similarity index 100% rename from wisefysample/src/main/res/drawable/ic_logo.xml rename to app/src/main/res/drawable/ic_logo.xml diff --git a/wisefysample/src/main/res/drawable/ic_remove_circle.xml b/app/src/main/res/drawable/ic_remove_circle.xml similarity index 100% rename from wisefysample/src/main/res/drawable/ic_remove_circle.xml rename to app/src/main/res/drawable/ic_remove_circle.xml diff --git a/wisefysample/src/main/res/drawable/ic_search.xml b/app/src/main/res/drawable/ic_search.xml similarity index 100% rename from wisefysample/src/main/res/drawable/ic_search.xml rename to app/src/main/res/drawable/ic_search.xml diff --git a/wisefysample/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml similarity index 85% rename from wisefysample/src/main/res/layout/activity_main.xml rename to app/src/main/res/layout/activity_main.xml index 68cf1f08..86f627cb 100644 --- a/wisefysample/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -24,14 +24,18 @@ - + app:layout_constraintTop_toBottomOf="@id/toolbar" + /> diff --git a/wisefysample/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml similarity index 98% rename from wisefysample/src/main/res/layout/fragment_main.xml rename to app/src/main/res/layout/fragment_main.xml index 0b3dd16f..485e9fe0 100644 --- a/wisefysample/src/main/res/layout/fragment_main.xml +++ b/app/src/main/res/layout/fragment_main.xml @@ -18,8 +18,8 @@ android:layout_marginEnd="@dimen/margin_big" android:layout_marginBottom="@dimen/margin_small" android:src="@drawable/ic_logo" - android:tint="@color/colorPrimary" android:contentDescription="@string/content_description_logo" + app:tint="@color/colorPrimary" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/wisefysample/src/main/res/layout/fragment_misc.xml b/app/src/main/res/layout/fragment_misc.xml similarity index 100% rename from wisefysample/src/main/res/layout/fragment_misc.xml rename to app/src/main/res/layout/fragment_misc.xml diff --git a/wisefysample/src/main/res/layout/fragment_remove.xml b/app/src/main/res/layout/fragment_remove_network.xml similarity index 100% rename from wisefysample/src/main/res/layout/fragment_remove.xml rename to app/src/main/res/layout/fragment_remove_network.xml diff --git a/wisefysample/src/main/res/layout/fragment_search.xml b/app/src/main/res/layout/fragment_search.xml similarity index 100% rename from wisefysample/src/main/res/layout/fragment_search.xml rename to app/src/main/res/layout/fragment_search.xml diff --git a/wisefysample/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml similarity index 81% rename from wisefysample/src/main/res/menu/menu_main.xml rename to app/src/main/res/menu/menu_main.xml index 983db6bc..c5bd49a0 100644 --- a/wisefysample/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -3,38 +3,38 @@ xmlns:app="http://schemas.android.com/apk/res-auto"> - \ No newline at end of file + diff --git a/wisefysample/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from wisefysample/src/main/res/mipmap-anydpi-v26/ic_launcher.xml rename to app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/wisefysample/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from wisefysample/src/main/res/mipmap-hdpi/ic_launcher.png rename to app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/wisefysample/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from wisefysample/src/main/res/mipmap-mdpi/ic_launcher.png rename to app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/wisefysample/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from wisefysample/src/main/res/mipmap-xhdpi/ic_launcher.png rename to app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/wisefysample/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from wisefysample/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/wisefysample/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from wisefysample/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/app/src/main/res/navigation/main_nav_graph.xml b/app/src/main/res/navigation/main_nav_graph.xml new file mode 100644 index 00000000..b7513827 --- /dev/null +++ b/app/src/main/res/navigation/main_nav_graph.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + diff --git a/wisefysample/src/main/res/values/add_network.xml b/app/src/main/res/values/add_network.xml similarity index 63% rename from wisefysample/src/main/res/values/add_network.xml rename to app/src/main/res/values/add_network.xml index 942c399f..c4525b1c 100644 --- a/wisefysample/src/main/res/values/add_network.xml +++ b/app/src/main/res/values/add_network.xml @@ -5,19 +5,19 @@ Add Network - WPA2 - WEP Open + WPA2 + WPA3 Add Network Result - Failure adding network. WifiManager return: %d - Network added. Id: %d, Config: %s + Succeeded adding network. Result: %s + Failure adding network. Result: %s Permissions for adding an open network are denied - Permissions for adding a WEP network are denied Permissions for adding a WPA2 network are denied + Permissions for adding a WPA3 network are denied \ No newline at end of file diff --git a/wisefysample/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml similarity index 100% rename from wisefysample/src/main/res/values/colors.xml rename to app/src/main/res/values/colors.xml diff --git a/wisefysample/src/main/res/values/content_descriptions.xml b/app/src/main/res/values/content_descriptions.xml similarity index 100% rename from wisefysample/src/main/res/values/content_descriptions.xml rename to app/src/main/res/values/content_descriptions.xml diff --git a/wisefysample/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml similarity index 100% rename from wisefysample/src/main/res/values/dimens.xml rename to app/src/main/res/values/dimens.xml diff --git a/wisefysample/src/main/res/values/misc.xml b/app/src/main/res/values/misc.xml similarity index 94% rename from wisefysample/src/main/res/values/misc.xml rename to app/src/main/res/values/misc.xml index 4f783f57..b842a87f 100644 --- a/wisefysample/src/main/res/values/misc.xml +++ b/app/src/main/res/values/misc.xml @@ -12,7 +12,7 @@ Get Saved Networks - Retrieving network frequency is a Lollipop and above feature. + WPA3 networks are not supported until Android Q WiseFy Action Result diff --git a/wisefysample/src/main/res/values/nav.xml b/app/src/main/res/values/nav.xml similarity index 100% rename from wisefysample/src/main/res/values/nav.xml rename to app/src/main/res/values/nav.xml diff --git a/wisefysample/src/main/res/values/preferences.xml b/app/src/main/res/values/preferences.xml similarity index 61% rename from wisefysample/src/main/res/values/preferences.xml rename to app/src/main/res/values/preferences.xml index 9f7cd992..9756d194 100644 --- a/wisefysample/src/main/res/values/preferences.xml +++ b/app/src/main/res/values/preferences.xml @@ -1,12 +1,12 @@ - com.isupatches.wisefysample.app.add_network_data + com.isupatches.android.wisefysample.app.add_network_data - com.isupatches.wisefysample.app.remove_network_data + com.isupatches.android.wisefysample.app.remove_network_data - com.isupatches.wisefysample.app.search_data + com.isupatches.android.wisefysample.app.search_data \ No newline at end of file diff --git a/app/src/main/res/values/remove_network.xml b/app/src/main/res/values/remove_network.xml new file mode 100644 index 00000000..0724e563 --- /dev/null +++ b/app/src/main/res/values/remove_network.xml @@ -0,0 +1,17 @@ + + + + + Remove Network + + + Remove Network Result + + Network not found to remove + Succeeded removing network. Result: %s + Failed removing network. Result: %s + + + Permissions for removing network are denied + + diff --git a/wisefysample/src/main/res/values/search.xml b/app/src/main/res/values/search.xml similarity index 100% rename from wisefysample/src/main/res/values/search.xml rename to app/src/main/res/values/search.xml diff --git a/wisefysample/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml similarity index 63% rename from wisefysample/src/main/res/values/strings.xml rename to app/src/main/res/values/strings.xml index b6cb320c..a05c41ae 100644 --- a/wisefysample/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,11 +1,11 @@ - WiseFy Sample + Wisefy Sample - WiseFy + Wisefy - Explore the various uses for WiseFy by poking around this sample app based on MVP architecture. + Explore the various uses for Wisefy by poking around this sample app based on MVP architecture. @@ -17,8 +17,8 @@ OK Info - WiseFy Error - An error occurred with WiseFy. Error code: %d + Wisefy Async Error + An async error occurred with Wisefy. Exception message: %s Access points: %s No access points found @@ -31,5 +31,7 @@ Unhandled permission requested. Request code: %d + Starting with Android Q, applications are not allowed to enable or disable Wi-Fi + Android Q Notice diff --git a/wisefysample/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml similarity index 100% rename from wisefysample/src/main/res/values/styles.xml rename to app/src/main/res/values/styles.xml diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 1687729e..00000000 --- a/build.gradle +++ /dev/null @@ -1,151 +0,0 @@ -buildscript { - - project.ext { - agp_version = '3.5.3' - bintray_version = '1.8.4' - cpd_version = '3.1' - dokka_version = '0.9.18' - dexcount_version = '1.0.0' - jacoco_version = '0.8.5' - kotlin_version = "1.3.61" - maven_version = '2.1' - } - - repositories { - jcenter() - google() - maven { url "https://plugins.gradle.org/m2/" } - } - - dependencies { - classpath "com.android.tools.build:gradle:$agp_version" - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - - // Static Analysis - classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:$dexcount_version" - classpath "de.aaschmid:gradle-cpd-plugin:$cpd_version" - - // Code Coverage - classpath "org.jacoco:org.jacoco.core:$jacoco_version" - classpath "org.jacoco:org.jacoco.agent:$jacoco_version" - classpath "org.jacoco:org.jacoco.report:$jacoco_version" - - // Publishing - classpath "com.github.dcendents:android-maven-gradle-plugin:$maven_version" - classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintray_version" - classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:$dokka_version" - } -} - -plugins { - id "io.gitlab.arturbosch.detekt" version "1.2.2" - id "org.jlleitschuh.gradle.ktlint" version "9.1.1" -} - -apply from: rootProject.file("$rootProject.projectDir/gradle/versions.gradle") - -apply from: rootProject.file("$rootProject.projectDir/gradle/ktlint.gradle") -apply from: rootProject.file("$rootProject.projectDir/gradle/static-analysis.gradle") - -apply from: rootProject.file("$rootProject.projectDir/gradle/code-coverage.gradle") - -subprojects { - apply plugin: 'org.jetbrains.dokka-android' - apply plugin: "org.jlleitschuh.gradle.ktlint" - - // Static Analysis - apply from: rootProject.file("$rootProject.projectDir/gradle/detekt.gradle") - apply from: rootProject.file("$rootProject.projectDir/gradle/cpd.gradle") - apply from: rootProject.file("$rootProject.projectDir/gradle/pmd.gradle") - - // Code Coverage - apply from: rootProject.file("$rootProject.projectDir/gradle/jacoco.gradle") - - // Publishing - apply from: rootProject.file("$rootProject.projectDir/gradle/dokka.gradle") -} - -allprojects { - repositories { - jcenter() - google() - } -} - -task clean(type: Delete) { - outputs.upToDateWhen { false } - - delete rootProject.buildDir -} - -/** - * Improve build server performance by allowing disabling of pre-dexing - * (see http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance.) - */ -project.ext.preDexLibs = !project.hasProperty('disablePreDex') - -subprojects { - project.plugins.whenPluginAdded { final plugin -> - if (rootProject.ext.has('preDexLibs')) { - if ("com.android.build.gradle.AppPlugin" == plugin.class.name) { - project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs - } else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) { - project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs - } - } - } -} - -ext { - travisBuild = System.getenv("TRAVIS") == "true" - // allows for -Dpre-dex=false to be set - preDexEnabled = "true" == System.getProperty("pre-dex", "true") - - // Bintray and POM Details - GROUP = "com.isupatches" - - BINTRAY_REPO = "Maven" - BINTRAY_NAME = "wisefy" - - LIBRARY_DESCRIPTION = "Wrapper around WifiManager and ConfigurationManager for Android" - - POM_PACKAGING = "aar" - POM_DESCRIPTION = "wisefy" - POM_URL = "https://github.com/isuPatches/WiseFy" - - POM_SCM_URL = "https://github.com/isuPatches/WiseFy" - POM_SCM_ISSUE_URL = 'https://github.com/isuPatches/WiseFy/issues' - POM_SCM_CONNECTION = "scm:git:https://github.com/isuPatches/WiseFy.git" - POM_SCM_DEV_CONNECTION = "scm:git:git@github.com:isuPatches/WiseFy.git" - - POM_LICENSE_NAME = "The Apache Software License, Version 2.0" - POM_LICENSE_URL = "http://www.apache.org/licenses/LICENSE-2.0.txt" - POM_LICENSE_DIST = "repo" - ALL_LICENSES = ["Apache-2.0"] - - POM_DEVELOPER_ID = "isuPatches" - POM_DEVELOPER_NAME = "Patches Klinefelter" - POM_DEVELOPER_EMAIL = "isuPatches@yahoo.com" - - // Common build version details - BUILD_TOOLS_VERSION = '29.0.2' - MAX_SDK_VERSION = 28 - MIN_SDK_VERSION = 16 - VERSION_CODE = 15 - VERSION_NAME = "4.1.0" -} - -task makeGoodChoices { - group = "verification" - - outputs.upToDateWhen { false } - - dependsOn 'staticAnalysisSanityCheck', - ':wisefy:jacocoDebugUnitTest', ':wisefysample:jacocoDebugUnitTest' - doLast { - println "\n#############################################" + - "\n# All checks passed! You are doing so good! #" + - "\n# You may now push the awesome to origin :) #" + - "\n#############################################" - } -} diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 00000000..5d4e3040 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,101 @@ +import org.gradle.api.tasks.testing.logging.TestExceptionFormat +import org.gradle.api.tasks.testing.logging.TestLogEvent +import org.jetbrains.dokka.gradle.DokkaTask +import org.jetbrains.dokka.Platform.jvm +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + +buildscript { + + repositories { + google() + mavenCentral() + maven(url = "https://plugins.gradle.org/m2/") + } + + dependencies { + val versions = com.isupatches.android.wisefy.build.Versions + classpath("com.android.tools.build:gradle:${versions.AGP}") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.KOTLIN}") + + /** + * Ideally this would be migrated out of the project level build.gradle.kts to the [DocumentationPlugin], + * but currently the buildSrc directory cannot see [DokkaTask] or [jvm] and unsure why. + */ + classpath("org.jetbrains.dokka:dokka-gradle-plugin:${versions.DOKKA}") + } +} + +allprojects { + repositories { + google() + mavenCentral() + maven("https://oss.sonatype.org/content/repositories/snapshots") + } + + tasks.withType(Test::class).configureEach { + /* + * Run tests in parallel (https://docs.gradle.org/nightly/userguide/performance.html). + * Must be less than the number of CPU cores. + */ + maxParallelForks = Runtime.getRuntime().availableProcessors().div(2) + + testLogging { + // Log events + events = setOf( + TestLogEvent.STARTED, + TestLogEvent.FAILED, + TestLogEvent.SKIPPED, + TestLogEvent.PASSED + ) + + exceptionFormat = TestExceptionFormat.FULL + showExceptions = true + showCauses = true + showStackTraces = true + } + } +} + +subprojects { + // Static Analysis + apply(from = "${rootProject.projectDir}/gradle/cpd.gradle.kts") + apply(from = "${rootProject.projectDir}/gradle/detekt.gradle.kts") + apply(from = "${rootProject.projectDir}/gradle/dexcount.gradle.kts") + apply(from = "${rootProject.projectDir}/gradle/ktlint.gradle.kts") + + // Code coverage + apply(from = "${rootProject.projectDir}/gradle/jacoco.gradle.kts") + + tasks.withType { + kotlinOptions.jvmTarget = "${JavaVersion.VERSION_1_8}" + } + + /** + * Ideally this would be migrated out of the project level build.gradle.kts to the [DocumentationPlugin], + * but currently the buildSrc directory cannot see [DokkaTask] or [jvm] and unsure why. + */ + tasks.withType().configureEach { + outputDirectory.set(rootProject.projectDir.resolve("documentation")) + moduleName.set(project.name) + suppressObviousFunctions.set(false) + dokkaSourceSets { + configureEach { + offlineMode.set(false) + includeNonPublic.set(true) + skipDeprecated.set(false) + reportUndocumented.set(true) + skipEmptyPackages.set(false) + platform.set(jvm) + jdkVersion.set(8) + noStdlibLink.set(false) + noJdkLink.set(false) + noAndroidSdkLink.set(false) + } + } + } + + configurations.all { + // Check for updates every build + resolutionStrategy.cacheChangingModulesFor(0, "seconds") + } +} diff --git a/buildSrc/.gitignore b/buildSrc/.gitignore new file mode 100644 index 00000000..796b96d1 --- /dev/null +++ b/buildSrc/.gitignore @@ -0,0 +1 @@ +/build diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts new file mode 100644 index 00000000..3b36a76f --- /dev/null +++ b/buildSrc/build.gradle.kts @@ -0,0 +1,12 @@ +plugins { + `kotlin-dsl` +} + +repositories { + google() + mavenCentral() +} + +dependencies { + implementation("com.android.tools.build:gradle:4.2.2") +} diff --git a/buildSrc/settings.gradle b/buildSrc/settings.gradle new file mode 100644 index 00000000..2df1179c --- /dev/null +++ b/buildSrc/settings.gradle @@ -0,0 +1 @@ +rootProject.buildFileName = 'build.gradle.kts' diff --git a/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Android.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Android.kt new file mode 100644 index 00000000..cc099936 --- /dev/null +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Android.kt @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.build + +import com.android.build.gradle.internal.dsl.BuildType +import com.android.build.gradle.internal.dsl.SigningConfig +import org.gradle.api.Action +import org.gradle.api.NamedDomainObjectContainer + +fun NamedDomainObjectContainer.debug( + action: Action +): SigningConfig = getByName("debug", action) + +fun NamedDomainObjectContainer.release( + action: Action +): SigningConfig = create("release", action) + +fun NamedDomainObjectContainer.debug( + action: Action +): BuildType = getByName("debug", action) + +fun NamedDomainObjectContainer.release( + action: Action +): BuildType = getByName("release", action) diff --git a/wisefy/src/main/java/com/isupatches/wisefy/annotations/Async.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/BuildVersions.kt similarity index 61% rename from wisefy/src/main/java/com/isupatches/wisefy/annotations/Async.kt rename to buildSrc/src/main/java/com/isupatches/android/wisefy/build/BuildVersions.kt index 331a7dc0..2b14a576 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/annotations/Async.kt +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/BuildVersions.kt @@ -1,5 +1,5 @@ /* - * Copyright 2018 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefy.annotations +package com.isupatches.android.wisefy.build -import java.lang.annotation.Inherited +object BuildVersions { + const val BUILD_TOOLS: String = "30.0.3" -/** - * Denotes that a method is asynchronous with callbacks. - * - * @author Patches - * @since 3.0 - */ -@MustBeDocumented -@Target(AnnotationTarget.FUNCTION) -@Inherited -@Retention(AnnotationRetention.RUNTIME) -internal annotation class Async + const val COMPILE_SDK: Int = 30 + const val TARGET_SDK: Int = 30 + const val MIN_SDK: Int = 23 + + const val MODULE_VERSION_CODE: Int = 16 + const val MODULE_VERSION_NAME: String = "5.0.0-RC1" +} diff --git a/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Dependencies.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Dependencies.kt new file mode 100644 index 00000000..43e4faa1 --- /dev/null +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Dependencies.kt @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.build + +object Dependencies { + + object AndroidX { + const val ANNOTATION: String = "androidx.annotation:annotation:${Versions.ANDROIDX_ANNOTATION}" + const val APPCOMPAT: String = "androidx.appcompat:appcompat:${Versions.ANDROIDX_APPCOMPAT}" + const val CONSTRAINT_LAYOUT: String = "androidx.constraintlayout:constraintlayout:" + + Versions.ANDROIDX_CONSTRAINT_LAYOUT + const val CORE_KTX: String = "androidx.core:core-ktx:${Versions.ANDROIDX_CORE_KTX}" + + object Lifecycle { + const val RUNTIME: String = "androidx.lifecycle:lifecycle-runtime:${Versions.ANDROIDX_LIFECYCLE}" + const val COMPILER: String = "androidx.lifecycle:lifecycle-compiler:${Versions.ANDROIDX_LIFECYCLE}" + } + + object Navigation { + const val FRAGMENT = "androidx.navigation:navigation-fragment:${Versions.ANDROIDX_NAVIGATION}" + const val UI ="androidx.navigation:navigation-ui:${Versions.ANDROIDX_NAVIGATION}" + } + } + + object Kotlin { + const val STD_LIB: String = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.KOTLIN}" + const val COROUTINES: String = "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.COROUTINES}" + } + + object Google { + const val MATERIAL: String = "com.google.android.material:material:${Versions.GOOGLE_MATERIAL}" + } + + object Dagger { + const val CORE = "com.google.dagger:dagger:${Versions.DAGGER}" + const val COMPILER = "com.google.dagger:dagger-compiler:${Versions.DAGGER}" + const val ANDROID_SUPPORT = "com.google.dagger:dagger-android-support:${Versions.DAGGER}" + const val ANDROID_PROCESSOR = "com.google.dagger:dagger-android-processor:${Versions.DAGGER}" + } + + const val VIEWGLU = "com.isupatches.android:viewglu:${Versions.VIEWGLU_VERSION}" +} diff --git a/buildSrc/src/main/java/com/isupatches/android/wisefy/build/DependencyConstants.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/DependencyConstants.kt new file mode 100644 index 00000000..655f136c --- /dev/null +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/DependencyConstants.kt @@ -0,0 +1,21 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.build + +object DependencyConstants { + const val IMPLEMENTATION: String = "implementation" + const val KAPT: String = "kapt" +} diff --git a/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Groupings.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Groupings.kt new file mode 100644 index 00000000..4187c371 --- /dev/null +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Groupings.kt @@ -0,0 +1,35 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.build + +import org.gradle.api.artifacts.dsl.DependencyHandler + +fun DependencyHandler.dagger() { + add(DependencyConstants.IMPLEMENTATION, Dependencies.Dagger.CORE) + add(DependencyConstants.KAPT, Dependencies.Dagger.COMPILER) + add(DependencyConstants.IMPLEMENTATION, Dependencies.Dagger.ANDROID_SUPPORT) + add(DependencyConstants.KAPT, Dependencies.Dagger.ANDROID_PROCESSOR) +} + +fun DependencyHandler.lifecycle() { + add(DependencyConstants.IMPLEMENTATION, Dependencies.AndroidX.Lifecycle.RUNTIME) + add(DependencyConstants.KAPT, Dependencies.AndroidX.Lifecycle.COMPILER) +} + +fun DependencyHandler.navigation() { + add(DependencyConstants.IMPLEMENTATION, Dependencies.AndroidX.Navigation.FRAGMENT) + add(DependencyConstants.IMPLEMENTATION, Dependencies.AndroidX.Navigation.UI) +} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SharedPreferenceKeys.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/PublishingConstants.kt similarity index 77% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SharedPreferenceKeys.kt rename to buildSrc/src/main/java/com/isupatches/android/wisefy/build/PublishingConstants.kt index cef8763d..f3c40977 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SharedPreferenceKeys.kt +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/PublishingConstants.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.preferences +package com.isupatches.android.wisefy.build -internal const val PREF_LAST_USED_REGEX = "last used regex" +object PublishingConstants { + const val GROUP_ID = "com.isupatches.android" +} diff --git a/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Versions.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Versions.kt new file mode 100644 index 00000000..ba1921b3 --- /dev/null +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/Versions.kt @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.build + +@Suppress("StringLiteralDuplication") +object Versions { + // Core tooling + const val AGP: String = "4.2.2" + const val KOTLIN: String = "1.5.21" + const val COROUTINES: String = "1.5.1" + + // AndroidX + const val ANDROIDX_ANNOTATION: String = "1.2.0" + const val ANDROIDX_APPCOMPAT: String = "1.3.0" + const val ANDROIDX_CONSTRAINT_LAYOUT: String = "2.0.4" + const val ANDROIDX_CORE_KTX = "1.6.0" + const val ANDROIDX_LIFECYCLE: String = "2.3.1" + const val ANDROIDX_NAVIGATION: String = "2.3.5" + + // Google + const val GOOGLE_MATERIAL: String = "1.4.0" + + // Dependency Injection + const val DAGGER = "2.38.1" + + // isuPatches + const val VIEWGLU_VERSION = "1.1.0" + + // Static Analysis + const val CPD: String = "3.2" + const val DETEKT: String = "1.17.1" + const val DEXCOUNT: String = "2.1.0-RC01" + const val KTLINT_PLUGIN: String = "10.1.0" + const val KTLINT: String = "0.41.0" + + // Documentation + const val DOKKA: String = "1.5.0" + + // Code Coverage + const val JACOCO: String = "0.8.3" +} diff --git a/buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/BaseGraldleModulePlugin.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/BaseGraldleModulePlugin.kt new file mode 100644 index 00000000..9344af47 --- /dev/null +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/BaseGraldleModulePlugin.kt @@ -0,0 +1,137 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.build.plugins + +import com.android.build.gradle.LibraryExtension +import com.isupatches.android.wisefy.build.BuildVersions +import com.isupatches.android.wisefy.build.debug +import com.isupatches.android.wisefy.build.Dependencies +import com.isupatches.android.wisefy.build.release +import com.isupatches.android.wisefy.build.DependencyConstants.IMPLEMENTATION +import com.isupatches.android.wisefy.build.Versions +import org.gradle.api.JavaVersion +import org.gradle.api.Plugin +import org.gradle.api.Project +import org.gradle.kotlin.dsl.apply +import org.gradle.kotlin.dsl.configure +import org.gradle.kotlin.dsl.dependencies +import java.io.File +import java.io.FileInputStream +import java.util.Locale +import java.util.Properties + +class BaseGradleModulePlugin : Plugin { + + @Suppress("LongMethod") + override fun apply(target: Project) { + + // WARNING: It is CRUCIALLY important to not just add every plugin every feature module MIGHT need. For example, + // adding kotlin-kapt here would degrade build performance significantly. Only add those gradle-plugins that + // EVERY feature module is CERTAIN to use. + target.apply(plugin = "kotlin-android") + + target.configure { + + val keystorePropertiesFile = target.file("../keystore.properties") + val keystoreProperties = Properties() + if (keystorePropertiesFile.exists()) { + keystoreProperties.load(FileInputStream(keystorePropertiesFile)) + } + + compileSdkVersion(BuildVersions.COMPILE_SDK) + buildToolsVersion = BuildVersions.BUILD_TOOLS + + defaultConfig { + minSdkVersion(BuildVersions.MIN_SDK) + targetSdkVersion(BuildVersions.TARGET_SDK) + + versionCode = BuildVersions.MODULE_VERSION_CODE + versionName = BuildVersions.MODULE_VERSION_NAME + + vectorDrawables.useSupportLibrary = true + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + + signingConfigs { + create("debug${target.name.capitalize(Locale.ROOT)}") { + storeFile = File(System.getenv("WISEFY_DEBUG_KEYSTORE_LOCATION") ?: keystoreProperties["wisefy.debug.keystore_location"].toString()) + storePassword = System.getenv("WISEFY_DEBUG_PASSWORD") ?: keystoreProperties["wisefy.debug.password"].toString() + keyPassword = System.getenv("WISEFY_DEBUG_PASSWORD") ?: keystoreProperties["wisefy.debug.password"].toString() + keyAlias = System.getenv("WISEFY_DEBUG_KEY_ALIAS") ?: keystoreProperties["wisefy.debug.key_alias"].toString() + } + + create("release${target.name.capitalize(Locale.ROOT)}") { + storeFile = File(System.getenv("WISEFY_RELEASE_KEYSTORE_LOCATION") ?: keystoreProperties["wisefy.release.keystore_location"].toString()) + storePassword = System.getenv("WISEFY_RELEASE_PASSWORD") ?: keystoreProperties["wisefy.release.password"].toString() + keyPassword = System.getenv("WISEFY_RELEASE_PASSWORD") ?: keystoreProperties["wisefy.release.password"].toString() + keyAlias = System.getenv("WISEFY_RELEASE_KEY_ALIAS") ?: keystoreProperties["wisefy.release.key_alias"].toString() + } + } + + buildTypes { + debug { + // Test coverage needs to be disabled to release -SNAPSHOT builds + isTestCoverageEnabled = true + isMinifyEnabled = false + proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") + testProguardFile("proguard-rules-test.pro") + consumerProguardFile("consumer-rules.pro") + signingConfig = signingConfigs.getByName("debug${target.name.capitalize(Locale.ROOT)}") + } + + release { + isTestCoverageEnabled = false + isMinifyEnabled = true + proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") + consumerProguardFile("consumer-rules.pro") + signingConfig = signingConfigs.getByName("release${target.name.capitalize(Locale.ROOT)}") + } + } + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + + sourceSets { + getByName("main") { jni.srcDirs() } + } + + lintOptions { + isCheckAllWarnings = true + isShowAll = true + isExplainIssues = true + isAbortOnError = true + isWarningsAsErrors = true + disable("UnusedIds") + } + + testOptions { + unitTests.isReturnDefaultValues = true + } + + jacoco { + version = Versions.JACOCO + } + } + + target.dependencies { + add(IMPLEMENTATION, Dependencies.AndroidX.ANNOTATION) + add(IMPLEMENTATION, Dependencies.Kotlin.STD_LIB) + } + } +} diff --git a/buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/DocumentationPlugin.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/DocumentationPlugin.kt new file mode 100644 index 00000000..e04f105b --- /dev/null +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/DocumentationPlugin.kt @@ -0,0 +1,26 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.build.plugins + +import org.gradle.api.Plugin +import org.gradle.api.Project + +class DocumentationPlugin : Plugin { + + override fun apply(target: Project) { + target.plugins.apply("org.jetbrains.dokka") + } +} diff --git a/buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/PublishingPlugin.kt b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/PublishingPlugin.kt new file mode 100644 index 00000000..d2f83ac0 --- /dev/null +++ b/buildSrc/src/main/java/com/isupatches/android/wisefy/build/plugins/PublishingPlugin.kt @@ -0,0 +1,181 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.build.plugins + +import com.android.build.gradle.LibraryExtension +import org.gradle.api.Plugin +import org.gradle.api.Project +import org.gradle.api.plugins.JavaBasePlugin +import org.gradle.api.publish.PublishingExtension +import org.gradle.api.publish.maven.MavenPublication +import org.gradle.api.tasks.bundling.Jar +import org.gradle.kotlin.dsl.apply +import org.gradle.kotlin.dsl.configure +import org.gradle.kotlin.dsl.create +import org.gradle.kotlin.dsl.get +import org.gradle.plugins.signing.SigningExtension +import java.io.File +import java.net.URI +import java.util.Properties + +private const val DEVELOPER_ID = "isuPatches" +private const val DEVELOPER_NAME = "Patches Klinefelter" +private const val DEVELOPER_EMAIL = "isuPatches@yahoo.com" + +private const val LIBRARY_CONNECTION = "https://github.com/isuPatches/android-wisefy.git" +private const val LIBRARY_DESCRIPTION = "Wrapper around WifiManager and ConnectivityManager for Android." +private const val LIBRARY_NAME = "WiseFy" +private const val LIBRARY_URL = "https://github.com/isuPatches/android-wisefy" + +private const val LICENSE_NAME = "The Apache License, Version 2.0" +private const val LICENSE_URL = "http://www.apache.org/licenses/LICENSE-2.0.txt" + +class PublishingPlugin : Plugin { + + override fun apply(target: Project) { + + target.apply(plugin = "maven-publish") + target.apply(plugin = "signing") + + val localProperties = Properties() + val localFile: File = target.rootProject.file("local.properties") + if (localFile.exists()) { + localFile.inputStream().use { localProperties.load(it) } + } + + target.configure { + + target.tasks.create("kdocJar") { + group = JavaBasePlugin.DOCUMENTATION_GROUP + description = "Assembles Kotlin docs with Dokka" + archiveClassifier.set("kdoc") + from(target.tasks.getByName("dokkaGfm")) + dependsOn(target.tasks.getByName("dokkaGfm")) + } + + target.tasks.create("sourcesJar") { + archiveClassifier.set("sources") + from(sourceSets.getByName("main").java.srcDirs) + } + } + + target.afterEvaluate { + configure { + publications { + create("debug") { + groupId = com.isupatches.android.wisefy.build.PublishingConstants.GROUP_ID + artifactId = project.name + version = project.version.toString() + + from(project.components["debug"]) + + artifact(tasks["sourcesJar"]) + artifact(tasks["kdocJar"]) + + pom { + name.set(LIBRARY_NAME) + description.set(LIBRARY_DESCRIPTION) + url.set(LIBRARY_URL) + licenses { + license { + name.set(LICENSE_NAME) + url.set(LICENSE_URL) + } + } + developers { + developer { + id.set(DEVELOPER_ID) + name.set(DEVELOPER_NAME) + email.set(DEVELOPER_EMAIL) + } + } + scm { + connection.set(LIBRARY_CONNECTION) + developerConnection.set(LIBRARY_CONNECTION) + url.set(LIBRARY_DESCRIPTION) + } + } + } + + create("release") { + groupId = com.isupatches.android.wisefy.build.PublishingConstants.GROUP_ID + artifactId = project.name + version = project.version.toString() + + from(project.components["release"]) + + artifact(tasks["sourcesJar"]) + artifact(tasks["kdocJar"]) + + pom { + name.set(LIBRARY_NAME) + description.set(LIBRARY_DESCRIPTION) + url.set(LIBRARY_URL) + licenses { + license { + name.set(LICENSE_NAME) + url.set(LICENSE_URL) + } + } + developers { + developer { + id.set(DEVELOPER_ID) + name.set(DEVELOPER_NAME) + email.set(DEVELOPER_EMAIL) + } + } + scm { + connection.set(LIBRARY_CONNECTION) + developerConnection.set(LIBRARY_CONNECTION) + url.set(LIBRARY_DESCRIPTION) + } + } + } + + repositories { + maven { + name = "Release" + url = URI("https://oss.sonatype.org/service/local/staging/deploy/maven2") + credentials { + username = System.getenv("SONATYPE_USERNAME") ?: localProperties["sonatype.username"].toString() + password = System.getenv("SONATYPE_PASSWORD") ?: localProperties["sonatype.password"].toString() + } + } + + maven { + name = "Snapshot" + url = URI("https://oss.sonatype.org/content/repositories/snapshots") + credentials { + username = System.getenv("SONATYPE_USERNAME") ?: localProperties["sonatype.username"].toString() + password = System.getenv("SONATYPE_PASSWORD") ?: localProperties["sonatype.password"].toString() + } + } + } + } + + configure { + useInMemoryPgpKeys( + System.getenv("SIGNING_KEY_ID") ?: localProperties["signing.keyId"].toString(), + System.getenv("SIGNING_KEY") ?: localProperties["signing.key"].toString(), + System.getenv("SIGNING_PASSWORD") ?: localProperties["signing.password"].toString(), + ) + sign(publications) + } + + } + } + } +} diff --git a/buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.BaseGradleModulePlugin.properties b/buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.BaseGradleModulePlugin.properties new file mode 100644 index 00000000..a9271af9 --- /dev/null +++ b/buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.BaseGradleModulePlugin.properties @@ -0,0 +1 @@ +implementation-class=com.isupatches.android.wisefy.build.plugins.BaseGradleModulePlugin diff --git a/buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.DocumentationPlugin.properties b/buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.DocumentationPlugin.properties new file mode 100644 index 00000000..9c51ac9a --- /dev/null +++ b/buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.DocumentationPlugin.properties @@ -0,0 +1 @@ +implementation-class=com.isupatches.android.wisefy.build.plugins.DocumentationPlugin diff --git a/buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.PublishingPlugin.properties b/buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.PublishingPlugin.properties new file mode 100644 index 00000000..1ff8c8a1 --- /dev/null +++ b/buildSrc/src/main/resources/META-INF/gradle-plugins/com.isupatches.android.wisefy.build.plugins.PublishingPlugin.properties @@ -0,0 +1 @@ +implementation-class=com.isupatches.android.wisefy.build.plugins.PublishingPlugin diff --git a/config/detekt-config.yml b/config/detekt-config.yml deleted file mode 100644 index a48908d6..00000000 --- a/config/detekt-config.yml +++ /dev/null @@ -1,348 +0,0 @@ -autoCorrect: true - -test-pattern: # Configure exclusions for test sources - active: true - patterns: # Test file regular expressions - - '.*Spec.kt' - -build: - maxIssues: 1 - weights: - complexity: 2 - formatting: 1 - LongParameterList: 1 - comments: 1 - -processors: - active: true - exclude: - # - 'FunctionCountProcessor' - # - 'PropertyCountProcessor' - # - 'ClassCountProcessor' - # - 'PackageCountProcessor' - # - 'KtFileCountProcessor' - -console-reports: - active: true - exclude: - # - 'ProjectStatisticsReport' - # - 'ComplexityReport' - # - 'NotificationReport' - # - 'FindingsReport' - # - 'BuildFailureReport' - -output-reports: - active: true - exclude: - # - 'PlainOutputReport' - # - 'XmlOutputReport' - -comments: - active: true - CommentOverPrivateFunction: - active: false # Disabled because comments for some private functions can be valuable - CommentOverPrivateProperty: - active: false # Disabled because comments for some properties can be valuable - UndocumentedPublicClass: - active: true - searchInNestedClass: true - searchInInnerClass: true - searchInInnerObject: true - searchInInnerInterface: true - UndocumentedPublicFunction: - active: true - -complexity: - active: true - LongParameterList: - active: true - threshold: 5 - ignoreDefaultParameters: false - LongMethod: - active: true - threshold: 50 - LargeClass: - active: true - threshold: 150 - ComplexInterface: - active: true - threshold: 50 - includeStaticDeclarations: true - ComplexMethod: - active: true - threshold: 20 - StringLiteralDuplication: - active: true - threshold: 2 - ignoreAnnotation: true - excludeStringsWithLessThan5Characters: true - ignoreStringsRegex: '$^' - MethodOverloading: - active: true - threshold: 5 - NestedBlockDepth: - active: true - threshold: 6 - TooManyFunctions: - active: true - thresholdInFiles: 50 - thresholdInClasses: 75 # Increased from 50 - thresholdInInterfaces: 75 # Increased from 50 - thresholdInObjects: 20 - thresholdInEnums: 10 - ComplexCondition: - active: true - threshold: 3 - LabeledExpression: - active: false # Disabled since they can be required when the code is not complex - -empty-blocks: - active: true - EmptyCatchBlock: - active: true - EmptyClassBlock: - active: true - EmptyDefaultConstructor: - active: true - EmptyDoWhileBlock: - active: true - EmptyElseBlock: - active: true - EmptyFinallyBlock: - active: true - EmptyForBlock: - active: true - EmptyFunctionBlock: - active: true - EmptyIfBlock: - active: true - EmptyInitBlock: - active: true - EmptyKtFile: - active: true - EmptySecondaryConstructor: - active: true - EmptyWhenBlock: - active: true - EmptyWhileBlock: - active: true - -exceptions: - active: true - TooGenericExceptionCaught: - active: true - exceptions: - - ArrayIndexOutOfBoundsException - - Error - - Exception - - IllegalMonitorStateException - - NullPointerException - - IndexOutOfBoundsException - - RuntimeException - - Throwable - ExceptionRaisedInUnexpectedLocation: - active: true - methodNames: 'toString,hashCode,equals,finalize' - TooGenericExceptionThrown: - active: true - exceptions: - - Error - - Exception - - NullPointerException - - Throwable - - RuntimeException - NotImplementedDeclaration: - active: true - PrintStackTrace: - active: true - InstanceOfCheckForException: - active: true - ThrowingExceptionsWithoutMessageOrCause: - active: true - exceptions: 'IllegalArgumentException,IllegalStateException,IOException' - ReturnFromFinally: - active: true - ThrowingExceptionFromFinally: - active: true - ThrowingExceptionInMain: - active: true - RethrowCaughtException: - active: true - ThrowingNewInstanceOfSameException: - active: true - SwallowedException: - active: true - -performance: - active: true - ForEachOnRange: - active: true - SpreadOperator: - active: true - UnnecessaryTemporaryInstantiation: - active: true - -potential-bugs: - active: true - DuplicateCaseInWhenExpression: - active: true - EqualsAlwaysReturnsTrueOrFalse: - active: true - EqualsWithHashCodeExist: - active: true - IteratorNotThrowingNoSuchElementException: - active: true - IteratorHasNextCallsNextMethod: - active: true - UselessPostfixExpression: - active: true - InvalidRange: - active: true - WrongEqualsTypeParameter: - active: true - ExplicitGarbageCollectionCall: - active: true - LateinitUsage: - active: false # Disabled because lateinit usage is fine with `init` blocks and dagger - excludeAnnotatedProperties: "" - ignoreOnClassesPattern: "" - UnconditionalJumpStatementInLoop: - active: true - UnreachableCode: - active: true - UnsafeCallOnNullableType: - active: false # Disabled because with a null check in prechecks, !! is acceptable - UnsafeCast: - active: false # Disabled because there are cases where casting should not fail and `as` would be more appropriate - -style: - active: true - CollapsibleIfStatements: - active: true - ReturnCount: - active: true - max: 4 - excludedFunctions: "equals" - ThrowsCount: - active: true - max: 2 - NewLineAtEndOfFile: - active: true - WildcardImport: - active: true - excludeImports: 'java.util.*,kotlinx.android.synthetic.*' - MaxLineLength: - active: true - maxLineLength: 150 - excludePackageStatements: false - excludeImportStatements: false - EqualsNullCall: - active: true - ForbiddenComment: - active: true - values: 'TODO:,FIXME:,STOPSHIP:' - ForbiddenImport: - active: true - imports: '' - FunctionOnlyReturningConstant: - active: true - ignoreOverridableFunction: true - excludedFunctions: 'describeContents' - SpacingBetweenPackageAndImports: - active: true - LoopWithTooManyJumpStatements: - active: true - maxJumpCount: 3 # Increased from 1 - MemberNameEqualsClassName: - active: true - ignoreOverriddenFunction: true - VariableNaming: - active: true - variablePattern: '[a-z][A-Za-z0-9]*' - privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*' - VariableMinLength: - active: true - minimumVariableNameLength: 1 - VariableMaxLength: - active: true - maximumVariableNameLength: 64 - TopLevelPropertyNaming: - active: true - constantPattern: '[A-Z][_A-Z0-9]*' - propertyPattern: '[a-z][A-Za-z\d]*' - privatePropertyPattern: '(_)?[a-z][A-Za-z0-9]*' - ObjectPropertyNaming: - active: true - propertyPattern: '[A-Za-z][_A-Za-z0-9]*' - PackageNaming: - active: true - packagePattern: '^[a-z]+(\.[a-z][a-z0-9]*)*$' - ClassNaming: - active: true - classPattern: '[A-Z$][a-zA-Z0-9$]*' - EnumNaming: - active: true - enumEntryPattern: '^[A-Z$][a-zA-Z_$]*$' - FunctionNaming: - active: true - functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$' - FunctionMaxLength: - active: true - maximumFunctionNameLength: 30 - FunctionMinLength: - active: true - minimumFunctionNameLength: 3 - ForbiddenClassName: - active: true - forbiddenName: '' - SafeCast: - active: true - UnnecessaryAbstractClass: - active: true - UnnecessaryParentheses: - active: true - UnnecessaryInheritance: - active: true - UtilityClassWithPublicConstructor: - active: true - OptionalAbstractKeyword: - active: true - OptionalWhenBraces: - active: false # Disabled because braces can sometimes make parts of when more readable - OptionalReturnKeyword: - active: true - OptionalUnit: - active: true - ProtectedMemberInFinalClass: - active: true - SerialVersionUIDInSerializableClass: - active: true - MagicNumber: - active: true - ignoreNumbers: '-1,0,1,2' - ignoreHashCodeFunction: false - ignorePropertyDeclaration: false - ignoreConstantDeclaration: true - ignoreCompanionObjectPropertyDeclaration: true - ignoreAnnotation: false - ignoreNamedArgument: false - ignoreEnums: false - ModifierOrder: - active: true - DataClassContainsFunctions: - active: true - conversionFunctionPrefix: 'to' - UseDataClass: - active: true - UnusedImports: - active: true - ExpressionBodySyntax: - active: false - NestedClassesVisibility: - active: true - RedundantVisibilityModifierRule: - active: true - MatchingDeclarationName: - active: true - UntilInsteadOfRangeTo: - active: true \ No newline at end of file diff --git a/config/detekt.yml b/config/detekt.yml new file mode 100644 index 00000000..e50483ba --- /dev/null +++ b/config/detekt.yml @@ -0,0 +1,746 @@ +build: + maxIssues: 0 + excludeCorrectable: false + weights: + # complexity: 2 + # LongParameterList: 1 + # style: 1 + # comments: 1 + +config: + validation: true + warningsAsErrors: false + # when writing own rules with new properties, exclude the property path e.g.: 'my_rule_set,.*>.*>[my_property]' + excludes: '' + +processors: + active: true + exclude: + - 'DetektProgressListener' + # - 'KtFileCountProcessor' + # - 'PackageCountProcessor' + # - 'ClassCountProcessor' + # - 'FunctionCountProcessor' + # - 'PropertyCountProcessor' + # - 'ProjectComplexityProcessor' + # - 'ProjectCognitiveComplexityProcessor' + # - 'ProjectLLOCProcessor' + # - 'ProjectCLOCProcessor' + # - 'ProjectLOCProcessor' + # - 'ProjectSLOCProcessor' + # - 'LicenseHeaderLoaderExtension' + +console-reports: + active: true + exclude: + - 'ProjectStatisticsReport' + - 'ComplexityReport' + - 'NotificationReport' + # - 'FindingsReport' + - 'FileBasedFindingsReport' + +output-reports: + active: true + exclude: + # - 'TxtOutputReport' + # - 'XmlOutputReport' + # - 'HtmlOutputReport' + +comments: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + AbsentOrWrongFileLicense: + active: false + licenseTemplateFile: 'license.template' + licenseTemplateIsRegex: false + CommentOverPrivateFunction: + active: false + CommentOverPrivateProperty: + active: false + DeprecatedBlockTag: + active: false + EndOfSentenceFormat: + active: false + endOfSentenceFormat: '([.?!][ \t\n\r\f<])|([.?!:]$)' + UndocumentedPublicClass: + active: false + searchInNestedClass: true + searchInInnerClass: true + searchInInnerObject: true + searchInInnerInterface: true + UndocumentedPublicFunction: + active: false + UndocumentedPublicProperty: + active: false + +complexity: + active: true + ComplexCondition: + active: true + threshold: 4 + ComplexInterface: + active: false + threshold: 10 + includeStaticDeclarations: false + includePrivateDeclarations: false + ComplexMethod: + active: true + threshold: 15 + ignoreSingleWhenExpression: false + ignoreSimpleWhenEntries: false + ignoreNestingFunctions: false + nestingFunctions: ['run', 'let', 'apply', 'with', 'also', 'use', 'forEach', 'isNotNull', 'ifNull'] + LabeledExpression: + active: false + ignoredLabels: [] + LargeClass: + active: true + threshold: 600 + LongMethod: + active: true + threshold: 60 + LongParameterList: + active: true + functionThreshold: 6 + constructorThreshold: 15 + ignoreDefaultParameters: false + ignoreDataClasses: true + ignoreAnnotated: [] + MethodOverloading: + active: false + threshold: 6 + NamedArguments: + active: false + threshold: 3 + NestedBlockDepth: + active: true + threshold: 6 # Non-default + ReplaceSafeCallChainWithRun: + active: false + StringLiteralDuplication: + active: false + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + threshold: 3 + ignoreAnnotation: true + excludeStringsWithLessThan5Characters: true + ignoreStringsRegex: '$^' + TooManyFunctions: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + thresholdInFiles: 75 # Non-default + thresholdInClasses: 75 # Non-default + thresholdInInterfaces: 25 # Non-default + thresholdInObjects: 25 # Non-default + thresholdInEnums: 25 # Non-default + ignoreDeprecated: false + ignorePrivate: false + ignoreOverridden: false + +coroutines: + active: true + GlobalCoroutineUsage: + active: false + RedundantSuspendModifier: + active: false + SleepInsteadOfDelay: + active: false + SuspendFunWithFlowReturnType: + active: false + +empty-blocks: + active: true + EmptyCatchBlock: + active: true + allowedExceptionNameRegex: '_|(ignore|expected).*' + EmptyClassBlock: + active: true + EmptyDefaultConstructor: + active: true + EmptyDoWhileBlock: + active: true + EmptyElseBlock: + active: true + EmptyFinallyBlock: + active: true + EmptyForBlock: + active: true + EmptyFunctionBlock: + active: true + ignoreOverridden: false + EmptyIfBlock: + active: true + EmptyInitBlock: + active: true + EmptyKtFile: + active: true + EmptySecondaryConstructor: + active: true + EmptyTryBlock: + active: true + EmptyWhenBlock: + active: true + EmptyWhileBlock: + active: true + +exceptions: + active: true + ExceptionRaisedInUnexpectedLocation: + active: true + methodNames: [toString, hashCode, equals, finalize] + InstanceOfCheckForException: + active: false + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + NotImplementedDeclaration: + active: false + ObjectExtendsThrowable: + active: false + PrintStackTrace: + active: true + RethrowCaughtException: + active: true + ReturnFromFinally: + active: true + ignoreLabeled: false + SwallowedException: + active: true + ignoredExceptionTypes: + - InterruptedException + - NumberFormatException + - ParseException + - MalformedURLException + allowedExceptionNameRegex: '_|(ignore|expected).*' + ThrowingExceptionFromFinally: + active: true + ThrowingExceptionInMain: + active: false + ThrowingExceptionsWithoutMessageOrCause: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + exceptions: + - IllegalArgumentException + - IllegalStateException + - IOException + ThrowingNewInstanceOfSameException: + active: true + TooGenericExceptionCaught: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + exceptionNames: + - ArrayIndexOutOfBoundsException + - Error + - Exception + - IllegalMonitorStateException + - NullPointerException + - IndexOutOfBoundsException + - RuntimeException + - Throwable + allowedExceptionNameRegex: '_|(ignore|expected).*' + TooGenericExceptionThrown: + active: true + exceptionNames: + - Error + - Exception + - Throwable + - RuntimeException + +formatting: + active: true + android: false + autoCorrect: true + AnnotationOnSeparateLine: + active: false + autoCorrect: true + AnnotationSpacing: + active: false + autoCorrect: true + ArgumentListWrapping: + active: false + autoCorrect: true + indentSize: 4 + maxLineLength: 120 + ChainWrapping: + active: true + autoCorrect: true + CommentSpacing: + active: true + autoCorrect: true + EnumEntryNameCase: + active: false + autoCorrect: true + Filename: + active: true + FinalNewline: + active: true + autoCorrect: true + insertFinalNewLine: true + ImportOrdering: + active: false + autoCorrect: true + layout: '*,java.**,javax.**,kotlin.**,^' + Indentation: + active: false + autoCorrect: true + indentSize: 4 + continuationIndentSize: 4 + MaximumLineLength: + active: true + maxLineLength: 120 + ignoreBackTickedIdentifier: false + ModifierOrdering: + active: true + autoCorrect: true + MultiLineIfElse: + active: true + autoCorrect: true + NoBlankLineBeforeRbrace: + active: true + autoCorrect: true + NoConsecutiveBlankLines: + active: true + autoCorrect: true + NoEmptyClassBody: + active: true + autoCorrect: true + NoEmptyFirstLineInMethodBlock: + active: false + autoCorrect: true + NoLineBreakAfterElse: + active: true + autoCorrect: true + NoLineBreakBeforeAssignment: + active: true + autoCorrect: true + NoMultipleSpaces: + active: true + autoCorrect: true + NoSemicolons: + active: true + autoCorrect: true + NoTrailingSpaces: + active: true + autoCorrect: true + NoUnitReturn: + active: true + autoCorrect: true + NoUnusedImports: + active: true + autoCorrect: true + NoWildcardImports: + active: true + PackageName: + active: true + autoCorrect: true + ParameterListWrapping: + active: true + autoCorrect: true + indentSize: 4 + maxLineLength: 120 + SpacingAroundAngleBrackets: + active: false + autoCorrect: true + SpacingAroundColon: + active: true + autoCorrect: true + SpacingAroundComma: + active: true + autoCorrect: true + SpacingAroundCurly: + active: true + autoCorrect: true + SpacingAroundDot: + active: true + autoCorrect: true + SpacingAroundDoubleColon: + active: false + autoCorrect: true + SpacingAroundKeyword: + active: true + autoCorrect: true + SpacingAroundOperators: + active: true + autoCorrect: true + SpacingAroundParens: + active: true + autoCorrect: true + SpacingAroundRangeOperator: + active: true + autoCorrect: true + SpacingAroundUnaryOperator: + active: false + autoCorrect: true + SpacingBetweenDeclarationsWithAnnotations: + active: false + autoCorrect: true + SpacingBetweenDeclarationsWithComments: + active: false + autoCorrect: true + StringTemplate: + active: true + autoCorrect: true + +naming: + active: true + ClassNaming: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + classPattern: '[A-Z][a-zA-Z0-9]*' + ConstructorParameterNaming: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + parameterPattern: '[a-z][A-Za-z0-9]*' + privateParameterPattern: '[a-z][A-Za-z0-9]*' + excludeClassPattern: '$^' + ignoreOverridden: true + EnumNaming: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + enumEntryPattern: '[A-Z][_a-zA-Z0-9]*' + ForbiddenClassName: + active: false + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + forbiddenName: [] + FunctionMaxLength: + active: false + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + maximumFunctionNameLength: 30 + FunctionMinLength: + active: false + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + minimumFunctionNameLength: 3 + FunctionNaming: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + functionPattern: '([a-z][a-zA-Z0-9]*)|(`.*`)' + excludeClassPattern: '$^' + ignoreOverridden: true + ignoreAnnotated: ['Composable'] + FunctionParameterNaming: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + parameterPattern: '[a-z][A-Za-z0-9]*' + excludeClassPattern: '$^' + ignoreOverridden: true + InvalidPackageDeclaration: + active: false + excludes: ['*.kts'] + rootPackage: '' + MatchingDeclarationName: + active: true + mustBeFirst: true + MemberNameEqualsClassName: + active: true + ignoreOverridden: true + NoNameShadowing: + active: false + NonBooleanPropertyPrefixedWithIs: + active: false + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + ObjectPropertyNaming: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + constantPattern: '[A-Za-z][_A-Za-z0-9]*' + propertyPattern: '[A-Za-z][_A-Za-z0-9]*' + privatePropertyPattern: '(_)?[A-Za-z][_A-Za-z0-9]*' + PackageNaming: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + packagePattern: '[a-z]+(\.[a-z][A-Za-z0-9]*)*' + TopLevelPropertyNaming: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + constantPattern: '[A-Z][_A-Z0-9]*' + propertyPattern: '[A-Za-z][_A-Za-z0-9]*' + privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*' + VariableMaxLength: + active: false + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + maximumVariableNameLength: 64 + VariableMinLength: + active: false + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + minimumVariableNameLength: 1 + VariableNaming: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + variablePattern: '[a-z][A-Za-z0-9]*' + privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*' + excludeClassPattern: '$^' + ignoreOverridden: true + +performance: + active: true + ArrayPrimitive: + active: true + ForEachOnRange: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + SpreadOperator: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + UnnecessaryTemporaryInstantiation: + active: true + +potential-bugs: + active: true + CastToNullableType: + active: false + Deprecation: + active: false + DontDowncastCollectionTypes: + active: false + DoubleMutabilityForCollection: + active: false + DuplicateCaseInWhenExpression: + active: true + EqualsAlwaysReturnsTrueOrFalse: + active: true + EqualsWithHashCodeExist: + active: true + ExitOutsideMain: + active: false + ExplicitGarbageCollectionCall: + active: true + HasPlatformType: + active: false + IgnoredReturnValue: + active: false + restrictToAnnotatedMethods: true + returnValueAnnotations: ['*.CheckReturnValue', '*.CheckResult'] + ImplicitDefaultLocale: + active: true + ImplicitUnitReturnType: + active: false + allowExplicitReturnType: true + InvalidRange: + active: true + IteratorHasNextCallsNextMethod: + active: true + IteratorNotThrowingNoSuchElementException: + active: true + LateinitUsage: + active: false + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + excludeAnnotatedProperties: [] + ignoreOnClassesPattern: '' + MapGetWithNotNullAssertionOperator: + active: false + MissingWhenCase: + active: true + allowElseExpression: true + NullableToStringCall: + active: false + RedundantElseInWhen: + active: true + UnconditionalJumpStatementInLoop: + active: false + UnnecessaryNotNullOperator: + active: true + UnnecessarySafeCall: + active: true + UnreachableCatchBlock: + active: false + UnreachableCode: + active: true + UnsafeCallOnNullableType: + active: true + UnsafeCast: + active: true + UnusedUnaryOperator: + active: false + UselessPostfixExpression: + active: false + WrongEqualsTypeParameter: + active: true + +style: + active: true + ClassOrdering: + active: false + CollapsibleIfStatements: + active: false + DataClassContainsFunctions: + active: false + conversionFunctionPrefix: 'to' + DataClassShouldBeImmutable: + active: false + DestructuringDeclarationWithTooManyEntries: + active: false + maxDestructuringEntries: 3 + EqualsNullCall: + active: true + EqualsOnSignatureLine: + active: false + ExplicitCollectionElementAccessMethod: + active: false + ExplicitItLambdaParameter: + active: false + ExpressionBodySyntax: + active: false + includeLineWrapping: false + ForbiddenComment: + active: true + values: ['TODO:', 'FIXME:', 'STOPSHIP:'] + allowedPatterns: '' + ForbiddenImport: + active: false + imports: [] + forbiddenPatterns: '' + ForbiddenMethodCall: + active: false + methods: ['kotlin.io.println', 'kotlin.io.print'] + ForbiddenPublicDataClass: + active: true + excludes: ['**'] + ignorePackages: ['*.internal', '*.internal.*'] + ForbiddenVoid: + active: false + ignoreOverridden: false + ignoreUsageInGenerics: false + FunctionOnlyReturningConstant: + active: true + ignoreOverridableFunction: true + ignoreActualFunction: true + excludedFunctions: 'describeContents' + excludeAnnotatedFunction: ['dagger.Provides'] + LibraryCodeMustSpecifyReturnType: + active: true + excludes: ['**'] + LibraryEntitiesShouldNotBePublic: + active: true + excludes: ['**'] + LoopWithTooManyJumpStatements: + active: true + maxJumpCount: 2 # Non-default + MagicNumber: + active: true + excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**'] + ignoreNumbers: ['-1', '0', '1', '2'] + ignoreHashCodeFunction: true + ignorePropertyDeclaration: false + ignoreLocalVariableDeclaration: false + ignoreConstantDeclaration: true + ignoreCompanionObjectPropertyDeclaration: true + ignoreAnnotation: false + ignoreNamedArgument: true + ignoreEnums: false + ignoreRanges: false + ignoreExtensionFunctions: true + MandatoryBracesIfStatements: + active: false + MandatoryBracesLoops: + active: false + MaxLineLength: + active: true + maxLineLength: 120 + excludePackageStatements: true + excludeImportStatements: true + excludeCommentStatements: false + MayBeConst: + active: true + ModifierOrder: + active: true + MultilineLambdaItParameter: + active: false + NestedClassesVisibility: + active: true + NewLineAtEndOfFile: + active: true + NoTabs: + active: false + ObjectLiteralToLambda: + active: false + OptionalAbstractKeyword: + active: true + OptionalUnit: + active: false + OptionalWhenBraces: + active: false + PreferToOverPairSyntax: + active: false + ProtectedMemberInFinalClass: + active: true + RedundantExplicitType: + active: false + RedundantHigherOrderMapUsage: + active: false + RedundantVisibilityModifierRule: + active: false + ReturnCount: + active: true + max: 4 # Non-default + excludedFunctions: 'equals' + excludeLabeled: false + excludeReturnFromLambda: true + excludeGuardClauses: false + SafeCast: + active: true + SerialVersionUIDInSerializableClass: + active: true + SpacingBetweenPackageAndImports: + active: false + ThrowsCount: + active: true + max: 2 + TrailingWhitespace: + active: false + UnderscoresInNumericLiterals: + active: false + acceptableDecimalLength: 5 + UnnecessaryAbstractClass: + active: true + excludeAnnotatedClasses: ['dagger.Module'] + UnnecessaryAnnotationUseSiteTarget: + active: false + UnnecessaryApply: + active: true + UnnecessaryFilter: + active: false + UnnecessaryInheritance: + active: true + UnnecessaryLet: + active: false + UnnecessaryParentheses: + active: false + UntilInsteadOfRangeTo: + active: false + UnusedImports: + active: false + UnusedPrivateClass: + active: true + UnusedPrivateMember: + active: true + allowedNames: '(_|ignored|expected|serialVersionUID)' + UseArrayLiteralsInAnnotations: + active: false + UseCheckNotNull: + active: false + UseCheckOrError: + active: false + UseDataClass: + active: false + excludeAnnotatedClasses: [] + allowVars: false + UseEmptyCounterpart: + active: false + UseIfEmptyOrIfBlank: + active: false + UseIfInsteadOfWhen: + active: false + UseIsNullOrEmpty: + active: false + UseOrEmpty: + active: false + UseRequire: + active: false + UseRequireNotNull: + active: false + UselessCallOnNotNull: + active: true + UtilityClassWithPublicConstructor: + active: true + VarCouldBeVal: + active: true + WildcardImport: + active: true + excludes: [] # Non-default + excludeImports: [] # Non-default diff --git a/documentation/adding_and_removing_networks.md b/documentation/adding_and_removing_networks.md deleted file mode 100644 index 0856055c..00000000 --- a/documentation/adding_and_removing_networks.md +++ /dev/null @@ -1,237 +0,0 @@ -#### Via The Synchronous API - -To add an open network: - -_With Kotlin_ - -```kotlin -val result = wisefy.addOpenNetwork("Open Network") -``` - -_With Java_ - -```java -int result = wisefy.addOpenNetwork("Open Network"); -``` - -To add a WEP network: - -_With Kotlin_ - -```kotlin -val result = wisefy.addWEPNetwork("WEP Network", "123456") -``` - -_With Java_ - -```java -int result = wisefy.addWEPNetwork("WEP Network", "123456"); -``` - -To add a WPA2 network: - -_With Kotlin_ - -```kotlin -val result = wisefy.addWEPNetwork("WPA2 Network", "123456") -``` - -_With Java_ - -```java -int result = wisefy.addWPA2Network("WPA2 Network", "12345678"); -``` - -To remove a configured network: - -_With Kotlin_ - -```kotlin -val removedSuccessfully = wisefy.removeNetwork("SSID to remove") -``` - -_With Java_ - -```java -boolean removedSuccessfully = wisefy.removeNetwork("SSID to remove"); -``` - -#### Via The Asynchronous API - -To add an open network: - -_With Kotlin_ - -```kotlin -wisefy.addOpenNetwork("Open Network", object: AddNetworkCallbacks { - override fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) { - - } - - override fun failureAddingNetwork(wifiManagerReturn: Int) { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.addOpenNetwork("Open Network", new AddNetworkCallbacks() { - @Override - public void networkAdded(int newNetworkId, WifiConfiguration wifiConfiguration) { - - } - - @Override - public void failureAddingNetwork(int wifiManagerReturn) { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To add a WEP network: - -_With Kotlin_ - -```Kotlin -wisefy.addWEPNetwork("WEP Network", "123456", object: AddNetworkCallbacks { - override fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) { - - } - - override fun failureAddingNetwork(wifiManagerReturn: Int) { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.addWEPNetwork("WEP Network", "123456", new AddNetworkCallbacks() { - @Override - public void networkAdded(int newNetworkId, WifiConfiguration wifiConfiguration) { - - } - - @Override - public void failureAddingNetwork(int wifiManagerReturn) { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To add a WPA2 network: - -_With Kotlin_ - -```kotlin -wisefy.addWPA2Network("WPA2 Network", "12345678", object: AddNetworkCallbacks { - override fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) { - - } - - override fun failureAddingNetwork(wifiManagerReturn: Int) { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.addWPA2Network("WPA2 Network", "12345678", new AddNetworkCallbacks() { - @Override - public void networkAdded(int newNetworkId, WifiConfiguration wifiConfiguration) { - - } - - @Override - public void failureAddingNetwork(int wifiManagerReturn) { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To remove a configured network: - -_With Kotlin_ - -```kotlin -wisefy.removeNetwork("SSID to remove", object: RemoveNetworkCallbacks { - override fun networkRemoved() { - - } - - override fun failureRemovingNetwork() { - - } - - override fun networkNotFoundToRemove() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.removeNetwork("SSID to remove", new RemoveNetworkCallbacks() { - @Override - public void networkRemoved() { - - } - - @Override - public void failureRemovingNetwork() { - - } - - @Override - public void networkNotFoundToRemove() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -***Notes*** - -- Will return a WiseFy error code if network is already a saved configuration -- Will return a WiseFy error code if parameter is missing \ No newline at end of file diff --git a/documentation/checking_device_connectivity.md b/documentation/checking_device_connectivity.md deleted file mode 100644 index 5329febc..00000000 --- a/documentation/checking_device_connectivity.md +++ /dev/null @@ -1,85 +0,0 @@ -#### Via The Synchronous API - -To check and see if the device is connected to a mobile network: - -_With Kotlin_ - -```Kotlin -val isConnected = wisefy.isDeviceConnectedToMobileNetwork() -``` - -_With Java_ - -```java -boolean isConnected = wisefy.isDeviceConnectedToMobileNetwork(); -``` - -To check and see if the device is connected to a mobile or wifi network: - -_With Kotlin_ - -```kotlin -val isConnected = wisefy.isDeviceConnectedToMobileOrWifiNetwork() -``` - -_With Java_ - -```java -boolean isConnected = wisefy.isDeviceConnectedToMobileOrWifiNetwork(); -``` - -To check and see if the device is connected to a given SSID: - -_With Kotlin_ - -```kotlin -val isConnected = wisefy.isDeviceConnectedToSSID("SSID") -``` - -_With Java_ - -```java -boolean isConnected = wisefy.isDeviceConnectedToSSID("SSID"); -``` - -To check and see if the device is connected to a wifi network: - -_With Kotlin_ - -```kotlin -val isConnected = wisefy.isDeviceConnectedToWifiNetwork() -``` - -_With Java_ - -```java -boolean isConnected = wisefy.isDeviceConnectedToWifiNetwork(); -``` - -To check and see if the device is roaming: - -_With Kotlin_ - -```kotlin -val isDeviceRoaming = wisefy.isDeviceRoaming() -``` - -_With Java_ - -```java -boolean isDeviceRoaming = wisefy.isDeviceRoaming(); -``` - -To check and see if Wifi is enabled on a device: - -_With Kotlin_ - -```kotlin -boolean wifiEnabled = wisefy.isWifiEnabled() -``` - -_With Java_ - -```java -boolean wifiEnabled = wisefy.isWifiEnabled(); -``` diff --git a/documentation/connecting_and_disconnecting_from_networks.md b/documentation/connecting_and_disconnecting_from_networks.md deleted file mode 100644 index d2e07ca0..00000000 --- a/documentation/connecting_and_disconnecting_from_networks.md +++ /dev/null @@ -1,126 +0,0 @@ -#### Via The Synchronous API - -To connect to a network given an SSID: - -_With Kotlin_ - -```kotlin -val connectedSuccessfully = wisefy.connectToNetwork("SSID to connect to", 3000) -``` - -_With Java_ - -```java -boolean connectedSuccessfully = wisefy.connectToNetwork("SSID to connect to", 3000); -``` - -To disconnect from current network: - -_With Kotlin_ - -```kotlin -val disconnectedSuccessfully = wisefy.disconnectFromCurrentNetwork() -``` - -_With Java_ - -```java -boolean disconnectedSuccessfully = wisefy.disconnectFromCurrentNetwork(); -``` - -#### Via The Asynchronous API - -To connect to a network given an SSID: - -_With Kotlin_ - -```kotlin -wisefy.connectToNetwork("SSID to connect to", 3000, object: ConnectToNetworkCallbacks { - override fun connectedToNetwork() { - - } - - override fun failureConnectingToNetwork() { - - } - - override fun networkNotFoundToConnectTo() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.connectToNetwork("SSID to connect to", 3000, new ConnectToNetworkCallbacks() { - @Override - public void connectedToNetwork() { - - } - - @Override - public void failureConnectingToNetwork() { - - } - - @Override - public void networkNotFoundToConnectTo() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To disconnect from current network: - -_With Kotlin_ - -```Kotlin -wisefy.disconnectFromCurrentNetwork(object: DisconnectFromCurrentNetworkCallbacks { - override fun disconnectedFromCurrentNetwork() { - - } - - override fun failureDisconnectingFromCurrentNetwork() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.disconnectFromCurrentNetwork(new DisconnectFromCurrentNetworkCallbacks() { - @Override - public void disconnectedFromCurrentNetwork() { - - } - - @Override - public void failureDisconnectingFromCurrentNetwork() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -***Notes*** - -- Will return a WiseFy error code if parameter is missing \ No newline at end of file diff --git a/documentation/current_network.md b/documentation/current_network.md deleted file mode 100644 index fbce7d3b..00000000 --- a/documentation/current_network.md +++ /dev/null @@ -1,118 +0,0 @@ -#### Via The Synchronous API - -To get current network: - -_With Kotlin_ - -```Kotlin -val currentNetwork = wisefy.getCurrentNetwork() -``` - -_With Java_ - -```java -WifiInfo currentNetwork = wisefy.getCurrentNetwork(); -``` - -To get current network info: - -_With Kotlin_ - -```kotlin -val currentNetworkInfo = wisefy.getCurrentNetworkInfo() -``` - -_With Java_ - -```java -NetworkInfo currentNetworkInfo = wisefy.getCurrentNetworkInfo(); -``` - -#### Via The Asynchronous API - -To get current network: - -_With Kotlin_ - -```kotlin -wisefy.getCurrentNetwork(object: GetCurrentNetworkCallbacks { - override fun retrievedCurrentNetwork(currentNetwork: WifiInfo) { - - } - - override fun noCurrentNetwork() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.getCurrentNetwork(new GetCurrentNetworkCallbacks() { - @Override - public void retrievedCurrentNetwork(WifiInfo wifiInfo) { - - } - - @Override - public void noCurrentNetwork() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To get current network info: - -_With Kotlin_ - -```kotlin -wisefy.getCurrentNetworkInfo(object: GetCurrentNetworkInfoCallbacks { - - override fun retrievedCurrentNetworkInfo(currentNetworkDetails: NetworkInfo) { - - } - - override fun noCurrentNetworkInfo() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.getCurrentNetworkInfo(new GetCurrentNetworkInfoCallbacks() { - @Override - public void retrievedCurrentNetworkInfo(NetworkInfo networkInfo) { - - } - - @Override - public void noCurrentNetworkInfo() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -***Notes*** - -- Will return a WiseFy error code if parameter is missing \ No newline at end of file diff --git a/documentation/enabling_and_disabling_wifi.md b/documentation/enabling_and_disabling_wifi.md deleted file mode 100644 index 8bfa771a..00000000 --- a/documentation/enabling_and_disabling_wifi.md +++ /dev/null @@ -1,116 +0,0 @@ -#### Via The Synchronous API - -To disable wifi: - -_With Kotlin_ - -```kotlin -val disabledWifiSuccessfully = wisefy.disableWifi() -``` - -_With Java_ - -```java -boolean disabledWifiSuccessfully = wisefy.disableWifi(); -``` - -To enable wifi: - -_With Kotlin_ - -```kotlin -val enabledWifiSuccessfully = wisefy.enableWiFi() -``` - -_With Java_ - -```java -boolean enabledWifiSuccessfully = wisefy.enableWiFi(); -``` - -#### Via The Asynchronous API - -To disable wifi: - -_With Kotlin_ - -```kotlin -wisefy.disableWifi(object : DisableWifiCallbacks { - override fun wifiDisabled() { - - } - - override fun failureDisablingWifi() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.disableWifi(new DisableWifiCallbacks() { - @Override - public void wifiDisabled() { - - } - - @Override - public void failureDisablingWifi() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To enable wifi: - -_With Kotlin_ - -```kotlin -wisefy.enableWifi(object: EnableWifiCallbacks { - override fun wifiEnabled() { - - } - - override fun failureEnablingWifi() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } -}) -``` - -_With Java_ - -```java -wisefy.enableWifi(new EnableWifiCallbacks() { - @Override - public void wifiEnabled() { - - } - - @Override - public void failureEnablingWifi() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -***Notes*** - -- Will return a WiseFy error code if parameter is missing \ No newline at end of file diff --git a/documentation/frequency.md b/documentation/frequency.md deleted file mode 100644 index 2209d4b4..00000000 --- a/documentation/frequency.md +++ /dev/null @@ -1,147 +0,0 @@ -#### Via The Synchronous API - -To get the frequency of the devices current network:

-* NOTE * Only supported on API >= 21 - -_With Kotlin_ - -```kotlin -val frequency = wisefy.getFrequency() -``` - -_With Java_ - -```java -int frequency = wisefy.getFrequency(); -``` - -To get the frequency of a network:

-* NOTE * Only supported on API >= 21 - -_With Kotlin_ - -```kotlin -val frequency = wisefy.getFrequency(wifiInfo) -``` - -_With Java_ - -```java -int frequency = wisefy.getFrequency(wifiInfo); -``` - -To check if the device's current network is 5gHz:

-* NOTE * Only supported on API >= 21 - -_With Kotlin_ - -```kotlin -val is5gHz = wisefy.isNetwork5gHz() -``` - -_With Java_ - -```java -boolean is5gHz = wisefy.isNetwork5gHz(); -``` - -To check if a network is 5gHz:

-* NOTE * Only supported on API >= 21 - -_With Kotlin_ - -```kotlin -val is5gHz = wisefy.isNetwork5gHz(wifiInfo) -``` - -_With Java_ - -```java -boolean is5gHz = wisefy.isNetwork5gHz(wifiInfo); -``` - -#### Via The Asynchronous API - -To get the frequency of the devices current network:

-* NOTE * Only supported on API >= 21 - -_With Kotlin_ - -```kotlin -wisefy.getFrequency(object: GetFrequencyCallbacks { - override fun retrievedFrequency(frequency: Int) { - - } - - override fun failureGettingFrequency() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.getFrequency(new GetFrequencyCallbacks() { - @Override - public void retrievedFrequency(int frequency) { - - } - - @Override - public void failureGettingFrequency() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To get the frequency of a network:

-* NOTE * Only supported on API >= 21 - -_With Kotlin_ - -```kotlin -wisefy.getFrequency(wifiInfo, object: GetFrequencyCallbacks { - override fun retrievedFrequency(frequency: Int) { - - } - - override fun failureGettingFrequency() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.getFrequency(wifiInfo, new GetFrequencyCallbacks() { - @Override - public void retrievedFrequency(int frequency) { - - } - - @Override - public void failureGettingFrequency() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` \ No newline at end of file diff --git a/documentation/index.md b/documentation/index.md new file mode 100644 index 00000000..773e51d7 --- /dev/null +++ b/documentation/index.md @@ -0,0 +1,45 @@ +//[wisefy](index.md) + +# wisefy + +## Packages + +| Name | +|---| +| [com.isupatches.android.wisefy](wisefy/com.isupatches.android.wisefy/index.md) | +| [com.isupatches.android.wisefy.accesspoints](wisefy/com.isupatches.android.wisefy.accesspoints/index.md) | +| [com.isupatches.android.wisefy.accesspoints.delegates](wisefy/com.isupatches.android.wisefy.accesspoints.delegates/index.md) | +| [com.isupatches.android.wisefy.accesspoints.entities](wisefy/com.isupatches.android.wisefy.accesspoints.entities/index.md) | +| [com.isupatches.android.wisefy.addnetwork](wisefy/com.isupatches.android.wisefy.addnetwork/index.md) | +| [com.isupatches.android.wisefy.addnetwork.delegates](wisefy/com.isupatches.android.wisefy.addnetwork.delegates/index.md) | +| [com.isupatches.android.wisefy.addnetwork.entities](wisefy/com.isupatches.android.wisefy.addnetwork.entities/index.md) | +| [com.isupatches.android.wisefy.callbacks](wisefy/com.isupatches.android.wisefy.callbacks/index.md) | +| [com.isupatches.android.wisefy.constants](wisefy/com.isupatches.android.wisefy.constants/index.md) | +| [com.isupatches.android.wisefy.frequency](wisefy/com.isupatches.android.wisefy.frequency/index.md) | +| [com.isupatches.android.wisefy.frequency.delegates](wisefy/com.isupatches.android.wisefy.frequency.delegates/index.md) | +| [com.isupatches.android.wisefy.logging](wisefy/com.isupatches.android.wisefy.logging/index.md) | +| [com.isupatches.android.wisefy.networkconnection](wisefy/com.isupatches.android.wisefy.networkconnection/index.md) | +| [com.isupatches.android.wisefy.networkconnection.delegates](wisefy/com.isupatches.android.wisefy.networkconnection.delegates/index.md) | +| [com.isupatches.android.wisefy.networkconnection.entities](wisefy/com.isupatches.android.wisefy.networkconnection.entities/index.md) | +| [com.isupatches.android.wisefy.networkconnectionstatus](wisefy/com.isupatches.android.wisefy.networkconnectionstatus/index.md) | +| [com.isupatches.android.wisefy.networkconnectionstatus.delegates](wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/index.md) | +| [com.isupatches.android.wisefy.networkconnectionstatus.entities](wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/index.md) | +| [com.isupatches.android.wisefy.networkinfo](wisefy/com.isupatches.android.wisefy.networkinfo/index.md) | +| [com.isupatches.android.wisefy.networkinfo.delegates](wisefy/com.isupatches.android.wisefy.networkinfo.delegates/index.md) | +| [com.isupatches.android.wisefy.networkinfo.entities](wisefy/com.isupatches.android.wisefy.networkinfo.entities/index.md) | +| [com.isupatches.android.wisefy.removenetwork](wisefy/com.isupatches.android.wisefy.removenetwork/index.md) | +| [com.isupatches.android.wisefy.removenetwork.delegates](wisefy/com.isupatches.android.wisefy.removenetwork.delegates/index.md) | +| [com.isupatches.android.wisefy.removenetwork.entities](wisefy/com.isupatches.android.wisefy.removenetwork.entities/index.md) | +| [com.isupatches.android.wisefy.savednetworks](wisefy/com.isupatches.android.wisefy.savednetworks/index.md) | +| [com.isupatches.android.wisefy.savednetworks.delegates](wisefy/com.isupatches.android.wisefy.savednetworks.delegates/index.md) | +| [com.isupatches.android.wisefy.savednetworks.entities](wisefy/com.isupatches.android.wisefy.savednetworks.entities/index.md) | +| [com.isupatches.android.wisefy.security](wisefy/com.isupatches.android.wisefy.security/index.md) | +| [com.isupatches.android.wisefy.security.delegates](wisefy/com.isupatches.android.wisefy.security.delegates/index.md) | +| [com.isupatches.android.wisefy.security.entities](wisefy/com.isupatches.android.wisefy.security.entities/index.md) | +| [com.isupatches.android.wisefy.signal](wisefy/com.isupatches.android.wisefy.signal/index.md) | +| [com.isupatches.android.wisefy.signal.delegates](wisefy/com.isupatches.android.wisefy.signal.delegates/index.md) | +| [com.isupatches.android.wisefy.util](wisefy/com.isupatches.android.wisefy.util/index.md) | +| [com.isupatches.android.wisefy.util.coroutines](wisefy/com.isupatches.android.wisefy.util.coroutines/index.md) | +| [com.isupatches.android.wisefy.util.legacy](wisefy/com.isupatches.android.wisefy.util.legacy/index.md) | +| [com.isupatches.android.wisefy.wifi](wisefy/com.isupatches.android.wisefy.wifi/index.md) | +| [com.isupatches.android.wisefy.wifi.delegates](wisefy/com.isupatches.android.wisefy.wifi.delegates/index.md) | diff --git a/documentation/ip.md b/documentation/ip.md deleted file mode 100644 index 94bd9f4d..00000000 --- a/documentation/ip.md +++ /dev/null @@ -1,58 +0,0 @@ -#### Via The Synchronous API - -To get the device's current IP: - -_With Kotlin_ - -```kotlin -val ip = wisefy.getIP() -``` - -_With Java_ - -```java -String ip = wisefy.getIP(); -``` - -#### Via The Asynchronous API - -To get the device's current IP: - -_With Kotlin_ - -```kotlin -wisefy.getIP(object: GetIPCallbacks { - override fun retrievedIP(ip: String) { - - } - - override fun failureRetrievingIP() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.getIP(new GetIPCallbacks() { - @Override - public void retrievedIP(String ip) { - - } - - @Override - public void failureRetrievingIP() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` \ No newline at end of file diff --git a/documentation/nearby_access_points.md b/documentation/nearby_access_points.md deleted file mode 100644 index afe458ec..00000000 --- a/documentation/nearby_access_points.md +++ /dev/null @@ -1,288 +0,0 @@ -#### Via The Synchronous API - -To get nearby access points:

-Setting filterDuplicates to true will exclude access points for an SSID that have a weaker RSSI (will always take the highest signal strength) - -_With Kotlin_ - -```kotlin -val nearbyAccessPoints = wisefy.getNearbyAccessPoints(true) -``` - -_With Java_ - -```java -List nearbyAccessPoints = wisefy.getNearbyAccessPoints(true); -``` - -To search for an access point given a regex (will return first match):

-Setting filterDuplicates to true will return the access point with the highest RSSI for the given SSID - -_With Kotlin_ - -```kotlin -val wisefy.searchForAccessPoint("regex for SSID", 3000, true) -``` - -_With Java_ - -```java -wisefy.searchForAccessPoint("regex for SSID", 3000, true); -``` - -To search for all access points matching a given regex:

-Setting filterDuplicates to true will exclude access points for an SSID that have a weaker RSSI (will always take the highest signal strength) - -_With Kotlin_ - -```kotlin -val wisefy.searchForAccessPoints("regex for SSID", true) -``` - -_With Java_ - -```java -wisefy.searchForAccessPoints("regex for SSID", true); -``` - -To search for an SSID given a regex (will return first match): - -_With Kotlin_ - -```kotlin -val ssid = wisefy.searchForSSID("regex for SSID", 3000) -``` - -_With Java_ - -```java -String ssid = wisefy.searchForSSID("regex for SSID", 3000); -``` - -To search for all SSIDs matching a given regex: - -_With Kotlin_ - -```kotlin -val ssids = wisefy.searchForSSIDs("regex for SSIDs") -``` - -_With Java_ - -```java -List ssids = wisefy.searchForSSIDs("regex for SSIDs"); -``` - -#### Via The Asynchronous API - -To get nearby access points:

-Setting filterDuplicates to true will exclude access points for an SSID that have a weaker RSSI (will always take the highest signal strength) - -_With Kotlin_ - -```kotlin -wisefy.getNearbyAccessPoints(true, object: GetNearbyAccessPointsCallbacks { - override fun retrievedNearbyAccessPoints(nearbyAccessPoints: List) { - - } - - override fun noAccessPointsFound() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.getNearbyAccessPoints(true, new GetNearbyAccessPointsCallbacks() { - @Override - public void retrievedNearbyAccessPoints(List accessPoints) { - - } - - @Override - public void noAccessPointsFound() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To search for an access point given a regex (will return first match):

-Setting filterDuplicates to true will return the access point with the highest RSSI (will always take the highest signal strength) - -_With Kotlin_ - -```kotlin -wisefy.searchForAccessPoint("regex for SSID", 3000, true, object: SearchForAccessPointCallbacks { - override fun accessPointFound(accessPoint: ScanResult) { - - } - - override fun accessPointNotFound() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.searchForAccessPoint("regex for SSID", 3000, true, new SearchForAccessPointCallbacks() { - @Override - public void accessPointFound(ScanResult accessPoint) { - - } - - @Override - public void accessPointNotFound() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To search for all access points matching a given regex:

-Setting filterDuplicates to true will exclude access points for an SSID that have a weaker RSSI (will always take the highest signal strength) - -_With Kotlin_ - -```kotlin -wisefy.searchForAccessPoints("regex for SSID", true, object: SearchForAccessPointsCallbacks { - override fun foundAccessPoints(accessPoints: List) { - - } - - override fun noAccessPointsFound() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.searchForAccessPoints("regex for SSID", true, new SearchForAccessPointsCallbacks() { - @Override - public void foundAccessPoints(List accessPoints) { - - } - - @Override - public void noAccessPointsFound() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To search for an SSID given a regex (will return first match): - -_With Kotlin_ - -```kotlin -wisefy.searchForSSID("regex for SSID", 3000, object: SearchForSSIDCallbacks { - override fun ssidFound(ssid: String) { - - } - - override fun ssidNotFound() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.searchForSSID("regex for SSID", 3000, new SearchForSSIDCallbacks() { - @Override - public void ssidFound(String ssid) { - - } - - @Override - public void ssidNotFound() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To search for all SSIDs matching a given regex: - -_With Kotlin_ - -```kotlin -wisefy.searchForSSIDs("regex for SSID", object: SearchForSSIDsCallbacks { - override fun retrievedSSIDs(ssids: List) { - - } - - override fun noSSIDsFound() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.searchForSSIDs("regex for SSID", new SearchForSSIDsCallbacks() { - @Override - public void retrievedSSIDs(List ssids) { - - } - - @Override - public void noSSIDsFound() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -***Notes*** - -- Will return a WiseFy error code if parameter is missing \ No newline at end of file diff --git a/documentation/network_security.md b/documentation/network_security.md deleted file mode 100644 index 02e36de6..00000000 --- a/documentation/network_security.md +++ /dev/null @@ -1,85 +0,0 @@ -#### Via The Synchronous API - -To check and see if a network is secure (defined by having EAP/PSK/WPA/WPA2 capabilities): - -_With Kotlin_ - -```kotlin -val isSecure = wisefy.isNetworkSecure(scanResult) -``` - -_With Java_ - -```java -boolean isSecure = wisefy.isNetworkSecure(scanResult); -``` - -To check and see if a network has EAP capabilities): - -_With Kotlin_ - -```kotlin -val hasEAPCapabilities = wisefy.isNetworkEAP(scanResult) -``` - -_With Java_ - -```java -boolean hasEAPCapabilities = wisefy.isNetworkEAP(scanResult); -``` - -To check and see if a network has PSK capabilities): - -_With Kotlin_ - -```kotlin -val hasPSKCapabilities = wisefy.isNetworkPSK(scanResult) -``` - -_With Java_ - -```java -boolean hasPSKCapabilities = wisefy.isNetworkPSK(scanResult); -``` - -To check and see if a network has WEP capabilities): - -_With Kotlin_ - -```kotlin -val hasWEPCapabilities = wisefy.isNetworkWEP(scanResult) -``` - -_With Java_ - -```java -boolean hasWEPCapabilities = wisefy.isNetworkWEP(scanResult); -``` - -To check and see if a network has WPA capabilities): - -_With Kotlin_ - -```kotlin -val hasWPACapabilities = wisefy.isNetworkWPA(scanResult) -``` - -_With Java_ - -```java -boolean hasWPACapabilities = wisefy.isNetworkWPA(scanResult); -``` - -To check and see if a network has WPA2 capabilities): - -_With Kotlin_ - -```kotlin -val hasWPA2Capabilities = wisefy.isNetworkWPA2(scanResult) -``` - -_With Java_ - -```java -boolean hasWPA2Capabilities = wisefy.isNetworkWPA2(scanResult); -``` \ No newline at end of file diff --git a/documentation/rssi.md b/documentation/rssi.md deleted file mode 100644 index 1ae595c4..00000000 --- a/documentation/rssi.md +++ /dev/null @@ -1,91 +0,0 @@ -#### Via The Synchronous API - -To calculate number of bars given a networks signal strength and total number of bars: - -_With Kotlin_ - -```kotlin -val bars = wisefy.calculateBars(-35, 5) -``` - -_With Java_ - -```java -int bars = wisefy.calculateBars(-35, 5); -``` - -To compare the signal strength of two networks: - -_With Kotlin_ - -```kotlin -val result = wisefy.compareSignalLevel(-35, -70) -``` - -_With Java_ - -```java -int result = wisefy.compareSignalLevel(-35, -70); -``` - -To get the RSSI of the first SSID matching a given regex:

-Setting takeHighest to true will return the access point with the highest RSSI for the given SSID - -_With Kotlin_ - -```kotlin -val rssi = wisefy.getRSSI("regex for SSID", true, 3000) -``` - -_With Java_ - -```java -Integer rssi = wisefy.getRSSI("regex for SSID", true, 3000); -``` - -#### Via The Asynchronous API - -To get the RSSI of the first SSID matching a given regex: - -_With Kotlin_ - -```kotlin -wisefy.getRSSI("regex for SSID", true, 3000, object: GetRSSICallbacks{ - override fun retrievedRSSI(rssi: Int) { - - } - - override fun networkNotFoundToRetrieveRSSI() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.getRSSI("regex for SSID", true, 3000, new GetRSSICallbacks() { - @Override - public void retrievedRSSI(int rssi) { - - } - - @Override - public void networkNotFoundToRetrieveRSSI() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -***Notes*** - -- Will return a WiseFy error code if parameter is missing diff --git a/documentation/saved_networks.md b/documentation/saved_networks.md deleted file mode 100644 index 6cde2baa..00000000 --- a/documentation/saved_networks.md +++ /dev/null @@ -1,186 +0,0 @@ -#### Via The Synchronous API - -To search for the first saved network that matches a given regex: - -_With Kotlin_ - -```kotlin -val savedNetwork = wisefy.searchForSavedNetwork("regex for SSID") -``` - -_With Java_ - -```java -WifiConfiguration savedNetwork = wisefy.searchForSavedNetwork("regex for SSID"); -``` - -To retrieve all of the saved networks: - -_With Kotlin_ - -```kotlin -val savedNetworks = wisefy.getSavedNetworks() -``` - -_With Java_ - -```java -List savedNetworks = wisefy.getSavedNetworks(); -``` - -To return all saved networks that match a given regex: - -_With Kotlin_ - -```kotlin -val savedNetworks = wisefy.searchForSavedNetworks("regex for SSID") -``` - -_With Java_ - -```java -List savedNetworks = wisefy.searchForSavedNetworks("regex for SSID"); -``` - -To check and see if a given SSID is in the devices set of configured networks: - -_With Kotlin_ - -```kotlin -val saved = wisefy.isNetworkSaved("regex for SSID") -``` - -_With Java_ - -```java -boolean saved = wisefy.isNetworkSaved("regex for SSID"); -``` - -#### Via The Asynchronous API - -To get the first saved network that matches a given regex: - -_With Kotlin_ - -```kotlin -wisefy.searchForSavedNetwork("regex for SSID", object: SearchForSavedNetworkCallbacks { - override fun retrievedSavedNetwork(savedNetwork: WifiConfiguration) { - - } - - override fun savedNetworkNotFound() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.searchForSavedNetwork("regex for SSID", new SearchForSavedNetworkCallbacks() { - @Override - public void retrievedSavedNetwork(WifiConfiguration savedNetwork) { - - } - - @Override - public void savedNetworkNotFound() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To retrieve all of the saved networks: - -_With Kotlin_ - -```kotlin -wisefy.getSavedNetworks(object: GetSavedNetworksCallbacks { - override fun retrievedSavedNetworks(savedNetworks: List) { - - } - - override fun noSavedNetworksFound() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.getSavedNetworks(new GetSavedNetworksCallbacks() { - @Override - public void retrievedSavedNetworks(List savedNetworks) { - - } - - @Override - public void noSavedNetworksFound() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -To return all saved networks that match a given regex: - -_With Kotlin_ - -```kotlin -wisefy.searchForSavedNetworks("regex for SSID", object: SearchForSavedNetworksCallbacks { - override fun retrievedSavedNetworks(savedNetworks: List) { - - } - - override fun noSavedNetworksFound() { - - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - - } -}) -``` - -_With Java_ - -```java -wisefy.searchForSavedNetworks("regex for SSID", new SearchForSavedNetworksCallbacks() { - @Override - public void retrievedSavedNetworks(List savedNetworks) { - - } - - @Override - public void noSavedNetworksFound() { - - } - - @Override - public void wisefyFailure(int wisefyFailureCode) { - - } -}); -``` - -***Notes*** - -- Will return a WiseFy error code if parameter is missing \ No newline at end of file diff --git a/documentation/using_legacy_classes_and_logic.md b/documentation/using_legacy_classes_and_logic.md deleted file mode 100644 index aa2adf98..00000000 --- a/documentation/using_legacy_classes_and_logic.md +++ /dev/null @@ -1,41 +0,0 @@ -To grab an instance with legacy connection enabled: - -_With Kotlin_ - -```kotlin -wiseFy = WiseFy.Brains(activity!!, useLegacyConnection = true, useLegacySearch = false).getSmarts() -``` - -_With Java_ - -```java -WiseFy wisefy = new WiseFy.Brains(getActivity(), true, false).getSmarts(); -``` - -To grab an instance with legacy search enabled: - -_With Kotlin_ - -```kotlin -wiseFy = WiseFy.Brains(activity!!, useLegacyConnection = false, useLegacySearch = true).getSmarts() -``` - -_With Java_ - -```java -WiseFy wisefy = new WiseFy.Brains(getActivity(), false, true).getSmarts(); -``` - -To grab an instance with both legacy search and legacy connection enabled: - -_With Kotlin_ - -```kotlin -wiseFy = WiseFy.Brains(activity!!, useLegacyConnection = true, useLegacySearch = true).getSmarts() -``` - -_With Java_ - -```java -WiseFy wisefy = new WiseFy.Brains(getActivity(), true, true).getSmarts(); -``` \ No newline at end of file diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..94cf3360 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/-legacy-access-points-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/-legacy-access-points-api-impl.md new file mode 100644 index 00000000..5f56bda2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/-legacy-access-points-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[LegacyAccessPointsApiImpl](-legacy-access-points-api-impl.md) + +# LegacyAccessPointsApiImpl + +[androidJvm]\ +fun [LegacyAccessPointsApiImpl](-legacy-access-points-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/access-point-matches-regex.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/access-point-matches-regex.md new file mode 100644 index 00000000..f8516089 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/access-point-matches-regex.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[accessPointMatchesRegex](access-point-matches-regex.md) + +# accessPointMatchesRegex + +[androidJvm]\ +private fun [accessPointMatchesRegex](access-point-matches-regex.md)(accessPoint: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)?, regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-nearby-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-nearby-access-points.md new file mode 100644 index 00000000..688a3430 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-nearby-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[getNearbyAccessPoints](get-nearby-access-points.md) + +# getNearbyAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-r-s-s-i.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-r-s-s-i.md new file mode 100644 index 00000000..61c67306 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-r-s-s-i.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[getRSSI](get-r-s-s-i.md) + +# getRSSI + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/has-highest-signal-strength.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/has-highest-signal-strength.md new file mode 100644 index 00000000..0d0ac079 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/has-highest-signal-strength.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[hasHighestSignalStrength](has-highest-signal-strength.md) + +# hasHighestSignalStrength + +[androidJvm]\ +private fun [hasHighestSignalStrength](has-highest-signal-strength.md)(accessPoints: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)>, currentAccessPoint: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/index.md new file mode 100644 index 00000000..b99bbcf6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/index.md @@ -0,0 +1,31 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md) + +# LegacyAccessPointsApiImpl + +[androidJvm]\ +internal class [LegacyAccessPointsApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [LegacyAccessPointsApi](../-legacy-access-points-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [accessPointMatchesRegex](access-point-matches-regex.md) | [androidJvm]
private fun [accessPointMatchesRegex](access-point-matches-regex.md)(accessPoint: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)?, regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getNearbyAccessPoints](get-nearby-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> | +| [getRSSI](get-r-s-s-i.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [hasHighestSignalStrength](has-highest-signal-strength.md) | [androidJvm]
private fun [hasHighestSignalStrength](has-highest-signal-strength.md)(accessPoints: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)>, currentAccessPoint: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [removeEntriesWithLowerSignalStrength](remove-entries-with-lower-signal-strength.md) | [androidJvm]
private fun [removeEntriesWithLowerSignalStrength](remove-entries-with-lower-signal-strength.md)(accessPoints: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)>): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> | +| [searchForAccessPoint](search-for-access-point.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? | +| [searchForAccessPoints](search-for-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> | +| [searchForSSID](search-for-s-s-i-d.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | +| [searchForSSIDs](search-for-s-s-i-ds.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [logger](logger.md) | [androidJvm]
private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? | +| [scanResultsProvider](scan-results-provider.md) | [androidJvm]
private val [scanResultsProvider](scan-results-provider.md): () -> [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)> | +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/logger.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/logger.md new file mode 100644 index 00000000..40bbb496 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/logger.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[logger](logger.md) + +# logger + +[androidJvm]\ +private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/remove-entries-with-lower-signal-strength.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/remove-entries-with-lower-signal-strength.md new file mode 100644 index 00000000..d9b2ee10 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/remove-entries-with-lower-signal-strength.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[removeEntriesWithLowerSignalStrength](remove-entries-with-lower-signal-strength.md) + +# removeEntriesWithLowerSignalStrength + +[androidJvm]\ +private fun [removeEntriesWithLowerSignalStrength](remove-entries-with-lower-signal-strength.md)(accessPoints: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)>): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/scan-results-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/scan-results-provider.md new file mode 100644 index 00000000..bdb37dc3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/scan-results-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[scanResultsProvider](scan-results-provider.md) + +# scanResultsProvider + +[androidJvm]\ +private val [scanResultsProvider](scan-results-provider.md): () -> [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-point.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-point.md new file mode 100644 index 00000000..54b8722a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-point.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[searchForAccessPoint](search-for-access-point.md) + +# searchForAccessPoint + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-points.md new file mode 100644 index 00000000..beb9f691 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[searchForAccessPoints](search-for-access-points.md) + +# searchForAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-d.md new file mode 100644 index 00000000..3310ba5c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-d.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[searchForSSID](search-for-s-s-i-d.md) + +# searchForSSID + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-ds.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-ds.md new file mode 100644 index 00000000..22f0bb8a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-ds.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[searchForSSIDs](search-for-s-s-i-ds.md) + +# searchForSSIDs + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/wifi-manager.md new file mode 100644 index 00000000..045723ea --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-nearby-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-nearby-access-points.md new file mode 100644 index 00000000..b0f23c8a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-nearby-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApi](index.md)/[getNearbyAccessPoints](get-nearby-access-points.md) + +# getNearbyAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-r-s-s-i.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-r-s-s-i.md new file mode 100644 index 00000000..db3e1770 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-r-s-s-i.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApi](index.md)/[getRSSI](get-r-s-s-i.md) + +# getRSSI + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/index.md new file mode 100644 index 00000000..a009c1f7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApi](index.md) + +# LegacyAccessPointsApi + +[androidJvm]\ +internal interface [LegacyAccessPointsApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getNearbyAccessPoints](get-nearby-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> | +| [getRSSI](get-r-s-s-i.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [searchForAccessPoint](search-for-access-point.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? | +| [searchForAccessPoints](search-for-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> | +| [searchForSSID](search-for-s-s-i-d.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | +| [searchForSSIDs](search-for-s-s-i-ds.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacyAccessPointsApiImpl](../-legacy-access-points-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-point.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-point.md new file mode 100644 index 00000000..deae216d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-point.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApi](index.md)/[searchForAccessPoint](search-for-access-point.md) + +# searchForAccessPoint + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-points.md new file mode 100644 index 00000000..ec126324 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApi](index.md)/[searchForAccessPoints](search-for-access-points.md) + +# searchForAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-d.md new file mode 100644 index 00000000..501b8467 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-d.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApi](index.md)/[searchForSSID](search-for-s-s-i-d.md) + +# searchForSSID + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-ds.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-ds.md new file mode 100644 index 00000000..a9346de2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-ds.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsApi](index.md)/[searchForSSIDs](search-for-s-s-i-ds.md) + +# searchForSSIDs + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/-legacy-access-points-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/-legacy-access-points-delegate.md new file mode 100644 index 00000000..cc8dbe3c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/-legacy-access-points-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsDelegate](index.md)/[LegacyAccessPointsDelegate](-legacy-access-points-delegate.md) + +# LegacyAccessPointsDelegate + +[androidJvm]\ +fun [LegacyAccessPointsDelegate](-legacy-access-points-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, impl: [LegacyAccessPointsApi](../-legacy-access-points-api/index.md) = LegacyAccessPointsApiImpl(wifiManager, logger)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-nearby-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-nearby-access-points.md new file mode 100644 index 00000000..717793c5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-nearby-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsDelegate](index.md)/[getNearbyAccessPoints](get-nearby-access-points.md) + +# getNearbyAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-r-s-s-i.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-r-s-s-i.md new file mode 100644 index 00000000..7f250bc6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-r-s-s-i.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsDelegate](index.md)/[getRSSI](get-r-s-s-i.md) + +# getRSSI + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/impl.md new file mode 100644 index 00000000..a3930e9b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacyAccessPointsApi](../-legacy-access-points-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/index.md new file mode 100644 index 00000000..0aaec784 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsDelegate](index.md) + +# LegacyAccessPointsDelegate + +[androidJvm]\ +internal class [LegacyAccessPointsDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [LegacyAccessPointsApi](../-legacy-access-points-api/index.md)) : [AccessPointsApi](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getNearbyAccessPoints](get-nearby-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> | +| [getRSSI](get-r-s-s-i.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [searchForAccessPoint](search-for-access-point.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? | +| [searchForAccessPoints](search-for-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> | +| [searchForSSID](search-for-s-s-i-d.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | +| [searchForSSIDs](search-for-s-s-i-ds.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacyAccessPointsApi](../-legacy-access-points-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-point.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-point.md new file mode 100644 index 00000000..c170907b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-point.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsDelegate](index.md)/[searchForAccessPoint](search-for-access-point.md) + +# searchForAccessPoint + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-points.md new file mode 100644 index 00000000..bd3d0138 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsDelegate](index.md)/[searchForAccessPoints](search-for-access-points.md) + +# searchForAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-d.md new file mode 100644 index 00000000..d592a150 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-d.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsDelegate](index.md)/[searchForSSID](search-for-s-s-i-d.md) + +# searchForSSID + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-ds.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-ds.md new file mode 100644 index 00000000..122d739a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-ds.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](../index.md)/[LegacyAccessPointsDelegate](index.md)/[searchForSSIDs](search-for-s-s-i-ds.md) + +# searchForSSIDs + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/index.md new file mode 100644 index 00000000..c3574495 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.accesspoints.delegates](index.md) + +# Package com.isupatches.android.wisefy.accesspoints.delegates + +## Types + +| Name | Summary | +|---|---| +| [LegacyAccessPointsApi](-legacy-access-points-api/index.md) | [androidJvm]
internal interface [LegacyAccessPointsApi](-legacy-access-points-api/index.md) | +| [LegacyAccessPointsApiImpl](-legacy-access-points-api-impl/index.md) | [androidJvm]
internal class [LegacyAccessPointsApiImpl](-legacy-access-points-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [LegacyAccessPointsApi](-legacy-access-points-api/index.md) | +| [LegacyAccessPointsDelegate](-legacy-access-points-delegate/index.md) | [androidJvm]
internal class [LegacyAccessPointsDelegate](-legacy-access-points-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [LegacyAccessPointsApi](-legacy-access-points-api/index.md)) : [AccessPointsApi](../com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-access-point-data.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-access-point-data.md new file mode 100644 index 00000000..9fb459b0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-access-point-data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.entities](../index.md)/[AccessPointData](index.md)/[AccessPointData](-access-point-data.md) + +# AccessPointData + +[androidJvm]\ +protected fun [AccessPointData](-access-point-data.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/-scan-data.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/-scan-data.md new file mode 100644 index 00000000..88e8262c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/-scan-data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.accesspoints.entities](../../index.md)/[AccessPointData](../index.md)/[ScanData](index.md)/[ScanData](-scan-data.md) + +# ScanData + +[androidJvm]\ +fun [ScanData](-scan-data.md)(data: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/component1.md new file mode 100644 index 00000000..093b5d89 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.accesspoints.entities](../../index.md)/[AccessPointData](../index.md)/[ScanData](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/copy.md new file mode 100644 index 00000000..1750f6a3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.accesspoints.entities](../../index.md)/[AccessPointData](../index.md)/[ScanData](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(data: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [AccessPointData.ScanData](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/data.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/data.md new file mode 100644 index 00000000..19fb959d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.accesspoints.entities](../../index.md)/[AccessPointData](../index.md)/[ScanData](index.md)/[data](data.md) + +# data + +[androidJvm]\ +val [data](data.md): [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/index.md new file mode 100644 index 00000000..0cfcd517 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.accesspoints.entities](../../index.md)/[AccessPointData](../index.md)/[ScanData](index.md) + +# ScanData + +[androidJvm]\ +data class [ScanData](index.md)(**data**: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)) : [AccessPointData](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(data: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [AccessPointData.ScanData](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [data](data.md) | [androidJvm]
val [data](data.md): [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md new file mode 100644 index 00000000..bee42525 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints.entities](../index.md)/[AccessPointData](index.md) + +# AccessPointData + +[androidJvm]\ +sealed class [AccessPointData](index.md) + +## Types + +| Name | Summary | +|---|---| +| [ScanData](-scan-data/index.md) | [androidJvm]
data class [ScanData](-scan-data/index.md)(**data**: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)) : [AccessPointData](index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [AccessPointData](-scan-data/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/index.md new file mode 100644 index 00000000..9eb0969d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints.entities/index.md @@ -0,0 +1,9 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.accesspoints.entities](index.md) + +# Package com.isupatches.android.wisefy.accesspoints.entities + +## Types + +| Name | Summary | +|---|---| +| [AccessPointData](-access-point-data/index.md) | [androidJvm]
sealed class [AccessPointData](-access-point-data/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-nearby-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-nearby-access-points.md new file mode 100644 index 00000000..2d542e78 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-nearby-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApiAsync](index.md)/[getNearbyAccessPoints](get-nearby-access-points.md) + +# getNearbyAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [GetNearbyAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-r-s-s-i.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-r-s-s-i.md new file mode 100644 index 00000000..b8b8afb3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-r-s-s-i.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApiAsync](index.md)/[getRSSI](get-r-s-s-i.md) + +# getRSSI + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [GetRSSICallbacks](../../com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/index.md new file mode 100644 index 00000000..8bf2230b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApiAsync](index.md) + +# AccessPointsApiAsync + +[androidJvm]\ +interface [AccessPointsApiAsync](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getNearbyAccessPoints](get-nearby-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [GetNearbyAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md)?) | +| [getRSSI](get-r-s-s-i.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [GetRSSICallbacks](../../com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [searchForAccessPoint](search-for-access-point.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md)?) | +| [searchForAccessPoints](search-for-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md)?) | +| [searchForSSID](search-for-s-s-i-d.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [SearchForSSIDCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md)?) | +| [searchForSSIDs](search-for-s-s-i-ds.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSSIDsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [AccessPointsUtil](../-access-points-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-point.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-point.md new file mode 100644 index 00000000..bf38a58c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-point.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApiAsync](index.md)/[searchForAccessPoint](search-for-access-point.md) + +# searchForAccessPoint + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-points.md new file mode 100644 index 00000000..b467bac6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApiAsync](index.md)/[searchForAccessPoints](search-for-access-points.md) + +# searchForAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-d.md new file mode 100644 index 00000000..229aea4b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-d.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApiAsync](index.md)/[searchForSSID](search-for-s-s-i-d.md) + +# searchForSSID + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [SearchForSSIDCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-ds.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-ds.md new file mode 100644 index 00000000..58b8f918 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-ds.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApiAsync](index.md)/[searchForSSIDs](search-for-s-s-i-ds.md) + +# searchForSSIDs + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSSIDsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-nearby-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-nearby-access-points.md new file mode 100644 index 00000000..32538d45 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-nearby-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApi](index.md)/[getNearbyAccessPoints](get-nearby-access-points.md) + +# getNearbyAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-r-s-s-i.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-r-s-s-i.md new file mode 100644 index 00000000..05324228 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-r-s-s-i.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApi](index.md)/[getRSSI](get-r-s-s-i.md) + +# getRSSI + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md new file mode 100644 index 00000000..d10f5509 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md @@ -0,0 +1,28 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApi](index.md) + +# AccessPointsApi + +[androidJvm]\ +interface [AccessPointsApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getNearbyAccessPoints](get-nearby-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> | +| [getRSSI](get-r-s-s-i.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [searchForAccessPoint](search-for-access-point.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? | +| [searchForAccessPoints](search-for-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> | +| [searchForSSID](search-for-s-s-i-d.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | +| [searchForSSIDs](search-for-s-s-i-ds.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [AccessPointsUtil](../-access-points-util/index.md) | +| [LegacyAccessPointsDelegate](../../com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-point.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-point.md new file mode 100644 index 00000000..f0e30e6d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-point.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApi](index.md)/[searchForAccessPoint](search-for-access-point.md) + +# searchForAccessPoint + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-points.md new file mode 100644 index 00000000..0e1bf72b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-points.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApi](index.md)/[searchForAccessPoints](search-for-access-points.md) + +# searchForAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-d.md new file mode 100644 index 00000000..1400b2da --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-d.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApi](index.md)/[searchForSSID](search-for-s-s-i-d.md) + +# searchForSSID + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-ds.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-ds.md new file mode 100644 index 00000000..f6e57bf3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-ds.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsApi](index.md)/[searchForSSIDs](search-for-s-s-i-ds.md) + +# searchForSSIDs + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md new file mode 100644 index 00000000..6716807a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[AccessPointsUtil](index.md) + +# AccessPointsUtil + +[androidJvm]\ +internal interface [AccessPointsUtil](index.md) : [AccessPointsApi](../-access-points-api/index.md), [AccessPointsApiAsync](../-access-points-api-async/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getNearbyAccessPoints](../-access-points-api/get-nearby-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getNearbyAccessPoints](../-access-points-api/get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getNearbyAccessPoints](../-access-points-api-async/get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [GetNearbyAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md)?) | +| [getRSSI](../-access-points-api/get-r-s-s-i.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getRSSI](../-access-points-api/get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getRSSI](../-access-points-api-async/get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [GetRSSICallbacks](../../com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [searchForAccessPoint](../-access-points-api/search-for-access-point.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoint](../-access-points-api/search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoint](../-access-points-api-async/search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md)?) | +| [searchForAccessPoints](../-access-points-api/search-for-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoints](../-access-points-api/search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoints](../-access-points-api-async/search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md)?) | +| [searchForSSID](../-access-points-api/search-for-s-s-i-d.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSID](../-access-points-api/search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSID](../-access-points-api-async/search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [SearchForSSIDCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md)?) | +| [searchForSSIDs](../-access-points-api/search-for-s-s-i-ds.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSIDs](../-access-points-api/search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSIDs](../-access-points-api-async/search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSSIDsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyAccessPointsUtil](../-wisefy-access-points-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..054884e1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.accesspoints](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/-wisefy-access-points-util.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/-wisefy-access-points-util.md new file mode 100644 index 00000000..3d0284b4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/-wisefy-access-points-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[WisefyAccessPointsUtil](-wisefy-access-points-util.md) + +# WisefyAccessPointsUtil + +[androidJvm]\ +fun [WisefyAccessPointsUtil](-wisefy-access-points-util.md)(coroutineDispatcherProvider: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/access-point-scope.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/access-point-scope.md new file mode 100644 index 00000000..7c97b90a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/access-point-scope.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[accessPointScope](access-point-scope.md) + +# accessPointScope + +[androidJvm]\ +private val [accessPointScope](access-point-scope.md): CoroutineScope diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/coroutine-dispatcher-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/coroutine-dispatcher-provider.md new file mode 100644 index 00000000..fc574557 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/coroutine-dispatcher-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[coroutineDispatcherProvider](coroutine-dispatcher-provider.md) + +# coroutineDispatcherProvider + +[androidJvm]\ +private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/delegate.md new file mode 100644 index 00000000..3a8e8f9a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [LegacyAccessPointsDelegate](../../com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-nearby-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-nearby-access-points.md new file mode 100644 index 00000000..d76de774 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-nearby-access-points.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[getNearbyAccessPoints](get-nearby-access-points.md) + +# getNearbyAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [GetNearbyAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-r-s-s-i.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-r-s-s-i.md new file mode 100644 index 00000000..255767f6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-r-s-s-i.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[getRSSI](get-r-s-s-i.md) + +# getRSSI + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [GetRSSICallbacks](../../com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/index.md new file mode 100644 index 00000000..3a582dce --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/index.md @@ -0,0 +1,28 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md) + +# WisefyAccessPointsUtil + +[androidJvm]\ +internal class [WisefyAccessPointsUtil](index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [AccessPointsUtil](../-access-points-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getNearbyAccessPoints](get-nearby-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [GetNearbyAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md)?) | +| [getRSSI](get-r-s-s-i.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [GetRSSICallbacks](../../com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [searchForAccessPoint](search-for-access-point.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md)?) | +| [searchForAccessPoints](search-for-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md)?) | +| [searchForSSID](search-for-s-s-i-d.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [SearchForSSIDCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md)?) | +| [searchForSSIDs](search-for-s-s-i-ds.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSSIDsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [accessPointScope](access-point-scope.md) | [androidJvm]
private val [accessPointScope](access-point-scope.md): CoroutineScope | +| [coroutineDispatcherProvider](coroutine-dispatcher-provider.md) | [androidJvm]
private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) | +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [LegacyAccessPointsDelegate](../../com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-point.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-point.md new file mode 100644 index 00000000..cc3dc780 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-point.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[searchForAccessPoint](search-for-access-point.md) + +# searchForAccessPoint + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-points.md new file mode 100644 index 00000000..ee2e52cc --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-points.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[searchForAccessPoints](search-for-access-points.md) + +# searchForAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-d.md new file mode 100644 index 00000000..30cfb753 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-d.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[searchForSSID](search-for-s-s-i-d.md) + +# searchForSSID + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [SearchForSSIDCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-ds.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-ds.md new file mode 100644 index 00000000..137fa8ac --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-ds.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.accesspoints](../index.md)/[WisefyAccessPointsUtil](index.md)/[searchForSSIDs](search-for-s-s-i-ds.md) + +# searchForSSIDs + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSSIDsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/index.md b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/index.md new file mode 100644 index 00000000..f4ee53aa --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.accesspoints/index.md @@ -0,0 +1,18 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.accesspoints](index.md) + +# Package com.isupatches.android.wisefy.accesspoints + +## Types + +| Name | Summary | +|---|---| +| [AccessPointsApi](-access-points-api/index.md) | [androidJvm]
interface [AccessPointsApi](-access-points-api/index.md) | +| [AccessPointsApiAsync](-access-points-api-async/index.md) | [androidJvm]
interface [AccessPointsApiAsync](-access-points-api-async/index.md) | +| [AccessPointsUtil](-access-points-util/index.md) | [androidJvm]
internal interface [AccessPointsUtil](-access-points-util/index.md) : [AccessPointsApi](-access-points-api/index.md), [AccessPointsApiAsync](-access-points-api-async/index.md) | +| [WisefyAccessPointsUtil](-wisefy-access-points-util/index.md) | [androidJvm]
internal class [WisefyAccessPointsUtil](-wisefy-access-points-util/index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [AccessPointsUtil](-access-points-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md new file mode 100644 index 00000000..62a71b89 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](index.md)/[ANDROID_Q_SAVE_NETWORK_WARNING](-a-n-d-r-o-i-d_-q_-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md) + +# ANDROID_Q_SAVE_NETWORK_WARNING + +[androidJvm]\ +private const val [ANDROID_Q_SAVE_NETWORK_WARNING](-a-n-d-r-o-i-d_-q_-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/-android29-add-network-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/-android29-add-network-api-impl.md new file mode 100644 index 00000000..e37b03dd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/-android29-add-network-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApiImpl](index.md)/[Android29AddNetworkApiImpl](-android29-add-network-api-impl.md) + +# Android29AddNetworkApiImpl + +[androidJvm]\ +fun [Android29AddNetworkApiImpl](-android29-add-network-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-open-network.md new file mode 100644 index 00000000..015aba1d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApiImpl](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a2-network.md new file mode 100644 index 00000000..8594ac9f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApiImpl](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a3-network.md new file mode 100644 index 00000000..f0ace018 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a3-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApiImpl](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA3Network](add-w-p-a3-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/index.md new file mode 100644 index 00000000..1c2876bb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApiImpl](index.md) + +# Android29AddNetworkApiImpl + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +internal class [Android29AddNetworkApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [Android29AddNetworkApi](../-android29-add-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA3Network](add-w-p-a3-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [logger](logger.md) | [androidJvm]
private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? | +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/logger.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/logger.md new file mode 100644 index 00000000..b3c1668b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/logger.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApiImpl](index.md)/[logger](logger.md) + +# logger + +[androidJvm]\ +private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/wifi-manager.md new file mode 100644 index 00000000..a167d736 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-open-network.md new file mode 100644 index 00000000..0b50af23 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApi](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a2-network.md new file mode 100644 index 00000000..bebf47cc --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApi](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a3-network.md new file mode 100644 index 00000000..f815c53c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a3-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApi](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addWPA3Network](add-w-p-a3-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/index.md new file mode 100644 index 00000000..870d775b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkApi](index.md) + +# Android29AddNetworkApi + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +internal interface [Android29AddNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA3Network](add-w-p-a3-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [Android29AddNetworkApiImpl](../-android29-add-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/-android29-add-network-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/-android29-add-network-delegate.md new file mode 100644 index 00000000..db6d453a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/-android29-add-network-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkDelegate](index.md)/[Android29AddNetworkDelegate](-android29-add-network-delegate.md) + +# Android29AddNetworkDelegate + +[androidJvm]\ +fun [Android29AddNetworkDelegate](-android29-add-network-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, impl: [Android29AddNetworkApi](../-android29-add-network-api/index.md) = Android29AddNetworkApiImpl(wifiManager, logger)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-open-network.md new file mode 100644 index 00000000..27964b95 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkDelegate](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a2-network.md new file mode 100644 index 00000000..b9a98a1a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkDelegate](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a3-network.md new file mode 100644 index 00000000..34a4a488 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a3-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkDelegate](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/impl.md new file mode 100644 index 00000000..53217506 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [Android29AddNetworkApi](../-android29-add-network-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/index.md new file mode 100644 index 00000000..f6d65e05 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android29AddNetworkDelegate](index.md) + +# Android29AddNetworkDelegate + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +internal class [Android29AddNetworkDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [Android29AddNetworkApi](../-android29-add-network-api/index.md)) : [AddNetworkApi](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [Android29AddNetworkApi](../-android29-add-network-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/-android30-add-network-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/-android30-add-network-api-impl.md new file mode 100644 index 00000000..e88c949a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/-android30-add-network-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApiImpl](index.md)/[Android30AddNetworkApiImpl](-android30-add-network-api-impl.md) + +# Android30AddNetworkApiImpl + +[androidJvm]\ +fun [Android30AddNetworkApiImpl](-android30-add-network-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-open-network.md new file mode 100644 index 00000000..ad6895d3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApiImpl](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a2-network.md new file mode 100644 index 00000000..ca1fcf18 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApiImpl](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a3-network.md new file mode 100644 index 00000000..52f9ef9c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a3-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApiImpl](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA3Network](add-w-p-a3-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/index.md new file mode 100644 index 00000000..c9476457 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApiImpl](index.md) + +# Android30AddNetworkApiImpl + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +internal class [Android30AddNetworkApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android30AddNetworkApi](../-android30-add-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA3Network](add-w-p-a3-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [launchIntent](launch-intent.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.CHANGE_WIFI_STATE)
private fun [launchIntent](launch-intent.md)(suggestion: [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/launch-intent.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/launch-intent.md new file mode 100644 index 00000000..56b065b1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/launch-intent.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApiImpl](index.md)/[launchIntent](launch-intent.md) + +# launchIntent + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.CHANGE_WIFI_STATE) + +private fun [launchIntent](launch-intent.md)(suggestion: [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/wifi-manager.md new file mode 100644 index 00000000..caa25d6a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-open-network.md new file mode 100644 index 00000000..ace5e5b6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApi](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a2-network.md new file mode 100644 index 00000000..2ab7cde3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApi](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a3-network.md new file mode 100644 index 00000000..2cc5e778 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a3-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApi](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addWPA3Network](add-w-p-a3-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/index.md new file mode 100644 index 00000000..52562952 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkApi](index.md) + +# Android30AddNetworkApi + +[androidJvm]\ +internal interface [Android30AddNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA3Network](add-w-p-a3-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [Android30AddNetworkApiImpl](../-android30-add-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/-android30-add-network-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/-android30-add-network-delegate.md new file mode 100644 index 00000000..a9769d82 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/-android30-add-network-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkDelegate](index.md)/[Android30AddNetworkDelegate](-android30-add-network-delegate.md) + +# Android30AddNetworkDelegate + +[androidJvm]\ +fun [Android30AddNetworkDelegate](-android30-add-network-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), impl: [Android30AddNetworkApi](../-android30-add-network-api/index.md) = Android30AddNetworkApiImpl(wifiManager)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-open-network.md new file mode 100644 index 00000000..708e62c1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkDelegate](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a2-network.md new file mode 100644 index 00000000..c45020eb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkDelegate](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a3-network.md new file mode 100644 index 00000000..dbe13aee --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a3-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkDelegate](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/impl.md new file mode 100644 index 00000000..34c4fc59 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [Android30AddNetworkApi](../-android30-add-network-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/index.md new file mode 100644 index 00000000..44d73036 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[Android30AddNetworkDelegate](index.md) + +# Android30AddNetworkDelegate + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +internal class [Android30AddNetworkDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android30AddNetworkApi](../-android30-add-network-api/index.md)) : [AddNetworkApi](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [Android30AddNetworkApi](../-android30-add-network-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..0c223126 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/-legacy-add-network-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/-legacy-add-network-api-impl.md new file mode 100644 index 00000000..8f2870a7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/-legacy-add-network-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkApiImpl](index.md)/[LegacyAddNetworkApiImpl](-legacy-add-network-api-impl.md) + +# LegacyAddNetworkApiImpl + +[androidJvm]\ +fun [LegacyAddNetworkApiImpl](-legacy-add-network-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-open-network.md new file mode 100644 index 00000000..b663c80f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkApiImpl](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-w-p-a2-network.md new file mode 100644 index 00000000..a6e19051 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkApiImpl](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/index.md new file mode 100644 index 00000000..ecfee39f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkApiImpl](index.md) + +# LegacyAddNetworkApiImpl + +[androidJvm]\ +internal class [LegacyAddNetworkApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [LegacyAddNetworkApi](../-legacy-add-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/wifi-manager.md new file mode 100644 index 00000000..1d43c54a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-open-network.md new file mode 100644 index 00000000..6a0f9e50 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-open-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkApi](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ +abstract fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-w-p-a2-network.md new file mode 100644 index 00000000..44d299f4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-w-p-a2-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkApi](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ +abstract fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/index.md new file mode 100644 index 00000000..1741af36 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkApi](index.md) + +# LegacyAddNetworkApi + +[androidJvm]\ +internal interface [LegacyAddNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
abstract fun [addOpenNetwork](add-open-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
abstract fun [addWPA2Network](add-w-p-a2-network.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacyAddNetworkApiImpl](../-legacy-add-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/-legacy-add-network-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/-legacy-add-network-delegate.md new file mode 100644 index 00000000..01cbf341 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/-legacy-add-network-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkDelegate](index.md)/[LegacyAddNetworkDelegate](-legacy-add-network-delegate.md) + +# LegacyAddNetworkDelegate + +[androidJvm]\ +fun [LegacyAddNetworkDelegate](-legacy-add-network-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), impl: [LegacyAddNetworkApi](../-legacy-add-network-api/index.md) = LegacyAddNetworkApiImpl(wifiManager)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-open-network.md new file mode 100644 index 00000000..ff8ab406 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkDelegate](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a2-network.md new file mode 100644 index 00000000..c5db101f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkDelegate](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a3-network.md new file mode 100644 index 00000000..0301ddae --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a3-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkDelegate](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/impl.md new file mode 100644 index 00000000..b1079fe6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacyAddNetworkApi](../-legacy-add-network-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/index.md new file mode 100644 index 00000000..b673564b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](../index.md)/[LegacyAddNetworkDelegate](index.md) + +# LegacyAddNetworkDelegate + +[androidJvm]\ +internal class [LegacyAddNetworkDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [LegacyAddNetworkApi](../-legacy-add-network-api/index.md)) : [AddNetworkApi](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacyAddNetworkApi](../-legacy-add-network-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/index.md new file mode 100644 index 00000000..4df9615f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.addnetwork.delegates](index.md) + +# Package com.isupatches.android.wisefy.addnetwork.delegates + +## Types + +| Name | Summary | +|---|---| +| [Android29AddNetworkApi](-android29-add-network-api/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
internal interface [Android29AddNetworkApi](-android29-add-network-api/index.md) | +| [Android29AddNetworkApiImpl](-android29-add-network-api-impl/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
internal class [Android29AddNetworkApiImpl](-android29-add-network-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [Android29AddNetworkApi](-android29-add-network-api/index.md) | +| [Android29AddNetworkDelegate](-android29-add-network-delegate/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
internal class [Android29AddNetworkDelegate](-android29-add-network-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [Android29AddNetworkApi](-android29-add-network-api/index.md)) : [AddNetworkApi](../com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md) | +| [Android30AddNetworkApi](-android30-add-network-api/index.md) | [androidJvm]
internal interface [Android30AddNetworkApi](-android30-add-network-api/index.md) | +| [Android30AddNetworkApiImpl](-android30-add-network-api-impl/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
internal class [Android30AddNetworkApiImpl](-android30-add-network-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android30AddNetworkApi](-android30-add-network-api/index.md) | +| [Android30AddNetworkDelegate](-android30-add-network-delegate/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
internal class [Android30AddNetworkDelegate](-android30-add-network-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android30AddNetworkApi](-android30-add-network-api/index.md)) : [AddNetworkApi](../com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md) | +| [LegacyAddNetworkApi](-legacy-add-network-api/index.md) | [androidJvm]
internal interface [LegacyAddNetworkApi](-legacy-add-network-api/index.md) | +| [LegacyAddNetworkApiImpl](-legacy-add-network-api-impl/index.md) | [androidJvm]
internal class [LegacyAddNetworkApiImpl](-legacy-add-network-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [LegacyAddNetworkApi](-legacy-add-network-api/index.md) | +| [LegacyAddNetworkDelegate](-legacy-add-network-delegate/index.md) | [androidJvm]
internal class [LegacyAddNetworkDelegate](-legacy-add-network-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [LegacyAddNetworkApi](-legacy-add-network-api/index.md)) : [AddNetworkApi](../com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [ANDROID_Q_SAVE_NETWORK_WARNING](-a-n-d-r-o-i-d_-q_-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md) | [androidJvm]
private const val [ANDROID_Q_SAVE_NETWORK_WARNING](-a-n-d-r-o-i-d_-q_-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-add-network-result.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-add-network-result.md new file mode 100644 index 00000000..755e5436 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-add-network-result.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../index.md)/[AddNetworkResult](index.md)/[AddNetworkResult](-add-network-result.md) + +# AddNetworkResult + +[androidJvm]\ +protected fun [AddNetworkResult](-add-network-result.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-intent-launched/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-intent-launched/index.md new file mode 100644 index 00000000..292899fb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-intent-launched/index.md @@ -0,0 +1,14 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[IntentLaunched](index.md) + +# IntentLaunched + +[androidJvm]\ +object [IntentLaunched](index.md) : [AddNetworkResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/-result-code.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/-result-code.md new file mode 100644 index 00000000..9ee9b518 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/-result-code.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[ResultCode](index.md)/[ResultCode](-result-code.md) + +# ResultCode + +[androidJvm]\ +fun [ResultCode](-result-code.md)(data: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/component1.md new file mode 100644 index 00000000..fdf5028c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[ResultCode](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/copy.md new file mode 100644 index 00000000..4364a41d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[ResultCode](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(data: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [AddNetworkResult.ResultCode](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/data.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/data.md new file mode 100644 index 00000000..3012698f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[ResultCode](index.md)/[data](data.md) + +# data + +[androidJvm]\ +val [data](data.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/index.md new file mode 100644 index 00000000..db70a16b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[ResultCode](index.md) + +# ResultCode + +[androidJvm]\ +data class [ResultCode](index.md)(**data**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [AddNetworkResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(data: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [AddNetworkResult.ResultCode](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [data](data.md) | [androidJvm]
val [data](data.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/-wrong-s-d-k-level-error.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/-wrong-s-d-k-level-error.md new file mode 100644 index 00000000..25f8bef9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/-wrong-s-d-k-level-error.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[WrongSDKLevelError](index.md)/[WrongSDKLevelError](-wrong-s-d-k-level-error.md) + +# WrongSDKLevelError + +[androidJvm]\ +fun [WrongSDKLevelError](-wrong-s-d-k-level-error.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/component1.md new file mode 100644 index 00000000..d43c4fd1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[WrongSDKLevelError](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/copy.md new file mode 100644 index 00000000..ebac5244 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[WrongSDKLevelError](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult.WrongSDKLevelError](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/index.md new file mode 100644 index 00000000..35274261 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[WrongSDKLevelError](index.md) + +# WrongSDKLevelError + +[androidJvm]\ +data class [WrongSDKLevelError](index.md)(**message**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [AddNetworkResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [AddNetworkResult.WrongSDKLevelError](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [message](message.md) | [androidJvm]
val [message](message.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/message.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/message.md new file mode 100644 index 00000000..1b348db4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/message.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[AddNetworkResult](../index.md)/[WrongSDKLevelError](index.md)/[message](message.md) + +# message + +[androidJvm]\ +val [message](message.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md new file mode 100644 index 00000000..e7528b18 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md @@ -0,0 +1,30 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../index.md)/[AddNetworkResult](index.md) + +# AddNetworkResult + +[androidJvm]\ +sealed class [AddNetworkResult](index.md) + +## Types + +| Name | Summary | +|---|---| +| [IntentLaunched](-intent-launched/index.md) | [androidJvm]
object [IntentLaunched](-intent-launched/index.md) : [AddNetworkResult](index.md) | +| [ResultCode](-result-code/index.md) | [androidJvm]
data class [ResultCode](-result-code/index.md)(**data**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [AddNetworkResult](index.md) | +| [WrongSDKLevelError](-wrong-s-d-k-level-error/index.md) | [androidJvm]
data class [WrongSDKLevelError](-wrong-s-d-k-level-error/index.md)(**message**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [AddNetworkResult](index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [AddNetworkResult](-result-code/index.md) | +| [AddNetworkResult](-intent-launched/index.md) | +| [AddNetworkResult](-wrong-s-d-k-level-error/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-open-network-data.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-open-network-data.md new file mode 100644 index 00000000..69cbf171 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-open-network-data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../index.md)/[OpenNetworkData](index.md)/[OpenNetworkData](-open-network-data.md) + +# OpenNetworkData + +[androidJvm]\ +protected fun [OpenNetworkData](-open-network-data.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/-ssid-and-activity-result-launcher.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/-ssid-and-activity-result-launcher.md new file mode 100644 index 00000000..a4b4f38d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/-ssid-and-activity-result-launcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[SsidAndActivityResultLauncher](index.md)/[SsidAndActivityResultLauncher](-ssid-and-activity-result-launcher.md) + +# SsidAndActivityResultLauncher + +[androidJvm]\ +fun [SsidAndActivityResultLauncher](-ssid-and-activity-result-launcher.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/activity-result-launcher.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/activity-result-launcher.md new file mode 100644 index 00000000..0be7ed6b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/activity-result-launcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[SsidAndActivityResultLauncher](index.md)/[activityResultLauncher](activity-result-launcher.md) + +# activityResultLauncher + +[androidJvm]\ +val [activityResultLauncher](activity-result-launcher.md): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component1.md new file mode 100644 index 00000000..055ec8ef --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[SsidAndActivityResultLauncher](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component2.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component2.md new file mode 100644 index 00000000..0bd94e75 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[SsidAndActivityResultLauncher](index.md)/[component2](component2.md) + +# component2 + +[androidJvm]\ +operator fun [component2](component2.md)(): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/copy.md new file mode 100644 index 00000000..4b018a4b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[SsidAndActivityResultLauncher](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [OpenNetworkData.SsidAndActivityResultLauncher](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/index.md new file mode 100644 index 00000000..d8a1b539 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[SsidAndActivityResultLauncher](index.md) + +# SsidAndActivityResultLauncher + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +data class [SsidAndActivityResultLauncher](index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **activityResultLauncher**: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>) : [OpenNetworkData](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [component2](component2.md) | [androidJvm]
operator fun [component2](component2.md)(): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [OpenNetworkData.SsidAndActivityResultLauncher](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [activityResultLauncher](activity-result-launcher.md) | [androidJvm]
val [activityResultLauncher](activity-result-launcher.md): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> | +| [ssid](ssid.md) | [androidJvm]
val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/ssid.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/ssid.md new file mode 100644 index 00000000..7d305083 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/ssid.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[SsidAndActivityResultLauncher](index.md)/[ssid](ssid.md) + +# ssid + +[androidJvm]\ +val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/-ssid.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/-ssid.md new file mode 100644 index 00000000..5ff585d1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/-ssid.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[Ssid](index.md)/[Ssid](-ssid.md) + +# Ssid + +[androidJvm]\ +fun [Ssid](-ssid.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/component1.md new file mode 100644 index 00000000..01597d20 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[Ssid](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/copy.md new file mode 100644 index 00000000..72259b0d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[Ssid](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenNetworkData.Ssid](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/index.md new file mode 100644 index 00000000..4f0eab18 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[Ssid](index.md) + +# Ssid + +[androidJvm]\ +data class [Ssid](index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [OpenNetworkData](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenNetworkData.Ssid](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [ssid](ssid.md) | [androidJvm]
val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/ssid.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/ssid.md new file mode 100644 index 00000000..cb514d5a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/ssid.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[OpenNetworkData](../index.md)/[Ssid](index.md)/[ssid](ssid.md) + +# ssid + +[androidJvm]\ +val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md new file mode 100644 index 00000000..5bb9392e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md @@ -0,0 +1,28 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../index.md)/[OpenNetworkData](index.md) + +# OpenNetworkData + +[androidJvm]\ +sealed class [OpenNetworkData](index.md) + +## Types + +| Name | Summary | +|---|---| +| [Ssid](-ssid/index.md) | [androidJvm]
data class [Ssid](-ssid/index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [OpenNetworkData](index.md) | +| [SsidAndActivityResultLauncher](-ssid-and-activity-result-launcher/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
data class [SsidAndActivityResultLauncher](-ssid-and-activity-result-launcher/index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **activityResultLauncher**: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>) : [OpenNetworkData](index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [OpenNetworkData](-ssid/index.md) | +| [OpenNetworkData](-ssid-and-activity-result-launcher/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md new file mode 100644 index 00000000..dd100ef7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[SsidAndPassphrase](-ssid-and-passphrase.md) + +# SsidAndPassphrase + +[androidJvm]\ +fun [SsidAndPassphrase](-ssid-and-passphrase.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component1.md new file mode 100644 index 00000000..626c9ebf --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component2.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component2.md new file mode 100644 index 00000000..157841ef --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[component2](component2.md) + +# component2 + +[androidJvm]\ +operator fun [component2](component2.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/copy.md new file mode 100644 index 00000000..2628cd3c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WPA2NetworkData.SsidAndPassphrase](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/index.md new file mode 100644 index 00000000..a5026f7e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidAndPassphrase](index.md) + +# SsidAndPassphrase + +[androidJvm]\ +data class [SsidAndPassphrase](index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **passphrase**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [WPA2NetworkData](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [component2](component2.md) | [androidJvm]
operator fun [component2](component2.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WPA2NetworkData.SsidAndPassphrase](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [passphrase](passphrase.md) | [androidJvm]
val [passphrase](passphrase.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ssid](ssid.md) | [androidJvm]
val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/passphrase.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/passphrase.md new file mode 100644 index 00000000..859d574a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/passphrase.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[passphrase](passphrase.md) + +# passphrase + +[androidJvm]\ +val [passphrase](passphrase.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/ssid.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/ssid.md new file mode 100644 index 00000000..c3e8c036 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/ssid.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[ssid](ssid.md) + +# ssid + +[androidJvm]\ +val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md new file mode 100644 index 00000000..b58e95dd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[SsidPassphraseAndActivityResultLauncher](-ssid-passphrase-and-activity-result-launcher.md) + +# SsidPassphraseAndActivityResultLauncher + +[androidJvm]\ +fun [SsidPassphraseAndActivityResultLauncher](-ssid-passphrase-and-activity-result-launcher.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md new file mode 100644 index 00000000..d49717d9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[activityResultLauncher](activity-result-launcher.md) + +# activityResultLauncher + +[androidJvm]\ +val [activityResultLauncher](activity-result-launcher.md): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md new file mode 100644 index 00000000..6d8c33b5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md new file mode 100644 index 00000000..414e3e4a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[component2](component2.md) + +# component2 + +[androidJvm]\ +operator fun [component2](component2.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md new file mode 100644 index 00000000..376b6db0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[component3](component3.md) + +# component3 + +[androidJvm]\ +operator fun [component3](component3.md)(): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md new file mode 100644 index 00000000..019527c5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [WPA2NetworkData.SsidPassphraseAndActivityResultLauncher](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/index.md new file mode 100644 index 00000000..c012db7c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/index.md @@ -0,0 +1,28 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md) + +# SsidPassphraseAndActivityResultLauncher + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +data class [SsidPassphraseAndActivityResultLauncher](index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **passphrase**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **activityResultLauncher**: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>) : [WPA2NetworkData](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [component2](component2.md) | [androidJvm]
operator fun [component2](component2.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [component3](component3.md) | [androidJvm]
operator fun [component3](component3.md)(): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [WPA2NetworkData.SsidPassphraseAndActivityResultLauncher](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [activityResultLauncher](activity-result-launcher.md) | [androidJvm]
val [activityResultLauncher](activity-result-launcher.md): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> | +| [passphrase](passphrase.md) | [androidJvm]
val [passphrase](passphrase.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ssid](ssid.md) | [androidJvm]
val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md new file mode 100644 index 00000000..782d77b6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[passphrase](passphrase.md) + +# passphrase + +[androidJvm]\ +val [passphrase](passphrase.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md new file mode 100644 index 00000000..21aab0e6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA2NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[ssid](ssid.md) + +# ssid + +[androidJvm]\ +val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-w-p-a2-network-data.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-w-p-a2-network-data.md new file mode 100644 index 00000000..72ca7784 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-w-p-a2-network-data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../index.md)/[WPA2NetworkData](index.md)/[WPA2NetworkData](-w-p-a2-network-data.md) + +# WPA2NetworkData + +[androidJvm]\ +protected fun [WPA2NetworkData](-w-p-a2-network-data.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md new file mode 100644 index 00000000..9e3de556 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md @@ -0,0 +1,28 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../index.md)/[WPA2NetworkData](index.md) + +# WPA2NetworkData + +[androidJvm]\ +sealed class [WPA2NetworkData](index.md) + +## Types + +| Name | Summary | +|---|---| +| [SsidAndPassphrase](-ssid-and-passphrase/index.md) | [androidJvm]
data class [SsidAndPassphrase](-ssid-and-passphrase/index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **passphrase**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [WPA2NetworkData](index.md) | +| [SsidPassphraseAndActivityResultLauncher](-ssid-passphrase-and-activity-result-launcher/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
data class [SsidPassphraseAndActivityResultLauncher](-ssid-passphrase-and-activity-result-launcher/index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **passphrase**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **activityResultLauncher**: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>) : [WPA2NetworkData](index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WPA2NetworkData](-ssid-and-passphrase/index.md) | +| [WPA2NetworkData](-ssid-passphrase-and-activity-result-launcher/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md new file mode 100644 index 00000000..912244e5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[SsidAndPassphrase](-ssid-and-passphrase.md) + +# SsidAndPassphrase + +[androidJvm]\ +fun [SsidAndPassphrase](-ssid-and-passphrase.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component1.md new file mode 100644 index 00000000..e7233b03 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component2.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component2.md new file mode 100644 index 00000000..95dcb3f2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[component2](component2.md) + +# component2 + +[androidJvm]\ +operator fun [component2](component2.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/copy.md new file mode 100644 index 00000000..933dd8be --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WPA3NetworkData.SsidAndPassphrase](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/index.md new file mode 100644 index 00000000..f9adc305 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidAndPassphrase](index.md) + +# SsidAndPassphrase + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +data class [SsidAndPassphrase](index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **passphrase**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [WPA3NetworkData](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [component2](component2.md) | [androidJvm]
operator fun [component2](component2.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WPA3NetworkData.SsidAndPassphrase](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [passphrase](passphrase.md) | [androidJvm]
val [passphrase](passphrase.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ssid](ssid.md) | [androidJvm]
val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/passphrase.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/passphrase.md new file mode 100644 index 00000000..76512e1e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/passphrase.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[passphrase](passphrase.md) + +# passphrase + +[androidJvm]\ +val [passphrase](passphrase.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/ssid.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/ssid.md new file mode 100644 index 00000000..835a3a76 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/ssid.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidAndPassphrase](index.md)/[ssid](ssid.md) + +# ssid + +[androidJvm]\ +val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md new file mode 100644 index 00000000..252f91c4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[SsidPassphraseAndActivityResultLauncher](-ssid-passphrase-and-activity-result-launcher.md) + +# SsidPassphraseAndActivityResultLauncher + +[androidJvm]\ +fun [SsidPassphraseAndActivityResultLauncher](-ssid-passphrase-and-activity-result-launcher.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md new file mode 100644 index 00000000..be8afbf6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[activityResultLauncher](activity-result-launcher.md) + +# activityResultLauncher + +[androidJvm]\ +val [activityResultLauncher](activity-result-launcher.md): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md new file mode 100644 index 00000000..5cc47afe --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md new file mode 100644 index 00000000..4f170389 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[component2](component2.md) + +# component2 + +[androidJvm]\ +operator fun [component2](component2.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md new file mode 100644 index 00000000..ce944c2a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[component3](component3.md) + +# component3 + +[androidJvm]\ +operator fun [component3](component3.md)(): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md new file mode 100644 index 00000000..7e614d71 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [WPA3NetworkData.SsidPassphraseAndActivityResultLauncher](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/index.md new file mode 100644 index 00000000..d739fe8c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/index.md @@ -0,0 +1,28 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md) + +# SsidPassphraseAndActivityResultLauncher + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +data class [SsidPassphraseAndActivityResultLauncher](index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **passphrase**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **activityResultLauncher**: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>) : [WPA3NetworkData](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [component2](component2.md) | [androidJvm]
operator fun [component2](component2.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [component3](component3.md) | [androidJvm]
operator fun [component3](component3.md)(): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), activityResultLauncher: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>): [WPA3NetworkData.SsidPassphraseAndActivityResultLauncher](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [activityResultLauncher](activity-result-launcher.md) | [androidJvm]
val [activityResultLauncher](activity-result-launcher.md): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)> | +| [passphrase](passphrase.md) | [androidJvm]
val [passphrase](passphrase.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ssid](ssid.md) | [androidJvm]
val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md new file mode 100644 index 00000000..78c4fd4d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[passphrase](passphrase.md) + +# passphrase + +[androidJvm]\ +val [passphrase](passphrase.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md new file mode 100644 index 00000000..fba1d815 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../../index.md)/[WPA3NetworkData](../index.md)/[SsidPassphraseAndActivityResultLauncher](index.md)/[ssid](ssid.md) + +# ssid + +[androidJvm]\ +val [ssid](ssid.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-w-p-a3-network-data.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-w-p-a3-network-data.md new file mode 100644 index 00000000..bb1fbc79 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-w-p-a3-network-data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../index.md)/[WPA3NetworkData](index.md)/[WPA3NetworkData](-w-p-a3-network-data.md) + +# WPA3NetworkData + +[androidJvm]\ +protected fun [WPA3NetworkData](-w-p-a3-network-data.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md new file mode 100644 index 00000000..56b21ae3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md @@ -0,0 +1,30 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](../index.md)/[WPA3NetworkData](index.md) + +# WPA3NetworkData + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +sealed class [WPA3NetworkData](index.md) + +## Types + +| Name | Summary | +|---|---| +| [SsidAndPassphrase](-ssid-and-passphrase/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
data class [SsidAndPassphrase](-ssid-and-passphrase/index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **passphrase**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [WPA3NetworkData](index.md) | +| [SsidPassphraseAndActivityResultLauncher](-ssid-passphrase-and-activity-result-launcher/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
data class [SsidPassphraseAndActivityResultLauncher](-ssid-passphrase-and-activity-result-launcher/index.md)(**ssid**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **passphrase**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **activityResultLauncher**: [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>) : [WPA3NetworkData](index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WPA3NetworkData](-ssid-and-passphrase/index.md) | +| [WPA3NetworkData](-ssid-passphrase-and-activity-result-launcher/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/index.md new file mode 100644 index 00000000..628ad65a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork.entities/index.md @@ -0,0 +1,12 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.addnetwork.entities](index.md) + +# Package com.isupatches.android.wisefy.addnetwork.entities + +## Types + +| Name | Summary | +|---|---| +| [AddNetworkResult](-add-network-result/index.md) | [androidJvm]
sealed class [AddNetworkResult](-add-network-result/index.md) | +| [OpenNetworkData](-open-network-data/index.md) | [androidJvm]
sealed class [OpenNetworkData](-open-network-data/index.md) | +| [WPA2NetworkData](-w-p-a2-network-data/index.md) | [androidJvm]
sealed class [WPA2NetworkData](-w-p-a2-network-data/index.md) | +| [WPA3NetworkData](-w-p-a3-network-data/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
sealed class [WPA3NetworkData](-w-p-a3-network-data/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-open-network.md new file mode 100644 index 00000000..547a8710 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[AddNetworkApiAsync](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a2-network.md new file mode 100644 index 00000000..b4e459ce --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[AddNetworkApiAsync](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a3-network.md new file mode 100644 index 00000000..8fa6ce7e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a3-network.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[AddNetworkApiAsync](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/index.md new file mode 100644 index 00000000..9a28defa --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[AddNetworkApiAsync](index.md) + +# AddNetworkApiAsync + +[androidJvm]\ +interface [AddNetworkApiAsync](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [AddNetworkUtil](../-add-network-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-open-network.md new file mode 100644 index 00000000..60006f80 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-open-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[AddNetworkApi](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a2-network.md new file mode 100644 index 00000000..6d4eab21 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a2-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[AddNetworkApi](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a3-network.md new file mode 100644 index 00000000..c7547768 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a3-network.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[AddNetworkApi](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md new file mode 100644 index 00000000..5d4258fc --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[AddNetworkApi](index.md) + +# AddNetworkApi + +[androidJvm]\ +interface [AddNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [AddNetworkUtil](../-add-network-util/index.md) | +| [Android29AddNetworkDelegate](../../com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/index.md) | +| [Android30AddNetworkDelegate](../../com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/index.md) | +| [LegacyAddNetworkDelegate](../../com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md new file mode 100644 index 00000000..722706d3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[AddNetworkUtil](index.md) + +# AddNetworkUtil + +[androidJvm]\ +internal interface [AddNetworkUtil](index.md) : [AddNetworkApi](../-add-network-api/index.md), [AddNetworkApiAsync](../-add-network-api-async/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](../-add-network-api/add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addOpenNetwork](../-add-network-api/add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addOpenNetwork](../-add-network-api-async/add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA2Network](../-add-network-api/add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA2Network](../-add-network-api/add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA2Network](../-add-network-api-async/add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA3Network](../-add-network-api/add-w-p-a3-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA3Network](../-add-network-api/add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA3Network](../-add-network-api-async/add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyAddNetworkUtil](../-wisefy-add-network-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..c130119b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.addnetwork](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/-wisefy-add-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/-wisefy-add-network-util.md new file mode 100644 index 00000000..401d8cb8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/-wisefy-add-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[WisefyAddNetworkUtil](index.md)/[WisefyAddNetworkUtil](-wisefy-add-network-util.md) + +# WisefyAddNetworkUtil + +[androidJvm]\ +fun [WisefyAddNetworkUtil](-wisefy-add-network-util.md)(coroutineDispatcherProvider: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, sdkUtil: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-network-scope.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-network-scope.md new file mode 100644 index 00000000..d7f78cf9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-network-scope.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[WisefyAddNetworkUtil](index.md)/[addNetworkScope](add-network-scope.md) + +# addNetworkScope + +[androidJvm]\ +private val [addNetworkScope](add-network-scope.md): CoroutineScope diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-open-network.md new file mode 100644 index 00000000..f93a855b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-open-network.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[WisefyAddNetworkUtil](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a2-network.md new file mode 100644 index 00000000..2aa30f17 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a2-network.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[WisefyAddNetworkUtil](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a3-network.md new file mode 100644 index 00000000..718e7c3f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a3-network.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[WisefyAddNetworkUtil](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/coroutine-dispatcher-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/coroutine-dispatcher-provider.md new file mode 100644 index 00000000..1cf61168 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/coroutine-dispatcher-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[WisefyAddNetworkUtil](index.md)/[coroutineDispatcherProvider](coroutine-dispatcher-provider.md) + +# coroutineDispatcherProvider + +[androidJvm]\ +private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/delegate.md new file mode 100644 index 00000000..ece8a232 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[WisefyAddNetworkUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [AddNetworkApi](../-add-network-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/index.md new file mode 100644 index 00000000..68bcb87b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.addnetwork](../index.md)/[WisefyAddNetworkUtil](index.md) + +# WisefyAddNetworkUtil + +[androidJvm]\ +internal class [WisefyAddNetworkUtil](index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [AddNetworkUtil](../-add-network-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [addNetworkScope](add-network-scope.md) | [androidJvm]
private val [addNetworkScope](add-network-scope.md): CoroutineScope | +| [coroutineDispatcherProvider](coroutine-dispatcher-provider.md) | [androidJvm]
private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) | +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [AddNetworkApi](../-add-network-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/index.md b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/index.md new file mode 100644 index 00000000..654748c9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.addnetwork/index.md @@ -0,0 +1,18 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.addnetwork](index.md) + +# Package com.isupatches.android.wisefy.addnetwork + +## Types + +| Name | Summary | +|---|---| +| [AddNetworkApi](-add-network-api/index.md) | [androidJvm]
interface [AddNetworkApi](-add-network-api/index.md) | +| [AddNetworkApiAsync](-add-network-api-async/index.md) | [androidJvm]
interface [AddNetworkApiAsync](-add-network-api-async/index.md) | +| [AddNetworkUtil](-add-network-util/index.md) | [androidJvm]
internal interface [AddNetworkUtil](-add-network-util/index.md) : [AddNetworkApi](-add-network-api/index.md), [AddNetworkApiAsync](-add-network-api-async/index.md) | +| [WisefyAddNetworkUtil](-wisefy-add-network-util/index.md) | [androidJvm]
internal class [WisefyAddNetworkUtil](-wisefy-add-network-util/index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [AddNetworkUtil](-add-network-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md new file mode 100644 index 00000000..ec979c1f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[AddNetworkCallbacks](index.md) + +# AddNetworkCallbacks + +[androidJvm]\ +interface [AddNetworkCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onFailureAddingNetwork](on-failure-adding-network.md) | [androidJvm]
abstract fun [onFailureAddingNetwork](on-failure-adding-network.md)(result: [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)) | +| [onNetworkAdded](on-network-added.md) | [androidJvm]
abstract fun [onNetworkAdded](on-network-added.md)(result: [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)) | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-failure-adding-network.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-failure-adding-network.md new file mode 100644 index 00000000..a7f2fd1f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-failure-adding-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[AddNetworkCallbacks](index.md)/[onFailureAddingNetwork](on-failure-adding-network.md) + +# onFailureAddingNetwork + +[androidJvm]\ +abstract fun [onFailureAddingNetwork](on-failure-adding-network.md)(result: [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-network-added.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-network-added.md new file mode 100644 index 00000000..46470caf --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-network-added.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[AddNetworkCallbacks](index.md)/[onNetworkAdded](on-network-added.md) + +# onNetworkAdded + +[androidJvm]\ +abstract fun [onNetworkAdded](on-network-added.md)(result: [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/index.md new file mode 100644 index 00000000..485517bb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/index.md @@ -0,0 +1,39 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[BaseWisefyCallbacks](index.md) + +# BaseWisefyCallbacks + +[androidJvm]\ +interface [BaseWisefyCallbacks](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onWisefyAsyncFailure](on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [GetNearbyAccessPointCallbacks](../-get-nearby-access-point-callbacks/index.md) | +| [GetRSSICallbacks](../-get-r-s-s-i-callbacks/index.md) | +| [SearchForAccessPointCallbacks](../-search-for-access-point-callbacks/index.md) | +| [SearchForAccessPointsCallbacks](../-search-for-access-points-callbacks/index.md) | +| [SearchForSSIDCallbacks](../-search-for-s-s-i-d-callbacks/index.md) | +| [SearchForSSIDsCallbacks](../-search-for-s-s-i-ds-callbacks/index.md) | +| [AddNetworkCallbacks](../-add-network-callbacks/index.md) | +| [GetFrequencyCallbacks](../-get-frequency-callbacks/index.md) | +| [GetIPCallbacks](../-get-i-p-callbacks/index.md) | +| [ConnectToNetworkCallbacks](../-connect-to-network-callbacks/index.md) | +| [DisconnectFromCurrentNetworkCallbacks](../-disconnect-from-current-network-callbacks/index.md) | +| [GetCurrentNetworkCallbacks](../-get-current-network-callbacks/index.md) | +| [GetCurrentNetworkInfoCallbacks](../-get-current-network-info-callbacks/index.md) | +| [RemoveNetworkCallbacks](../-remove-network-callbacks/index.md) | +| [GetSavedNetworksCallbacks](../-get-saved-networks-callbacks/index.md) | +| [SearchForSavedNetworkCallbacks](../-search-for-saved-network-callbacks/index.md) | +| [SearchForSavedNetworksCallbacks](../-search-for-saved-networks-callbacks/index.md) | +| [EnableWifiCallbacks](../-enable-wifi-callbacks/index.md) | +| [DisableWifiCallbacks](../-disable-wifi-callbacks/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/on-wisefy-async-failure.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/on-wisefy-async-failure.md new file mode 100644 index 00000000..6a863185 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/on-wisefy-async-failure.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[BaseWisefyCallbacks](index.md)/[onWisefyAsyncFailure](on-wisefy-async-failure.md) + +# onWisefyAsyncFailure + +[androidJvm]\ +abstract fun [onWisefyAsyncFailure](on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md new file mode 100644 index 00000000..463a2b2a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md @@ -0,0 +1,19 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[ConnectToNetworkCallbacks](index.md) + +# ConnectToNetworkCallbacks + +[androidJvm]\ +interface [ConnectToNetworkCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onConnectedToNetwork](on-connected-to-network.md) | [androidJvm]
abstract fun [onConnectedToNetwork](on-connected-to-network.md)() | +| [onConnectionRequestPlaced](on-connection-request-placed.md) | [androidJvm]
abstract fun [onConnectionRequestPlaced](on-connection-request-placed.md)() | +| [onFailureConnectingToNetwork](on-failure-connecting-to-network.md) | [androidJvm]
abstract fun [onFailureConnectingToNetwork](on-failure-connecting-to-network.md)() | +| [onNetworkNotFoundToConnectTo](on-network-not-found-to-connect-to.md) | [androidJvm]
abstract fun [onNetworkNotFoundToConnectTo](on-network-not-found-to-connect-to.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connected-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connected-to-network.md new file mode 100644 index 00000000..b902d93e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connected-to-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[ConnectToNetworkCallbacks](index.md)/[onConnectedToNetwork](on-connected-to-network.md) + +# onConnectedToNetwork + +[androidJvm]\ +abstract fun [onConnectedToNetwork](on-connected-to-network.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connection-request-placed.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connection-request-placed.md new file mode 100644 index 00000000..8d17f2ca --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connection-request-placed.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[ConnectToNetworkCallbacks](index.md)/[onConnectionRequestPlaced](on-connection-request-placed.md) + +# onConnectionRequestPlaced + +[androidJvm]\ +abstract fun [onConnectionRequestPlaced](on-connection-request-placed.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-failure-connecting-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-failure-connecting-to-network.md new file mode 100644 index 00000000..44cfc687 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-failure-connecting-to-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[ConnectToNetworkCallbacks](index.md)/[onFailureConnectingToNetwork](on-failure-connecting-to-network.md) + +# onFailureConnectingToNetwork + +[androidJvm]\ +abstract fun [onFailureConnectingToNetwork](on-failure-connecting-to-network.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-network-not-found-to-connect-to.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-network-not-found-to-connect-to.md new file mode 100644 index 00000000..c9d4c544 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-network-not-found-to-connect-to.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[ConnectToNetworkCallbacks](index.md)/[onNetworkNotFoundToConnectTo](on-network-not-found-to-connect-to.md) + +# onNetworkNotFoundToConnectTo + +[androidJvm]\ +abstract fun [onNetworkNotFoundToConnectTo](on-network-not-found-to-connect-to.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md new file mode 100644 index 00000000..36ef962f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[DisableWifiCallbacks](index.md) + +# DisableWifiCallbacks + +[androidJvm]\ +interface [DisableWifiCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onFailureDisablingWifi](on-failure-disabling-wifi.md) | [androidJvm]
abstract fun [onFailureDisablingWifi](on-failure-disabling-wifi.md)() | +| [onWifiDisabled](on-wifi-disabled.md) | [androidJvm]
abstract fun [onWifiDisabled](on-wifi-disabled.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-failure-disabling-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-failure-disabling-wifi.md new file mode 100644 index 00000000..fc3f6d5f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-failure-disabling-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[DisableWifiCallbacks](index.md)/[onFailureDisablingWifi](on-failure-disabling-wifi.md) + +# onFailureDisablingWifi + +[androidJvm]\ +abstract fun [onFailureDisablingWifi](on-failure-disabling-wifi.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-wifi-disabled.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-wifi-disabled.md new file mode 100644 index 00000000..6ddab1a0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-wifi-disabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[DisableWifiCallbacks](index.md)/[onWifiDisabled](on-wifi-disabled.md) + +# onWifiDisabled + +[androidJvm]\ +abstract fun [onWifiDisabled](on-wifi-disabled.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md new file mode 100644 index 00000000..3909c360 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[DisconnectFromCurrentNetworkCallbacks](index.md) + +# DisconnectFromCurrentNetworkCallbacks + +[androidJvm]\ +interface [DisconnectFromCurrentNetworkCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onDisconnectedFromCurrentNetwork](on-disconnected-from-current-network.md) | [androidJvm]
abstract fun [onDisconnectedFromCurrentNetwork](on-disconnected-from-current-network.md)() | +| [onFailureDisconnectingFromCurrentNetwork](on-failure-disconnecting-from-current-network.md) | [androidJvm]
abstract fun [onFailureDisconnectingFromCurrentNetwork](on-failure-disconnecting-from-current-network.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-disconnected-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-disconnected-from-current-network.md new file mode 100644 index 00000000..1e416114 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-disconnected-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[DisconnectFromCurrentNetworkCallbacks](index.md)/[onDisconnectedFromCurrentNetwork](on-disconnected-from-current-network.md) + +# onDisconnectedFromCurrentNetwork + +[androidJvm]\ +abstract fun [onDisconnectedFromCurrentNetwork](on-disconnected-from-current-network.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-failure-disconnecting-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-failure-disconnecting-from-current-network.md new file mode 100644 index 00000000..65d79fe0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-failure-disconnecting-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[DisconnectFromCurrentNetworkCallbacks](index.md)/[onFailureDisconnectingFromCurrentNetwork](on-failure-disconnecting-from-current-network.md) + +# onFailureDisconnectingFromCurrentNetwork + +[androidJvm]\ +abstract fun [onFailureDisconnectingFromCurrentNetwork](on-failure-disconnecting-from-current-network.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md new file mode 100644 index 00000000..2427a29b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[EnableWifiCallbacks](index.md) + +# EnableWifiCallbacks + +[androidJvm]\ +interface [EnableWifiCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onFailureEnablingWifi](on-failure-enabling-wifi.md) | [androidJvm]
abstract fun [onFailureEnablingWifi](on-failure-enabling-wifi.md)() | +| [onWifiEnabled](on-wifi-enabled.md) | [androidJvm]
abstract fun [onWifiEnabled](on-wifi-enabled.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-failure-enabling-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-failure-enabling-wifi.md new file mode 100644 index 00000000..ca09c753 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-failure-enabling-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[EnableWifiCallbacks](index.md)/[onFailureEnablingWifi](on-failure-enabling-wifi.md) + +# onFailureEnablingWifi + +[androidJvm]\ +abstract fun [onFailureEnablingWifi](on-failure-enabling-wifi.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-wifi-enabled.md new file mode 100644 index 00000000..2864e417 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[EnableWifiCallbacks](index.md)/[onWifiEnabled](on-wifi-enabled.md) + +# onWifiEnabled + +[androidJvm]\ +abstract fun [onWifiEnabled](on-wifi-enabled.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md new file mode 100644 index 00000000..f31bf4a5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetCurrentNetworkCallbacks](index.md) + +# GetCurrentNetworkCallbacks + +[androidJvm]\ +interface [GetCurrentNetworkCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onCurrentNetworkRetrieved](on-current-network-retrieved.md) | [androidJvm]
abstract fun [onCurrentNetworkRetrieved](on-current-network-retrieved.md)(currentNetwork: [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)) | +| [onNoCurrentNetwork](on-no-current-network.md) | [androidJvm]
abstract fun [onNoCurrentNetwork](on-no-current-network.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-current-network-retrieved.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-current-network-retrieved.md new file mode 100644 index 00000000..3dd8a088 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-current-network-retrieved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetCurrentNetworkCallbacks](index.md)/[onCurrentNetworkRetrieved](on-current-network-retrieved.md) + +# onCurrentNetworkRetrieved + +[androidJvm]\ +abstract fun [onCurrentNetworkRetrieved](on-current-network-retrieved.md)(currentNetwork: [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-no-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-no-current-network.md new file mode 100644 index 00000000..78ccd770 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-no-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetCurrentNetworkCallbacks](index.md)/[onNoCurrentNetwork](on-no-current-network.md) + +# onNoCurrentNetwork + +[androidJvm]\ +abstract fun [onNoCurrentNetwork](on-no-current-network.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md new file mode 100644 index 00000000..57d26dea --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetCurrentNetworkInfoCallbacks](index.md) + +# GetCurrentNetworkInfoCallbacks + +[androidJvm]\ +interface [GetCurrentNetworkInfoCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onCurrentNetworkInfoRetrieved](on-current-network-info-retrieved.md) | [androidJvm]
abstract fun [onCurrentNetworkInfoRetrieved](on-current-network-info-retrieved.md)(currentNetworkInfo: [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)) | +| [onNoCurrentNetworkInfo](on-no-current-network-info.md) | [androidJvm]
abstract fun [onNoCurrentNetworkInfo](on-no-current-network-info.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-current-network-info-retrieved.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-current-network-info-retrieved.md new file mode 100644 index 00000000..ed1f8394 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-current-network-info-retrieved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetCurrentNetworkInfoCallbacks](index.md)/[onCurrentNetworkInfoRetrieved](on-current-network-info-retrieved.md) + +# onCurrentNetworkInfoRetrieved + +[androidJvm]\ +abstract fun [onCurrentNetworkInfoRetrieved](on-current-network-info-retrieved.md)(currentNetworkInfo: [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-no-current-network-info.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-no-current-network-info.md new file mode 100644 index 00000000..48775768 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-no-current-network-info.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetCurrentNetworkInfoCallbacks](index.md)/[onNoCurrentNetworkInfo](on-no-current-network-info.md) + +# onNoCurrentNetworkInfo + +[androidJvm]\ +abstract fun [onNoCurrentNetworkInfo](on-no-current-network-info.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md new file mode 100644 index 00000000..344a032f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetFrequencyCallbacks](index.md) + +# GetFrequencyCallbacks + +[androidJvm]\ +interface [GetFrequencyCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onFailureRetrievingFrequency](on-failure-retrieving-frequency.md) | [androidJvm]
abstract fun [onFailureRetrievingFrequency](on-failure-retrieving-frequency.md)() | +| [onFrequencyRetrieved](on-frequency-retrieved.md) | [androidJvm]
abstract fun [onFrequencyRetrieved](on-frequency-retrieved.md)(frequency: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-failure-retrieving-frequency.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-failure-retrieving-frequency.md new file mode 100644 index 00000000..aeb185bb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-failure-retrieving-frequency.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetFrequencyCallbacks](index.md)/[onFailureRetrievingFrequency](on-failure-retrieving-frequency.md) + +# onFailureRetrievingFrequency + +[androidJvm]\ +abstract fun [onFailureRetrievingFrequency](on-failure-retrieving-frequency.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-frequency-retrieved.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-frequency-retrieved.md new file mode 100644 index 00000000..36fd39b6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-frequency-retrieved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetFrequencyCallbacks](index.md)/[onFrequencyRetrieved](on-frequency-retrieved.md) + +# onFrequencyRetrieved + +[androidJvm]\ +abstract fun [onFrequencyRetrieved](on-frequency-retrieved.md)(frequency: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md new file mode 100644 index 00000000..4c68b795 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetIPCallbacks](index.md) + +# GetIPCallbacks + +[androidJvm]\ +interface [GetIPCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onFailureRetrievingIP](on-failure-retrieving-i-p.md) | [androidJvm]
abstract fun [onFailureRetrievingIP](on-failure-retrieving-i-p.md)() | +| [onIPRetrieved](on-i-p-retrieved.md) | [androidJvm]
abstract fun [onIPRetrieved](on-i-p-retrieved.md)(ip: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-failure-retrieving-i-p.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-failure-retrieving-i-p.md new file mode 100644 index 00000000..6fd6aa65 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-failure-retrieving-i-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetIPCallbacks](index.md)/[onFailureRetrievingIP](on-failure-retrieving-i-p.md) + +# onFailureRetrievingIP + +[androidJvm]\ +abstract fun [onFailureRetrievingIP](on-failure-retrieving-i-p.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-i-p-retrieved.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-i-p-retrieved.md new file mode 100644 index 00000000..71d02f25 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-i-p-retrieved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetIPCallbacks](index.md)/[onIPRetrieved](on-i-p-retrieved.md) + +# onIPRetrieved + +[androidJvm]\ +abstract fun [onIPRetrieved](on-i-p-retrieved.md)(ip: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md new file mode 100644 index 00000000..56f22084 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetNearbyAccessPointCallbacks](index.md) + +# GetNearbyAccessPointCallbacks + +[androidJvm]\ +interface [GetNearbyAccessPointCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onNearbyAccessPointsRetrieved](on-nearby-access-points-retrieved.md) | [androidJvm]
abstract fun [onNearbyAccessPointsRetrieved](on-nearby-access-points-retrieved.md)(accessPoints: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>) | +| [onNoNearbyAccessPoints](on-no-nearby-access-points.md) | [androidJvm]
abstract fun [onNoNearbyAccessPoints](on-no-nearby-access-points.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-nearby-access-points-retrieved.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-nearby-access-points-retrieved.md new file mode 100644 index 00000000..81f080b1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-nearby-access-points-retrieved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetNearbyAccessPointCallbacks](index.md)/[onNearbyAccessPointsRetrieved](on-nearby-access-points-retrieved.md) + +# onNearbyAccessPointsRetrieved + +[androidJvm]\ +abstract fun [onNearbyAccessPointsRetrieved](on-nearby-access-points-retrieved.md)(accessPoints: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-no-nearby-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-no-nearby-access-points.md new file mode 100644 index 00000000..44cfdc32 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-no-nearby-access-points.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetNearbyAccessPointCallbacks](index.md)/[onNoNearbyAccessPoints](on-no-nearby-access-points.md) + +# onNoNearbyAccessPoints + +[androidJvm]\ +abstract fun [onNoNearbyAccessPoints](on-no-nearby-access-points.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md new file mode 100644 index 00000000..210d56e5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetRSSICallbacks](index.md) + +# GetRSSICallbacks + +[androidJvm]\ +interface [GetRSSICallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onNoNetworkToRetrieveRSSI](on-no-network-to-retrieve-r-s-s-i.md) | [androidJvm]
abstract fun [onNoNetworkToRetrieveRSSI](on-no-network-to-retrieve-r-s-s-i.md)() | +| [onRSSIRetrieved](on-r-s-s-i-retrieved.md) | [androidJvm]
abstract fun [onRSSIRetrieved](on-r-s-s-i-retrieved.md)(rssi: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-no-network-to-retrieve-r-s-s-i.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-no-network-to-retrieve-r-s-s-i.md new file mode 100644 index 00000000..723d7375 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-no-network-to-retrieve-r-s-s-i.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetRSSICallbacks](index.md)/[onNoNetworkToRetrieveRSSI](on-no-network-to-retrieve-r-s-s-i.md) + +# onNoNetworkToRetrieveRSSI + +[androidJvm]\ +abstract fun [onNoNetworkToRetrieveRSSI](on-no-network-to-retrieve-r-s-s-i.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-r-s-s-i-retrieved.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-r-s-s-i-retrieved.md new file mode 100644 index 00000000..64ccbf2e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-r-s-s-i-retrieved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetRSSICallbacks](index.md)/[onRSSIRetrieved](on-r-s-s-i-retrieved.md) + +# onRSSIRetrieved + +[androidJvm]\ +abstract fun [onRSSIRetrieved](on-r-s-s-i-retrieved.md)(rssi: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md new file mode 100644 index 00000000..4d67ebfb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetSavedNetworksCallbacks](index.md) + +# GetSavedNetworksCallbacks + +[androidJvm]\ +interface [GetSavedNetworksCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onNoSavedNetworksFound](on-no-saved-networks-found.md) | [androidJvm]
abstract fun [onNoSavedNetworksFound](on-no-saved-networks-found.md)() | +| [onSavedNetworksRetrieved](on-saved-networks-retrieved.md) | [androidJvm]
abstract fun [onSavedNetworksRetrieved](on-saved-networks-retrieved.md)(savedNetworks: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>) | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-no-saved-networks-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-no-saved-networks-found.md new file mode 100644 index 00000000..ffbdadf8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-no-saved-networks-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetSavedNetworksCallbacks](index.md)/[onNoSavedNetworksFound](on-no-saved-networks-found.md) + +# onNoSavedNetworksFound + +[androidJvm]\ +abstract fun [onNoSavedNetworksFound](on-no-saved-networks-found.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-saved-networks-retrieved.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-saved-networks-retrieved.md new file mode 100644 index 00000000..5a9a3a55 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-saved-networks-retrieved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[GetSavedNetworksCallbacks](index.md)/[onSavedNetworksRetrieved](on-saved-networks-retrieved.md) + +# onSavedNetworksRetrieved + +[androidJvm]\ +abstract fun [onSavedNetworksRetrieved](on-saved-networks-retrieved.md)(savedNetworks: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md new file mode 100644 index 00000000..41996d07 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md @@ -0,0 +1,18 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[RemoveNetworkCallbacks](index.md) + +# RemoveNetworkCallbacks + +[androidJvm]\ +interface [RemoveNetworkCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onFailureRemovingNetwork](on-failure-removing-network.md) | [androidJvm]
abstract fun [onFailureRemovingNetwork](on-failure-removing-network.md)(result: [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md)) | +| [onNetworkNotFoundToRemove](on-network-not-found-to-remove.md) | [androidJvm]
abstract fun [onNetworkNotFoundToRemove](on-network-not-found-to-remove.md)() | +| [onNetworkRemoved](on-network-removed.md) | [androidJvm]
abstract fun [onNetworkRemoved](on-network-removed.md)(result: [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md)) | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-failure-removing-network.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-failure-removing-network.md new file mode 100644 index 00000000..e7679509 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-failure-removing-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[RemoveNetworkCallbacks](index.md)/[onFailureRemovingNetwork](on-failure-removing-network.md) + +# onFailureRemovingNetwork + +[androidJvm]\ +abstract fun [onFailureRemovingNetwork](on-failure-removing-network.md)(result: [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-not-found-to-remove.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-not-found-to-remove.md new file mode 100644 index 00000000..212b0258 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-not-found-to-remove.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[RemoveNetworkCallbacks](index.md)/[onNetworkNotFoundToRemove](on-network-not-found-to-remove.md) + +# onNetworkNotFoundToRemove + +[androidJvm]\ +abstract fun [onNetworkNotFoundToRemove](on-network-not-found-to-remove.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-removed.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-removed.md new file mode 100644 index 00000000..f8c0397e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-removed.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[RemoveNetworkCallbacks](index.md)/[onNetworkRemoved](on-network-removed.md) + +# onNetworkRemoved + +[androidJvm]\ +abstract fun [onNetworkRemoved](on-network-removed.md)(result: [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md new file mode 100644 index 00000000..316a971e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForAccessPointCallbacks](index.md) + +# SearchForAccessPointCallbacks + +[androidJvm]\ +interface [SearchForAccessPointCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onAccessPointFound](on-access-point-found.md) | [androidJvm]
abstract fun [onAccessPointFound](on-access-point-found.md)(accessPoint: [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)) | +| [onNoAccessPointFound](on-no-access-point-found.md) | [androidJvm]
abstract fun [onNoAccessPointFound](on-no-access-point-found.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-access-point-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-access-point-found.md new file mode 100644 index 00000000..2c295451 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-access-point-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForAccessPointCallbacks](index.md)/[onAccessPointFound](on-access-point-found.md) + +# onAccessPointFound + +[androidJvm]\ +abstract fun [onAccessPointFound](on-access-point-found.md)(accessPoint: [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-no-access-point-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-no-access-point-found.md new file mode 100644 index 00000000..88f02bbd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-no-access-point-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForAccessPointCallbacks](index.md)/[onNoAccessPointFound](on-no-access-point-found.md) + +# onNoAccessPointFound + +[androidJvm]\ +abstract fun [onNoAccessPointFound](on-no-access-point-found.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md new file mode 100644 index 00000000..eed9e1ad --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForAccessPointsCallbacks](index.md) + +# SearchForAccessPointsCallbacks + +[androidJvm]\ +interface [SearchForAccessPointsCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onAccessPointsFound](on-access-points-found.md) | [androidJvm]
abstract fun [onAccessPointsFound](on-access-points-found.md)(accessPoints: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>) | +| [onNoAccessPointsFound](on-no-access-points-found.md) | [androidJvm]
abstract fun [onNoAccessPointsFound](on-no-access-points-found.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-access-points-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-access-points-found.md new file mode 100644 index 00000000..7b481e7f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-access-points-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForAccessPointsCallbacks](index.md)/[onAccessPointsFound](on-access-points-found.md) + +# onAccessPointsFound + +[androidJvm]\ +abstract fun [onAccessPointsFound](on-access-points-found.md)(accessPoints: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-no-access-points-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-no-access-points-found.md new file mode 100644 index 00000000..8977e1e5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-no-access-points-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForAccessPointsCallbacks](index.md)/[onNoAccessPointsFound](on-no-access-points-found.md) + +# onNoAccessPointsFound + +[androidJvm]\ +abstract fun [onNoAccessPointsFound](on-no-access-points-found.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md new file mode 100644 index 00000000..f24596d0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSSIDCallbacks](index.md) + +# SearchForSSIDCallbacks + +[androidJvm]\ +interface [SearchForSSIDCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onSSIDFound](on-s-s-i-d-found.md) | [androidJvm]
abstract fun [onSSIDFound](on-s-s-i-d-found.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) | +| [onSSIDNotFound](on-s-s-i-d-not-found.md) | [androidJvm]
abstract fun [onSSIDNotFound](on-s-s-i-d-not-found.md)() | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-found.md new file mode 100644 index 00000000..cb9e9025 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSSIDCallbacks](index.md)/[onSSIDFound](on-s-s-i-d-found.md) + +# onSSIDFound + +[androidJvm]\ +abstract fun [onSSIDFound](on-s-s-i-d-found.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-not-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-not-found.md new file mode 100644 index 00000000..ac1d7cbe --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-not-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSSIDCallbacks](index.md)/[onSSIDNotFound](on-s-s-i-d-not-found.md) + +# onSSIDNotFound + +[androidJvm]\ +abstract fun [onSSIDNotFound](on-s-s-i-d-not-found.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md new file mode 100644 index 00000000..b1fb7905 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSSIDsCallbacks](index.md) + +# SearchForSSIDsCallbacks + +[androidJvm]\ +interface [SearchForSSIDsCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onNoSSIDsFound](on-no-s-s-i-ds-found.md) | [androidJvm]
abstract fun [onNoSSIDsFound](on-no-s-s-i-ds-found.md)() | +| [onSSIDsFound](on-s-s-i-ds-found.md) | [androidJvm]
abstract fun [onSSIDsFound](on-s-s-i-ds-found.md)(ssids: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>) | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-no-s-s-i-ds-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-no-s-s-i-ds-found.md new file mode 100644 index 00000000..b74dd45a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-no-s-s-i-ds-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSSIDsCallbacks](index.md)/[onNoSSIDsFound](on-no-s-s-i-ds-found.md) + +# onNoSSIDsFound + +[androidJvm]\ +abstract fun [onNoSSIDsFound](on-no-s-s-i-ds-found.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-s-s-i-ds-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-s-s-i-ds-found.md new file mode 100644 index 00000000..b5f29b96 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-s-s-i-ds-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSSIDsCallbacks](index.md)/[onSSIDsFound](on-s-s-i-ds-found.md) + +# onSSIDsFound + +[androidJvm]\ +abstract fun [onSSIDsFound](on-s-s-i-ds-found.md)(ssids: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md new file mode 100644 index 00000000..a0e9e0a1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSavedNetworkCallbacks](index.md) + +# SearchForSavedNetworkCallbacks + +[androidJvm]\ +interface [SearchForSavedNetworkCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onSavedNetworkNotFound](on-saved-network-not-found.md) | [androidJvm]
abstract fun [onSavedNetworkNotFound](on-saved-network-not-found.md)() | +| [onSavedNetworkRetrieved](on-saved-network-retrieved.md) | [androidJvm]
abstract fun [onSavedNetworkRetrieved](on-saved-network-retrieved.md)(savedNetwork: [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)) | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-not-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-not-found.md new file mode 100644 index 00000000..b10eace3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-not-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSavedNetworkCallbacks](index.md)/[onSavedNetworkNotFound](on-saved-network-not-found.md) + +# onSavedNetworkNotFound + +[androidJvm]\ +abstract fun [onSavedNetworkNotFound](on-saved-network-not-found.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-retrieved.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-retrieved.md new file mode 100644 index 00000000..a9af4f1d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-retrieved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSavedNetworkCallbacks](index.md)/[onSavedNetworkRetrieved](on-saved-network-retrieved.md) + +# onSavedNetworkRetrieved + +[androidJvm]\ +abstract fun [onSavedNetworkRetrieved](on-saved-network-retrieved.md)(savedNetwork: [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md new file mode 100644 index 00000000..f93839db --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSavedNetworksCallbacks](index.md) + +# SearchForSavedNetworksCallbacks + +[androidJvm]\ +interface [SearchForSavedNetworksCallbacks](index.md) : [BaseWisefyCallbacks](../-base-wisefy-callbacks/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onNoSavedNetworksFound](on-no-saved-networks-found.md) | [androidJvm]
abstract fun [onNoSavedNetworksFound](on-no-saved-networks-found.md)() | +| [onSavedNetworksRetrieved](on-saved-networks-retrieved.md) | [androidJvm]
abstract fun [onSavedNetworksRetrieved](on-saved-networks-retrieved.md)(savedNetworks: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>) | +| [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md) | [androidJvm]
abstract fun [onWisefyAsyncFailure](../-base-wisefy-callbacks/on-wisefy-async-failure.md)(throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-no-saved-networks-found.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-no-saved-networks-found.md new file mode 100644 index 00000000..c6c38f63 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-no-saved-networks-found.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSavedNetworksCallbacks](index.md)/[onNoSavedNetworksFound](on-no-saved-networks-found.md) + +# onNoSavedNetworksFound + +[androidJvm]\ +abstract fun [onNoSavedNetworksFound](on-no-saved-networks-found.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-saved-networks-retrieved.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-saved-networks-retrieved.md new file mode 100644 index 00000000..777fca04 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-saved-networks-retrieved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.callbacks](../index.md)/[SearchForSavedNetworksCallbacks](index.md)/[onSavedNetworksRetrieved](on-saved-networks-retrieved.md) + +# onSavedNetworksRetrieved + +[androidJvm]\ +abstract fun [onSavedNetworksRetrieved](on-saved-networks-retrieved.md)(savedNetworks: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.callbacks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/index.md new file mode 100644 index 00000000..a28103b3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.callbacks/index.md @@ -0,0 +1,28 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.callbacks](index.md) + +# Package com.isupatches.android.wisefy.callbacks + +## Types + +| Name | Summary | +|---|---| +| [AddNetworkCallbacks](-add-network-callbacks/index.md) | [androidJvm]
interface [AddNetworkCallbacks](-add-network-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | [androidJvm]
interface [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [ConnectToNetworkCallbacks](-connect-to-network-callbacks/index.md) | [androidJvm]
interface [ConnectToNetworkCallbacks](-connect-to-network-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [DisableWifiCallbacks](-disable-wifi-callbacks/index.md) | [androidJvm]
interface [DisableWifiCallbacks](-disable-wifi-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [DisconnectFromCurrentNetworkCallbacks](-disconnect-from-current-network-callbacks/index.md) | [androidJvm]
interface [DisconnectFromCurrentNetworkCallbacks](-disconnect-from-current-network-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [EnableWifiCallbacks](-enable-wifi-callbacks/index.md) | [androidJvm]
interface [EnableWifiCallbacks](-enable-wifi-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [GetCurrentNetworkCallbacks](-get-current-network-callbacks/index.md) | [androidJvm]
interface [GetCurrentNetworkCallbacks](-get-current-network-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [GetCurrentNetworkInfoCallbacks](-get-current-network-info-callbacks/index.md) | [androidJvm]
interface [GetCurrentNetworkInfoCallbacks](-get-current-network-info-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [GetFrequencyCallbacks](-get-frequency-callbacks/index.md) | [androidJvm]
interface [GetFrequencyCallbacks](-get-frequency-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [GetIPCallbacks](-get-i-p-callbacks/index.md) | [androidJvm]
interface [GetIPCallbacks](-get-i-p-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [GetNearbyAccessPointCallbacks](-get-nearby-access-point-callbacks/index.md) | [androidJvm]
interface [GetNearbyAccessPointCallbacks](-get-nearby-access-point-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [GetRSSICallbacks](-get-r-s-s-i-callbacks/index.md) | [androidJvm]
interface [GetRSSICallbacks](-get-r-s-s-i-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [GetSavedNetworksCallbacks](-get-saved-networks-callbacks/index.md) | [androidJvm]
interface [GetSavedNetworksCallbacks](-get-saved-networks-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [RemoveNetworkCallbacks](-remove-network-callbacks/index.md) | [androidJvm]
interface [RemoveNetworkCallbacks](-remove-network-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [SearchForAccessPointCallbacks](-search-for-access-point-callbacks/index.md) | [androidJvm]
interface [SearchForAccessPointCallbacks](-search-for-access-point-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [SearchForAccessPointsCallbacks](-search-for-access-points-callbacks/index.md) | [androidJvm]
interface [SearchForAccessPointsCallbacks](-search-for-access-points-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [SearchForSavedNetworkCallbacks](-search-for-saved-network-callbacks/index.md) | [androidJvm]
interface [SearchForSavedNetworkCallbacks](-search-for-saved-network-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [SearchForSavedNetworksCallbacks](-search-for-saved-networks-callbacks/index.md) | [androidJvm]
interface [SearchForSavedNetworksCallbacks](-search-for-saved-networks-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [SearchForSSIDCallbacks](-search-for-s-s-i-d-callbacks/index.md) | [androidJvm]
interface [SearchForSSIDCallbacks](-search-for-s-s-i-d-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | +| [SearchForSSIDsCallbacks](-search-for-s-s-i-ds-callbacks/index.md) | [androidJvm]
interface [SearchForSSIDsCallbacks](-search-for-s-s-i-ds-callbacks/index.md) : [BaseWisefyCallbacks](-base-wisefy-callbacks/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s.md new file mode 100644 index 00000000..5db8ceaa --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.constants](../index.md)/[DeprecationMessages](index.md)/[CALCULATE_BARS](-c-a-l-c-u-l-a-t-e_-b-a-r-s.md) + +# CALCULATE_BARS + +[androidJvm]\ +const val [CALCULATE_BARS](-c-a-l-c-u-l-a-t-e_-b-a-r-s.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-d-i-s-a-b-l-e_-w-i-f-i.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-d-i-s-a-b-l-e_-w-i-f-i.md new file mode 100644 index 00000000..3770652b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-d-i-s-a-b-l-e_-w-i-f-i.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.constants](../index.md)/[DeprecationMessages](index.md)/[DISABLE_WIFI](-d-i-s-a-b-l-e_-w-i-f-i.md) + +# DISABLE_WIFI + +[androidJvm]\ +const val [DISABLE_WIFI](-d-i-s-a-b-l-e_-w-i-f-i.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-e-n-a-b-l-e_-w-i-f-i.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-e-n-a-b-l-e_-w-i-f-i.md new file mode 100644 index 00000000..fd84cfe0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-e-n-a-b-l-e_-w-i-f-i.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.constants](../index.md)/[DeprecationMessages](index.md)/[ENABLE_WIFI](-e-n-a-b-l-e_-w-i-f-i.md) + +# ENABLE_WIFI + +[androidJvm]\ +const val [ENABLE_WIFI](-e-n-a-b-l-e_-w-i-f-i.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/index.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/index.md new file mode 100644 index 00000000..04761506 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.constants](../index.md)/[DeprecationMessages](index.md) + +# DeprecationMessages + +[androidJvm]\ +internal object [DeprecationMessages](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [CALCULATE_BARS](-c-a-l-c-u-l-a-t-e_-b-a-r-s.md) | [androidJvm]
const val [CALCULATE_BARS](-c-a-l-c-u-l-a-t-e_-b-a-r-s.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [DISABLE_WIFI](-d-i-s-a-b-l-e_-w-i-f-i.md) | [androidJvm]
const val [DISABLE_WIFI](-d-i-s-a-b-l-e_-w-i-f-i.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ENABLE_WIFI](-e-n-a-b-l-e_-w-i-f-i.md) | [androidJvm]
const val [ENABLE_WIFI](-e-n-a-b-l-e_-w-i-f-i.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md new file mode 100644 index 00000000..da7fbef2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../../index.md)/[com.isupatches.android.wisefy.constants](../../../index.md)/[ErrorMessages](../../index.md)/[AddNetwork](../index.md)/[ActivityResultLauncher](index.md)/[NOT_USED_ANDROID_30](-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md) + +# NOT_USED_ANDROID_30 + +[androidJvm]\ +const val [NOT_USED_ANDROID_30](-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md new file mode 100644 index 00000000..aa44f670 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../../index.md)/[com.isupatches.android.wisefy.constants](../../../index.md)/[ErrorMessages](../../index.md)/[AddNetwork](../index.md)/[ActivityResultLauncher](index.md)/[USED_PRE_ANDROID_30](-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md) + +# USED_PRE_ANDROID_30 + +[androidJvm]\ +const val [USED_PRE_ANDROID_30](-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/index.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/index.md new file mode 100644 index 00000000..d3728e32 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/index.md @@ -0,0 +1,21 @@ +//[wisefy](../../../../../index.md)/[com.isupatches.android.wisefy.constants](../../../index.md)/[ErrorMessages](../../index.md)/[AddNetwork](../index.md)/[ActivityResultLauncher](index.md) + +# ActivityResultLauncher + +[androidJvm]\ +object [ActivityResultLauncher](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [NOT_USED_ANDROID_30](-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md) | [androidJvm]
const val [NOT_USED_ANDROID_30](-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [USED_PRE_ANDROID_30](-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md) | [androidJvm]
const val [USED_PRE_ANDROID_30](-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/-p-r-e_-a-n-d-r-o-i-d_29.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/-p-r-e_-a-n-d-r-o-i-d_29.md new file mode 100644 index 00000000..c3405d48 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/-p-r-e_-a-n-d-r-o-i-d_29.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../../index.md)/[com.isupatches.android.wisefy.constants](../../../index.md)/[ErrorMessages](../../index.md)/[AddNetwork](../index.md)/[WPA3Network](index.md)/[PRE_ANDROID_29](-p-r-e_-a-n-d-r-o-i-d_29.md) + +# PRE_ANDROID_29 + +[androidJvm]\ +const val [PRE_ANDROID_29](-p-r-e_-a-n-d-r-o-i-d_29.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/index.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/index.md new file mode 100644 index 00000000..c76a35cb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/index.md @@ -0,0 +1,20 @@ +//[wisefy](../../../../../index.md)/[com.isupatches.android.wisefy.constants](../../../index.md)/[ErrorMessages](../../index.md)/[AddNetwork](../index.md)/[WPA3Network](index.md) + +# WPA3Network + +[androidJvm]\ +object [WPA3Network](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [PRE_ANDROID_29](-p-r-e_-a-n-d-r-o-i-d_29.md) | [androidJvm]
const val [PRE_ANDROID_29](-p-r-e_-a-n-d-r-o-i-d_29.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/index.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/index.md new file mode 100644 index 00000000..68ce4a9c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/index.md @@ -0,0 +1,21 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.constants](../../index.md)/[ErrorMessages](../index.md)/[AddNetwork](index.md) + +# AddNetwork + +[androidJvm]\ +object [AddNetwork](index.md) + +## Types + +| Name | Summary | +|---|---| +| [ActivityResultLauncher](-activity-result-launcher/index.md) | [androidJvm]
object [ActivityResultLauncher](-activity-result-launcher/index.md) | +| [WPA3Network](-w-p-a3-network/index.md) | [androidJvm]
object [WPA3Network](-w-p-a3-network/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md new file mode 100644 index 00000000..655e7073 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.constants](../index.md)/[ErrorMessages](index.md)/[CALCULATE_BARS_ANDROID_30](-c-a-l-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md) + +# CALCULATE_BARS_ANDROID_30 + +[androidJvm]\ +const val [CALCULATE_BARS_ANDROID_30](-c-a-l-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md new file mode 100644 index 00000000..3fb39425 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.constants](../index.md)/[ErrorMessages](index.md)/[CALCULATE_BARS_LEGACY](-c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md) + +# CALCULATE_BARS_LEGACY + +[androidJvm]\ +const val [CALCULATE_BARS_LEGACY](-c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/index.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/index.md new file mode 100644 index 00000000..4ce45e81 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-error-messages/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.constants](../index.md)/[ErrorMessages](index.md) + +# ErrorMessages + +[androidJvm]\ +internal object [ErrorMessages](index.md) + +## Types + +| Name | Summary | +|---|---| +| [AddNetwork](-add-network/index.md) | [androidJvm]
object [AddNetwork](-add-network/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [CALCULATE_BARS_ANDROID_30](-c-a-l-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md) | [androidJvm]
const val [CALCULATE_BARS_ANDROID_30](-c-a-l-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [CALCULATE_BARS_LEGACY](-c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md) | [androidJvm]
const val [CALCULATE_BARS_LEGACY](-c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/-q-u-o-t-e.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/-q-u-o-t-e.md new file mode 100644 index 00000000..a73140b0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/-q-u-o-t-e.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.constants](index.md)/[QUOTE](-q-u-o-t-e.md) + +# QUOTE + +[androidJvm]\ +internal const val [QUOTE](-q-u-o-t-e.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.constants/index.md b/documentation/wisefy/com.isupatches.android.wisefy.constants/index.md new file mode 100644 index 00000000..c0fa24c7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.constants/index.md @@ -0,0 +1,16 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.constants](index.md) + +# Package com.isupatches.android.wisefy.constants + +## Types + +| Name | Summary | +|---|---| +| [DeprecationMessages](-deprecation-messages/index.md) | [androidJvm]
internal object [DeprecationMessages](-deprecation-messages/index.md) | +| [ErrorMessages](-error-messages/index.md) | [androidJvm]
internal object [ErrorMessages](-error-messages/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [QUOTE](-q-u-o-t-e.md) | [androidJvm]
internal const val [QUOTE](-q-u-o-t-e.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/-legacy-frequency-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/-legacy-frequency-api-impl.md new file mode 100644 index 00000000..d7c68cb7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/-legacy-frequency-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyApiImpl](index.md)/[LegacyFrequencyApiImpl](-legacy-frequency-api-impl.md) + +# LegacyFrequencyApiImpl + +[androidJvm]\ +fun [LegacyFrequencyApiImpl](-legacy-frequency-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/get-frequency.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/get-frequency.md new file mode 100644 index 00000000..c08fc84e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/get-frequency.md @@ -0,0 +1,15 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyApiImpl](index.md)/[getFrequency](get-frequency.md) + +# getFrequency + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/index.md new file mode 100644 index 00000000..153a914e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyApiImpl](index.md) + +# LegacyFrequencyApiImpl + +[androidJvm]\ +internal class [LegacyFrequencyApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [LegacyFrequencyApi](../-legacy-frequency-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getFrequency](get-frequency.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetwork5gHz](is-network5g-hz.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/is-network5g-hz.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/is-network5g-hz.md new file mode 100644 index 00000000..1195e48f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/is-network5g-hz.md @@ -0,0 +1,15 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyApiImpl](index.md)/[isNetwork5gHz](is-network5g-hz.md) + +# isNetwork5gHz + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/wifi-manager.md new file mode 100644 index 00000000..9001c2d3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/get-frequency.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/get-frequency.md new file mode 100644 index 00000000..38bc1103 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/get-frequency.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyApi](index.md)/[getFrequency](get-frequency.md) + +# getFrequency + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +abstract fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? + +abstract fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/index.md new file mode 100644 index 00000000..1924e272 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyApi](index.md) + +# LegacyFrequencyApi + +[androidJvm]\ +internal interface [LegacyFrequencyApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getFrequency](get-frequency.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
abstract fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetwork5gHz](is-network5g-hz.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
abstract fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacyFrequencyApiImpl](../-legacy-frequency-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/is-network5g-hz.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/is-network5g-hz.md new file mode 100644 index 00000000..7edcdc22 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/is-network5g-hz.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyApi](index.md)/[isNetwork5gHz](is-network5g-hz.md) + +# isNetwork5gHz + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +abstract fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +abstract fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/-legacy-frequency-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/-legacy-frequency-delegate.md new file mode 100644 index 00000000..60b351c1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/-legacy-frequency-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyDelegate](index.md)/[LegacyFrequencyDelegate](-legacy-frequency-delegate.md) + +# LegacyFrequencyDelegate + +[androidJvm]\ +fun [LegacyFrequencyDelegate](-legacy-frequency-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), impl: [LegacyFrequencyApi](../-legacy-frequency-api/index.md) = LegacyFrequencyApiImpl(wifiManager)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/get-frequency.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/get-frequency.md new file mode 100644 index 00000000..314021d1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/get-frequency.md @@ -0,0 +1,15 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyDelegate](index.md)/[getFrequency](get-frequency.md) + +# getFrequency + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/impl.md new file mode 100644 index 00000000..a72cf1cd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacyFrequencyApi](../-legacy-frequency-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/index.md new file mode 100644 index 00000000..e5591e93 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyDelegate](index.md) + +# LegacyFrequencyDelegate + +[androidJvm]\ +internal class [LegacyFrequencyDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [LegacyFrequencyApi](../-legacy-frequency-api/index.md)) : [FrequencyApi](../../com.isupatches.android.wisefy.frequency/-frequency-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getFrequency](get-frequency.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetwork5gHz](is-network5g-hz.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacyFrequencyApi](../-legacy-frequency-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/is-network5g-hz.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/is-network5g-hz.md new file mode 100644 index 00000000..fb75598d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/is-network5g-hz.md @@ -0,0 +1,15 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](../index.md)/[LegacyFrequencyDelegate](index.md)/[isNetwork5gHz](is-network5g-hz.md) + +# isNetwork5gHz + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/index.md new file mode 100644 index 00000000..65c77ed1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency.delegates/index.md @@ -0,0 +1,11 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.frequency.delegates](index.md) + +# Package com.isupatches.android.wisefy.frequency.delegates + +## Types + +| Name | Summary | +|---|---| +| [LegacyFrequencyApi](-legacy-frequency-api/index.md) | [androidJvm]
internal interface [LegacyFrequencyApi](-legacy-frequency-api/index.md) | +| [LegacyFrequencyApiImpl](-legacy-frequency-api-impl/index.md) | [androidJvm]
internal class [LegacyFrequencyApiImpl](-legacy-frequency-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [LegacyFrequencyApi](-legacy-frequency-api/index.md) | +| [LegacyFrequencyDelegate](-legacy-frequency-delegate/index.md) | [androidJvm]
internal class [LegacyFrequencyDelegate](-legacy-frequency-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [LegacyFrequencyApi](-legacy-frequency-api/index.md)) : [FrequencyApi](../com.isupatches.android.wisefy.frequency/-frequency-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/get-frequency.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/get-frequency.md new file mode 100644 index 00000000..e30b721e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/get-frequency.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[FrequencyApiAsync](index.md)/[getFrequency](get-frequency.md) + +# getFrequency + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +abstract fun [getFrequency](get-frequency.md)(callbacks: [GetFrequencyCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/index.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/index.md new file mode 100644 index 00000000..35c340fa --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/index.md @@ -0,0 +1,21 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[FrequencyApiAsync](index.md) + +# FrequencyApiAsync + +[androidJvm]\ +interface [FrequencyApiAsync](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getFrequency](get-frequency.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](get-frequency.md)(callbacks: [GetFrequencyCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/get-frequency.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/get-frequency.md new file mode 100644 index 00000000..2d0ccf58 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/get-frequency.md @@ -0,0 +1,15 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[FrequencyApi](index.md)/[getFrequency](get-frequency.md) + +# getFrequency + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +abstract fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +abstract fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/index.md new file mode 100644 index 00000000..efa37bef --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[FrequencyApi](index.md) + +# FrequencyApi + +[androidJvm]\ +interface [FrequencyApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getFrequency](get-frequency.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetwork5gHz](is-network5g-hz.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [FrequencyUtil](../-frequency-util/index.md) | +| [LegacyFrequencyDelegate](../../com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/is-network5g-hz.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/is-network5g-hz.md new file mode 100644 index 00000000..4f05546d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/is-network5g-hz.md @@ -0,0 +1,15 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[FrequencyApi](index.md)/[isNetwork5gHz](is-network5g-hz.md) + +# isNetwork5gHz + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +abstract fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +abstract fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/get-frequency.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/get-frequency.md new file mode 100644 index 00000000..e2cfcc9b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/get-frequency.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[FrequencyUtil](index.md)/[getFrequency](get-frequency.md) + +# getFrequency + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +abstract fun [getFrequency](get-frequency.md)(callbacks: [GetFrequencyCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/index.md new file mode 100644 index 00000000..2ddb640c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[FrequencyUtil](index.md) + +# FrequencyUtil + +[androidJvm]\ +internal interface [FrequencyUtil](index.md) : [FrequencyApi](../-frequency-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getFrequency](../-frequency-api/get-frequency.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](../-frequency-api/get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](../-frequency-api/get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](get-frequency.md)(callbacks: [GetFrequencyCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetwork5gHz](../-frequency-api/is-network5g-hz.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [isNetwork5gHz](../-frequency-api/is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [isNetwork5gHz](../-frequency-api/is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyFrequencyUtil](../-wisefy-frequency-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..a5cf6275 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.frequency](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md new file mode 100644 index 00000000..2f6b5d9d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.frequency](index.md)/[MAX_FREQUENCY_5GHZ](-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md) + +# MAX_FREQUENCY_5GHZ + +[androidJvm]\ +const val [MAX_FREQUENCY_5GHZ](-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 5900 diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md new file mode 100644 index 00000000..932838fe --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.frequency](index.md)/[MIN_FREQUENCY_5GHZ](-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md) + +# MIN_FREQUENCY_5GHZ + +[androidJvm]\ +const val [MIN_FREQUENCY_5GHZ](-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 4900 diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/-wisefy-frequency-util.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/-wisefy-frequency-util.md new file mode 100644 index 00000000..5870619e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/-wisefy-frequency-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[WisefyFrequencyUtil](index.md)/[WisefyFrequencyUtil](-wisefy-frequency-util.md) + +# WisefyFrequencyUtil + +[androidJvm]\ +fun [WisefyFrequencyUtil](-wisefy-frequency-util.md)(coroutineDispatcherProvider: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/coroutine-dispatcher-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/coroutine-dispatcher-provider.md new file mode 100644 index 00000000..662ee5ce --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/coroutine-dispatcher-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[WisefyFrequencyUtil](index.md)/[coroutineDispatcherProvider](coroutine-dispatcher-provider.md) + +# coroutineDispatcherProvider + +[androidJvm]\ +private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/delegate.md new file mode 100644 index 00000000..fbc86493 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[WisefyFrequencyUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [LegacyFrequencyDelegate](../../com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/frequency-scope.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/frequency-scope.md new file mode 100644 index 00000000..e2e01d6a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/frequency-scope.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[WisefyFrequencyUtil](index.md)/[frequencyScope](frequency-scope.md) + +# frequencyScope + +[androidJvm]\ +private val [frequencyScope](frequency-scope.md): CoroutineScope diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/get-frequency.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/get-frequency.md new file mode 100644 index 00000000..2a64d6ec --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/get-frequency.md @@ -0,0 +1,21 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[WisefyFrequencyUtil](index.md)/[getFrequency](get-frequency.md) + +# getFrequency + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [getFrequency](get-frequency.md)(callbacks: [GetFrequencyCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md)?) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/index.md new file mode 100644 index 00000000..5ac7104c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[WisefyFrequencyUtil](index.md) + +# WisefyFrequencyUtil + +[androidJvm]\ +internal class [WisefyFrequencyUtil](index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [FrequencyUtil](../-frequency-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getFrequency](get-frequency.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [getFrequency](get-frequency.md)(callbacks: [GetFrequencyCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetwork5gHz](is-network5g-hz.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [coroutineDispatcherProvider](coroutine-dispatcher-provider.md) | [androidJvm]
private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) | +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [LegacyFrequencyDelegate](../../com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/index.md) | +| [frequencyScope](frequency-scope.md) | [androidJvm]
private val [frequencyScope](frequency-scope.md): CoroutineScope | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/is-network5g-hz.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/is-network5g-hz.md new file mode 100644 index 00000000..d9b796d1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/is-network5g-hz.md @@ -0,0 +1,15 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.frequency](../index.md)/[WisefyFrequencyUtil](index.md)/[isNetwork5gHz](is-network5g-hz.md) + +# isNetwork5gHz + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.frequency/index.md b/documentation/wisefy/com.isupatches.android.wisefy.frequency/index.md new file mode 100644 index 00000000..729cdd21 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.frequency/index.md @@ -0,0 +1,20 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.frequency](index.md) + +# Package com.isupatches.android.wisefy.frequency + +## Types + +| Name | Summary | +|---|---| +| [FrequencyApi](-frequency-api/index.md) | [androidJvm]
interface [FrequencyApi](-frequency-api/index.md) | +| [FrequencyApiAsync](-frequency-api-async/index.md) | [androidJvm]
interface [FrequencyApiAsync](-frequency-api-async/index.md) | +| [FrequencyUtil](-frequency-util/index.md) | [androidJvm]
internal interface [FrequencyUtil](-frequency-util/index.md) : [FrequencyApi](-frequency-api/index.md) | +| [WisefyFrequencyUtil](-wisefy-frequency-util/index.md) | [androidJvm]
internal class [WisefyFrequencyUtil](-wisefy-frequency-util/index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [FrequencyUtil](-frequency-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [MAX_FREQUENCY_5GHZ](-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md) | [androidJvm]
const val [MAX_FREQUENCY_5GHZ](-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 5900 | +| [MIN_FREQUENCY_5GHZ](-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md) | [androidJvm]
const val [MIN_FREQUENCY_5GHZ](-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 4900 | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/d.md b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/d.md new file mode 100644 index 00000000..685c7169 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.logging](../index.md)/[WisefyLogger](index.md)/[d](d.md) + +# d + +[androidJvm]\ +abstract fun [d](d.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/e.md b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/e.md new file mode 100644 index 00000000..149da28e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/e.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.logging](../index.md)/[WisefyLogger](index.md)/[e](e.md) + +# e + +[androidJvm]\ +abstract fun [e](e.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +abstract fun [e](e.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/i.md b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/i.md new file mode 100644 index 00000000..1a6ac1ea --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/i.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.logging](../index.md)/[WisefyLogger](index.md)/[i](i.md) + +# i + +[androidJvm]\ +abstract fun [i](i.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/index.md b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/index.md new file mode 100644 index 00000000..a2076dc2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/index.md @@ -0,0 +1,20 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.logging](../index.md)/[WisefyLogger](index.md) + +# WisefyLogger + +[androidJvm]\ +interface [WisefyLogger](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [d](d.md) | [androidJvm]
abstract fun [d](d.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [e](e.md) | [androidJvm]
abstract fun [e](e.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
abstract fun [e](e.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [i](i.md) | [androidJvm]
abstract fun [i](i.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [v](v.md) | [androidJvm]
abstract fun [v](v.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [w](w.md) | [androidJvm]
abstract fun [w](w.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [wtf](wtf.md) | [androidJvm]
abstract fun [wtf](wtf.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
abstract fun [wtf](wtf.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/v.md b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/v.md new file mode 100644 index 00000000..59bc4408 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/v.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.logging](../index.md)/[WisefyLogger](index.md)/[v](v.md) + +# v + +[androidJvm]\ +abstract fun [v](v.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/w.md b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/w.md new file mode 100644 index 00000000..47a08f06 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/w.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.logging](../index.md)/[WisefyLogger](index.md)/[w](w.md) + +# w + +[androidJvm]\ +abstract fun [w](w.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/wtf.md b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/wtf.md new file mode 100644 index 00000000..5ee3bb61 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/wtf.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.logging](../index.md)/[WisefyLogger](index.md)/[wtf](wtf.md) + +# wtf + +[androidJvm]\ +abstract fun [wtf](wtf.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +abstract fun [wtf](wtf.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), throwable: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html), message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), vararg args: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.logging/index.md b/documentation/wisefy/com.isupatches.android.wisefy.logging/index.md new file mode 100644 index 00000000..67a8fa87 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.logging/index.md @@ -0,0 +1,9 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.logging](index.md) + +# Package com.isupatches.android.wisefy.logging + +## Types + +| Name | Summary | +|---|---| +| [WisefyLogger](-wisefy-logger/index.md) | [androidJvm]
interface [WisefyLogger](-wisefy-logger/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/-android29-network-connection-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/-android29-network-connection-api-impl.md new file mode 100644 index 00000000..856c9fa1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/-android29-network-connection-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApiImpl](index.md)/[Android29NetworkConnectionApiImpl](-android29-network-connection-api-impl.md) + +# Android29NetworkConnectionApiImpl + +[androidJvm]\ +fun [Android29NetworkConnectionApiImpl](-android29-network-connection-api-impl.md)(connectionManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connect-to-network.md new file mode 100644 index 00000000..34f06205 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connect-to-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApiImpl](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connection-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connection-manager.md new file mode 100644 index 00000000..e96573b5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connection-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApiImpl](index.md)/[connectionManager](connection-manager.md) + +# connectionManager + +[androidJvm]\ +private val [connectionManager](connection-manager.md): [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/disconnect-from-current-network.md new file mode 100644 index 00000000..e923de68 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/disconnect-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApiImpl](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/index.md new file mode 100644 index 00000000..4ee79cd4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/index.md @@ -0,0 +1,31 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApiImpl](index.md) + +# Android29NetworkConnectionApiImpl + +[androidJvm]\ +internal class [Android29NetworkConnectionApiImpl](index.md)(**connectionManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [ConnectivityManager.NetworkCallback](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.NetworkCallback.html), [Android29NetworkConnectionApi](../-android29-network-connection-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](connect-to-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [onAvailable](../-legacy-network-connection-api-impl/index.md#2110788460%2FFunctions%2F1622544596) | [androidJvm]
open fun [onAvailable](../-legacy-network-connection-api-impl/index.md#2110788460%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)) | +| [onBlockedStatusChanged](../../com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/index.md#1004516195%2FFunctions%2F1622544596) | [androidJvm]
open fun [onBlockedStatusChanged](../../com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/index.md#1004516195%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), p1: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) | +| [onCapabilitiesChanged](../-legacy-network-connection-api-impl/index.md#5611792%2FFunctions%2F1622544596) | [androidJvm]
open fun [onCapabilitiesChanged](../-legacy-network-connection-api-impl/index.md#5611792%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), p1: [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)) | +| [onLinkPropertiesChanged](../-legacy-network-connection-api-impl/index.md#973932568%2FFunctions%2F1622544596) | [androidJvm]
open fun [onLinkPropertiesChanged](../-legacy-network-connection-api-impl/index.md#973932568%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), p1: [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)) | +| [onLosing](../-legacy-network-connection-api-impl/index.md#-1693799552%2FFunctions%2F1622544596) | [androidJvm]
open fun [onLosing](../-legacy-network-connection-api-impl/index.md#-1693799552%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), p1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) | +| [onLost](../-legacy-network-connection-api-impl/index.md#1243548751%2FFunctions%2F1622544596) | [androidJvm]
open fun [onLost](../-legacy-network-connection-api-impl/index.md#1243548751%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)) | +| [onUnavailable](../-legacy-network-connection-api-impl/index.md#-381201103%2FFunctions%2F1622544596) | [androidJvm]
open fun [onUnavailable](../-legacy-network-connection-api-impl/index.md#-381201103%2FFunctions%2F1622544596)() | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [connectionManager](connection-manager.md) | [androidJvm]
private val [connectionManager](connection-manager.md): [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html) | +| [logger](logger.md) | [androidJvm]
private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? | +| [networkCallback](network-callback.md) | [androidJvm]
private val [networkCallback](network-callback.md): Android29NetworkConnectionApiImpl. | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/logger.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/logger.md new file mode 100644 index 00000000..b1398f52 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/logger.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApiImpl](index.md)/[logger](logger.md) + +# logger + +[androidJvm]\ +private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/network-callback.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/network-callback.md new file mode 100644 index 00000000..25f4aa78 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/network-callback.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApiImpl](index.md)/[networkCallback](network-callback.md) + +# networkCallback + +[androidJvm]\ +private val [networkCallback](network-callback.md): Android29NetworkConnectionApiImpl. diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/connect-to-network.md new file mode 100644 index 00000000..6199cf13 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/connect-to-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApi](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +abstract fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/disconnect-from-current-network.md new file mode 100644 index 00000000..f1feed99 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/disconnect-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApi](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +abstract fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/index.md new file mode 100644 index 00000000..6131536a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionApi](index.md) + +# Android29NetworkConnectionApi + +[androidJvm]\ +internal interface [Android29NetworkConnectionApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](connect-to-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
abstract fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
abstract fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [Android29NetworkConnectionApiImpl](../-android29-network-connection-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/-android29-network-connection-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/-android29-network-connection-delegate.md new file mode 100644 index 00000000..23683bbf --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/-android29-network-connection-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionDelegate](index.md)/[Android29NetworkConnectionDelegate](-android29-network-connection-delegate.md) + +# Android29NetworkConnectionDelegate + +[androidJvm]\ +fun [Android29NetworkConnectionDelegate](-android29-network-connection-delegate.md)(connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, impl: [Android29NetworkConnectionApi](../-android29-network-connection-api/index.md) = Android29NetworkConnectionApiImpl(connectivityManager, logger)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/connect-to-network.md new file mode 100644 index 00000000..aa5e2c02 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/connect-to-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionDelegate](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/disconnect-from-current-network.md new file mode 100644 index 00000000..b3345ba0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/disconnect-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionDelegate](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/impl.md new file mode 100644 index 00000000..c893e2a3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [Android29NetworkConnectionApi](../-android29-network-connection-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/index.md new file mode 100644 index 00000000..25e74460 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[Android29NetworkConnectionDelegate](index.md) + +# Android29NetworkConnectionDelegate + +[androidJvm]\ +internal class [Android29NetworkConnectionDelegate](index.md)(**connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [Android29NetworkConnectionApi](../-android29-network-connection-api/index.md)) : [NetworkConnectionApi](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](connect-to-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [Android29NetworkConnectionApi](../-android29-network-connection-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..57e44021 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/-legacy-network-connection-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/-legacy-network-connection-api-impl.md new file mode 100644 index 00000000..2a50ec38 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/-legacy-network-connection-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md)/[LegacyNetworkConnectionApiImpl](-legacy-network-connection-api-impl.md) + +# LegacyNetworkConnectionApiImpl + +[androidJvm]\ +fun [LegacyNetworkConnectionApiImpl](-legacy-network-connection-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), networkConnectionStatusUtil: [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), savedNetworkUtil: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/connect-to-network.md new file mode 100644 index 00000000..0ee222e7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/connect-to-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/disconnect-from-current-network.md new file mode 100644 index 00000000..3eda8fc8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/disconnect-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/index.md new file mode 100644 index 00000000..a5926a17 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/index.md @@ -0,0 +1,34 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md) + +# LegacyNetworkConnectionApiImpl + +[androidJvm]\ +internal class [LegacyNetworkConnectionApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **networkConnectionStatusUtil**: [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), **savedNetworkUtil**: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [ConnectivityManager.NetworkCallback](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.NetworkCallback.html), [LegacyNetworkConnectionApi](../-legacy-network-connection-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](connect-to-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isCurrentNetworkConnectedToSSID](is-current-network-connected-to-s-s-i-d.md) | [androidJvm]
private fun [isCurrentNetworkConnectedToSSID](is-current-network-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [onAvailable](index.md#2110788460%2FFunctions%2F1622544596) | [androidJvm]
open fun [onAvailable](index.md#2110788460%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)) | +| [onBlockedStatusChanged](../../com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/index.md#1004516195%2FFunctions%2F1622544596) | [androidJvm]
open fun [onBlockedStatusChanged](../../com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/index.md#1004516195%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), p1: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) | +| [onCapabilitiesChanged](index.md#5611792%2FFunctions%2F1622544596) | [androidJvm]
open fun [onCapabilitiesChanged](index.md#5611792%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), p1: [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)) | +| [onLinkPropertiesChanged](index.md#973932568%2FFunctions%2F1622544596) | [androidJvm]
open fun [onLinkPropertiesChanged](index.md#973932568%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), p1: [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)) | +| [onLosing](index.md#-1693799552%2FFunctions%2F1622544596) | [androidJvm]
open fun [onLosing](index.md#-1693799552%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), p1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) | +| [onLost](index.md#1243548751%2FFunctions%2F1622544596) | [androidJvm]
open fun [onLost](index.md#1243548751%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)) | +| [onUnavailable](index.md#-381201103%2FFunctions%2F1622544596) | [androidJvm]
open fun [onUnavailable](index.md#-381201103%2FFunctions%2F1622544596)() | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [waitToConnectToSSID](wait-to-connect-to-s-s-i-d.md) | [androidJvm]
private fun [waitToConnectToSSID](wait-to-connect-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?, timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [logger](logger.md) | [androidJvm]
private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? | +| [networkConnectionStatusUtil](network-connection-status-util.md) | [androidJvm]
private val [networkConnectionStatusUtil](network-connection-status-util.md): [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md) | +| [savedNetworkUtil](saved-network-util.md) | [androidJvm]
private val [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) | +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/is-current-network-connected-to-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/is-current-network-connected-to-s-s-i-d.md new file mode 100644 index 00000000..3606a667 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/is-current-network-connected-to-s-s-i-d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md)/[isCurrentNetworkConnectedToSSID](is-current-network-connected-to-s-s-i-d.md) + +# isCurrentNetworkConnectedToSSID + +[androidJvm]\ +private fun [isCurrentNetworkConnectedToSSID](is-current-network-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/logger.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/logger.md new file mode 100644 index 00000000..f1eb8b59 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/logger.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md)/[logger](logger.md) + +# logger + +[androidJvm]\ +private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/network-connection-status-util.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/network-connection-status-util.md new file mode 100644 index 00000000..c9efaf76 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/network-connection-status-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md)/[networkConnectionStatusUtil](network-connection-status-util.md) + +# networkConnectionStatusUtil + +[androidJvm]\ +private val [networkConnectionStatusUtil](network-connection-status-util.md): [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/saved-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/saved-network-util.md new file mode 100644 index 00000000..dd0a9eda --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/saved-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md)/[savedNetworkUtil](saved-network-util.md) + +# savedNetworkUtil + +[androidJvm]\ +private val [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wait-to-connect-to-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wait-to-connect-to-s-s-i-d.md new file mode 100644 index 00000000..f3b4c4a3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wait-to-connect-to-s-s-i-d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md)/[waitToConnectToSSID](wait-to-connect-to-s-s-i-d.md) + +# waitToConnectToSSID + +[androidJvm]\ +private fun [waitToConnectToSSID](wait-to-connect-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?, timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wifi-manager.md new file mode 100644 index 00000000..41e75377 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/connect-to-network.md new file mode 100644 index 00000000..3a144f25 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/connect-to-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApi](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ +abstract fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/disconnect-from-current-network.md new file mode 100644 index 00000000..9c75bcca --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/disconnect-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApi](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +abstract fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/index.md new file mode 100644 index 00000000..b0627384 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionApi](index.md) + +# LegacyNetworkConnectionApi + +[androidJvm]\ +internal interface [LegacyNetworkConnectionApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](connect-to-network.md) | [androidJvm]
abstract fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
abstract fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacyNetworkConnectionApiImpl](../-legacy-network-connection-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/-legacy-network-connection-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/-legacy-network-connection-delegate.md new file mode 100644 index 00000000..751d418c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/-legacy-network-connection-delegate.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionDelegate](index.md)/[LegacyNetworkConnectionDelegate](-legacy-network-connection-delegate.md) + +# LegacyNetworkConnectionDelegate + +[androidJvm]\ +fun [LegacyNetworkConnectionDelegate](-legacy-network-connection-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), networkConnectionStatusUtil: [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), savedNetworkUtil: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, impl: [LegacyNetworkConnectionApi](../-legacy-network-connection-api/index.md) = LegacyNetworkConnectionApiImpl( + wifiManager, + networkConnectionStatusUtil, + savedNetworkUtil, + logger + )) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/connect-to-network.md new file mode 100644 index 00000000..c42e99a6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/connect-to-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionDelegate](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ +open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/disconnect-from-current-network.md new file mode 100644 index 00000000..9d2d450c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/disconnect-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionDelegate](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/impl.md new file mode 100644 index 00000000..d0d2462c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacyNetworkConnectionApi](../-legacy-network-connection-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/index.md new file mode 100644 index 00000000..fd5f5e0b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](../index.md)/[LegacyNetworkConnectionDelegate](index.md) + +# LegacyNetworkConnectionDelegate + +[androidJvm]\ +internal class [LegacyNetworkConnectionDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **networkConnectionStatusUtil**: [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), **savedNetworkUtil**: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [LegacyNetworkConnectionApi](../-legacy-network-connection-api/index.md)) : [NetworkConnectionApi](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](connect-to-network.md) | [androidJvm]
open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacyNetworkConnectionApi](../-legacy-network-connection-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/index.md new file mode 100644 index 00000000..9b13afc7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/index.md @@ -0,0 +1,21 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnection.delegates](index.md) + +# Package com.isupatches.android.wisefy.networkconnection.delegates + +## Types + +| Name | Summary | +|---|---| +| [Android29NetworkConnectionApi](-android29-network-connection-api/index.md) | [androidJvm]
internal interface [Android29NetworkConnectionApi](-android29-network-connection-api/index.md) | +| [Android29NetworkConnectionApiImpl](-android29-network-connection-api-impl/index.md) | [androidJvm]
internal class [Android29NetworkConnectionApiImpl](-android29-network-connection-api-impl/index.md)(**connectionManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [ConnectivityManager.NetworkCallback](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.NetworkCallback.html), [Android29NetworkConnectionApi](-android29-network-connection-api/index.md) | +| [Android29NetworkConnectionDelegate](-android29-network-connection-delegate/index.md) | [androidJvm]
internal class [Android29NetworkConnectionDelegate](-android29-network-connection-delegate/index.md)(**connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [Android29NetworkConnectionApi](-android29-network-connection-api/index.md)) : [NetworkConnectionApi](../com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md) | +| [LegacyNetworkConnectionApi](-legacy-network-connection-api/index.md) | [androidJvm]
internal interface [LegacyNetworkConnectionApi](-legacy-network-connection-api/index.md) | +| [LegacyNetworkConnectionApiImpl](-legacy-network-connection-api-impl/index.md) | [androidJvm]
internal class [LegacyNetworkConnectionApiImpl](-legacy-network-connection-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **networkConnectionStatusUtil**: [NetworkConnectionStatusUtil](../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), **savedNetworkUtil**: [SavedNetworkUtil](../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [ConnectivityManager.NetworkCallback](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.NetworkCallback.html), [LegacyNetworkConnectionApi](-legacy-network-connection-api/index.md) | +| [LegacyNetworkConnectionDelegate](-legacy-network-connection-delegate/index.md) | [androidJvm]
internal class [LegacyNetworkConnectionDelegate](-legacy-network-connection-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **networkConnectionStatusUtil**: [NetworkConnectionStatusUtil](../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), **savedNetworkUtil**: [SavedNetworkUtil](../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [LegacyNetworkConnectionApi](-legacy-network-connection-api/index.md)) : [NetworkConnectionApi](../com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-connection-request-placed/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-connection-request-placed/index.md new file mode 100644 index 00000000..f1c9c600 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-connection-request-placed/index.md @@ -0,0 +1,14 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../../index.md)/[NetworkConnectionResult](../index.md)/[ConnectionRequestPlaced](index.md) + +# ConnectionRequestPlaced + +[androidJvm]\ +object [ConnectionRequestPlaced](index.md) : [NetworkConnectionResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-connection-result.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-connection-result.md new file mode 100644 index 00000000..937a96a9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-connection-result.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../index.md)/[NetworkConnectionResult](index.md)/[NetworkConnectionResult](-network-connection-result.md) + +# NetworkConnectionResult + +[androidJvm]\ +protected fun [NetworkConnectionResult](-network-connection-result.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-not-found/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-not-found/index.md new file mode 100644 index 00000000..3b136f0b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-not-found/index.md @@ -0,0 +1,14 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../../index.md)/[NetworkConnectionResult](../index.md)/[NetworkNotFound](index.md) + +# NetworkNotFound + +[androidJvm]\ +object [NetworkNotFound](index.md) : [NetworkConnectionResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/-succeeded.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/-succeeded.md new file mode 100644 index 00000000..a9159d2a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/-succeeded.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../../index.md)/[NetworkConnectionResult](../index.md)/[Succeeded](index.md)/[Succeeded](-succeeded.md) + +# Succeeded + +[androidJvm]\ +fun [Succeeded](-succeeded.md)(data: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/component1.md new file mode 100644 index 00000000..0ccf357e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../../index.md)/[NetworkConnectionResult](../index.md)/[Succeeded](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/copy.md new file mode 100644 index 00000000..39b7e72c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../../index.md)/[NetworkConnectionResult](../index.md)/[Succeeded](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(data: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [NetworkConnectionResult.Succeeded](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/data.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/data.md new file mode 100644 index 00000000..69b98173 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../../index.md)/[NetworkConnectionResult](../index.md)/[Succeeded](index.md)/[data](data.md) + +# data + +[androidJvm]\ +val [data](data.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/index.md new file mode 100644 index 00000000..e6884b64 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../../index.md)/[NetworkConnectionResult](../index.md)/[Succeeded](index.md) + +# Succeeded + +[androidJvm]\ +data class [Succeeded](index.md)(**data**: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) : [NetworkConnectionResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(data: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [NetworkConnectionResult.Succeeded](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [data](data.md) | [androidJvm]
val [data](data.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-unregister-request-sent/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-unregister-request-sent/index.md new file mode 100644 index 00000000..3ac76504 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-unregister-request-sent/index.md @@ -0,0 +1,14 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../../index.md)/[NetworkConnectionResult](../index.md)/[UnregisterRequestSent](index.md) + +# UnregisterRequestSent + +[androidJvm]\ +object [UnregisterRequestSent](index.md) : [NetworkConnectionResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md new file mode 100644 index 00000000..70256497 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md @@ -0,0 +1,32 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](../index.md)/[NetworkConnectionResult](index.md) + +# NetworkConnectionResult + +[androidJvm]\ +sealed class [NetworkConnectionResult](index.md) + +## Types + +| Name | Summary | +|---|---| +| [ConnectionRequestPlaced](-connection-request-placed/index.md) | [androidJvm]
object [ConnectionRequestPlaced](-connection-request-placed/index.md) : [NetworkConnectionResult](index.md) | +| [NetworkNotFound](-network-not-found/index.md) | [androidJvm]
object [NetworkNotFound](-network-not-found/index.md) : [NetworkConnectionResult](index.md) | +| [Succeeded](-succeeded/index.md) | [androidJvm]
data class [Succeeded](-succeeded/index.md)(**data**: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) : [NetworkConnectionResult](index.md) | +| [UnregisterRequestSent](-unregister-request-sent/index.md) | [androidJvm]
object [UnregisterRequestSent](-unregister-request-sent/index.md) : [NetworkConnectionResult](index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [NetworkConnectionResult](-succeeded/index.md) | +| [NetworkConnectionResult](-connection-request-placed/index.md) | +| [NetworkConnectionResult](-network-not-found/index.md) | +| [NetworkConnectionResult](-unregister-request-sent/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/index.md new file mode 100644 index 00000000..0eddc940 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection.entities/index.md @@ -0,0 +1,9 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnection.entities](index.md) + +# Package com.isupatches.android.wisefy.networkconnection.entities + +## Types + +| Name | Summary | +|---|---| +| [NetworkConnectionResult](-network-connection-result/index.md) | [androidJvm]
sealed class [NetworkConnectionResult](-network-connection-result/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..340fda0c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnection](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/connect-to-network.md new file mode 100644 index 00000000..0ddaa92c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/connect-to-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[NetworkConnectionApiAsync](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ +abstract fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [ConnectToNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/disconnect-from-current-network.md new file mode 100644 index 00000000..099f10db --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/disconnect-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[NetworkConnectionApiAsync](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +abstract fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(callbacks: [DisconnectFromCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/index.md new file mode 100644 index 00000000..2d9659e9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[NetworkConnectionApiAsync](index.md) + +# NetworkConnectionApiAsync + +[androidJvm]\ +interface [NetworkConnectionApiAsync](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](connect-to-network.md) | [androidJvm]
abstract fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [ConnectToNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md)?) | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
abstract fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(callbacks: [DisconnectFromCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md)?) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [NetworkConnectionUtil](../-network-connection-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/connect-to-network.md new file mode 100644 index 00000000..6719ca54 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/connect-to-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[NetworkConnectionApi](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ +abstract fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/disconnect-from-current-network.md new file mode 100644 index 00000000..ea8c8808 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/disconnect-from-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[NetworkConnectionApi](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +abstract fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md new file mode 100644 index 00000000..ad9109ff --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[NetworkConnectionApi](index.md) + +# NetworkConnectionApi + +[androidJvm]\ +interface [NetworkConnectionApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](connect-to-network.md) | [androidJvm]
abstract fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
abstract fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [NetworkConnectionUtil](../-network-connection-util/index.md) | +| [Android29NetworkConnectionDelegate](../../com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/index.md) | +| [LegacyNetworkConnectionDelegate](../../com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md new file mode 100644 index 00000000..616ed92e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[NetworkConnectionUtil](index.md) + +# NetworkConnectionUtil + +[androidJvm]\ +internal interface [NetworkConnectionUtil](index.md) : [NetworkConnectionApi](../-network-connection-api/index.md), [NetworkConnectionApiAsync](../-network-connection-api-async/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](../-network-connection-api/connect-to-network.md) | [androidJvm]
abstract fun [connectToNetwork](../-network-connection-api/connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md)
abstract fun [connectToNetwork](../-network-connection-api-async/connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [ConnectToNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md)?) | +| [disconnectFromCurrentNetwork](../-network-connection-api/disconnect-from-current-network.md) | [androidJvm]
abstract fun [disconnectFromCurrentNetwork](../-network-connection-api/disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md)
abstract fun [disconnectFromCurrentNetwork](../-network-connection-api-async/disconnect-from-current-network.md)(callbacks: [DisconnectFromCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md)?) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyNetworkConnectionUtil](../-wisefy-network-connection-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/-wisefy-network-connection-util.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/-wisefy-network-connection-util.md new file mode 100644 index 00000000..31479725 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/-wisefy-network-connection-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[WisefyNetworkConnectionUtil](index.md)/[WisefyNetworkConnectionUtil](-wisefy-network-connection-util.md) + +# WisefyNetworkConnectionUtil + +[androidJvm]\ +fun [WisefyNetworkConnectionUtil](-wisefy-network-connection-util.md)(coroutineDispatcherProvider: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, networkConnectionStatusUtil: [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), savedNetworkUtil: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), sdkUtil: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/connect-to-network.md new file mode 100644 index 00000000..73d0b555 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/connect-to-network.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[WisefyNetworkConnectionUtil](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ +open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) + +open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [ConnectToNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/coroutine-dispatcher-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/coroutine-dispatcher-provider.md new file mode 100644 index 00000000..7e600f8f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/coroutine-dispatcher-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[WisefyNetworkConnectionUtil](index.md)/[coroutineDispatcherProvider](coroutine-dispatcher-provider.md) + +# coroutineDispatcherProvider + +[androidJvm]\ +private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/delegate.md new file mode 100644 index 00000000..3d64251c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[WisefyNetworkConnectionUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [NetworkConnectionApi](../-network-connection-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/disconnect-from-current-network.md new file mode 100644 index 00000000..c468c2c9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/disconnect-from-current-network.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[WisefyNetworkConnectionUtil](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) + +open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(callbacks: [DisconnectFromCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/index.md new file mode 100644 index 00000000..a20fe181 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[WisefyNetworkConnectionUtil](index.md) + +# WisefyNetworkConnectionUtil + +[androidJvm]\ +internal class [WisefyNetworkConnectionUtil](index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **networkConnectionStatusUtil**: [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), **savedNetworkUtil**: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **sdkUtil**: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [NetworkConnectionUtil](../-network-connection-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [connectToNetwork](connect-to-network.md) | [androidJvm]
open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md)
open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [ConnectToNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md)?) | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md)
open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(callbacks: [DisconnectFromCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md)?) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [coroutineDispatcherProvider](coroutine-dispatcher-provider.md) | [androidJvm]
private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) | +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [NetworkConnectionApi](../-network-connection-api/index.md) | +| [networkConnectionScope](network-connection-scope.md) | [androidJvm]
private val [networkConnectionScope](network-connection-scope.md): CoroutineScope | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/network-connection-scope.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/network-connection-scope.md new file mode 100644 index 00000000..40ffc366 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/network-connection-scope.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnection](../index.md)/[WisefyNetworkConnectionUtil](index.md)/[networkConnectionScope](network-connection-scope.md) + +# networkConnectionScope + +[androidJvm]\ +private val [networkConnectionScope](network-connection-scope.md): CoroutineScope diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/index.md new file mode 100644 index 00000000..83bf3d8c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnection/index.md @@ -0,0 +1,18 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnection](index.md) + +# Package com.isupatches.android.wisefy.networkconnection + +## Types + +| Name | Summary | +|---|---| +| [NetworkConnectionApi](-network-connection-api/index.md) | [androidJvm]
interface [NetworkConnectionApi](-network-connection-api/index.md) | +| [NetworkConnectionApiAsync](-network-connection-api-async/index.md) | [androidJvm]
interface [NetworkConnectionApiAsync](-network-connection-api-async/index.md) | +| [NetworkConnectionUtil](-network-connection-util/index.md) | [androidJvm]
internal interface [NetworkConnectionUtil](-network-connection-util/index.md) : [NetworkConnectionApi](-network-connection-api/index.md), [NetworkConnectionApiAsync](-network-connection-api-async/index.md) | +| [WisefyNetworkConnectionUtil](-wisefy-network-connection-util/index.md) | [androidJvm]
internal class [WisefyNetworkConnectionUtil](-wisefy-network-connection-util/index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **networkConnectionStatusUtil**: [NetworkConnectionStatusUtil](../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), **savedNetworkUtil**: [SavedNetworkUtil](../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **sdkUtil**: [SdkUtil](../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [NetworkConnectionUtil](-network-connection-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..2b154bd7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/-legacy-network-connection-status-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/-legacy-network-connection-status-api-impl.md new file mode 100644 index 00000000..f94c7f20 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/-legacy-network-connection-status-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[LegacyNetworkConnectionStatusApiImpl](-legacy-network-connection-status-api-impl.md) + +# LegacyNetworkConnectionStatusApiImpl + +[androidJvm]\ +fun [LegacyNetworkConnectionStatusApiImpl](-legacy-network-connection-status-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), sdkUtil: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/attach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/attach-network-watcher.md new file mode 100644 index 00000000..d36a2065 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/attach-network-watcher.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[attachNetworkWatcher](attach-network-watcher.md) + +# attachNetworkWatcher + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [attachNetworkWatcher](attach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connection-status.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connection-status.md new file mode 100644 index 00000000..f6533a5f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connection-status.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[connectionStatus](connection-status.md) + +# connectionStatus + +[androidJvm]\ +private var [connectionStatus](connection-status.md): [NetworkConnectionStatus](../../com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/index.md)? = null diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connectivity-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connectivity-manager.md new file mode 100644 index 00000000..19c254b2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connectivity-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[connectivityManager](connectivity-manager.md) + +# connectivityManager + +[androidJvm]\ +private val [connectivityManager](connectivity-manager.md): [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/detach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/detach-network-watcher.md new file mode 100644 index 00000000..3366d8f4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/detach-network-watcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[detachNetworkWatcher](detach-network-watcher.md) + +# detachNetworkWatcher + +[androidJvm]\ +open override fun [detachNetworkWatcher](detach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-capability.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-capability.md new file mode 100644 index 00000000..b8d2e19c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-capability.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[doesNetworkHaveCapability](does-network-have-capability.md) + +# doesNetworkHaveCapability + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +private fun [doesNetworkHaveCapability](does-network-have-capability.md)(capability: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-transport-type-and-internet-capability.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-transport-type-and-internet-capability.md new file mode 100644 index 00000000..facbb8e0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-transport-type-and-internet-capability.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[doesNetworkHaveTransportTypeAndInternetCapability](does-network-have-transport-type-and-internet-capability.md) + +# doesNetworkHaveTransportTypeAndInternetCapability + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +private fun [doesNetworkHaveTransportTypeAndInternetCapability](does-network-have-transport-type-and-internet-capability.md)(transportType: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/get-active-network-capabilities.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/get-active-network-capabilities.md new file mode 100644 index 00000000..e19efe87 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/get-active-network-capabilities.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[getActiveNetworkCapabilities](get-active-network-capabilities.md) + +# getActiveNetworkCapabilities + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +private fun [getActiveNetworkCapabilities](get-active-network-capabilities.md)(): [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/index.md new file mode 100644 index 00000000..8289d47b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/index.md @@ -0,0 +1,44 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md) + +# LegacyNetworkConnectionStatusApiImpl + +[androidJvm]\ +internal class [LegacyNetworkConnectionStatusApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **sdkUtil**: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [ConnectivityManager.NetworkCallback](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.NetworkCallback.html), [LegacyNetworkConnectionStatusApi](../-legacy-network-connection-status-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [attachNetworkWatcher](attach-network-watcher.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [attachNetworkWatcher](attach-network-watcher.md)() | +| [detachNetworkWatcher](detach-network-watcher.md) | [androidJvm]
open override fun [detachNetworkWatcher](detach-network-watcher.md)() | +| [doesNetworkHaveCapability](does-network-have-capability.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
private fun [doesNetworkHaveCapability](does-network-have-capability.md)(capability: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [doesNetworkHaveTransportTypeAndInternetCapability](does-network-have-transport-type-and-internet-capability.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
private fun [doesNetworkHaveTransportTypeAndInternetCapability](does-network-have-transport-type-and-internet-capability.md)(transportType: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getActiveNetworkCapabilities](get-active-network-capabilities.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
private fun [getActiveNetworkCapabilities](get-active-network-capabilities.md)(): [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)? | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) | [androidJvm]
open override fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) | [androidJvm]
open override fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceRoaming](is-device-roaming.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkConnected](is-network-connected.md) | [androidJvm]
private fun [isNetworkConnected](is-network-connected.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [onAvailable](on-available.md) | [androidJvm]
open override fun [onAvailable](on-available.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)) | +| [onBlockedStatusChanged](index.md#1004516195%2FFunctions%2F1622544596) | [androidJvm]
open fun [onBlockedStatusChanged](index.md#1004516195%2FFunctions%2F1622544596)(p0: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), p1: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) | +| [onCapabilitiesChanged](on-capabilities-changed.md) | [androidJvm]
open override fun [onCapabilitiesChanged](on-capabilities-changed.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), networkCapabilities: [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)) | +| [onLinkPropertiesChanged](on-link-properties-changed.md) | [androidJvm]
open override fun [onLinkPropertiesChanged](on-link-properties-changed.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), linkProperties: [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)) | +| [onLosing](on-losing.md) | [androidJvm]
open override fun [onLosing](on-losing.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), maxMsToLive: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) | +| [onLost](on-lost.md) | [androidJvm]
open override fun [onLost](on-lost.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)) | +| [onUnavailable](on-unavailable.md) | [androidJvm]
open override fun [onUnavailable](on-unavailable.md)() | +| [startListeningForNetworkChanges](start-listening-for-network-changes.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
private fun [startListeningForNetworkChanges](start-listening-for-network-changes.md)(connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html)) | +| [stopListeningForNetworkChanges](stop-listening-for-network-changes.md) | [androidJvm]
private fun [stopListeningForNetworkChanges](stop-listening-for-network-changes.md)(connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html)) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [connectionStatus](connection-status.md) | [androidJvm]
private var [connectionStatus](connection-status.md): [NetworkConnectionStatus](../../com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/index.md)? = null | +| [connectivityManager](connectivity-manager.md) | [androidJvm]
private val [connectivityManager](connectivity-manager.md): [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html) | +| [logger](logger.md) | [androidJvm]
private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? | +| [sdkUtil](sdk-util.md) | [androidJvm]
private val [sdkUtil](sdk-util.md): [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md) | +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-network.md new file mode 100644 index 00000000..8facfc0f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) + +# isDeviceConnectedToMobileNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-or-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-or-wifi-network.md new file mode 100644 index 00000000..eec1ea24 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-or-wifi-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) + +# isDeviceConnectedToMobileOrWifiNetwork + +[androidJvm]\ +open override fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-s-s-i-d.md new file mode 100644 index 00000000..674a26bd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-s-s-i-d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) + +# isDeviceConnectedToSSID + +[androidJvm]\ +open override fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-wifi-network.md new file mode 100644 index 00000000..0b25af7f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-wifi-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) + +# isDeviceConnectedToWifiNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-roaming.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-roaming.md new file mode 100644 index 00000000..d8f782ea --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-roaming.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[isDeviceRoaming](is-device-roaming.md) + +# isDeviceRoaming + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-network-connected.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-network-connected.md new file mode 100644 index 00000000..2885d07b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-network-connected.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[isNetworkConnected](is-network-connected.md) + +# isNetworkConnected + +[androidJvm]\ +private fun [isNetworkConnected](is-network-connected.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/logger.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/logger.md new file mode 100644 index 00000000..fbb4d11b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/logger.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[logger](logger.md) + +# logger + +[androidJvm]\ +private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-available.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-available.md new file mode 100644 index 00000000..272912b9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-available.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[onAvailable](on-available.md) + +# onAvailable + +[androidJvm]\ +open override fun [onAvailable](on-available.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-capabilities-changed.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-capabilities-changed.md new file mode 100644 index 00000000..18b870f5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-capabilities-changed.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[onCapabilitiesChanged](on-capabilities-changed.md) + +# onCapabilitiesChanged + +[androidJvm]\ +open override fun [onCapabilitiesChanged](on-capabilities-changed.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), networkCapabilities: [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-link-properties-changed.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-link-properties-changed.md new file mode 100644 index 00000000..2043a8cd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-link-properties-changed.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[onLinkPropertiesChanged](on-link-properties-changed.md) + +# onLinkPropertiesChanged + +[androidJvm]\ +open override fun [onLinkPropertiesChanged](on-link-properties-changed.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), linkProperties: [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-losing.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-losing.md new file mode 100644 index 00000000..6d8c2c22 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-losing.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[onLosing](on-losing.md) + +# onLosing + +[androidJvm]\ +open override fun [onLosing](on-losing.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html), maxMsToLive: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-lost.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-lost.md new file mode 100644 index 00000000..9ae7a9d9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-lost.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[onLost](on-lost.md) + +# onLost + +[androidJvm]\ +open override fun [onLost](on-lost.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-unavailable.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-unavailable.md new file mode 100644 index 00000000..7ec64712 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-unavailable.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[onUnavailable](on-unavailable.md) + +# onUnavailable + +[androidJvm]\ +open override fun [onUnavailable](on-unavailable.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/sdk-util.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/sdk-util.md new file mode 100644 index 00000000..5e94a31a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/sdk-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[sdkUtil](sdk-util.md) + +# sdkUtil + +[androidJvm]\ +private val [sdkUtil](sdk-util.md): [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/start-listening-for-network-changes.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/start-listening-for-network-changes.md new file mode 100644 index 00000000..c3aea5b1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/start-listening-for-network-changes.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[startListeningForNetworkChanges](start-listening-for-network-changes.md) + +# startListeningForNetworkChanges + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +private fun [startListeningForNetworkChanges](start-listening-for-network-changes.md)(connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/stop-listening-for-network-changes.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/stop-listening-for-network-changes.md new file mode 100644 index 00000000..3b434af9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/stop-listening-for-network-changes.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[stopListeningForNetworkChanges](stop-listening-for-network-changes.md) + +# stopListeningForNetworkChanges + +[androidJvm]\ +private fun [stopListeningForNetworkChanges](stop-listening-for-network-changes.md)(connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/wifi-manager.md new file mode 100644 index 00000000..7f715168 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/attach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/attach-network-watcher.md new file mode 100644 index 00000000..194abc4d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/attach-network-watcher.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApi](index.md)/[attachNetworkWatcher](attach-network-watcher.md) + +# attachNetworkWatcher + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +abstract fun [attachNetworkWatcher](attach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/detach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/detach-network-watcher.md new file mode 100644 index 00000000..8c8355b7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/detach-network-watcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApi](index.md)/[detachNetworkWatcher](detach-network-watcher.md) + +# detachNetworkWatcher + +[androidJvm]\ +abstract fun [detachNetworkWatcher](detach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/index.md new file mode 100644 index 00000000..b98c1e27 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApi](index.md) + +# LegacyNetworkConnectionStatusApi + +[androidJvm]\ +internal interface [LegacyNetworkConnectionStatusApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [attachNetworkWatcher](attach-network-watcher.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [attachNetworkWatcher](attach-network-watcher.md)() | +| [detachNetworkWatcher](detach-network-watcher.md) | [androidJvm]
abstract fun [detachNetworkWatcher](detach-network-watcher.md)() | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) | [androidJvm]
abstract fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceRoaming](is-device-roaming.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacyNetworkConnectionStatusApiImpl](../-legacy-network-connection-status-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-network.md new file mode 100644 index 00000000..df601381 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApi](index.md)/[isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) + +# isDeviceConnectedToMobileNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +abstract fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md new file mode 100644 index 00000000..e14437e5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApi](index.md)/[isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) + +# isDeviceConnectedToMobileOrWifiNetwork + +[androidJvm]\ +abstract fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-s-s-i-d.md new file mode 100644 index 00000000..61bcb077 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-s-s-i-d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApi](index.md)/[isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) + +# isDeviceConnectedToSSID + +[androidJvm]\ +abstract fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-wifi-network.md new file mode 100644 index 00000000..afb78128 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-wifi-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApi](index.md)/[isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) + +# isDeviceConnectedToWifiNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +abstract fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-roaming.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-roaming.md new file mode 100644 index 00000000..552ed8f5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-roaming.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusApi](index.md)/[isDeviceRoaming](is-device-roaming.md) + +# isDeviceRoaming + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +abstract fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/-legacy-network-connection-status-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/-legacy-network-connection-status-delegate.md new file mode 100644 index 00000000..cd5da054 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/-legacy-network-connection-status-delegate.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md)/[LegacyNetworkConnectionStatusDelegate](-legacy-network-connection-status-delegate.md) + +# LegacyNetworkConnectionStatusDelegate + +[androidJvm]\ +fun [LegacyNetworkConnectionStatusDelegate](-legacy-network-connection-status-delegate.md)(connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), sdkUtil: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, impl: [LegacyNetworkConnectionStatusApi](../-legacy-network-connection-status-api/index.md) = LegacyNetworkConnectionStatusApiImpl( + wifiManager, + connectivityManager, + sdkUtil, + logger + )) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/attach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/attach-network-watcher.md new file mode 100644 index 00000000..0d934e1f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/attach-network-watcher.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md)/[attachNetworkWatcher](attach-network-watcher.md) + +# attachNetworkWatcher + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [attachNetworkWatcher](attach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/detach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/detach-network-watcher.md new file mode 100644 index 00000000..b5a435f3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/detach-network-watcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md)/[detachNetworkWatcher](detach-network-watcher.md) + +# detachNetworkWatcher + +[androidJvm]\ +open override fun [detachNetworkWatcher](detach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/impl.md new file mode 100644 index 00000000..5af41ca0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacyNetworkConnectionStatusApi](../-legacy-network-connection-status-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/index.md new file mode 100644 index 00000000..0c40dd1a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md) + +# LegacyNetworkConnectionStatusDelegate + +[androidJvm]\ +internal class [LegacyNetworkConnectionStatusDelegate](index.md)(**connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **sdkUtil**: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [LegacyNetworkConnectionStatusApi](../-legacy-network-connection-status-api/index.md)) : [NetworkConnectionStatusApi](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [attachNetworkWatcher](attach-network-watcher.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [attachNetworkWatcher](attach-network-watcher.md)() | +| [detachNetworkWatcher](detach-network-watcher.md) | [androidJvm]
open override fun [detachNetworkWatcher](detach-network-watcher.md)() | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) | [androidJvm]
open override fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) | [androidJvm]
open override fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceRoaming](is-device-roaming.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacyNetworkConnectionStatusApi](../-legacy-network-connection-status-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-network.md new file mode 100644 index 00000000..1f97393b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md)/[isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) + +# isDeviceConnectedToMobileNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-or-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-or-wifi-network.md new file mode 100644 index 00000000..a973f635 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-or-wifi-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md)/[isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) + +# isDeviceConnectedToMobileOrWifiNetwork + +[androidJvm]\ +open override fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-s-s-i-d.md new file mode 100644 index 00000000..1f61282e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-s-s-i-d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md)/[isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) + +# isDeviceConnectedToSSID + +[androidJvm]\ +open override fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-wifi-network.md new file mode 100644 index 00000000..495e5d7d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-wifi-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md)/[isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) + +# isDeviceConnectedToWifiNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-roaming.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-roaming.md new file mode 100644 index 00000000..2f0bb1cc --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-roaming.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](../index.md)/[LegacyNetworkConnectionStatusDelegate](index.md)/[isDeviceRoaming](is-device-roaming.md) + +# isDeviceRoaming + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/index.md new file mode 100644 index 00000000..79ef42ab --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.delegates](index.md) + +# Package com.isupatches.android.wisefy.networkconnectionstatus.delegates + +## Types + +| Name | Summary | +|---|---| +| [LegacyNetworkConnectionStatusApi](-legacy-network-connection-status-api/index.md) | [androidJvm]
internal interface [LegacyNetworkConnectionStatusApi](-legacy-network-connection-status-api/index.md) | +| [LegacyNetworkConnectionStatusApiImpl](-legacy-network-connection-status-api-impl/index.md) | [androidJvm]
internal class [LegacyNetworkConnectionStatusApiImpl](-legacy-network-connection-status-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **sdkUtil**: [SdkUtil](../com.isupatches.android.wisefy.util/-sdk-util/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [ConnectivityManager.NetworkCallback](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.NetworkCallback.html), [LegacyNetworkConnectionStatusApi](-legacy-network-connection-status-api/index.md) | +| [LegacyNetworkConnectionStatusDelegate](-legacy-network-connection-status-delegate/index.md) | [androidJvm]
internal class [LegacyNetworkConnectionStatusDelegate](-legacy-network-connection-status-delegate/index.md)(**connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **sdkUtil**: [SdkUtil](../com.isupatches.android.wisefy.util/-sdk-util/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [LegacyNetworkConnectionStatusApi](-legacy-network-connection-status-api/index.md)) : [NetworkConnectionStatusApi](../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/index.md new file mode 100644 index 00000000..751796ef --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[AVAILABLE](index.md) + +# AVAILABLE + +[androidJvm]\ +[AVAILABLE](index.md)() + +## Functions + +| Name | Summary | +|---|---| +| [clone](../-u-n-a-v-a-i-l-a-b-l-e/index.md#919483808%2FFunctions%2F1622544596) | [androidJvm]
protected fun [clone](../-u-n-a-v-a-i-l-a-b-l-e/index.md#919483808%2FFunctions%2F1622544596)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) | +| [compareTo](../-u-n-a-v-a-i-l-a-b-l-e/index.md#695287834%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [compareTo](../-u-n-a-v-a-i-l-a-b-l-e/index.md#695287834%2FFunctions%2F1622544596)(other: [NetworkConnectionStatus](../index.md)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-1009559292%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [equals](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-1009559292%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [finalize](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-653876033%2FFunctions%2F1622544596) | [androidJvm]
fun [finalize](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-653876033%2FFunctions%2F1622544596)() | +| [getDeclaringClass](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-131535050%2FFunctions%2F1622544596) | [androidJvm]
fun [getDeclaringClass](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-131535050%2FFunctions%2F1622544596)(): [Class](https://developer.android.com/reference/kotlin/java/lang/Class.html)<[NetworkConnectionStatus](../index.md)> | +| [hashCode](../-u-n-a-v-a-i-l-a-b-l-e/index.md#446421858%2FFunctions%2F1622544596) | [androidJvm]
override fun [hashCode](../-u-n-a-v-a-i-l-a-b-l-e/index.md#446421858%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../-u-n-a-v-a-i-l-a-b-l-e/index.md#268255793%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../-u-n-a-v-a-i-l-a-b-l-e/index.md#268255793%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](ordinal.md) | [androidJvm]
val [ordinal](ordinal.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/name.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/name.md new file mode 100644 index 00000000..4b7ac1c0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/name.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[AVAILABLE](index.md)/[name](name.md) + +# name + +[androidJvm]\ +val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/ordinal.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/ordinal.md new file mode 100644 index 00000000..9f988110 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/ordinal.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[AVAILABLE](index.md)/[ordinal](ordinal.md) + +# ordinal + +[androidJvm]\ +val [ordinal](ordinal.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/index.md new file mode 100644 index 00000000..7b723a55 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[LOSING](index.md) + +# LOSING + +[androidJvm]\ +[LOSING](index.md)() + +## Functions + +| Name | Summary | +|---|---| +| [clone](../-u-n-a-v-a-i-l-a-b-l-e/index.md#919483808%2FFunctions%2F1622544596) | [androidJvm]
protected fun [clone](../-u-n-a-v-a-i-l-a-b-l-e/index.md#919483808%2FFunctions%2F1622544596)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) | +| [compareTo](../-u-n-a-v-a-i-l-a-b-l-e/index.md#695287834%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [compareTo](../-u-n-a-v-a-i-l-a-b-l-e/index.md#695287834%2FFunctions%2F1622544596)(other: [NetworkConnectionStatus](../index.md)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-1009559292%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [equals](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-1009559292%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [finalize](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-653876033%2FFunctions%2F1622544596) | [androidJvm]
fun [finalize](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-653876033%2FFunctions%2F1622544596)() | +| [getDeclaringClass](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-131535050%2FFunctions%2F1622544596) | [androidJvm]
fun [getDeclaringClass](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-131535050%2FFunctions%2F1622544596)(): [Class](https://developer.android.com/reference/kotlin/java/lang/Class.html)<[NetworkConnectionStatus](../index.md)> | +| [hashCode](../-u-n-a-v-a-i-l-a-b-l-e/index.md#446421858%2FFunctions%2F1622544596) | [androidJvm]
override fun [hashCode](../-u-n-a-v-a-i-l-a-b-l-e/index.md#446421858%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../-u-n-a-v-a-i-l-a-b-l-e/index.md#268255793%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../-u-n-a-v-a-i-l-a-b-l-e/index.md#268255793%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](ordinal.md) | [androidJvm]
val [ordinal](ordinal.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/name.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/name.md new file mode 100644 index 00000000..f11edf8e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/name.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[LOSING](index.md)/[name](name.md) + +# name + +[androidJvm]\ +val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/ordinal.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/ordinal.md new file mode 100644 index 00000000..47e2bd7d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/ordinal.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[LOSING](index.md)/[ordinal](ordinal.md) + +# ordinal + +[androidJvm]\ +val [ordinal](ordinal.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/index.md new file mode 100644 index 00000000..157a64a5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[LOST](index.md) + +# LOST + +[androidJvm]\ +[LOST](index.md)() + +## Functions + +| Name | Summary | +|---|---| +| [clone](../-u-n-a-v-a-i-l-a-b-l-e/index.md#919483808%2FFunctions%2F1622544596) | [androidJvm]
protected fun [clone](../-u-n-a-v-a-i-l-a-b-l-e/index.md#919483808%2FFunctions%2F1622544596)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) | +| [compareTo](../-u-n-a-v-a-i-l-a-b-l-e/index.md#695287834%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [compareTo](../-u-n-a-v-a-i-l-a-b-l-e/index.md#695287834%2FFunctions%2F1622544596)(other: [NetworkConnectionStatus](../index.md)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-1009559292%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [equals](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-1009559292%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [finalize](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-653876033%2FFunctions%2F1622544596) | [androidJvm]
fun [finalize](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-653876033%2FFunctions%2F1622544596)() | +| [getDeclaringClass](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-131535050%2FFunctions%2F1622544596) | [androidJvm]
fun [getDeclaringClass](../-u-n-a-v-a-i-l-a-b-l-e/index.md#-131535050%2FFunctions%2F1622544596)(): [Class](https://developer.android.com/reference/kotlin/java/lang/Class.html)<[NetworkConnectionStatus](../index.md)> | +| [hashCode](../-u-n-a-v-a-i-l-a-b-l-e/index.md#446421858%2FFunctions%2F1622544596) | [androidJvm]
override fun [hashCode](../-u-n-a-v-a-i-l-a-b-l-e/index.md#446421858%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../-u-n-a-v-a-i-l-a-b-l-e/index.md#268255793%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../-u-n-a-v-a-i-l-a-b-l-e/index.md#268255793%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](ordinal.md) | [androidJvm]
val [ordinal](ordinal.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/name.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/name.md new file mode 100644 index 00000000..e2f32151 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/name.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[LOST](index.md)/[name](name.md) + +# name + +[androidJvm]\ +val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/ordinal.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/ordinal.md new file mode 100644 index 00000000..b840cff7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/ordinal.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[LOST](index.md)/[ordinal](ordinal.md) + +# ordinal + +[androidJvm]\ +val [ordinal](ordinal.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-network-connection-status.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-network-connection-status.md new file mode 100644 index 00000000..87526c34 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-network-connection-status.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../index.md)/[NetworkConnectionStatus](index.md)/[NetworkConnectionStatus](-network-connection-status.md) + +# NetworkConnectionStatus + +[androidJvm]\ +private fun [NetworkConnectionStatus](-network-connection-status.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/index.md new file mode 100644 index 00000000..51e4492b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[UNAVAILABLE](index.md) + +# UNAVAILABLE + +[androidJvm]\ +[UNAVAILABLE](index.md)() + +## Functions + +| Name | Summary | +|---|---| +| [clone](index.md#919483808%2FFunctions%2F1622544596) | [androidJvm]
protected fun [clone](index.md#919483808%2FFunctions%2F1622544596)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) | +| [compareTo](index.md#695287834%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [compareTo](index.md#695287834%2FFunctions%2F1622544596)(other: [NetworkConnectionStatus](../index.md)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](index.md#-1009559292%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [equals](index.md#-1009559292%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [finalize](index.md#-653876033%2FFunctions%2F1622544596) | [androidJvm]
fun [finalize](index.md#-653876033%2FFunctions%2F1622544596)() | +| [getDeclaringClass](index.md#-131535050%2FFunctions%2F1622544596) | [androidJvm]
fun [getDeclaringClass](index.md#-131535050%2FFunctions%2F1622544596)(): [Class](https://developer.android.com/reference/kotlin/java/lang/Class.html)<[NetworkConnectionStatus](../index.md)> | +| [hashCode](index.md#446421858%2FFunctions%2F1622544596) | [androidJvm]
override fun [hashCode](index.md#446421858%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](index.md#268255793%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](index.md#268255793%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](ordinal.md) | [androidJvm]
val [ordinal](ordinal.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/name.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/name.md new file mode 100644 index 00000000..6b15318f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/name.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[UNAVAILABLE](index.md)/[name](name.md) + +# name + +[androidJvm]\ +val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/ordinal.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/ordinal.md new file mode 100644 index 00000000..087315c7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/ordinal.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../../index.md)/[NetworkConnectionStatus](../index.md)/[UNAVAILABLE](index.md)/[ordinal](ordinal.md) + +# ordinal + +[androidJvm]\ +val [ordinal](ordinal.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/index.md new file mode 100644 index 00000000..1157d218 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/index.md @@ -0,0 +1,34 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](../index.md)/[NetworkConnectionStatus](index.md) + +# NetworkConnectionStatus + +[androidJvm]\ +internal enum [NetworkConnectionStatus](index.md) : [Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)<[NetworkConnectionStatus](index.md)> + +## Entries + +| | | +|---|---| +| [AVAILABLE](-a-v-a-i-l-a-b-l-e/index.md) | [androidJvm]
[AVAILABLE](-a-v-a-i-l-a-b-l-e/index.md)() | +| [LOSING](-l-o-s-i-n-g/index.md) | [androidJvm]
[LOSING](-l-o-s-i-n-g/index.md)() | +| [LOST](-l-o-s-t/index.md) | [androidJvm]
[LOST](-l-o-s-t/index.md)() | +| [UNAVAILABLE](-u-n-a-v-a-i-l-a-b-l-e/index.md) | [androidJvm]
[UNAVAILABLE](-u-n-a-v-a-i-l-a-b-l-e/index.md)() | + +## Functions + +| Name | Summary | +|---|---| +| [clone](-u-n-a-v-a-i-l-a-b-l-e/index.md#919483808%2FFunctions%2F1622544596) | [androidJvm]
protected fun [clone](-u-n-a-v-a-i-l-a-b-l-e/index.md#919483808%2FFunctions%2F1622544596)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) | +| [compareTo](-u-n-a-v-a-i-l-a-b-l-e/index.md#695287834%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [compareTo](-u-n-a-v-a-i-l-a-b-l-e/index.md#695287834%2FFunctions%2F1622544596)(other: [NetworkConnectionStatus](index.md)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](-u-n-a-v-a-i-l-a-b-l-e/index.md#-1009559292%2FFunctions%2F1622544596) | [androidJvm]
operator override fun [equals](-u-n-a-v-a-i-l-a-b-l-e/index.md#-1009559292%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [finalize](-u-n-a-v-a-i-l-a-b-l-e/index.md#-653876033%2FFunctions%2F1622544596) | [androidJvm]
fun [finalize](-u-n-a-v-a-i-l-a-b-l-e/index.md#-653876033%2FFunctions%2F1622544596)() | +| [getDeclaringClass](-u-n-a-v-a-i-l-a-b-l-e/index.md#-131535050%2FFunctions%2F1622544596) | [androidJvm]
fun [getDeclaringClass](-u-n-a-v-a-i-l-a-b-l-e/index.md#-131535050%2FFunctions%2F1622544596)(): [Class](https://developer.android.com/reference/kotlin/java/lang/Class.html)<[NetworkConnectionStatus](index.md)> | +| [hashCode](-u-n-a-v-a-i-l-a-b-l-e/index.md#446421858%2FFunctions%2F1622544596) | [androidJvm]
override fun [hashCode](-u-n-a-v-a-i-l-a-b-l-e/index.md#446421858%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](-u-n-a-v-a-i-l-a-b-l-e/index.md#268255793%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](-u-n-a-v-a-i-l-a-b-l-e/index.md#268255793%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [name](index.md#-80475451%2FProperties%2F1622544596) | [androidJvm]
val [name](index.md#-80475451%2FProperties%2F1622544596): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](index.md#-1378080167%2FProperties%2F1622544596) | [androidJvm]
val [ordinal](index.md#-1378080167%2FProperties%2F1622544596): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/index.md new file mode 100644 index 00000000..670401d7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/index.md @@ -0,0 +1,9 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus.entities](index.md) + +# Package com.isupatches.android.wisefy.networkconnectionstatus.entities + +## Types + +| Name | Summary | +|---|---| +| [NetworkConnectionStatus](-network-connection-status/index.md) | [androidJvm]
internal enum [NetworkConnectionStatus](-network-connection-status/index.md) : [Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)<[NetworkConnectionStatus](-network-connection-status/index.md)> | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..b281fad3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/attach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/attach-network-watcher.md new file mode 100644 index 00000000..a941c45c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/attach-network-watcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[NetworkConnectionStatusApi](index.md)/[attachNetworkWatcher](attach-network-watcher.md) + +# attachNetworkWatcher + +[androidJvm]\ +abstract fun [attachNetworkWatcher](attach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/detach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/detach-network-watcher.md new file mode 100644 index 00000000..21883501 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/detach-network-watcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[NetworkConnectionStatusApi](index.md)/[detachNetworkWatcher](detach-network-watcher.md) + +# detachNetworkWatcher + +[androidJvm]\ +abstract fun [detachNetworkWatcher](detach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md new file mode 100644 index 00000000..df652e17 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md @@ -0,0 +1,29 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[NetworkConnectionStatusApi](index.md) + +# NetworkConnectionStatusApi + +[androidJvm]\ +interface [NetworkConnectionStatusApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [attachNetworkWatcher](attach-network-watcher.md) | [androidJvm]
abstract fun [attachNetworkWatcher](attach-network-watcher.md)() | +| [detachNetworkWatcher](detach-network-watcher.md) | [androidJvm]
abstract fun [detachNetworkWatcher](detach-network-watcher.md)() | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) | [androidJvm]
abstract fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceRoaming](is-device-roaming.md) | [androidJvm]
abstract fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [NetworkConnectionStatusUtil](../-network-connection-status-util/index.md) | +| [LegacyNetworkConnectionStatusDelegate](../../com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-network.md new file mode 100644 index 00000000..a15d4704 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[NetworkConnectionStatusApi](index.md)/[isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) + +# isDeviceConnectedToMobileNetwork + +[androidJvm]\ +abstract fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md new file mode 100644 index 00000000..5b4dc336 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[NetworkConnectionStatusApi](index.md)/[isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) + +# isDeviceConnectedToMobileOrWifiNetwork + +[androidJvm]\ +abstract fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-s-s-i-d.md new file mode 100644 index 00000000..271d14e9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-s-s-i-d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[NetworkConnectionStatusApi](index.md)/[isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) + +# isDeviceConnectedToSSID + +[androidJvm]\ +abstract fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-wifi-network.md new file mode 100644 index 00000000..639811cc --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-wifi-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[NetworkConnectionStatusApi](index.md)/[isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) + +# isDeviceConnectedToWifiNetwork + +[androidJvm]\ +abstract fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-roaming.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-roaming.md new file mode 100644 index 00000000..8966186f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-roaming.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[NetworkConnectionStatusApi](index.md)/[isDeviceRoaming](is-device-roaming.md) + +# isDeviceRoaming + +[androidJvm]\ +abstract fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md new file mode 100644 index 00000000..120f1e8a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[NetworkConnectionStatusUtil](index.md) + +# NetworkConnectionStatusUtil + +[androidJvm]\ +internal interface [NetworkConnectionStatusUtil](index.md) : [NetworkConnectionStatusApi](../-network-connection-status-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [attachNetworkWatcher](../-network-connection-status-api/attach-network-watcher.md) | [androidJvm]
abstract fun [attachNetworkWatcher](../-network-connection-status-api/attach-network-watcher.md)() | +| [detachNetworkWatcher](../-network-connection-status-api/detach-network-watcher.md) | [androidJvm]
abstract fun [detachNetworkWatcher](../-network-connection-status-api/detach-network-watcher.md)() | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isDeviceConnectedToMobileNetwork](../-network-connection-status-api/is-device-connected-to-mobile-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToMobileNetwork](../-network-connection-status-api/is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToMobileOrWifiNetwork](../-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToMobileOrWifiNetwork](../-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToSSID](../-network-connection-status-api/is-device-connected-to-s-s-i-d.md) | [androidJvm]
abstract fun [isDeviceConnectedToSSID](../-network-connection-status-api/is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToWifiNetwork](../-network-connection-status-api/is-device-connected-to-wifi-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToWifiNetwork](../-network-connection-status-api/is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceRoaming](../-network-connection-status-api/is-device-roaming.md) | [androidJvm]
abstract fun [isDeviceRoaming](../-network-connection-status-api/is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyNetworkConnectionStatusUtil](../-wisefy-network-connection-status-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/-wisefy-network-connection-status-util.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/-wisefy-network-connection-status-util.md new file mode 100644 index 00000000..ab49b457 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/-wisefy-network-connection-status-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md)/[WisefyNetworkConnectionStatusUtil](-wisefy-network-connection-status-util.md) + +# WisefyNetworkConnectionStatusUtil + +[androidJvm]\ +fun [WisefyNetworkConnectionStatusUtil](-wisefy-network-connection-status-util.md)(connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, sdkUtil: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/attach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/attach-network-watcher.md new file mode 100644 index 00000000..1d854403 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/attach-network-watcher.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md)/[attachNetworkWatcher](attach-network-watcher.md) + +# attachNetworkWatcher + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [attachNetworkWatcher](attach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/delegate.md new file mode 100644 index 00000000..6e0009e2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [LegacyNetworkConnectionStatusDelegate](../../com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/detach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/detach-network-watcher.md new file mode 100644 index 00000000..158c8e6b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/detach-network-watcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md)/[detachNetworkWatcher](detach-network-watcher.md) + +# detachNetworkWatcher + +[androidJvm]\ +open override fun [detachNetworkWatcher](detach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/index.md new file mode 100644 index 00000000..6a8ba3af --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md) + +# WisefyNetworkConnectionStatusUtil + +[androidJvm]\ +internal class [WisefyNetworkConnectionStatusUtil](index.md)(**connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [NetworkConnectionStatusUtil](../-network-connection-status-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [attachNetworkWatcher](attach-network-watcher.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [attachNetworkWatcher](attach-network-watcher.md)() | +| [detachNetworkWatcher](detach-network-watcher.md) | [androidJvm]
open override fun [detachNetworkWatcher](detach-network-watcher.md)() | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) | [androidJvm]
open override fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) | [androidJvm]
open override fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceRoaming](is-device-roaming.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [LegacyNetworkConnectionStatusDelegate](../../com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-network.md new file mode 100644 index 00000000..f99ad121 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md)/[isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) + +# isDeviceConnectedToMobileNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-or-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-or-wifi-network.md new file mode 100644 index 00000000..fb25cc22 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-or-wifi-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md)/[isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) + +# isDeviceConnectedToMobileOrWifiNetwork + +[androidJvm]\ +open override fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-s-s-i-d.md new file mode 100644 index 00000000..850956ac --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-s-s-i-d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md)/[isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) + +# isDeviceConnectedToSSID + +[androidJvm]\ +open override fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-wifi-network.md new file mode 100644 index 00000000..2d7f4dd9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-wifi-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md)/[isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) + +# isDeviceConnectedToWifiNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-roaming.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-roaming.md new file mode 100644 index 00000000..fb895b05 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-roaming.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](../index.md)/[WisefyNetworkConnectionStatusUtil](index.md)/[isDeviceRoaming](is-device-roaming.md) + +# isDeviceRoaming + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/index.md new file mode 100644 index 00000000..e20aee51 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkconnectionstatus](index.md) + +# Package com.isupatches.android.wisefy.networkconnectionstatus + +## Types + +| Name | Summary | +|---|---| +| [NetworkConnectionStatusApi](-network-connection-status-api/index.md) | [androidJvm]
interface [NetworkConnectionStatusApi](-network-connection-status-api/index.md) | +| [NetworkConnectionStatusUtil](-network-connection-status-util/index.md) | [androidJvm]
internal interface [NetworkConnectionStatusUtil](-network-connection-status-util/index.md) : [NetworkConnectionStatusApi](-network-connection-status-api/index.md) | +| [WisefyNetworkConnectionStatusUtil](-wisefy-network-connection-status-util/index.md) | [androidJvm]
internal class [WisefyNetworkConnectionStatusUtil](-wisefy-network-connection-status-util/index.md)(**connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [NetworkConnectionStatusUtil](-network-connection-status-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..72bd5eac --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/-legacy-network-info-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/-legacy-network-info-api-impl.md new file mode 100644 index 00000000..cca24ce0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/-legacy-network-info-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApiImpl](index.md)/[LegacyNetworkInfoApiImpl](-legacy-network-info-api-impl.md) + +# LegacyNetworkInfoApiImpl + +[androidJvm]\ +fun [LegacyNetworkInfoApiImpl](-legacy-network-info-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/connectivity-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/connectivity-manager.md new file mode 100644 index 00000000..8a359dc1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/connectivity-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApiImpl](index.md)/[connectivityManager](connectivity-manager.md) + +# connectivityManager + +[androidJvm]\ +private val [connectivityManager](connectivity-manager.md): [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network-info.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network-info.md new file mode 100644 index 00000000..f1863c2f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network-info.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApiImpl](index.md)/[getCurrentNetworkInfo](get-current-network-info.md) + +# getCurrentNetworkInfo + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network.md new file mode 100644 index 00000000..872ac3fe --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApiImpl](index.md)/[getCurrentNetwork](get-current-network.md) + +# getCurrentNetwork + +[androidJvm]\ +open override fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-i-p.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-i-p.md new file mode 100644 index 00000000..2bc6694e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-i-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApiImpl](index.md)/[getIP](get-i-p.md) + +# getIP + +[androidJvm]\ +open override fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/index.md new file mode 100644 index 00000000..95ca1c90 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApiImpl](index.md) + +# LegacyNetworkInfoApiImpl + +[androidJvm]\ +internal class [LegacyNetworkInfoApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [LegacyNetworkInfoApi](../-legacy-network-info-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getCurrentNetwork](get-current-network.md) | [androidJvm]
open override fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? | +| [getCurrentNetworkInfo](get-current-network-info.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? | +| [getIP](get-i-p.md) | [androidJvm]
open override fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [connectivityManager](connectivity-manager.md) | [androidJvm]
private val [connectivityManager](connectivity-manager.md): [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html) | +| [logger](logger.md) | [androidJvm]
private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? | +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/logger.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/logger.md new file mode 100644 index 00000000..2db57c7d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/logger.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApiImpl](index.md)/[logger](logger.md) + +# logger + +[androidJvm]\ +private val [logger](logger.md): [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/wifi-manager.md new file mode 100644 index 00000000..0689efd5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network-info.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network-info.md new file mode 100644 index 00000000..41d7a4da --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network-info.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApi](index.md)/[getCurrentNetworkInfo](get-current-network-info.md) + +# getCurrentNetworkInfo + +[androidJvm]\ +abstract fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network.md new file mode 100644 index 00000000..dd6703e5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApi](index.md)/[getCurrentNetwork](get-current-network.md) + +# getCurrentNetwork + +[androidJvm]\ +abstract fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-i-p.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-i-p.md new file mode 100644 index 00000000..0bdf4e81 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-i-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApi](index.md)/[getIP](get-i-p.md) + +# getIP + +[androidJvm]\ +abstract fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/index.md new file mode 100644 index 00000000..f3454790 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoApi](index.md) + +# LegacyNetworkInfoApi + +[androidJvm]\ +internal interface [LegacyNetworkInfoApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getCurrentNetwork](get-current-network.md) | [androidJvm]
abstract fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? | +| [getCurrentNetworkInfo](get-current-network-info.md) | [androidJvm]
abstract fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? | +| [getIP](get-i-p.md) | [androidJvm]
abstract fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacyNetworkInfoApiImpl](../-legacy-network-info-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/-legacy-network-info-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/-legacy-network-info-delegate.md new file mode 100644 index 00000000..b48df5dd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/-legacy-network-info-delegate.md @@ -0,0 +1,10 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoDelegate](index.md)/[LegacyNetworkInfoDelegate](-legacy-network-info-delegate.md) + +# LegacyNetworkInfoDelegate + +[androidJvm]\ +fun [LegacyNetworkInfoDelegate](-legacy-network-info-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, impl: [LegacyNetworkInfoApi](../-legacy-network-info-api/index.md) = LegacyNetworkInfoApiImpl( + wifiManager, + connectivityManager, + logger + )) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network-info.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network-info.md new file mode 100644 index 00000000..141ffba8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network-info.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoDelegate](index.md)/[getCurrentNetworkInfo](get-current-network-info.md) + +# getCurrentNetworkInfo + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network.md new file mode 100644 index 00000000..67aaf298 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoDelegate](index.md)/[getCurrentNetwork](get-current-network.md) + +# getCurrentNetwork + +[androidJvm]\ +open override fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-i-p.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-i-p.md new file mode 100644 index 00000000..b53cf8de --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-i-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoDelegate](index.md)/[getIP](get-i-p.md) + +# getIP + +[androidJvm]\ +open override fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/impl.md new file mode 100644 index 00000000..d5a1ce44 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacyNetworkInfoApi](../-legacy-network-info-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/index.md new file mode 100644 index 00000000..2fb596bb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](../index.md)/[LegacyNetworkInfoDelegate](index.md) + +# LegacyNetworkInfoDelegate + +[androidJvm]\ +internal class [LegacyNetworkInfoDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [LegacyNetworkInfoApi](../-legacy-network-info-api/index.md)) : [NetworkInfoApi](../../com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getCurrentNetwork](get-current-network.md) | [androidJvm]
open override fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? | +| [getCurrentNetworkInfo](get-current-network-info.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? | +| [getIP](get-i-p.md) | [androidJvm]
open override fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacyNetworkInfoApi](../-legacy-network-info-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/index.md new file mode 100644 index 00000000..3fe2cb20 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkinfo.delegates](index.md) + +# Package com.isupatches.android.wisefy.networkinfo.delegates + +## Types + +| Name | Summary | +|---|---| +| [LegacyNetworkInfoApi](-legacy-network-info-api/index.md) | [androidJvm]
internal interface [LegacyNetworkInfoApi](-legacy-network-info-api/index.md) | +| [LegacyNetworkInfoApiImpl](-legacy-network-info-api-impl/index.md) | [androidJvm]
internal class [LegacyNetworkInfoApiImpl](-legacy-network-info-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [LegacyNetworkInfoApi](-legacy-network-info-api/index.md) | +| [LegacyNetworkInfoDelegate](-legacy-network-info-delegate/index.md) | [androidJvm]
internal class [LegacyNetworkInfoDelegate](-legacy-network-info-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **impl**: [LegacyNetworkInfoApi](-legacy-network-info-api/index.md)) : [NetworkInfoApi](../com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/-current-network-data.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/-current-network-data.md new file mode 100644 index 00000000..d4cba1cf --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/-current-network-data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkData](index.md)/[CurrentNetworkData](-current-network-data.md) + +# CurrentNetworkData + +[androidJvm]\ +fun [CurrentNetworkData](-current-network-data.md)(data: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/component1.md new file mode 100644 index 00000000..ec4f1485 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkData](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/copy.md new file mode 100644 index 00000000..766c7cff --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkData](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(data: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [CurrentNetworkData](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/data.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/data.md new file mode 100644 index 00000000..c103af36 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkData](index.md)/[data](data.md) + +# data + +[androidJvm]\ +val [data](data.md): [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md new file mode 100644 index 00000000..6764a6e4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkData](index.md) + +# CurrentNetworkData + +[androidJvm]\ +data class [CurrentNetworkData](index.md)(**data**: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(data: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [CurrentNetworkData](index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [data](data.md) | [androidJvm]
val [data](data.md): [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/-current-network-info-data.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/-current-network-info-data.md new file mode 100644 index 00000000..959a55a4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/-current-network-info-data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkInfoData](index.md)/[CurrentNetworkInfoData](-current-network-info-data.md) + +# CurrentNetworkInfoData + +[androidJvm]\ +fun [CurrentNetworkInfoData](-current-network-info-data.md)(capabilities: [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)?, linkProperties: [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/capabilities.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/capabilities.md new file mode 100644 index 00000000..b14cc0de --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/capabilities.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkInfoData](index.md)/[capabilities](capabilities.md) + +# capabilities + +[androidJvm]\ +val [capabilities](capabilities.md): [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component1.md new file mode 100644 index 00000000..19ffd9f5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkInfoData](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component2.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component2.md new file mode 100644 index 00000000..1c07a707 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkInfoData](index.md)/[component2](component2.md) + +# component2 + +[androidJvm]\ +operator fun [component2](component2.md)(): [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/copy.md new file mode 100644 index 00000000..fd528663 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkInfoData](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(capabilities: [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)?, linkProperties: [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)?): [CurrentNetworkInfoData](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md new file mode 100644 index 00000000..7b1ed6d8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkInfoData](index.md) + +# CurrentNetworkInfoData + +[androidJvm]\ +data class [CurrentNetworkInfoData](index.md)(**capabilities**: [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)?, **linkProperties**: [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)?) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)? | +| [component2](component2.md) | [androidJvm]
operator fun [component2](component2.md)(): [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)? | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(capabilities: [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)?, linkProperties: [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)?): [CurrentNetworkInfoData](index.md) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [capabilities](capabilities.md) | [androidJvm]
val [capabilities](capabilities.md): [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)? | +| [linkProperties](link-properties.md) | [androidJvm]
val [linkProperties](link-properties.md): [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)? | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/link-properties.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/link-properties.md new file mode 100644 index 00000000..f09f8097 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/link-properties.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](../index.md)/[CurrentNetworkInfoData](index.md)/[linkProperties](link-properties.md) + +# linkProperties + +[androidJvm]\ +val [linkProperties](link-properties.md): [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/index.md new file mode 100644 index 00000000..a9f8838a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo.entities/index.md @@ -0,0 +1,10 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkinfo.entities](index.md) + +# Package com.isupatches.android.wisefy.networkinfo.entities + +## Types + +| Name | Summary | +|---|---| +| [CurrentNetworkData](-current-network-data/index.md) | [androidJvm]
data class [CurrentNetworkData](-current-network-data/index.md)(**data**: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)) | +| [CurrentNetworkInfoData](-current-network-info-data/index.md) | [androidJvm]
data class [CurrentNetworkInfoData](-current-network-info-data/index.md)(**capabilities**: [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities.html)?, **linkProperties**: [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties.html)?) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..311a780f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkinfo](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network-info.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network-info.md new file mode 100644 index 00000000..d683f3e4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network-info.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[NetworkInfoApiAsync](index.md)/[getCurrentNetworkInfo](get-current-network-info.md) + +# getCurrentNetworkInfo + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +abstract fun [getCurrentNetworkInfo](get-current-network-info.md)(callbacks: [GetCurrentNetworkInfoCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md)?, network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)? = null) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network.md new file mode 100644 index 00000000..287835fc --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[NetworkInfoApiAsync](index.md)/[getCurrentNetwork](get-current-network.md) + +# getCurrentNetwork + +[androidJvm]\ +abstract fun [getCurrentNetwork](get-current-network.md)(callbacks: [GetCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-i-p.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-i-p.md new file mode 100644 index 00000000..8a3b5ff0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-i-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[NetworkInfoApiAsync](index.md)/[getIP](get-i-p.md) + +# getIP + +[androidJvm]\ +abstract fun [getIP](get-i-p.md)(callbacks: [GetIPCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/index.md new file mode 100644 index 00000000..891a16be --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[NetworkInfoApiAsync](index.md) + +# NetworkInfoApiAsync + +[androidJvm]\ +interface [NetworkInfoApiAsync](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getCurrentNetwork](get-current-network.md) | [androidJvm]
abstract fun [getCurrentNetwork](get-current-network.md)(callbacks: [GetCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md)?) | +| [getCurrentNetworkInfo](get-current-network-info.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [getCurrentNetworkInfo](get-current-network-info.md)(callbacks: [GetCurrentNetworkInfoCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md)?, network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)? = null) | +| [getIP](get-i-p.md) | [androidJvm]
abstract fun [getIP](get-i-p.md)(callbacks: [GetIPCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [NetworkInfoUtil](../-network-info-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network-info.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network-info.md new file mode 100644 index 00000000..ae9ab364 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network-info.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[NetworkInfoApi](index.md)/[getCurrentNetworkInfo](get-current-network-info.md) + +# getCurrentNetworkInfo + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +abstract fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)? = null): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network.md new file mode 100644 index 00000000..3118e902 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[NetworkInfoApi](index.md)/[getCurrentNetwork](get-current-network.md) + +# getCurrentNetwork + +[androidJvm]\ +abstract fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-i-p.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-i-p.md new file mode 100644 index 00000000..c5b5882e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-i-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[NetworkInfoApi](index.md)/[getIP](get-i-p.md) + +# getIP + +[androidJvm]\ +abstract fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md new file mode 100644 index 00000000..7d371d27 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[NetworkInfoApi](index.md) + +# NetworkInfoApi + +[androidJvm]\ +interface [NetworkInfoApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getCurrentNetwork](get-current-network.md) | [androidJvm]
abstract fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? | +| [getCurrentNetworkInfo](get-current-network-info.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)? = null): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? | +| [getIP](get-i-p.md) | [androidJvm]
abstract fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [NetworkInfoUtil](../-network-info-util/index.md) | +| [LegacyNetworkInfoDelegate](../../com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md new file mode 100644 index 00000000..647b76f1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[NetworkInfoUtil](index.md) + +# NetworkInfoUtil + +[androidJvm]\ +internal interface [NetworkInfoUtil](index.md) : [NetworkInfoApi](../-network-info-api/index.md), [NetworkInfoApiAsync](../-network-info-api-async/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getCurrentNetwork](../-network-info-api/get-current-network.md) | [androidJvm]
abstract fun [getCurrentNetwork](../-network-info-api/get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)?
abstract fun [getCurrentNetwork](../-network-info-api-async/get-current-network.md)(callbacks: [GetCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md)?) | +| [getCurrentNetworkInfo](../-network-info-api/get-current-network-info.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [getCurrentNetworkInfo](../-network-info-api/get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)? = null): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [getCurrentNetworkInfo](../-network-info-api-async/get-current-network-info.md)(callbacks: [GetCurrentNetworkInfoCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md)?, network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)? = null) | +| [getIP](../-network-info-api/get-i-p.md) | [androidJvm]
abstract fun [getIP](../-network-info-api/get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
abstract fun [getIP](../-network-info-api-async/get-i-p.md)(callbacks: [GetIPCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyNetworkInfoUtil](../-wisefy-network-info-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/-wisefy-network-info-util.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/-wisefy-network-info-util.md new file mode 100644 index 00000000..817ed3d6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/-wisefy-network-info-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[WisefyNetworkInfoUtil](index.md)/[WisefyNetworkInfoUtil](-wisefy-network-info-util.md) + +# WisefyNetworkInfoUtil + +[androidJvm]\ +fun [WisefyNetworkInfoUtil](-wisefy-network-info-util.md)(coroutineDispatcherProvider: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/coroutine-dispatcher-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/coroutine-dispatcher-provider.md new file mode 100644 index 00000000..b1663ff1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/coroutine-dispatcher-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[WisefyNetworkInfoUtil](index.md)/[coroutineDispatcherProvider](coroutine-dispatcher-provider.md) + +# coroutineDispatcherProvider + +[androidJvm]\ +private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/delegate.md new file mode 100644 index 00000000..17c41744 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[WisefyNetworkInfoUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [LegacyNetworkInfoDelegate](../../com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network-info.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network-info.md new file mode 100644 index 00000000..62ed203b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network-info.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[WisefyNetworkInfoUtil](index.md)/[getCurrentNetworkInfo](get-current-network-info.md) + +# getCurrentNetworkInfo + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [getCurrentNetworkInfo](get-current-network-info.md)(callbacks: [GetCurrentNetworkInfoCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md)?, network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network.md new file mode 100644 index 00000000..42243838 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[WisefyNetworkInfoUtil](index.md)/[getCurrentNetwork](get-current-network.md) + +# getCurrentNetwork + +[androidJvm]\ +open override fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? + +open override fun [getCurrentNetwork](get-current-network.md)(callbacks: [GetCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-i-p.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-i-p.md new file mode 100644 index 00000000..513e3835 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-i-p.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[WisefyNetworkInfoUtil](index.md)/[getIP](get-i-p.md) + +# getIP + +[androidJvm]\ +open override fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? + +open override fun [getIP](get-i-p.md)(callbacks: [GetIPCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/index.md new file mode 100644 index 00000000..dc4dfd91 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[WisefyNetworkInfoUtil](index.md) + +# WisefyNetworkInfoUtil + +[androidJvm]\ +internal class [WisefyNetworkInfoUtil](index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [NetworkInfoUtil](../-network-info-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getCurrentNetwork](get-current-network.md) | [androidJvm]
open override fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)?
open override fun [getCurrentNetwork](get-current-network.md)(callbacks: [GetCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md)?) | +| [getCurrentNetworkInfo](get-current-network-info.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [getCurrentNetworkInfo](get-current-network-info.md)(callbacks: [GetCurrentNetworkInfoCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md)?, network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?) | +| [getIP](get-i-p.md) | [androidJvm]
open override fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
open override fun [getIP](get-i-p.md)(callbacks: [GetIPCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [coroutineDispatcherProvider](coroutine-dispatcher-provider.md) | [androidJvm]
private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) | +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [LegacyNetworkInfoDelegate](../../com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/index.md) | +| [networkInfoScope](network-info-scope.md) | [androidJvm]
private val [networkInfoScope](network-info-scope.md): CoroutineScope | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/network-info-scope.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/network-info-scope.md new file mode 100644 index 00000000..5f026f72 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/network-info-scope.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.networkinfo](../index.md)/[WisefyNetworkInfoUtil](index.md)/[networkInfoScope](network-info-scope.md) + +# networkInfoScope + +[androidJvm]\ +private val [networkInfoScope](network-info-scope.md): CoroutineScope diff --git a/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/index.md b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/index.md new file mode 100644 index 00000000..8db9d0f6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.networkinfo/index.md @@ -0,0 +1,18 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.networkinfo](index.md) + +# Package com.isupatches.android.wisefy.networkinfo + +## Types + +| Name | Summary | +|---|---| +| [NetworkInfoApi](-network-info-api/index.md) | [androidJvm]
interface [NetworkInfoApi](-network-info-api/index.md) | +| [NetworkInfoApiAsync](-network-info-api-async/index.md) | [androidJvm]
interface [NetworkInfoApiAsync](-network-info-api-async/index.md) | +| [NetworkInfoUtil](-network-info-util/index.md) | [androidJvm]
internal interface [NetworkInfoUtil](-network-info-util/index.md) : [NetworkInfoApi](-network-info-api/index.md), [NetworkInfoApiAsync](-network-info-api-async/index.md) | +| [WisefyNetworkInfoUtil](-wisefy-network-info-util/index.md) | [androidJvm]
internal class [WisefyNetworkInfoUtil](-wisefy-network-info-util/index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **connectivityManager**: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [NetworkInfoUtil](-network-info-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/-android29-remove-network-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/-android29-remove-network-api-impl.md new file mode 100644 index 00000000..4814dfc5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/-android29-remove-network-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkApiImpl](index.md)/[Android29RemoveNetworkApiImpl](-android29-remove-network-api-impl.md) + +# Android29RemoveNetworkApiImpl + +[androidJvm]\ +fun [Android29RemoveNetworkApiImpl](-android29-remove-network-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/index.md new file mode 100644 index 00000000..bfe044ed --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/index.md @@ -0,0 +1,21 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkApiImpl](index.md) + +# Android29RemoveNetworkApiImpl + +[androidJvm]\ +internal class [Android29RemoveNetworkApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android29RemoveNetworkApi](../-android29-remove-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/remove-network.md new file mode 100644 index 00000000..09458e7a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/remove-network.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkApiImpl](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/wifi-manager.md new file mode 100644 index 00000000..96fa1db8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/index.md new file mode 100644 index 00000000..d11e3ca3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/index.md @@ -0,0 +1,21 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkApi](index.md) + +# Android29RemoveNetworkApi + +[androidJvm]\ +internal interface [Android29RemoveNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [Android29RemoveNetworkApiImpl](../-android29-remove-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/remove-network.md new file mode 100644 index 00000000..2b50b767 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/remove-network.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkApi](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/-android29-remove-network-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/-android29-remove-network-delegate.md new file mode 100644 index 00000000..51b255ae --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/-android29-remove-network-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkDelegate](index.md)/[Android29RemoveNetworkDelegate](-android29-remove-network-delegate.md) + +# Android29RemoveNetworkDelegate + +[androidJvm]\ +fun [Android29RemoveNetworkDelegate](-android29-remove-network-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), impl: [Android29RemoveNetworkApi](../-android29-remove-network-api/index.md) = Android29RemoveNetworkApiImpl(wifiManager)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/impl.md new file mode 100644 index 00000000..bde271a2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [Android29RemoveNetworkApi](../-android29-remove-network-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/index.md new file mode 100644 index 00000000..0b1cfacf --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkDelegate](index.md) + +# Android29RemoveNetworkDelegate + +[androidJvm]\ +internal class [Android29RemoveNetworkDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android29RemoveNetworkApi](../-android29-remove-network-api/index.md)) : [RemoveNetworkApi](../../com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [Android29RemoveNetworkApi](../-android29-remove-network-api/index.md) | +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/remove-network.md new file mode 100644 index 00000000..288603b8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/remove-network.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkDelegate](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/wifi-manager.md new file mode 100644 index 00000000..e0dd9559 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[Android29RemoveNetworkDelegate](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/-legacy-remove-network-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/-legacy-remove-network-api-impl.md new file mode 100644 index 00000000..bc2995cd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/-legacy-remove-network-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkApiImpl](index.md)/[LegacyRemoveNetworkApiImpl](-legacy-remove-network-api-impl.md) + +# LegacyRemoveNetworkApiImpl + +[androidJvm]\ +fun [LegacyRemoveNetworkApiImpl](-legacy-remove-network-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), savedNetworkUtil: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/index.md new file mode 100644 index 00000000..2cfe9f77 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkApiImpl](index.md) + +# LegacyRemoveNetworkApiImpl + +[androidJvm]\ +internal class [LegacyRemoveNetworkApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **savedNetworkUtil**: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md)) : [LegacyRemoveNetworkApi](../-legacy-remove-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [savedNetworkUtil](saved-network-util.md) | [androidJvm]
private val [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) | +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/remove-network.md new file mode 100644 index 00000000..40369e6e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/remove-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkApiImpl](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/saved-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/saved-network-util.md new file mode 100644 index 00000000..ea862e63 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/saved-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkApiImpl](index.md)/[savedNetworkUtil](saved-network-util.md) + +# savedNetworkUtil + +[androidJvm]\ +private val [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/wifi-manager.md new file mode 100644 index 00000000..61e682aa --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/index.md new file mode 100644 index 00000000..3f621afd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/index.md @@ -0,0 +1,21 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkApi](index.md) + +# LegacyRemoveNetworkApi + +[androidJvm]\ +internal interface [LegacyRemoveNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacyRemoveNetworkApiImpl](../-legacy-remove-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/remove-network.md new file mode 100644 index 00000000..935e8a0f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/remove-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkApi](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/-legacy-remove-network-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/-legacy-remove-network-delegate.md new file mode 100644 index 00000000..ddd20bef --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/-legacy-remove-network-delegate.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkDelegate](index.md)/[LegacyRemoveNetworkDelegate](-legacy-remove-network-delegate.md) + +# LegacyRemoveNetworkDelegate + +[androidJvm]\ +fun [LegacyRemoveNetworkDelegate](-legacy-remove-network-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), savedNetworkUtil: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), impl: [LegacyRemoveNetworkApi](../-legacy-remove-network-api/index.md) = LegacyRemoveNetworkApiImpl( + wifiManager, + savedNetworkUtil + )) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/impl.md new file mode 100644 index 00000000..a11e4cd2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacyRemoveNetworkApi](../-legacy-remove-network-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/index.md new file mode 100644 index 00000000..41c25f03 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkDelegate](index.md) + +# LegacyRemoveNetworkDelegate + +[androidJvm]\ +internal class [LegacyRemoveNetworkDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **savedNetworkUtil**: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **impl**: [LegacyRemoveNetworkApi](../-legacy-remove-network-api/index.md)) : [RemoveNetworkApi](../../com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacyRemoveNetworkApi](../-legacy-remove-network-api/index.md) | +| [savedNetworkUtil](saved-network-util.md) | [androidJvm]
private val [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) | +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/remove-network.md new file mode 100644 index 00000000..340714d2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/remove-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkDelegate](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/saved-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/saved-network-util.md new file mode 100644 index 00000000..7ecefe32 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/saved-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkDelegate](index.md)/[savedNetworkUtil](saved-network-util.md) + +# savedNetworkUtil + +[androidJvm]\ +private val [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/wifi-manager.md new file mode 100644 index 00000000..8b606acd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](../index.md)/[LegacyRemoveNetworkDelegate](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/index.md new file mode 100644 index 00000000..10448618 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/index.md @@ -0,0 +1,14 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.removenetwork.delegates](index.md) + +# Package com.isupatches.android.wisefy.removenetwork.delegates + +## Types + +| Name | Summary | +|---|---| +| [Android29RemoveNetworkApi](-android29-remove-network-api/index.md) | [androidJvm]
internal interface [Android29RemoveNetworkApi](-android29-remove-network-api/index.md) | +| [Android29RemoveNetworkApiImpl](-android29-remove-network-api-impl/index.md) | [androidJvm]
internal class [Android29RemoveNetworkApiImpl](-android29-remove-network-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android29RemoveNetworkApi](-android29-remove-network-api/index.md) | +| [Android29RemoveNetworkDelegate](-android29-remove-network-delegate/index.md) | [androidJvm]
internal class [Android29RemoveNetworkDelegate](-android29-remove-network-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android29RemoveNetworkApi](-android29-remove-network-api/index.md)) : [RemoveNetworkApi](../com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md) | +| [LegacyRemoveNetworkApi](-legacy-remove-network-api/index.md) | [androidJvm]
internal interface [LegacyRemoveNetworkApi](-legacy-remove-network-api/index.md) | +| [LegacyRemoveNetworkApiImpl](-legacy-remove-network-api-impl/index.md) | [androidJvm]
internal class [LegacyRemoveNetworkApiImpl](-legacy-remove-network-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **savedNetworkUtil**: [SavedNetworkUtil](../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md)) : [LegacyRemoveNetworkApi](-legacy-remove-network-api/index.md) | +| [LegacyRemoveNetworkDelegate](-legacy-remove-network-delegate/index.md) | [androidJvm]
internal class [LegacyRemoveNetworkDelegate](-legacy-remove-network-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **savedNetworkUtil**: [SavedNetworkUtil](../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **impl**: [LegacyRemoveNetworkApi](-legacy-remove-network-api/index.md)) : [RemoveNetworkApi](../com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-network-not-found/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-network-not-found/index.md new file mode 100644 index 00000000..491941b0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-network-not-found/index.md @@ -0,0 +1,14 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[NetworkNotFound](index.md) + +# NetworkNotFound + +[androidJvm]\ +object [NetworkNotFound](index.md) : [RemoveNetworkResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-remove-network-result.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-remove-network-result.md new file mode 100644 index 00000000..d0e2a107 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-remove-network-result.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../index.md)/[RemoveNetworkResult](index.md)/[RemoveNetworkResult](-remove-network-result.md) + +# RemoveNetworkResult + +[androidJvm]\ +protected fun [RemoveNetworkResult](-remove-network-result.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/-result-code.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/-result-code.md new file mode 100644 index 00000000..e8ea7632 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/-result-code.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[ResultCode](index.md)/[ResultCode](-result-code.md) + +# ResultCode + +[androidJvm]\ +fun [ResultCode](-result-code.md)(data: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/component1.md new file mode 100644 index 00000000..3b2b10b1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[ResultCode](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/copy.md new file mode 100644 index 00000000..9b931c13 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[ResultCode](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(data: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [RemoveNetworkResult.ResultCode](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/data.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/data.md new file mode 100644 index 00000000..2c115320 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[ResultCode](index.md)/[data](data.md) + +# data + +[androidJvm]\ +val [data](data.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/index.md new file mode 100644 index 00000000..6202fa9e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[ResultCode](index.md) + +# ResultCode + +[androidJvm]\ +data class [ResultCode](index.md)(**data**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [RemoveNetworkResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(data: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [RemoveNetworkResult.ResultCode](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [data](data.md) | [androidJvm]
val [data](data.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/-succeeded.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/-succeeded.md new file mode 100644 index 00000000..cc4410ce --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/-succeeded.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[Succeeded](index.md)/[Succeeded](-succeeded.md) + +# Succeeded + +[androidJvm]\ +fun [Succeeded](-succeeded.md)(data: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/component1.md new file mode 100644 index 00000000..a0c05227 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[Succeeded](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/copy.md new file mode 100644 index 00000000..3873b0e3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[Succeeded](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(data: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [RemoveNetworkResult.Succeeded](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/data.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/data.md new file mode 100644 index 00000000..df5386e2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[Succeeded](index.md)/[data](data.md) + +# data + +[androidJvm]\ +val [data](data.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/index.md new file mode 100644 index 00000000..948df608 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../../index.md)/[RemoveNetworkResult](../index.md)/[Succeeded](index.md) + +# Succeeded + +[androidJvm]\ +data class [Succeeded](index.md)(**data**: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) : [RemoveNetworkResult](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(data: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [RemoveNetworkResult.Succeeded](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [data](data.md) | [androidJvm]
val [data](data.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md new file mode 100644 index 00000000..bc742b5e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md @@ -0,0 +1,30 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](../index.md)/[RemoveNetworkResult](index.md) + +# RemoveNetworkResult + +[androidJvm]\ +sealed class [RemoveNetworkResult](index.md) + +## Types + +| Name | Summary | +|---|---| +| [NetworkNotFound](-network-not-found/index.md) | [androidJvm]
object [NetworkNotFound](-network-not-found/index.md) : [RemoveNetworkResult](index.md) | +| [ResultCode](-result-code/index.md) | [androidJvm]
data class [ResultCode](-result-code/index.md)(**data**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [RemoveNetworkResult](index.md) | +| [Succeeded](-succeeded/index.md) | [androidJvm]
data class [Succeeded](-succeeded/index.md)(**data**: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) : [RemoveNetworkResult](index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [RemoveNetworkResult](-result-code/index.md) | +| [RemoveNetworkResult](-succeeded/index.md) | +| [RemoveNetworkResult](-network-not-found/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/index.md new file mode 100644 index 00000000..efa364f3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork.entities/index.md @@ -0,0 +1,9 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.removenetwork.entities](index.md) + +# Package com.isupatches.android.wisefy.removenetwork.entities + +## Types + +| Name | Summary | +|---|---| +| [RemoveNetworkResult](-remove-network-result/index.md) | [androidJvm]
sealed class [RemoveNetworkResult](-remove-network-result/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..46491bf8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.removenetwork](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/index.md new file mode 100644 index 00000000..a1b615b9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[RemoveNetworkApiAsync](index.md) + +# RemoveNetworkApiAsync + +[androidJvm]\ +interface [RemoveNetworkApiAsync](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [RemoveNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [RemoveNetworkUtil](../-remove-network-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/remove-network.md new file mode 100644 index 00000000..268057b2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/remove-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[RemoveNetworkApiAsync](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [RemoveNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md new file mode 100644 index 00000000..127d614b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[RemoveNetworkApi](index.md) + +# RemoveNetworkApi + +[androidJvm]\ +interface [RemoveNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [RemoveNetworkUtil](../-remove-network-util/index.md) | +| [Android29RemoveNetworkDelegate](../../com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/index.md) | +| [LegacyRemoveNetworkDelegate](../../com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/remove-network.md new file mode 100644 index 00000000..1ea639da --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/remove-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[RemoveNetworkApi](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +abstract fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md new file mode 100644 index 00000000..e1f298c5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md @@ -0,0 +1,21 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[RemoveNetworkUtil](index.md) + +# RemoveNetworkUtil + +[androidJvm]\ +internal interface [RemoveNetworkUtil](index.md) : [RemoveNetworkApi](../-remove-network-api/index.md), [RemoveNetworkApiAsync](../-remove-network-api-async/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](../-remove-network-api/remove-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [removeNetwork](../-remove-network-api/remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [removeNetwork](../-remove-network-api-async/remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [RemoveNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyRemoveNetworkUtil](../-wisefy-remove-network-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/-wisefy-remove-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/-wisefy-remove-network-util.md new file mode 100644 index 00000000..86239b00 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/-wisefy-remove-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[WisefyRemoveNetworkUtil](index.md)/[WisefyRemoveNetworkUtil](-wisefy-remove-network-util.md) + +# WisefyRemoveNetworkUtil + +[androidJvm]\ +fun [WisefyRemoveNetworkUtil](-wisefy-remove-network-util.md)(coroutineDispatcherProvider: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, savedNetworkUtil: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), sdkUtil: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/coroutine-dispatcher-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/coroutine-dispatcher-provider.md new file mode 100644 index 00000000..b2babe64 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/coroutine-dispatcher-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[WisefyRemoveNetworkUtil](index.md)/[coroutineDispatcherProvider](coroutine-dispatcher-provider.md) + +# coroutineDispatcherProvider + +[androidJvm]\ +private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/delegate.md new file mode 100644 index 00000000..c138b7a5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[WisefyRemoveNetworkUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [RemoveNetworkApi](../-remove-network-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/index.md new file mode 100644 index 00000000..0e1b3a7c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[WisefyRemoveNetworkUtil](index.md) + +# WisefyRemoveNetworkUtil + +[androidJvm]\ +internal class [WisefyRemoveNetworkUtil](index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **savedNetworkUtil**: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **sdkUtil**: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [RemoveNetworkUtil](../-remove-network-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [RemoveNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [coroutineDispatcherProvider](coroutine-dispatcher-provider.md) | [androidJvm]
private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) | +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [RemoveNetworkApi](../-remove-network-api/index.md) | +| [removeNetworkScope](remove-network-scope.md) | [androidJvm]
private val [removeNetworkScope](remove-network-scope.md): CoroutineScope | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network-scope.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network-scope.md new file mode 100644 index 00000000..e98121bd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network-scope.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[WisefyRemoveNetworkUtil](index.md)/[removeNetworkScope](remove-network-scope.md) + +# removeNetworkScope + +[androidJvm]\ +private val [removeNetworkScope](remove-network-scope.md): CoroutineScope diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network.md new file mode 100644 index 00000000..05452690 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.removenetwork](../index.md)/[WisefyRemoveNetworkUtil](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [RemoveNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/index.md b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/index.md new file mode 100644 index 00000000..db715fbd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.removenetwork/index.md @@ -0,0 +1,18 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.removenetwork](index.md) + +# Package com.isupatches.android.wisefy.removenetwork + +## Types + +| Name | Summary | +|---|---| +| [RemoveNetworkApi](-remove-network-api/index.md) | [androidJvm]
interface [RemoveNetworkApi](-remove-network-api/index.md) | +| [RemoveNetworkApiAsync](-remove-network-api-async/index.md) | [androidJvm]
interface [RemoveNetworkApiAsync](-remove-network-api-async/index.md) | +| [RemoveNetworkUtil](-remove-network-util/index.md) | [androidJvm]
internal interface [RemoveNetworkUtil](-remove-network-util/index.md) : [RemoveNetworkApi](-remove-network-api/index.md), [RemoveNetworkApiAsync](-remove-network-api-async/index.md) | +| [WisefyRemoveNetworkUtil](-wisefy-remove-network-util/index.md) | [androidJvm]
internal class [WisefyRemoveNetworkUtil](-wisefy-remove-network-util/index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **savedNetworkUtil**: [SavedNetworkUtil](../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **sdkUtil**: [SdkUtil](../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [RemoveNetworkUtil](-remove-network-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md new file mode 100644 index 00000000..faaf4547 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](index.md)/[ANDROID_Q_SAVED_NETWORK_WARNING](-a-n-d-r-o-i-d_-q_-s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md) + +# ANDROID_Q_SAVED_NETWORK_WARNING + +[androidJvm]\ +private const val [ANDROID_Q_SAVED_NETWORK_WARNING](-a-n-d-r-o-i-d_-q_-s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/-android29-saved-network-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/-android29-saved-network-api-impl.md new file mode 100644 index 00000000..4c349b63 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/-android29-saved-network-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApiImpl](index.md)/[Android29SavedNetworkApiImpl](-android29-saved-network-api-impl.md) + +# Android29SavedNetworkApiImpl + +[androidJvm]\ +fun [Android29SavedNetworkApiImpl](-android29-saved-network-api-impl.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/get-saved-networks.md new file mode 100644 index 00000000..6d650368 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/get-saved-networks.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApiImpl](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ +open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/index.md new file mode 100644 index 00000000..7ed3b510 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/index.md @@ -0,0 +1,18 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApiImpl](index.md) + +# Android29SavedNetworkApiImpl + +[androidJvm]\ +internal class [Android29SavedNetworkApiImpl](index.md) : [Android29SavedNetworkApi](../-android29-saved-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/is-network-saved.md new file mode 100644 index 00000000..fc30bee8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/is-network-saved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApiImpl](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ +open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-network.md new file mode 100644 index 00000000..603812c5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApiImpl](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-networks.md new file mode 100644 index 00000000..ef0e1f8d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-networks.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApiImpl](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/get-saved-networks.md new file mode 100644 index 00000000..247d2138 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/get-saved-networks.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApi](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ +abstract fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/index.md new file mode 100644 index 00000000..0fa88166 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApi](index.md) + +# Android29SavedNetworkApi + +[androidJvm]\ +internal interface [Android29SavedNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
abstract fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
abstract fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [Android29SavedNetworkApiImpl](../-android29-saved-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/is-network-saved.md new file mode 100644 index 00000000..17d20c88 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/is-network-saved.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApi](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ +abstract fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-network.md new file mode 100644 index 00000000..42cc52d0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApi](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ +abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-networks.md new file mode 100644 index 00000000..e9a13b54 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-networks.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkApi](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ +abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/-android29-saved-network-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/-android29-saved-network-delegate.md new file mode 100644 index 00000000..f64673ed --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/-android29-saved-network-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkDelegate](index.md)/[Android29SavedNetworkDelegate](-android29-saved-network-delegate.md) + +# Android29SavedNetworkDelegate + +[androidJvm]\ +fun [Android29SavedNetworkDelegate](-android29-saved-network-delegate.md)(impl: [Android29SavedNetworkApiImpl](../-android29-saved-network-api-impl/index.md) = Android29SavedNetworkApiImpl()) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/get-saved-networks.md new file mode 100644 index 00000000..bae7306a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/get-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkDelegate](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/impl.md new file mode 100644 index 00000000..2e7557b0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [Android29SavedNetworkApiImpl](../-android29-saved-network-api-impl/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/index.md new file mode 100644 index 00000000..45c3a8e1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkDelegate](index.md) + +# Android29SavedNetworkDelegate + +[androidJvm]\ +internal class [Android29SavedNetworkDelegate](index.md)(**impl**: [Android29SavedNetworkApiImpl](../-android29-saved-network-api-impl/index.md)) : [SavedNetworkApi](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [Android29SavedNetworkApiImpl](../-android29-saved-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/is-network-saved.md new file mode 100644 index 00000000..ea21d518 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/is-network-saved.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkDelegate](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-network.md new file mode 100644 index 00000000..a32ff98c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkDelegate](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-networks.md new file mode 100644 index 00000000..324487db --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android29SavedNetworkDelegate](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/-android30-saved-network-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/-android30-saved-network-api-impl.md new file mode 100644 index 00000000..f6c295ba --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/-android30-saved-network-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApiImpl](index.md)/[Android30SavedNetworkApiImpl](-android30-saved-network-api-impl.md) + +# Android30SavedNetworkApiImpl + +[androidJvm]\ +fun [Android30SavedNetworkApiImpl](-android30-saved-network-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/get-saved-networks.md new file mode 100644 index 00000000..9a543ea5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/get-saved-networks.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApiImpl](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE]) + +open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/index.md new file mode 100644 index 00000000..81a03a43 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApiImpl](index.md) + +# Android30SavedNetworkApiImpl + +[androidJvm]\ +internal class [Android30SavedNetworkApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android30SavedNetworkApi](../-android30-saved-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE])
open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE])
open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [matchesRegexForSSID](matches-regex-for-s-s-i-d.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
private fun [matchesRegexForSSID](matches-regex-for-s-s-i-d.md)(suggestion: [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html), regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/is-network-saved.md new file mode 100644 index 00000000..0f308728 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/is-network-saved.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApiImpl](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE]) + +open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/matches-regex-for-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/matches-regex-for-s-s-i-d.md new file mode 100644 index 00000000..1e1167ba --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/matches-regex-for-s-s-i-d.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApiImpl](index.md)/[matchesRegexForSSID](matches-regex-for-s-s-i-d.md) + +# matchesRegexForSSID + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +private fun [matchesRegexForSSID](matches-regex-for-s-s-i-d.md)(suggestion: [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html), regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-network.md new file mode 100644 index 00000000..9ccf0d98 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-network.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApiImpl](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-networks.md new file mode 100644 index 00000000..8ab101bf --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-networks.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApiImpl](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/wifi-manager.md new file mode 100644 index 00000000..97dad731 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/get-saved-networks.md new file mode 100644 index 00000000..75847a9d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/get-saved-networks.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApi](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_WIFI_STATE) + +abstract fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/index.md new file mode 100644 index 00000000..4b33f3a5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApi](index.md) + +# Android30SavedNetworkApi + +[androidJvm]\ +internal interface [Android30SavedNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_WIFI_STATE)
abstract fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_WIFI_STATE)
abstract fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_WIFI_STATE)
abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_WIFI_STATE)
abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [Android30SavedNetworkApiImpl](../-android30-saved-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/is-network-saved.md new file mode 100644 index 00000000..dcdf7ffe --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/is-network-saved.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApi](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_WIFI_STATE) + +abstract fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-network.md new file mode 100644 index 00000000..48556dec --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-network.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApi](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_WIFI_STATE) + +abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-networks.md new file mode 100644 index 00000000..c625837b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-networks.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkApi](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_WIFI_STATE) + +abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/-android30-saved-network-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/-android30-saved-network-delegate.md new file mode 100644 index 00000000..b7dcac2a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/-android30-saved-network-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkDelegate](index.md)/[Android30SavedNetworkDelegate](-android30-saved-network-delegate.md) + +# Android30SavedNetworkDelegate + +[androidJvm]\ +fun [Android30SavedNetworkDelegate](-android30-saved-network-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), impl: [Android30SavedNetworkApiImpl](../-android30-saved-network-api-impl/index.md) = Android30SavedNetworkApiImpl(wifiManager)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/get-saved-networks.md new file mode 100644 index 00000000..ceda4a3b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/get-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkDelegate](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE]) + +open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/impl.md new file mode 100644 index 00000000..4db44da0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [Android30SavedNetworkApiImpl](../-android30-saved-network-api-impl/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/index.md new file mode 100644 index 00000000..9125c48c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkDelegate](index.md) + +# Android30SavedNetworkDelegate + +[androidJvm]\ +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +internal class [Android30SavedNetworkDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android30SavedNetworkApiImpl](../-android30-saved-network-api-impl/index.md)) : [SavedNetworkApi](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE])
open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE])
open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [Android30SavedNetworkApiImpl](../-android30-saved-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/is-network-saved.md new file mode 100644 index 00000000..69c25807 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/is-network-saved.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkDelegate](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE]) + +open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-network.md new file mode 100644 index 00000000..1ad7315c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkDelegate](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-networks.md new file mode 100644 index 00000000..cccbe839 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[Android30SavedNetworkDelegate](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/-legacy-saved-network-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/-legacy-saved-network-api-impl.md new file mode 100644 index 00000000..82f07c21 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/-legacy-saved-network-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApiImpl](index.md)/[LegacySavedNetworkApiImpl](-legacy-saved-network-api-impl.md) + +# LegacySavedNetworkApiImpl + +[androidJvm]\ +fun [LegacySavedNetworkApiImpl](-legacy-saved-network-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/get-saved-networks.md new file mode 100644 index 00000000..92bf56c8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/get-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApiImpl](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/index.md new file mode 100644 index 00000000..37b19d0d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApiImpl](index.md) + +# LegacySavedNetworkApiImpl + +[androidJvm]\ +internal class [LegacySavedNetworkApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [LegacySavedNetworkApi](../-legacy-saved-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [matchesRegexForSSID](matches-regex-for-s-s-i-d.md) | [androidJvm]
private fun [matchesRegexForSSID](matches-regex-for-s-s-i-d.md)(configuration: [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html), regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/is-network-saved.md new file mode 100644 index 00000000..8b0f5dec --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/is-network-saved.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApiImpl](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/matches-regex-for-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/matches-regex-for-s-s-i-d.md new file mode 100644 index 00000000..02321ff2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/matches-regex-for-s-s-i-d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApiImpl](index.md)/[matchesRegexForSSID](matches-regex-for-s-s-i-d.md) + +# matchesRegexForSSID + +[androidJvm]\ +private fun [matchesRegexForSSID](matches-regex-for-s-s-i-d.md)(configuration: [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html), regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-network.md new file mode 100644 index 00000000..2e433959 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApiImpl](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-networks.md new file mode 100644 index 00000000..22390eb7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApiImpl](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/wifi-manager.md new file mode 100644 index 00000000..61125e08 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/get-saved-networks.md new file mode 100644 index 00000000..141d9660 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/get-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApi](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/index.md new file mode 100644 index 00000000..17ff3bd6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApi](index.md) + +# LegacySavedNetworkApi + +[androidJvm]\ +internal interface [LegacySavedNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacySavedNetworkApiImpl](../-legacy-saved-network-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/is-network-saved.md new file mode 100644 index 00000000..39d39542 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/is-network-saved.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApi](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-network.md new file mode 100644 index 00000000..96f845cc --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApi](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-networks.md new file mode 100644 index 00000000..d6845d58 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkApi](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/-legacy-saved-network-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/-legacy-saved-network-delegate.md new file mode 100644 index 00000000..b5ff2591 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/-legacy-saved-network-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkDelegate](index.md)/[LegacySavedNetworkDelegate](-legacy-saved-network-delegate.md) + +# LegacySavedNetworkDelegate + +[androidJvm]\ +fun [LegacySavedNetworkDelegate](-legacy-saved-network-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), impl: [LegacySavedNetworkApi](../-legacy-saved-network-api/index.md) = LegacySavedNetworkApiImpl(wifiManager)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/get-saved-networks.md new file mode 100644 index 00000000..e909fee6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/get-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkDelegate](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/impl.md new file mode 100644 index 00000000..0bf51be5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacySavedNetworkApi](../-legacy-saved-network-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/index.md new file mode 100644 index 00000000..df346cc0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkDelegate](index.md) + +# LegacySavedNetworkDelegate + +[androidJvm]\ +internal class [LegacySavedNetworkDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [LegacySavedNetworkApi](../-legacy-saved-network-api/index.md)) : [SavedNetworkApi](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacySavedNetworkApi](../-legacy-saved-network-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/is-network-saved.md new file mode 100644 index 00000000..1667b299 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/is-network-saved.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkDelegate](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-network.md new file mode 100644 index 00000000..895e17c3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkDelegate](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-networks.md new file mode 100644 index 00000000..74aa790a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](../index.md)/[LegacySavedNetworkDelegate](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/index.md new file mode 100644 index 00000000..8834b3d5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.savednetworks.delegates](index.md) + +# Package com.isupatches.android.wisefy.savednetworks.delegates + +## Types + +| Name | Summary | +|---|---| +| [Android29SavedNetworkApi](-android29-saved-network-api/index.md) | [androidJvm]
internal interface [Android29SavedNetworkApi](-android29-saved-network-api/index.md) | +| [Android29SavedNetworkApiImpl](-android29-saved-network-api-impl/index.md) | [androidJvm]
internal class [Android29SavedNetworkApiImpl](-android29-saved-network-api-impl/index.md) : [Android29SavedNetworkApi](-android29-saved-network-api/index.md) | +| [Android29SavedNetworkDelegate](-android29-saved-network-delegate/index.md) | [androidJvm]
internal class [Android29SavedNetworkDelegate](-android29-saved-network-delegate/index.md)(**impl**: [Android29SavedNetworkApiImpl](-android29-saved-network-api-impl/index.md)) : [SavedNetworkApi](../com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md) | +| [Android30SavedNetworkApi](-android30-saved-network-api/index.md) | [androidJvm]
internal interface [Android30SavedNetworkApi](-android30-saved-network-api/index.md) | +| [Android30SavedNetworkApiImpl](-android30-saved-network-api-impl/index.md) | [androidJvm]
internal class [Android30SavedNetworkApiImpl](-android30-saved-network-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android30SavedNetworkApi](-android30-saved-network-api/index.md) | +| [Android30SavedNetworkDelegate](-android30-saved-network-delegate/index.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
internal class [Android30SavedNetworkDelegate](-android30-saved-network-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android30SavedNetworkApiImpl](-android30-saved-network-api-impl/index.md)) : [SavedNetworkApi](../com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md) | +| [LegacySavedNetworkApi](-legacy-saved-network-api/index.md) | [androidJvm]
internal interface [LegacySavedNetworkApi](-legacy-saved-network-api/index.md) | +| [LegacySavedNetworkApiImpl](-legacy-saved-network-api-impl/index.md) | [androidJvm]
internal class [LegacySavedNetworkApiImpl](-legacy-saved-network-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [LegacySavedNetworkApi](-legacy-saved-network-api/index.md) | +| [LegacySavedNetworkDelegate](-legacy-saved-network-delegate/index.md) | [androidJvm]
internal class [LegacySavedNetworkDelegate](-legacy-saved-network-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [LegacySavedNetworkApi](-legacy-saved-network-api/index.md)) : [SavedNetworkApi](../com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [ANDROID_Q_SAVED_NETWORK_WARNING](-a-n-d-r-o-i-d_-q_-s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md) | [androidJvm]
private const val [ANDROID_Q_SAVED_NETWORK_WARNING](-a-n-d-r-o-i-d_-q_-s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/-configuration.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/-configuration.md new file mode 100644 index 00000000..80732503 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/-configuration.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Configuration](index.md)/[Configuration](-configuration.md) + +# Configuration + +[androidJvm]\ +fun [Configuration](-configuration.md)(data: [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/component1.md new file mode 100644 index 00000000..c1ba972f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Configuration](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/copy.md new file mode 100644 index 00000000..18f789da --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Configuration](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(data: [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html)): [SavedNetworkData.Configuration](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/data.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/data.md new file mode 100644 index 00000000..0c201b7d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Configuration](index.md)/[data](data.md) + +# data + +[androidJvm]\ +val [data](data.md): [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/index.md new file mode 100644 index 00000000..ba2b47a6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Configuration](index.md) + +# Configuration + +[androidJvm]\ +data class [Configuration](index.md)(**data**: [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html)) : [SavedNetworkData](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(data: [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html)): [SavedNetworkData.Configuration](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [data](data.md) | [androidJvm]
val [data](data.md): [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-saved-network-data.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-saved-network-data.md new file mode 100644 index 00000000..6fad29b5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-saved-network-data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../index.md)/[SavedNetworkData](index.md)/[SavedNetworkData](-saved-network-data.md) + +# SavedNetworkData + +[androidJvm]\ +protected fun [SavedNetworkData](-saved-network-data.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/-suggestion.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/-suggestion.md new file mode 100644 index 00000000..3cbf22e7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/-suggestion.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Suggestion](index.md)/[Suggestion](-suggestion.md) + +# Suggestion + +[androidJvm]\ +fun [Suggestion](-suggestion.md)(data: [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/component1.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/component1.md new file mode 100644 index 00000000..481c318f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/component1.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Suggestion](index.md)/[component1](component1.md) + +# component1 + +[androidJvm]\ +operator fun [component1](component1.md)(): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/copy.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/copy.md new file mode 100644 index 00000000..ca9c869b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/copy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Suggestion](index.md)/[copy](copy.md) + +# copy + +[androidJvm]\ +fun [copy](copy.md)(data: [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html)): [SavedNetworkData.Suggestion](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/data.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/data.md new file mode 100644 index 00000000..306c111b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/data.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Suggestion](index.md)/[data](data.md) + +# data + +[androidJvm]\ +val [data](data.md): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/index.md new file mode 100644 index 00000000..a4369dbe --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../../index.md)/[SavedNetworkData](../index.md)/[Suggestion](index.md) + +# Suggestion + +[androidJvm]\ +data class [Suggestion](index.md)(**data**: [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html)) : [SavedNetworkData](../index.md) + +## Functions + +| Name | Summary | +|---|---| +| [component1](component1.md) | [androidJvm]
operator fun [component1](component1.md)(): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) | +| [copy](copy.md) | [androidJvm]
fun [copy](copy.md)(data: [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html)): [SavedNetworkData.Suggestion](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator override fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open override fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open override fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [data](data.md) | [androidJvm]
val [data](data.md): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md new file mode 100644 index 00000000..278f9515 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md @@ -0,0 +1,28 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](../index.md)/[SavedNetworkData](index.md) + +# SavedNetworkData + +[androidJvm]\ +sealed class [SavedNetworkData](index.md) + +## Types + +| Name | Summary | +|---|---| +| [Configuration](-configuration/index.md) | [androidJvm]
data class [Configuration](-configuration/index.md)(**data**: [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html)) : [SavedNetworkData](index.md) | +| [Suggestion](-suggestion/index.md) | [androidJvm]
data class [Suggestion](-suggestion/index.md)(**data**: [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html)) : [SavedNetworkData](index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [SavedNetworkData](-configuration/index.md) | +| [SavedNetworkData](-suggestion/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/index.md new file mode 100644 index 00000000..b9f3c5dc --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks.entities/index.md @@ -0,0 +1,9 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.savednetworks.entities](index.md) + +# Package com.isupatches.android.wisefy.savednetworks.entities + +## Types + +| Name | Summary | +|---|---| +| [SavedNetworkData](-saved-network-data/index.md) | [androidJvm]
sealed class [SavedNetworkData](-saved-network-data/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..4e2eb608 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.savednetworks](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/get-saved-networks.md new file mode 100644 index 00000000..0ab726c0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/get-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkApiAsync](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [getSavedNetworks](get-saved-networks.md)(callbacks: [GetSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/index.md new file mode 100644 index 00000000..c1a536d1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkApiAsync](index.md) + +# SavedNetworkApiAsync + +[androidJvm]\ +interface [SavedNetworkApiAsync](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [getSavedNetworks](get-saved-networks.md)(callbacks: [GetSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md)?) | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [SavedNetworkUtil](../-saved-network-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-network.md new file mode 100644 index 00000000..dee9783b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkApiAsync](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-networks.md new file mode 100644 index 00000000..abebca42 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkApiAsync](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/get-saved-networks.md new file mode 100644 index 00000000..29bacae3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/get-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkApi](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md new file mode 100644 index 00000000..587f043f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md @@ -0,0 +1,28 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkApi](index.md) + +# SavedNetworkApi + +[androidJvm]\ +interface [SavedNetworkApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [SavedNetworkUtil](../-saved-network-util/index.md) | +| [Android29SavedNetworkDelegate](../../com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/index.md) | +| [Android30SavedNetworkDelegate](../../com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/index.md) | +| [LegacySavedNetworkDelegate](../../com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/is-network-saved.md new file mode 100644 index 00000000..19329df4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/is-network-saved.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkApi](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-network.md new file mode 100644 index 00000000..94072941 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-network.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkApi](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-networks.md new file mode 100644 index 00000000..f78b88b6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-networks.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkApi](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +abstract fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md new file mode 100644 index 00000000..3d4f7f29 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md @@ -0,0 +1,24 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[SavedNetworkUtil](index.md) + +# SavedNetworkUtil + +[androidJvm]\ +internal interface [SavedNetworkUtil](index.md) : [SavedNetworkApi](../-saved-network-api/index.md), [SavedNetworkApiAsync](../-saved-network-api-async/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](../-saved-network-api/get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [getSavedNetworks](../-saved-network-api/get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [getSavedNetworks](../-saved-network-api-async/get-saved-networks.md)(callbacks: [GetSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](../-saved-network-api/is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [isNetworkSaved](../-saved-network-api/is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](../-saved-network-api/search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetwork](../-saved-network-api/search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetwork](../-saved-network-api-async/search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md)?) | +| [searchForSavedNetworks](../-saved-network-api/search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetworks](../-saved-network-api/search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetworks](../-saved-network-api-async/search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefySavedNetworkUtil](../-wisefy-saved-network-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/-wisefy-saved-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/-wisefy-saved-network-util.md new file mode 100644 index 00000000..b1bb5016 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/-wisefy-saved-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[WisefySavedNetworkUtil](index.md)/[WisefySavedNetworkUtil](-wisefy-saved-network-util.md) + +# WisefySavedNetworkUtil + +[androidJvm]\ +fun [WisefySavedNetworkUtil](-wisefy-saved-network-util.md)(coroutineDispatcherProvider: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, sdkUtil: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/coroutine-dispatcher-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/coroutine-dispatcher-provider.md new file mode 100644 index 00000000..518d5a5b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/coroutine-dispatcher-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[WisefySavedNetworkUtil](index.md)/[coroutineDispatcherProvider](coroutine-dispatcher-provider.md) + +# coroutineDispatcherProvider + +[androidJvm]\ +private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/delegate.md new file mode 100644 index 00000000..2ca8f070 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[WisefySavedNetworkUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [SavedNetworkApi](../-saved-network-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/get-saved-networks.md new file mode 100644 index 00000000..944d742f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/get-saved-networks.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[WisefySavedNetworkUtil](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [getSavedNetworks](get-saved-networks.md)(callbacks: [GetSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/index.md new file mode 100644 index 00000000..8faf57c9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[WisefySavedNetworkUtil](index.md) + +# WisefySavedNetworkUtil + +[androidJvm]\ +internal class [WisefySavedNetworkUtil](index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [SavedNetworkUtil](../-saved-network-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [getSavedNetworks](get-saved-networks.md)(callbacks: [GetSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md)?) | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [coroutineDispatcherProvider](coroutine-dispatcher-provider.md) | [androidJvm]
private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) | +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [SavedNetworkApi](../-saved-network-api/index.md) | +| [savedNetworkScope](saved-network-scope.md) | [androidJvm]
private val [savedNetworkScope](saved-network-scope.md): CoroutineScope | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/is-network-saved.md new file mode 100644 index 00000000..4774a750 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/is-network-saved.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[WisefySavedNetworkUtil](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/saved-network-scope.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/saved-network-scope.md new file mode 100644 index 00000000..4e1b8f74 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/saved-network-scope.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[WisefySavedNetworkUtil](index.md)/[savedNetworkScope](saved-network-scope.md) + +# savedNetworkScope + +[androidJvm]\ +private val [savedNetworkScope](saved-network-scope.md): CoroutineScope diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-network.md new file mode 100644 index 00000000..c57cc1fb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-network.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[WisefySavedNetworkUtil](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-networks.md new file mode 100644 index 00000000..e89da7b2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-networks.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.savednetworks](../index.md)/[WisefySavedNetworkUtil](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/index.md b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/index.md new file mode 100644 index 00000000..e34bd3a0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.savednetworks/index.md @@ -0,0 +1,18 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.savednetworks](index.md) + +# Package com.isupatches.android.wisefy.savednetworks + +## Types + +| Name | Summary | +|---|---| +| [SavedNetworkApi](-saved-network-api/index.md) | [androidJvm]
interface [SavedNetworkApi](-saved-network-api/index.md) | +| [SavedNetworkApiAsync](-saved-network-api-async/index.md) | [androidJvm]
interface [SavedNetworkApiAsync](-saved-network-api-async/index.md) | +| [SavedNetworkUtil](-saved-network-util/index.md) | [androidJvm]
internal interface [SavedNetworkUtil](-saved-network-util/index.md) : [SavedNetworkApi](-saved-network-api/index.md), [SavedNetworkApiAsync](-saved-network-api-async/index.md) | +| [WisefySavedNetworkUtil](-wisefy-saved-network-util/index.md) | [androidJvm]
internal class [WisefySavedNetworkUtil](-wisefy-saved-network-util/index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [SavedNetworkUtil](-saved-network-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/-legacy-security-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/-legacy-security-api-impl.md new file mode 100644 index 00000000..7660fa35 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/-legacy-security-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md)/[LegacySecurityApiImpl](-legacy-security-api-impl.md) + +# LegacySecurityApiImpl + +[androidJvm]\ +fun [LegacySecurityApiImpl](-legacy-security-api-impl.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/contains-capability.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/contains-capability.md new file mode 100644 index 00000000..b3197f9e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/contains-capability.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md)/[containsCapability](contains-capability.md) + +# containsCapability + +[androidJvm]\ +private fun [containsCapability](contains-capability.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)?, capability: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/index.md new file mode 100644 index 00000000..3cb92270 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md) + +# LegacySecurityApiImpl + +[androidJvm]\ +internal class [LegacySecurityApiImpl](index.md) : [LegacySecurityApi](../-legacy-security-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [containsCapability](contains-capability.md) | [androidJvm]
private fun [containsCapability](contains-capability.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)?, capability: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkEAP](is-network-e-a-p.md) | [androidJvm]
open override fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkPSK](is-network-p-s-k.md) | [androidJvm]
open override fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSecure](is-network-secure.md) | [androidJvm]
open override fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWEP](is-network-w-e-p.md) | [androidJvm]
open override fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA](is-network-w-p-a.md) | [androidJvm]
open override fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA2](is-network-w-p-a2.md) | [androidJvm]
open override fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA3](is-network-w-p-a3.md) | [androidJvm]
open override fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-e-a-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-e-a-p.md new file mode 100644 index 00000000..ace9ab0b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-e-a-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md)/[isNetworkEAP](is-network-e-a-p.md) + +# isNetworkEAP + +[androidJvm]\ +open override fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-p-s-k.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-p-s-k.md new file mode 100644 index 00000000..47598f1f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-p-s-k.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md)/[isNetworkPSK](is-network-p-s-k.md) + +# isNetworkPSK + +[androidJvm]\ +open override fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-secure.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-secure.md new file mode 100644 index 00000000..89ff25f2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-secure.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md)/[isNetworkSecure](is-network-secure.md) + +# isNetworkSecure + +[androidJvm]\ +open override fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-e-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-e-p.md new file mode 100644 index 00000000..90d26375 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-e-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md)/[isNetworkWEP](is-network-w-e-p.md) + +# isNetworkWEP + +[androidJvm]\ +open override fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a.md new file mode 100644 index 00000000..01a86e9b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md)/[isNetworkWPA](is-network-w-p-a.md) + +# isNetworkWPA + +[androidJvm]\ +open override fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a2.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a2.md new file mode 100644 index 00000000..ef2dd2e3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md)/[isNetworkWPA2](is-network-w-p-a2.md) + +# isNetworkWPA2 + +[androidJvm]\ +open override fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a3.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a3.md new file mode 100644 index 00000000..bfde655a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a3.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApiImpl](index.md)/[isNetworkWPA3](is-network-w-p-a3.md) + +# isNetworkWPA3 + +[androidJvm]\ +open override fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/index.md new file mode 100644 index 00000000..3c05f524 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApi](index.md) + +# LegacySecurityApi + +[androidJvm]\ +internal interface [LegacySecurityApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkEAP](is-network-e-a-p.md) | [androidJvm]
abstract fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkPSK](is-network-p-s-k.md) | [androidJvm]
abstract fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSecure](is-network-secure.md) | [androidJvm]
abstract fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWEP](is-network-w-e-p.md) | [androidJvm]
abstract fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA](is-network-w-p-a.md) | [androidJvm]
abstract fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA2](is-network-w-p-a2.md) | [androidJvm]
abstract fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA3](is-network-w-p-a3.md) | [androidJvm]
abstract fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacySecurityApiImpl](../-legacy-security-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-e-a-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-e-a-p.md new file mode 100644 index 00000000..a64d4c0c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-e-a-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApi](index.md)/[isNetworkEAP](is-network-e-a-p.md) + +# isNetworkEAP + +[androidJvm]\ +abstract fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-p-s-k.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-p-s-k.md new file mode 100644 index 00000000..a0f6dd19 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-p-s-k.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApi](index.md)/[isNetworkPSK](is-network-p-s-k.md) + +# isNetworkPSK + +[androidJvm]\ +abstract fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-secure.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-secure.md new file mode 100644 index 00000000..04d4f9bf --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-secure.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApi](index.md)/[isNetworkSecure](is-network-secure.md) + +# isNetworkSecure + +[androidJvm]\ +abstract fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-e-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-e-p.md new file mode 100644 index 00000000..9d2e8c31 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-e-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApi](index.md)/[isNetworkWEP](is-network-w-e-p.md) + +# isNetworkWEP + +[androidJvm]\ +abstract fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a.md new file mode 100644 index 00000000..e5763dc1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApi](index.md)/[isNetworkWPA](is-network-w-p-a.md) + +# isNetworkWPA + +[androidJvm]\ +abstract fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a2.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a2.md new file mode 100644 index 00000000..9de6570e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApi](index.md)/[isNetworkWPA2](is-network-w-p-a2.md) + +# isNetworkWPA2 + +[androidJvm]\ +abstract fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a3.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a3.md new file mode 100644 index 00000000..5b155f5e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a3.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityApi](index.md)/[isNetworkWPA3](is-network-w-p-a3.md) + +# isNetworkWPA3 + +[androidJvm]\ +abstract fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/-legacy-security-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/-legacy-security-delegate.md new file mode 100644 index 00000000..06358113 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/-legacy-security-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md)/[LegacySecurityDelegate](-legacy-security-delegate.md) + +# LegacySecurityDelegate + +[androidJvm]\ +fun [LegacySecurityDelegate](-legacy-security-delegate.md)(impl: [LegacySecurityApi](../-legacy-security-api/index.md) = LegacySecurityApiImpl()) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/impl.md new file mode 100644 index 00000000..d18d6935 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacySecurityApi](../-legacy-security-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/index.md new file mode 100644 index 00000000..8e2e3018 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md) + +# LegacySecurityDelegate + +[androidJvm]\ +internal class [LegacySecurityDelegate](index.md)(**impl**: [LegacySecurityApi](../-legacy-security-api/index.md)) : [SecurityApi](../../com.isupatches.android.wisefy.security/-security-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkEAP](is-network-e-a-p.md) | [androidJvm]
open override fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkPSK](is-network-p-s-k.md) | [androidJvm]
open override fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSecure](is-network-secure.md) | [androidJvm]
open override fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWEP](is-network-w-e-p.md) | [androidJvm]
open override fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA](is-network-w-p-a.md) | [androidJvm]
open override fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA2](is-network-w-p-a2.md) | [androidJvm]
open override fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA3](is-network-w-p-a3.md) | [androidJvm]
open override fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacySecurityApi](../-legacy-security-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-e-a-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-e-a-p.md new file mode 100644 index 00000000..513ffd7a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-e-a-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md)/[isNetworkEAP](is-network-e-a-p.md) + +# isNetworkEAP + +[androidJvm]\ +open override fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-p-s-k.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-p-s-k.md new file mode 100644 index 00000000..1b5e06da --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-p-s-k.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md)/[isNetworkPSK](is-network-p-s-k.md) + +# isNetworkPSK + +[androidJvm]\ +open override fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-secure.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-secure.md new file mode 100644 index 00000000..4be5056a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-secure.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md)/[isNetworkSecure](is-network-secure.md) + +# isNetworkSecure + +[androidJvm]\ +open override fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-e-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-e-p.md new file mode 100644 index 00000000..aabc74ad --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-e-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md)/[isNetworkWEP](is-network-w-e-p.md) + +# isNetworkWEP + +[androidJvm]\ +open override fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a.md new file mode 100644 index 00000000..e7555121 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md)/[isNetworkWPA](is-network-w-p-a.md) + +# isNetworkWPA + +[androidJvm]\ +open override fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a2.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a2.md new file mode 100644 index 00000000..6bc42bb5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md)/[isNetworkWPA2](is-network-w-p-a2.md) + +# isNetworkWPA2 + +[androidJvm]\ +open override fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a3.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a3.md new file mode 100644 index 00000000..12575041 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a3.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.delegates](../index.md)/[LegacySecurityDelegate](index.md)/[isNetworkWPA3](is-network-w-p-a3.md) + +# isNetworkWPA3 + +[androidJvm]\ +open override fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/index.md new file mode 100644 index 00000000..73e5aa63 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.delegates/index.md @@ -0,0 +1,11 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security.delegates](index.md) + +# Package com.isupatches.android.wisefy.security.delegates + +## Types + +| Name | Summary | +|---|---| +| [LegacySecurityApi](-legacy-security-api/index.md) | [androidJvm]
internal interface [LegacySecurityApi](-legacy-security-api/index.md) | +| [LegacySecurityApiImpl](-legacy-security-api-impl/index.md) | [androidJvm]
internal class [LegacySecurityApiImpl](-legacy-security-api-impl/index.md) : [LegacySecurityApi](-legacy-security-api/index.md) | +| [LegacySecurityDelegate](-legacy-security-delegate/index.md) | [androidJvm]
internal class [LegacySecurityDelegate](-legacy-security-delegate/index.md)(**impl**: [LegacySecurityApi](-legacy-security-api/index.md)) : [SecurityApi](../com.isupatches.android.wisefy.security/-security-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-capability/-capability.md b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-capability/-capability.md new file mode 100644 index 00000000..560d4c4d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-capability/-capability.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.entities](../index.md)/[Capability](index.md)/[Capability](-capability.md) + +# Capability + +[androidJvm]\ +fun [Capability](-capability.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-capability/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-capability/index.md new file mode 100644 index 00000000..81615931 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-capability/index.md @@ -0,0 +1,14 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security.entities](../index.md)/[Capability](index.md) + +# Capability + +[androidJvm]\ +annotation class [Capability](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-e-a-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-e-a-p.md new file mode 100644 index 00000000..c621c0af --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-e-a-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security.entities](index.md)/[EAP](-e-a-p.md) + +# EAP + +[androidJvm]\ +const val [EAP](-e-a-p.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-p-s-k.md b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-p-s-k.md new file mode 100644 index 00000000..36a44860 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-p-s-k.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security.entities](index.md)/[PSK](-p-s-k.md) + +# PSK + +[androidJvm]\ +const val [PSK](-p-s-k.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-e-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-e-p.md new file mode 100644 index 00000000..4d4103ca --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-e-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security.entities](index.md)/[WEP](-w-e-p.md) + +# WEP + +[androidJvm]\ +const val [WEP](-w-e-p.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a.md b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a.md new file mode 100644 index 00000000..0998d910 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security.entities](index.md)/[WPA](-w-p-a.md) + +# WPA + +[androidJvm]\ +const val [WPA](-w-p-a.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a2.md b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a2.md new file mode 100644 index 00000000..465381d3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a2.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security.entities](index.md)/[WPA2](-w-p-a2.md) + +# WPA2 + +[androidJvm]\ +const val [WPA2](-w-p-a2.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a3.md b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a3.md new file mode 100644 index 00000000..7999e288 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a3.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security.entities](index.md)/[WPA3](-w-p-a3.md) + +# WPA3 + +[androidJvm]\ +const val [WPA3](-w-p-a3.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security.entities/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/index.md new file mode 100644 index 00000000..1a3bb653 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security.entities/index.md @@ -0,0 +1,20 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security.entities](index.md) + +# Package com.isupatches.android.wisefy.security.entities + +## Types + +| Name | Summary | +|---|---| +| [Capability](-capability/index.md) | [androidJvm]
annotation class [Capability](-capability/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [EAP](-e-a-p.md) | [androidJvm]
const val [EAP](-e-a-p.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [PSK](-p-s-k.md) | [androidJvm]
const val [PSK](-p-s-k.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [WEP](-w-e-p.md) | [androidJvm]
const val [WEP](-w-e-p.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [WPA](-w-p-a.md) | [androidJvm]
const val [WPA](-w-p-a.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [WPA2](-w-p-a2.md) | [androidJvm]
const val [WPA2](-w-p-a2.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [WPA3](-w-p-a3.md) | [androidJvm]
const val [WPA3](-w-p-a3.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..ad9fc76d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/index.md new file mode 100644 index 00000000..44f2acf6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/index.md @@ -0,0 +1,29 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[SecurityApi](index.md) + +# SecurityApi + +[androidJvm]\ +interface [SecurityApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkEAP](is-network-e-a-p.md) | [androidJvm]
abstract fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkPSK](is-network-p-s-k.md) | [androidJvm]
abstract fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSecure](is-network-secure.md) | [androidJvm]
abstract fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWEP](is-network-w-e-p.md) | [androidJvm]
abstract fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA](is-network-w-p-a.md) | [androidJvm]
abstract fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA2](is-network-w-p-a2.md) | [androidJvm]
abstract fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA3](is-network-w-p-a3.md) | [androidJvm]
abstract fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [SecurityUtil](../-security-util/index.md) | +| [LegacySecurityDelegate](../../com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-e-a-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-e-a-p.md new file mode 100644 index 00000000..ccfe524e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-e-a-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[SecurityApi](index.md)/[isNetworkEAP](is-network-e-a-p.md) + +# isNetworkEAP + +[androidJvm]\ +abstract fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-p-s-k.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-p-s-k.md new file mode 100644 index 00000000..d17919d7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-p-s-k.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[SecurityApi](index.md)/[isNetworkPSK](is-network-p-s-k.md) + +# isNetworkPSK + +[androidJvm]\ +abstract fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-secure.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-secure.md new file mode 100644 index 00000000..5594e305 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-secure.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[SecurityApi](index.md)/[isNetworkSecure](is-network-secure.md) + +# isNetworkSecure + +[androidJvm]\ +abstract fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-e-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-e-p.md new file mode 100644 index 00000000..c9d3f542 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-e-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[SecurityApi](index.md)/[isNetworkWEP](is-network-w-e-p.md) + +# isNetworkWEP + +[androidJvm]\ +abstract fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a.md new file mode 100644 index 00000000..4f4785c4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[SecurityApi](index.md)/[isNetworkWPA](is-network-w-p-a.md) + +# isNetworkWPA + +[androidJvm]\ +abstract fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a2.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a2.md new file mode 100644 index 00000000..2c42e4f3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[SecurityApi](index.md)/[isNetworkWPA2](is-network-w-p-a2.md) + +# isNetworkWPA2 + +[androidJvm]\ +abstract fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a3.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a3.md new file mode 100644 index 00000000..92ee1246 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a3.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[SecurityApi](index.md)/[isNetworkWPA3](is-network-w-p-a3.md) + +# isNetworkWPA3 + +[androidJvm]\ +abstract fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-security-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-util/index.md new file mode 100644 index 00000000..f7fd4f15 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-security-util/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[SecurityUtil](index.md) + +# SecurityUtil + +[androidJvm]\ +internal interface [SecurityUtil](index.md) : [SecurityApi](../-security-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkEAP](../-security-api/is-network-e-a-p.md) | [androidJvm]
abstract fun [isNetworkEAP](../-security-api/is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkPSK](../-security-api/is-network-p-s-k.md) | [androidJvm]
abstract fun [isNetworkPSK](../-security-api/is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSecure](../-security-api/is-network-secure.md) | [androidJvm]
abstract fun [isNetworkSecure](../-security-api/is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWEP](../-security-api/is-network-w-e-p.md) | [androidJvm]
abstract fun [isNetworkWEP](../-security-api/is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA](../-security-api/is-network-w-p-a.md) | [androidJvm]
abstract fun [isNetworkWPA](../-security-api/is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA2](../-security-api/is-network-w-p-a2.md) | [androidJvm]
abstract fun [isNetworkWPA2](../-security-api/is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA3](../-security-api/is-network-w-p-a3.md) | [androidJvm]
abstract fun [isNetworkWPA3](../-security-api/is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefySecurityUtil](../-wisefy-security-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/-wisefy-security-util.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/-wisefy-security-util.md new file mode 100644 index 00000000..e9183c8a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/-wisefy-security-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md)/[WisefySecurityUtil](-wisefy-security-util.md) + +# WisefySecurityUtil + +[androidJvm]\ +fun [WisefySecurityUtil](-wisefy-security-util.md)(logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/delegate.md new file mode 100644 index 00000000..3260bf5b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [LegacySecurityDelegate](../../com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/index.md new file mode 100644 index 00000000..96c94257 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md) + +# WisefySecurityUtil + +[androidJvm]\ +internal class [WisefySecurityUtil](index.md)(**logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [SecurityUtil](../-security-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isNetworkEAP](is-network-e-a-p.md) | [androidJvm]
open override fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkPSK](is-network-p-s-k.md) | [androidJvm]
open override fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSecure](is-network-secure.md) | [androidJvm]
open override fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWEP](is-network-w-e-p.md) | [androidJvm]
open override fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA](is-network-w-p-a.md) | [androidJvm]
open override fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA2](is-network-w-p-a2.md) | [androidJvm]
open override fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA3](is-network-w-p-a3.md) | [androidJvm]
open override fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [LegacySecurityDelegate](../../com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-e-a-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-e-a-p.md new file mode 100644 index 00000000..24c134f5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-e-a-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md)/[isNetworkEAP](is-network-e-a-p.md) + +# isNetworkEAP + +[androidJvm]\ +open override fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-p-s-k.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-p-s-k.md new file mode 100644 index 00000000..9cc74852 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-p-s-k.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md)/[isNetworkPSK](is-network-p-s-k.md) + +# isNetworkPSK + +[androidJvm]\ +open override fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-secure.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-secure.md new file mode 100644 index 00000000..7de0d6ab --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-secure.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md)/[isNetworkSecure](is-network-secure.md) + +# isNetworkSecure + +[androidJvm]\ +open override fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-e-p.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-e-p.md new file mode 100644 index 00000000..04591302 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-e-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md)/[isNetworkWEP](is-network-w-e-p.md) + +# isNetworkWEP + +[androidJvm]\ +open override fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a.md new file mode 100644 index 00000000..25ebe4d0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md)/[isNetworkWPA](is-network-w-p-a.md) + +# isNetworkWPA + +[androidJvm]\ +open override fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a2.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a2.md new file mode 100644 index 00000000..18f5c921 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md)/[isNetworkWPA2](is-network-w-p-a2.md) + +# isNetworkWPA2 + +[androidJvm]\ +open override fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a3.md b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a3.md new file mode 100644 index 00000000..ac7d963f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a3.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.security](../index.md)/[WisefySecurityUtil](index.md)/[isNetworkWPA3](is-network-w-p-a3.md) + +# isNetworkWPA3 + +[androidJvm]\ +open override fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.security/index.md b/documentation/wisefy/com.isupatches.android.wisefy.security/index.md new file mode 100644 index 00000000..517cbbbe --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.security/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.security](index.md) + +# Package com.isupatches.android.wisefy.security + +## Types + +| Name | Summary | +|---|---| +| [SecurityApi](-security-api/index.md) | [androidJvm]
interface [SecurityApi](-security-api/index.md) | +| [SecurityUtil](-security-util/index.md) | [androidJvm]
internal interface [SecurityUtil](-security-util/index.md) : [SecurityApi](-security-api/index.md) | +| [WisefySecurityUtil](-wisefy-security-util/index.md) | [androidJvm]
internal class [WisefySecurityUtil](-wisefy-security-util/index.md)(**logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) : [SecurityUtil](-security-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/-android30-signal-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/-android30-signal-api-impl.md new file mode 100644 index 00000000..59c39558 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/-android30-signal-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalApiImpl](index.md)/[Android30SignalApiImpl](-android30-signal-api-impl.md) + +# Android30SignalApiImpl + +[androidJvm]\ +fun [Android30SignalApiImpl](-android30-signal-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/calculate-bars.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/calculate-bars.md new file mode 100644 index 00000000..47836a78 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/calculate-bars.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalApiImpl](index.md)/[calculateBars](calculate-bars.md) + +# calculateBars + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/compare-signal-level.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/compare-signal-level.md new file mode 100644 index 00000000..13f1c20d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/compare-signal-level.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalApiImpl](index.md)/[compareSignalLevel](compare-signal-level.md) + +# compareSignalLevel + +[androidJvm]\ +open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/index.md new file mode 100644 index 00000000..bea753de --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalApiImpl](index.md) + +# Android30SignalApiImpl + +[androidJvm]\ +internal class [Android30SignalApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android30SignalApi](../-android30-signal-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [calculateBars](calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](compare-signal-level.md) | [androidJvm]
open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/wifi-manager.md new file mode 100644 index 00000000..01054c29 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/calculate-bars.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/calculate-bars.md new file mode 100644 index 00000000..12ba9739 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/calculate-bars.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalApi](index.md)/[calculateBars](calculate-bars.md) + +# calculateBars + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +abstract fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +~~abstract~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/compare-signal-level.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/compare-signal-level.md new file mode 100644 index 00000000..3fa8e381 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/compare-signal-level.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalApi](index.md)/[compareSignalLevel](compare-signal-level.md) + +# compareSignalLevel + +[androidJvm]\ +abstract fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/index.md new file mode 100644 index 00000000..5ded6e0d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalApi](index.md) + +# Android30SignalApi + +[androidJvm]\ +internal interface [Android30SignalApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [calculateBars](calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
abstract fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~abstract~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](compare-signal-level.md) | [androidJvm]
abstract fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [Android30SignalApiImpl](../-android30-signal-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/-android30-signal-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/-android30-signal-delegate.md new file mode 100644 index 00000000..1fd1fe10 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/-android30-signal-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalDelegate](index.md)/[Android30SignalDelegate](-android30-signal-delegate.md) + +# Android30SignalDelegate + +[androidJvm]\ +fun [Android30SignalDelegate](-android30-signal-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), impl: [Android30SignalApi](../-android30-signal-api/index.md) = Android30SignalApiImpl(wifiManager)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/calculate-bars.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/calculate-bars.md new file mode 100644 index 00000000..9e84a631 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/calculate-bars.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalDelegate](index.md)/[calculateBars](calculate-bars.md) + +# calculateBars + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/compare-signal-level.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/compare-signal-level.md new file mode 100644 index 00000000..846fedeb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/compare-signal-level.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalDelegate](index.md)/[compareSignalLevel](compare-signal-level.md) + +# compareSignalLevel + +[androidJvm]\ +open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/impl.md new file mode 100644 index 00000000..fcb31290 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [Android30SignalApi](../-android30-signal-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/index.md new file mode 100644 index 00000000..ee643cc0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[Android30SignalDelegate](index.md) + +# Android30SignalDelegate + +[androidJvm]\ +internal class [Android30SignalDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android30SignalApi](../-android30-signal-api/index.md)) : [SignalApi](../../com.isupatches.android.wisefy.signal/-signal-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [calculateBars](calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](compare-signal-level.md) | [androidJvm]
open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [Android30SignalApi](../-android30-signal-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/-legacy-signal-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/-legacy-signal-api-impl.md new file mode 100644 index 00000000..5faaf2ee --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/-legacy-signal-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalApiImpl](index.md)/[LegacySignalApiImpl](-legacy-signal-api-impl.md) + +# LegacySignalApiImpl + +[androidJvm]\ +fun [LegacySignalApiImpl](-legacy-signal-api-impl.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/calculate-bars.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/calculate-bars.md new file mode 100644 index 00000000..fee379ea --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/calculate-bars.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalApiImpl](index.md)/[calculateBars](calculate-bars.md) + +# calculateBars + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/compare-signal-level.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/compare-signal-level.md new file mode 100644 index 00000000..ebdd1587 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/compare-signal-level.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalApiImpl](index.md)/[compareSignalLevel](compare-signal-level.md) + +# compareSignalLevel + +[androidJvm]\ +open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/index.md new file mode 100644 index 00000000..21587e78 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/index.md @@ -0,0 +1,16 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalApiImpl](index.md) + +# LegacySignalApiImpl + +[androidJvm]\ +internal class [LegacySignalApiImpl](index.md) : [LegacySignalApi](../-legacy-signal-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [calculateBars](calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](compare-signal-level.md) | [androidJvm]
open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/calculate-bars.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/calculate-bars.md new file mode 100644 index 00000000..f1443ae0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/calculate-bars.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalApi](index.md)/[calculateBars](calculate-bars.md) + +# calculateBars + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +abstract fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +~~abstract~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/compare-signal-level.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/compare-signal-level.md new file mode 100644 index 00000000..a8467416 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/compare-signal-level.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalApi](index.md)/[compareSignalLevel](compare-signal-level.md) + +# compareSignalLevel + +[androidJvm]\ +abstract fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/index.md new file mode 100644 index 00000000..19ce9287 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalApi](index.md) + +# LegacySignalApi + +[androidJvm]\ +internal interface [LegacySignalApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [calculateBars](calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
abstract fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~abstract~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](compare-signal-level.md) | [androidJvm]
abstract fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacySignalApiImpl](../-legacy-signal-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/-legacy-signal-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/-legacy-signal-delegate.md new file mode 100644 index 00000000..698165ac --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/-legacy-signal-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalDelegate](index.md)/[LegacySignalDelegate](-legacy-signal-delegate.md) + +# LegacySignalDelegate + +[androidJvm]\ +fun [LegacySignalDelegate](-legacy-signal-delegate.md)(impl: [LegacySignalApi](../-legacy-signal-api/index.md) = LegacySignalApiImpl()) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/calculate-bars.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/calculate-bars.md new file mode 100644 index 00000000..ab5b58bd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/calculate-bars.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalDelegate](index.md)/[calculateBars](calculate-bars.md) + +# calculateBars + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/compare-signal-level.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/compare-signal-level.md new file mode 100644 index 00000000..258385aa --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/compare-signal-level.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalDelegate](index.md)/[compareSignalLevel](compare-signal-level.md) + +# compareSignalLevel + +[androidJvm]\ +open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/impl.md new file mode 100644 index 00000000..9e72affd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacySignalApi](../-legacy-signal-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/index.md new file mode 100644 index 00000000..f76bceba --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal.delegates](../index.md)/[LegacySignalDelegate](index.md) + +# LegacySignalDelegate + +[androidJvm]\ +internal class [LegacySignalDelegate](index.md)(**impl**: [LegacySignalApi](../-legacy-signal-api/index.md)) : [SignalApi](../../com.isupatches.android.wisefy.signal/-signal-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [calculateBars](calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](compare-signal-level.md) | [androidJvm]
open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacySignalApi](../-legacy-signal-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/index.md new file mode 100644 index 00000000..9a3eb92c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal.delegates/index.md @@ -0,0 +1,14 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.signal.delegates](index.md) + +# Package com.isupatches.android.wisefy.signal.delegates + +## Types + +| Name | Summary | +|---|---| +| [Android30SignalApi](-android30-signal-api/index.md) | [androidJvm]
internal interface [Android30SignalApi](-android30-signal-api/index.md) | +| [Android30SignalApiImpl](-android30-signal-api-impl/index.md) | [androidJvm]
internal class [Android30SignalApiImpl](-android30-signal-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android30SignalApi](-android30-signal-api/index.md) | +| [Android30SignalDelegate](-android30-signal-delegate/index.md) | [androidJvm]
internal class [Android30SignalDelegate](-android30-signal-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android30SignalApi](-android30-signal-api/index.md)) : [SignalApi](../com.isupatches.android.wisefy.signal/-signal-api/index.md) | +| [LegacySignalApi](-legacy-signal-api/index.md) | [androidJvm]
internal interface [LegacySignalApi](-legacy-signal-api/index.md) | +| [LegacySignalApiImpl](-legacy-signal-api-impl/index.md) | [androidJvm]
internal class [LegacySignalApiImpl](-legacy-signal-api-impl/index.md) : [LegacySignalApi](-legacy-signal-api/index.md) | +| [LegacySignalDelegate](-legacy-signal-delegate/index.md) | [androidJvm]
internal class [LegacySignalDelegate](-legacy-signal-delegate/index.md)(**impl**: [LegacySignalApi](-legacy-signal-api/index.md)) : [SignalApi](../com.isupatches.android.wisefy.signal/-signal-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..b2782283 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.signal](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/calculate-bars.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/calculate-bars.md new file mode 100644 index 00000000..ba486343 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/calculate-bars.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal](../index.md)/[SignalApi](index.md)/[calculateBars](calculate-bars.md) + +# calculateBars + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +abstract fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +~~abstract~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/compare-signal-level.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/compare-signal-level.md new file mode 100644 index 00000000..875a093d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/compare-signal-level.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal](../index.md)/[SignalApi](index.md)/[compareSignalLevel](compare-signal-level.md) + +# compareSignalLevel + +[androidJvm]\ +abstract fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/index.md new file mode 100644 index 00000000..6df1059a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-api/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal](../index.md)/[SignalApi](index.md) + +# SignalApi + +[androidJvm]\ +interface [SignalApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [calculateBars](calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
abstract fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~abstract~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](compare-signal-level.md) | [androidJvm]
abstract fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [SignalUtil](../-signal-util/index.md) | +| [Android30SignalDelegate](../../com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/index.md) | +| [LegacySignalDelegate](../../com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-util/index.md new file mode 100644 index 00000000..20ce14c2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-signal-util/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal](../index.md)/[SignalUtil](index.md) + +# SignalUtil + +[androidJvm]\ +internal interface [SignalUtil](index.md) : [SignalApi](../-signal-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [calculateBars](../-signal-api/calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
abstract fun [calculateBars](../-signal-api/calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~abstract~~ ~~fun~~ [~~calculateBars~~](../-signal-api/calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](../-signal-api/compare-signal-level.md) | [androidJvm]
abstract fun [compareSignalLevel](../-signal-api/compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefySignalUtil](../-wisefy-signal-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/-wisefy-signal-util.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/-wisefy-signal-util.md new file mode 100644 index 00000000..42b89465 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/-wisefy-signal-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal](../index.md)/[WisefySignalUtil](index.md)/[WisefySignalUtil](-wisefy-signal-util.md) + +# WisefySignalUtil + +[androidJvm]\ +fun [WisefySignalUtil](-wisefy-signal-util.md)(logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, sdkUtil: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/calculate-bars.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/calculate-bars.md new file mode 100644 index 00000000..56cc5412 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/calculate-bars.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal](../index.md)/[WisefySignalUtil](index.md)/[calculateBars](calculate-bars.md) + +# calculateBars + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/compare-signal-level.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/compare-signal-level.md new file mode 100644 index 00000000..7681d373 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/compare-signal-level.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal](../index.md)/[WisefySignalUtil](index.md)/[compareSignalLevel](compare-signal-level.md) + +# compareSignalLevel + +[androidJvm]\ +open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/delegate.md new file mode 100644 index 00000000..a0faaf48 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal](../index.md)/[WisefySignalUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [SignalApi](../-signal-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/index.md new file mode 100644 index 00000000..e2773163 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/index.md @@ -0,0 +1,22 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.signal](../index.md)/[WisefySignalUtil](index.md) + +# WisefySignalUtil + +[androidJvm]\ +internal class [WisefySignalUtil](index.md)(**logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [SignalUtil](../-signal-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [calculateBars](calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~open~~ ~~override~~ ~~fun~~ [~~calculateBars~~](calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](compare-signal-level.md) | [androidJvm]
open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [SignalApi](../-signal-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.signal/index.md b/documentation/wisefy/com.isupatches.android.wisefy.signal/index.md new file mode 100644 index 00000000..0fcb009c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.signal/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.signal](index.md) + +# Package com.isupatches.android.wisefy.signal + +## Types + +| Name | Summary | +|---|---| +| [SignalApi](-signal-api/index.md) | [androidJvm]
interface [SignalApi](-signal-api/index.md) | +| [SignalUtil](-signal-util/index.md) | [androidJvm]
internal interface [SignalUtil](-signal-util/index.md) : [SignalApi](-signal-api/index.md) | +| [WisefySignalUtil](-wisefy-signal-util/index.md) | [androidJvm]
internal class [WisefySignalUtil](-wisefy-signal-util/index.md)(**logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [SignalUtil](-signal-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/-coroutine-dispatcher-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/-coroutine-dispatcher-provider.md new file mode 100644 index 00000000..1611e40e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/-coroutine-dispatcher-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util.coroutines](../index.md)/[CoroutineDispatcherProvider](index.md)/[CoroutineDispatcherProvider](-coroutine-dispatcher-provider.md) + +# CoroutineDispatcherProvider + +[androidJvm]\ +fun [CoroutineDispatcherProvider](-coroutine-dispatcher-provider.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md new file mode 100644 index 00000000..c77f50d8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md @@ -0,0 +1,21 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util.coroutines](../index.md)/[CoroutineDispatcherProvider](index.md) + +# CoroutineDispatcherProvider + +[androidJvm]\ +internal class [CoroutineDispatcherProvider](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [io](io.md) | [androidJvm]
val [io](io.md): CoroutineDispatcher | +| [main](main.md) | [androidJvm]
val [main](main.md): CoroutineDispatcher | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/io.md b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/io.md new file mode 100644 index 00000000..51c6746f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/io.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util.coroutines](../index.md)/[CoroutineDispatcherProvider](index.md)/[io](io.md) + +# io + +[androidJvm]\ +val [io](io.md): CoroutineDispatcher diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/main.md b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/main.md new file mode 100644 index 00000000..158e7036 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/main.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util.coroutines](../index.md)/[CoroutineDispatcherProvider](index.md)/[main](main.md) + +# main + +[androidJvm]\ +val [main](main.md): CoroutineDispatcher diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/create-base-coroutine-exception-handler.md b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/create-base-coroutine-exception-handler.md new file mode 100644 index 00000000..8546ba13 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/create-base-coroutine-exception-handler.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util.coroutines](index.md)/[createBaseCoroutineExceptionHandler](create-base-coroutine-exception-handler.md) + +# createBaseCoroutineExceptionHandler + +[androidJvm]\ +internal fun [createBaseCoroutineExceptionHandler](create-base-coroutine-exception-handler.md)(callbacks: [BaseWisefyCallbacks](../com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/index.md)?): CoroutineExceptionHandler diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/index.md b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/index.md new file mode 100644 index 00000000..e206b418 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.coroutines/index.md @@ -0,0 +1,15 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util.coroutines](index.md) + +# Package com.isupatches.android.wisefy.util.coroutines + +## Types + +| Name | Summary | +|---|---| +| [CoroutineDispatcherProvider](-coroutine-dispatcher-provider/index.md) | [androidJvm]
internal class [CoroutineDispatcherProvider](-coroutine-dispatcher-provider/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [createBaseCoroutineExceptionHandler](create-base-coroutine-exception-handler.md) | [androidJvm]
internal fun [createBaseCoroutineExceptionHandler](create-base-coroutine-exception-handler.md)(callbacks: [BaseWisefyCallbacks](../com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/index.md)?): CoroutineExceptionHandler | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/convert-s-s-i-d-for-config.md b/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/convert-s-s-i-d-for-config.md new file mode 100644 index 00000000..c51d0769 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/convert-s-s-i-d-for-config.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util.legacy](index.md)/[convertSSIDForConfig](convert-s-s-i-d-for-config.md) + +# convertSSIDForConfig + +[androidJvm]\ +private fun [convertSSIDForConfig](convert-s-s-i-d-for-config.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/generate-open-network-configuration.md b/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/generate-open-network-configuration.md new file mode 100644 index 00000000..23a4c2a7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/generate-open-network-configuration.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util.legacy](index.md)/[generateOpenNetworkConfiguration](generate-open-network-configuration.md) + +# generateOpenNetworkConfiguration + +[androidJvm]\ +internal fun [generateOpenNetworkConfiguration](generate-open-network-configuration.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/generate-w-p-a2-network-configuration.md b/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/generate-w-p-a2-network-configuration.md new file mode 100644 index 00000000..b289625a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/generate-w-p-a2-network-configuration.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util.legacy](index.md)/[generateWPA2NetworkConfiguration](generate-w-p-a2-network-configuration.md) + +# generateWPA2NetworkConfiguration + +[androidJvm]\ +internal fun [generateWPA2NetworkConfiguration](generate-w-p-a2-network-configuration.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), password: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/index.md b/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/index.md new file mode 100644 index 00000000..5867374e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util.legacy/index.md @@ -0,0 +1,11 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util.legacy](index.md) + +# Package com.isupatches.android.wisefy.util.legacy + +## Functions + +| Name | Summary | +|---|---| +| [convertSSIDForConfig](convert-s-s-i-d-for-config.md) | [androidJvm]
private fun [convertSSIDForConfig](convert-s-s-i-d-for-config.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [generateOpenNetworkConfiguration](generate-open-network-configuration.md) | [androidJvm]
internal fun [generateOpenNetworkConfiguration](generate-open-network-configuration.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html) | +| [generateWPA2NetworkConfiguration](generate-w-p-a2-network-configuration.md) | [androidJvm]
internal fun [generateWPA2NetworkConfiguration](generate-w-p-a2-network-configuration.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), password: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiConfiguration](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-b-a-s-e_-d-e-l-a-y.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-b-a-s-e_-d-e-l-a-y.md new file mode 100644 index 00000000..e905e332 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-b-a-s-e_-d-e-l-a-y.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util](index.md)/[BASE_DELAY](-b-a-s-e_-d-e-l-a-y.md) + +# BASE_DELAY + +[androidJvm]\ +private const val [BASE_DELAY](-b-a-s-e_-d-e-l-a-y.md): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) = 1000L diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/-sdk-util-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/-sdk-util-impl.md new file mode 100644 index 00000000..fb8958b1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/-sdk-util-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util](../index.md)/[SdkUtilImpl](index.md)/[SdkUtilImpl](-sdk-util-impl.md) + +# SdkUtilImpl + +[androidJvm]\ +fun [SdkUtilImpl](-sdk-util-impl.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/index.md new file mode 100644 index 00000000..93f4299e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/index.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util](../index.md)/[SdkUtilImpl](index.md) + +# SdkUtilImpl + +[androidJvm]\ +internal class [SdkUtilImpl](index.md) : [SdkUtil](../-sdk-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isAtLeastP](is-at-least-p.md) | [androidJvm]
open override fun [isAtLeastP](is-at-least-p.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isAtLeastQ](is-at-least-q.md) | [androidJvm]
open override fun [isAtLeastQ](is-at-least-q.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isAtLeastR](is-at-least-r.md) | [androidJvm]
open override fun [isAtLeastR](is-at-least-r.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-p.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-p.md new file mode 100644 index 00000000..6c67bb04 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util](../index.md)/[SdkUtilImpl](index.md)/[isAtLeastP](is-at-least-p.md) + +# isAtLeastP + +[androidJvm]\ +open override fun [isAtLeastP](is-at-least-p.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-q.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-q.md new file mode 100644 index 00000000..c23772aa --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-q.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util](../index.md)/[SdkUtilImpl](index.md)/[isAtLeastQ](is-at-least-q.md) + +# isAtLeastQ + +[androidJvm]\ +open override fun [isAtLeastQ](is-at-least-q.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-r.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-r.md new file mode 100644 index 00000000..12491bb3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-r.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util](../index.md)/[SdkUtilImpl](index.md)/[isAtLeastR](is-at-least-r.md) + +# isAtLeastR + +[androidJvm]\ +open override fun [isAtLeastR](is-at-least-r.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/index.md new file mode 100644 index 00000000..4037c24b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util](../index.md)/[SdkUtil](index.md) + +# SdkUtil + +[androidJvm]\ +internal interface [SdkUtil](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isAtLeastP](is-at-least-p.md) | [androidJvm]
abstract fun [isAtLeastP](is-at-least-p.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isAtLeastQ](is-at-least-q.md) | [androidJvm]
abstract fun [isAtLeastQ](is-at-least-q.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isAtLeastR](is-at-least-r.md) | [androidJvm]
abstract fun [isAtLeastR](is-at-least-r.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [SdkUtilImpl](../-sdk-util-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-p.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-p.md new file mode 100644 index 00000000..63a51ad5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util](../index.md)/[SdkUtil](index.md)/[isAtLeastP](is-at-least-p.md) + +# isAtLeastP + +[androidJvm]\ +abstract fun [isAtLeastP](is-at-least-p.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-q.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-q.md new file mode 100644 index 00000000..4601cba4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-q.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util](../index.md)/[SdkUtil](index.md)/[isAtLeastQ](is-at-least-q.md) + +# isAtLeastQ + +[androidJvm]\ +abstract fun [isAtLeastQ](is-at-least-q.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-r.md b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-r.md new file mode 100644 index 00000000..0e18e6f9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-r.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.util](../index.md)/[SdkUtil](index.md)/[isAtLeastR](is-at-least-r.md) + +# isAtLeastR + +[androidJvm]\ +abstract fun [isAtLeastR](is-at-least-r.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/create-open-network-suggestion.md b/documentation/wisefy/com.isupatches.android.wisefy.util/create-open-network-suggestion.md new file mode 100644 index 00000000..ace12508 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/create-open-network-suggestion.md @@ -0,0 +1,9 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util](index.md)/[createOpenNetworkSuggestion](create-open-network-suggestion.md) + +# createOpenNetworkSuggestion + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +internal fun [createOpenNetworkSuggestion](create-open-network-suggestion.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/create-w-p-a2-network-suggestion.md b/documentation/wisefy/com.isupatches.android.wisefy.util/create-w-p-a2-network-suggestion.md new file mode 100644 index 00000000..7f89d6fd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/create-w-p-a2-network-suggestion.md @@ -0,0 +1,9 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util](index.md)/[createWPA2NetworkSuggestion](create-w-p-a2-network-suggestion.md) + +# createWPA2NetworkSuggestion + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +internal fun [createWPA2NetworkSuggestion](create-w-p-a2-network-suggestion.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/create-w-p-a3-network-suggestion.md b/documentation/wisefy/com.isupatches.android.wisefy.util/create-w-p-a3-network-suggestion.md new file mode 100644 index 00000000..d130170c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/create-w-p-a3-network-suggestion.md @@ -0,0 +1,9 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util](index.md)/[createWPA3NetworkSuggestion](create-w-p-a3-network-suggestion.md) + +# createWPA3NetworkSuggestion + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +internal fun [createWPA3NetworkSuggestion](create-w-p-a3-network-suggestion.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/fail.md b/documentation/wisefy/com.isupatches.android.wisefy.util/fail.md new file mode 100644 index 00000000..5cbe6bf7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/fail.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util](index.md)/[fail](fail.md) + +# fail + +[androidJvm]\ +fun [fail](fail.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.util/index.md new file mode 100644 index 00000000..ffd1b82d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/index.md @@ -0,0 +1,27 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util](index.md) + +# Package com.isupatches.android.wisefy.util + +## Types + +| Name | Summary | +|---|---| +| [SdkUtil](-sdk-util/index.md) | [androidJvm]
internal interface [SdkUtil](-sdk-util/index.md) | +| [SdkUtilImpl](-sdk-util-impl/index.md) | [androidJvm]
internal class [SdkUtilImpl](-sdk-util-impl/index.md) : [SdkUtil](-sdk-util/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [createOpenNetworkSuggestion](create-open-network-suggestion.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
internal fun [createOpenNetworkSuggestion](create-open-network-suggestion.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) | +| [createWPA2NetworkSuggestion](create-w-p-a2-network-suggestion.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
internal fun [createWPA2NetworkSuggestion](create-w-p-a2-network-suggestion.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) | +| [createWPA3NetworkSuggestion](create-w-p-a3-network-suggestion.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
internal fun [createWPA3NetworkSuggestion](create-w-p-a3-network-suggestion.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), passphrase: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [WifiNetworkSuggestion](https://developer.android.com/reference/kotlin/android/net/wifi/WifiNetworkSuggestion.html) | +| [fail](fail.md) | [androidJvm]
fun [fail](fail.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) | +| [rest](rest.md) | [androidJvm]
internal fun [rest](rest.md)() | +| [sleep](sleep.md) | [androidJvm]
private fun [sleep](sleep.md)(timeToSleepInMillis: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) = BASE_DELAY) | + +## Properties + +| Name | Summary | +|---|---| +| [BASE_DELAY](-b-a-s-e_-d-e-l-a-y.md) | [androidJvm]
private const val [BASE_DELAY](-b-a-s-e_-d-e-l-a-y.md): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) = 1000L | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/rest.md b/documentation/wisefy/com.isupatches.android.wisefy.util/rest.md new file mode 100644 index 00000000..f1c907c5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/rest.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util](index.md)/[rest](rest.md) + +# rest + +[androidJvm]\ +internal fun [rest](rest.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy.util/sleep.md b/documentation/wisefy/com.isupatches.android.wisefy.util/sleep.md new file mode 100644 index 00000000..78abc9b0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.util/sleep.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.util](index.md)/[sleep](sleep.md) + +# sleep + +[androidJvm]\ +private fun [sleep](sleep.md)(timeToSleepInMillis: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) = BASE_DELAY) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/-android29-wifi-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/-android29-wifi-api-impl.md new file mode 100644 index 00000000..b4463fb5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/-android29-wifi-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApiImpl](index.md)/[Android29WifiApiImpl](-android29-wifi-api-impl.md) + +# Android29WifiApiImpl + +[androidJvm]\ +fun [Android29WifiApiImpl](-android29-wifi-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/disable-wifi.md new file mode 100644 index 00000000..28c35d34 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/disable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApiImpl](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +open override fun [disableWifi](disable-wifi.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/enable-wifi.md new file mode 100644 index 00000000..420e8b94 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/enable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApiImpl](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +open override fun [enableWifi](enable-wifi.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/index.md new file mode 100644 index 00000000..ccbda53c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApiImpl](index.md) + +# Android29WifiApiImpl + +[androidJvm]\ +internal class [Android29WifiApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android29WifiApi](../-android29-wifi-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](disable-wifi.md) | [androidJvm]
open override fun [disableWifi](disable-wifi.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [enableWifi](enable-wifi.md) | [androidJvm]
open override fun [enableWifi](enable-wifi.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isWifiEnabled](is-wifi-enabled.md) | [androidJvm]
open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/is-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/is-wifi-enabled.md new file mode 100644 index 00000000..a19d0ccd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/is-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApiImpl](index.md)/[isWifiEnabled](is-wifi-enabled.md) + +# isWifiEnabled + +[androidJvm]\ +open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/wifi-manager.md new file mode 100644 index 00000000..df64422e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/disable-wifi.md new file mode 100644 index 00000000..7b89c1a7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/disable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApi](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +abstract fun [disableWifi](disable-wifi.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/enable-wifi.md new file mode 100644 index 00000000..b6400772 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/enable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApi](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +abstract fun [enableWifi](enable-wifi.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/index.md new file mode 100644 index 00000000..b938b612 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApi](index.md) + +# Android29WifiApi + +[androidJvm]\ +internal interface [Android29WifiApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](disable-wifi.md) | [androidJvm]
abstract fun [disableWifi](disable-wifi.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [enableWifi](enable-wifi.md) | [androidJvm]
abstract fun [enableWifi](enable-wifi.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isWifiEnabled](is-wifi-enabled.md) | [androidJvm]
abstract fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [Android29WifiApiImpl](../-android29-wifi-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/is-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/is-wifi-enabled.md new file mode 100644 index 00000000..d759036b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/is-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiApi](index.md)/[isWifiEnabled](is-wifi-enabled.md) + +# isWifiEnabled + +[androidJvm]\ +abstract fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/-android29-wifi-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/-android29-wifi-delegate.md new file mode 100644 index 00000000..6a7ca8be --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/-android29-wifi-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiDelegate](index.md)/[Android29WifiDelegate](-android29-wifi-delegate.md) + +# Android29WifiDelegate + +[androidJvm]\ +fun [Android29WifiDelegate](-android29-wifi-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), impl: [Android29WifiApi](../-android29-wifi-api/index.md) = Android29WifiApiImpl(wifiManager)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/disable-wifi.md new file mode 100644 index 00000000..a56f37fb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/disable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiDelegate](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/enable-wifi.md new file mode 100644 index 00000000..a9f6eb14 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/enable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiDelegate](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/impl.md new file mode 100644 index 00000000..651dba13 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [Android29WifiApi](../-android29-wifi-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/index.md new file mode 100644 index 00000000..a34238da --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiDelegate](index.md) + +# Android29WifiDelegate + +[androidJvm]\ +internal class [Android29WifiDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android29WifiApi](../-android29-wifi-api/index.md)) : [WifiApi](../../com.isupatches.android.wisefy.wifi/-wifi-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](disable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [enableWifi](enable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isWifiEnabled](is-wifi-enabled.md) | [androidJvm]
open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [Android29WifiApi](../-android29-wifi-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/is-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/is-wifi-enabled.md new file mode 100644 index 00000000..3be76440 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/is-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[Android29WifiDelegate](index.md)/[isWifiEnabled](is-wifi-enabled.md) + +# isWifiEnabled + +[androidJvm]\ +open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/-legacy-wifi-api-impl.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/-legacy-wifi-api-impl.md new file mode 100644 index 00000000..fe554553 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/-legacy-wifi-api-impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApiImpl](index.md)/[LegacyWifiApiImpl](-legacy-wifi-api-impl.md) + +# LegacyWifiApiImpl + +[androidJvm]\ +fun [LegacyWifiApiImpl](-legacy-wifi-api-impl.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/disable-wifi.md new file mode 100644 index 00000000..05a7fa0c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/disable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApiImpl](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/enable-wifi.md new file mode 100644 index 00000000..7e08e4a7 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/enable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApiImpl](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/index.md new file mode 100644 index 00000000..69863957 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApiImpl](index.md) + +# LegacyWifiApiImpl + +[androidJvm]\ +internal class [LegacyWifiApiImpl](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [LegacyWifiApi](../-legacy-wifi-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](disable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [enableWifi](enable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isWifiEnabled](is-wifi-enabled.md) | [androidJvm]
open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [wifiManager](wifi-manager.md) | [androidJvm]
private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/is-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/is-wifi-enabled.md new file mode 100644 index 00000000..93964e98 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/is-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApiImpl](index.md)/[isWifiEnabled](is-wifi-enabled.md) + +# isWifiEnabled + +[androidJvm]\ +open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/wifi-manager.md new file mode 100644 index 00000000..0561e8d4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApiImpl](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private val [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/disable-wifi.md new file mode 100644 index 00000000..98c2ab3f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/disable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApi](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +~~abstract~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/enable-wifi.md new file mode 100644 index 00000000..45a5a3f8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/enable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApi](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +~~abstract~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/index.md new file mode 100644 index 00000000..b03a788f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApi](index.md) + +# LegacyWifiApi + +[androidJvm]\ +internal interface [LegacyWifiApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](disable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [enableWifi](enable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isWifiEnabled](is-wifi-enabled.md) | [androidJvm]
abstract fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [LegacyWifiApiImpl](../-legacy-wifi-api-impl/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/is-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/is-wifi-enabled.md new file mode 100644 index 00000000..c812178c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/is-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiApi](index.md)/[isWifiEnabled](is-wifi-enabled.md) + +# isWifiEnabled + +[androidJvm]\ +abstract fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/-legacy-wifi-delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/-legacy-wifi-delegate.md new file mode 100644 index 00000000..c4a69faa --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/-legacy-wifi-delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiDelegate](index.md)/[LegacyWifiDelegate](-legacy-wifi-delegate.md) + +# LegacyWifiDelegate + +[androidJvm]\ +fun [LegacyWifiDelegate](-legacy-wifi-delegate.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), impl: [LegacyWifiApi](../-legacy-wifi-api/index.md) = LegacyWifiApiImpl(wifiManager)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/disable-wifi.md new file mode 100644 index 00000000..85c17f78 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/disable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiDelegate](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/enable-wifi.md new file mode 100644 index 00000000..92acc809 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/enable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiDelegate](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/impl.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/impl.md new file mode 100644 index 00000000..aff9eed0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/impl.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiDelegate](index.md)/[impl](impl.md) + +# impl + +[androidJvm]\ +private val [impl](impl.md): [LegacyWifiApi](../-legacy-wifi-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md new file mode 100644 index 00000000..a940cc0e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiDelegate](index.md) + +# LegacyWifiDelegate + +[androidJvm]\ +internal class [LegacyWifiDelegate](index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [LegacyWifiApi](../-legacy-wifi-api/index.md)) : [WifiApi](../../com.isupatches.android.wisefy.wifi/-wifi-api/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](disable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [enableWifi](enable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isWifiEnabled](is-wifi-enabled.md) | [androidJvm]
open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [impl](impl.md) | [androidJvm]
private val [impl](impl.md): [LegacyWifiApi](../-legacy-wifi-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/is-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/is-wifi-enabled.md new file mode 100644 index 00000000..b00f857d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/is-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](../index.md)/[LegacyWifiDelegate](index.md)/[isWifiEnabled](is-wifi-enabled.md) + +# isWifiEnabled + +[androidJvm]\ +open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/index.md new file mode 100644 index 00000000..17421e1c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi.delegates/index.md @@ -0,0 +1,14 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.wifi.delegates](index.md) + +# Package com.isupatches.android.wisefy.wifi.delegates + +## Types + +| Name | Summary | +|---|---| +| [Android29WifiApi](-android29-wifi-api/index.md) | [androidJvm]
internal interface [Android29WifiApi](-android29-wifi-api/index.md) | +| [Android29WifiApiImpl](-android29-wifi-api-impl/index.md) | [androidJvm]
internal class [Android29WifiApiImpl](-android29-wifi-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [Android29WifiApi](-android29-wifi-api/index.md) | +| [Android29WifiDelegate](-android29-wifi-delegate/index.md) | [androidJvm]
internal class [Android29WifiDelegate](-android29-wifi-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [Android29WifiApi](-android29-wifi-api/index.md)) : [WifiApi](../com.isupatches.android.wisefy.wifi/-wifi-api/index.md) | +| [LegacyWifiApi](-legacy-wifi-api/index.md) | [androidJvm]
internal interface [LegacyWifiApi](-legacy-wifi-api/index.md) | +| [LegacyWifiApiImpl](-legacy-wifi-api-impl/index.md) | [androidJvm]
internal class [LegacyWifiApiImpl](-legacy-wifi-api-impl/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [LegacyWifiApi](-legacy-wifi-api/index.md) | +| [LegacyWifiDelegate](-legacy-wifi-delegate/index.md) | [androidJvm]
internal class [LegacyWifiDelegate](-legacy-wifi-delegate/index.md)(**wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html), **impl**: [LegacyWifiApi](-legacy-wifi-api/index.md)) : [WifiApi](../com.isupatches.android.wisefy.wifi/-wifi-api/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-l-o-g_-t-a-g.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-l-o-g_-t-a-g.md new file mode 100644 index 00000000..42bd29c3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-l-o-g_-t-a-g.md @@ -0,0 +1,6 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.wifi](index.md)/[LOG_TAG](-l-o-g_-t-a-g.md) + +# LOG_TAG + +[androidJvm]\ +private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/disable-wifi.md new file mode 100644 index 00000000..0050feb9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/disable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WifiApiAsync](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +~~abstract~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~callbacks~~~~:~~ [DisableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md)?~~)~~ diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/enable-wifi.md new file mode 100644 index 00000000..4b4ac629 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/enable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WifiApiAsync](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +~~abstract~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~callbacks~~~~:~~ [EnableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md)?~~)~~ diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/index.md new file mode 100644 index 00000000..e1ba0c4c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WifiApiAsync](index.md) + +# WifiApiAsync + +[androidJvm]\ +interface [WifiApiAsync](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](disable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~callbacks~~~~:~~ [DisableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md)?~~)~~ | +| [enableWifi](enable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~callbacks~~~~:~~ [EnableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md)?~~)~~ | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [WifiUtil](../-wifi-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/disable-wifi.md new file mode 100644 index 00000000..bb9290d5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/disable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WifiApi](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +~~abstract~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/enable-wifi.md new file mode 100644 index 00000000..86502bb0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/enable-wifi.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WifiApi](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +~~abstract~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/index.md new file mode 100644 index 00000000..9439b28e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/index.md @@ -0,0 +1,26 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WifiApi](index.md) + +# WifiApi + +[androidJvm]\ +interface [WifiApi](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](disable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [enableWifi](enable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isWifiEnabled](is-wifi-enabled.md) | [androidJvm]
abstract fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyApi](../../com.isupatches.android.wisefy/-wisefy-api/index.md) | +| [WifiUtil](../-wifi-util/index.md) | +| [Android29WifiDelegate](../../com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/index.md) | +| [LegacyWifiDelegate](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/is-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/is-wifi-enabled.md new file mode 100644 index 00000000..bdfe011d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/is-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WifiApi](index.md)/[isWifiEnabled](is-wifi-enabled.md) + +# isWifiEnabled + +[androidJvm]\ +abstract fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-util/index.md new file mode 100644 index 00000000..7fc79d6d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wifi-util/index.md @@ -0,0 +1,23 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WifiUtil](index.md) + +# WifiUtil + +[androidJvm]\ +internal interface [WifiUtil](index.md) : [WifiApi](../-wifi-api/index.md), [WifiApiAsync](../-wifi-api-async/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](../-wifi-api/disable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~disableWifi~~](../-wifi-api/disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
~~abstract~~ ~~fun~~ [~~disableWifi~~](../-wifi-api-async/disable-wifi.md)~~(~~~~callbacks~~~~:~~ [DisableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md)?~~)~~ | +| [enableWifi](../-wifi-api/enable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~enableWifi~~](../-wifi-api/enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
~~abstract~~ ~~fun~~ [~~enableWifi~~](../-wifi-api-async/enable-wifi.md)~~(~~~~callbacks~~~~:~~ [EnableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md)?~~)~~ | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isWifiEnabled](../-wifi-api/is-wifi-enabled.md) | [androidJvm]
abstract fun [isWifiEnabled](../-wifi-api/is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [WisefyWifiUtil](../-wisefy-wifi-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/-wisefy-wifi-util.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/-wisefy-wifi-util.md new file mode 100644 index 00000000..37acfc09 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/-wisefy-wifi-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WisefyWifiUtil](index.md)/[WisefyWifiUtil](-wisefy-wifi-util.md) + +# WisefyWifiUtil + +[androidJvm]\ +fun [WisefyWifiUtil](-wisefy-wifi-util.md)(coroutineDispatcherProvider: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), logger: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, sdkUtil: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/coroutine-dispatcher-provider.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/coroutine-dispatcher-provider.md new file mode 100644 index 00000000..14b6522d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/coroutine-dispatcher-provider.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WisefyWifiUtil](index.md)/[coroutineDispatcherProvider](coroutine-dispatcher-provider.md) + +# coroutineDispatcherProvider + +[androidJvm]\ +private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/delegate.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/delegate.md new file mode 100644 index 00000000..082d0ea2 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/delegate.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WisefyWifiUtil](index.md)/[delegate](delegate.md) + +# delegate + +[androidJvm]\ +private val [delegate](delegate.md): [WifiApi](../-wifi-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/disable-wifi.md new file mode 100644 index 00000000..7e7663db --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/disable-wifi.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WisefyWifiUtil](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~callbacks~~~~:~~ [DisableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md)?~~)~~ diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/enable-wifi.md new file mode 100644 index 00000000..c899f03b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/enable-wifi.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WisefyWifiUtil](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~callbacks~~~~:~~ [EnableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md)?~~)~~ diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/index.md new file mode 100644 index 00000000..954c44f0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/index.md @@ -0,0 +1,25 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WisefyWifiUtil](index.md) + +# WisefyWifiUtil + +[androidJvm]\ +internal class [WisefyWifiUtil](index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [WifiUtil](../-wifi-util/index.md) + +## Functions + +| Name | Summary | +|---|---| +| [disableWifi](disable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~callbacks~~~~:~~ [DisableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md)?~~)~~ | +| [enableWifi](enable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~callbacks~~~~:~~ [EnableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md)?~~)~~ | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isWifiEnabled](is-wifi-enabled.md) | [androidJvm]
open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [coroutineDispatcherProvider](coroutine-dispatcher-provider.md) | [androidJvm]
private val [coroutineDispatcherProvider](coroutine-dispatcher-provider.md): [CoroutineDispatcherProvider](../../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md) | +| [delegate](delegate.md) | [androidJvm]
private val [delegate](delegate.md): [WifiApi](../-wifi-api/index.md) | +| [wifiScope](wifi-scope.md) | [androidJvm]
private val [wifiScope](wifi-scope.md): CoroutineScope | diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/is-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/is-wifi-enabled.md new file mode 100644 index 00000000..07148b2b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/is-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WisefyWifiUtil](index.md)/[isWifiEnabled](is-wifi-enabled.md) + +# isWifiEnabled + +[androidJvm]\ +open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/wifi-scope.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/wifi-scope.md new file mode 100644 index 00000000..9e07c257 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/wifi-scope.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy.wifi](../index.md)/[WisefyWifiUtil](index.md)/[wifiScope](wifi-scope.md) + +# wifiScope + +[androidJvm]\ +private val [wifiScope](wifi-scope.md): CoroutineScope diff --git a/documentation/wisefy/com.isupatches.android.wisefy.wifi/index.md b/documentation/wisefy/com.isupatches.android.wisefy.wifi/index.md new file mode 100644 index 00000000..685107ee --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy.wifi/index.md @@ -0,0 +1,18 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy.wifi](index.md) + +# Package com.isupatches.android.wisefy.wifi + +## Types + +| Name | Summary | +|---|---| +| [WifiApi](-wifi-api/index.md) | [androidJvm]
interface [WifiApi](-wifi-api/index.md) | +| [WifiApiAsync](-wifi-api-async/index.md) | [androidJvm]
interface [WifiApiAsync](-wifi-api-async/index.md) | +| [WifiUtil](-wifi-util/index.md) | [androidJvm]
internal interface [WifiUtil](-wifi-util/index.md) : [WifiApi](-wifi-api/index.md), [WifiApiAsync](-wifi-api-async/index.md) | +| [WisefyWifiUtil](-wisefy-wifi-util/index.md) | [androidJvm]
internal class [WisefyWifiUtil](-wisefy-wifi-util/index.md)(**coroutineDispatcherProvider**: [CoroutineDispatcherProvider](../com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md), **logger**: [WisefyLogger](../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?, **sdkUtil**: [SdkUtil](../com.isupatches.android.wisefy.util/-sdk-util/index.md), **wifiManager**: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)) : [WifiUtil](-wifi-util/index.md) | + +## Properties + +| Name | Summary | +|---|---| +| [LOG_TAG](-l-o-g_-t-a-g.md) | [androidJvm]
private const val [LOG_TAG](-l-o-g_-t-a-g.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy-api/index.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy-api/index.md new file mode 100644 index 00000000..0cbbd0f0 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy-api/index.md @@ -0,0 +1,96 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[WisefyApi](index.md) + +# WisefyApi + +[androidJvm]\ +interface [WisefyApi](index.md) : [AccessPointsApi](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md), [AccessPointsApiAsync](../../com.isupatches.android.wisefy.accesspoints/-access-points-api-async/index.md), [AddNetworkApi](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md), [AddNetworkApiAsync](../../com.isupatches.android.wisefy.addnetwork/-add-network-api-async/index.md), [FrequencyApi](../../com.isupatches.android.wisefy.frequency/-frequency-api/index.md), [FrequencyApiAsync](../../com.isupatches.android.wisefy.frequency/-frequency-api-async/index.md), [NetworkConnectionApi](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md), [NetworkConnectionApiAsync](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/index.md), [NetworkConnectionStatusApi](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md), [NetworkInfoApi](../../com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md), [NetworkInfoApiAsync](../../com.isupatches.android.wisefy.networkinfo/-network-info-api-async/index.md), [RemoveNetworkApi](../../com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md), [RemoveNetworkApiAsync](../../com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/index.md), [SavedNetworkApi](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md), [SavedNetworkApiAsync](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/index.md), [SecurityApi](../../com.isupatches.android.wisefy.security/-security-api/index.md), [SignalApi](../../com.isupatches.android.wisefy.signal/-signal-api/index.md), [WifiApi](../../com.isupatches.android.wisefy.wifi/-wifi-api/index.md), [WifiApiAsync](../../com.isupatches.android.wisefy.wifi/-wifi-api-async/index.md) + +The culmination of APIs that create WiseFy's public interface. + +#### Author + +Patches Klinefelter + +#### Since + +07/2021 + +## See also + +androidJvm + +| | | +|---|---| +| [com.isupatches.android.wisefy.accesspoints.AccessPointsApi](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md) | | +| [com.isupatches.android.wisefy.accesspoints.AccessPointsApiAsync](../../com.isupatches.android.wisefy.accesspoints/-access-points-api-async/index.md) | | +| [com.isupatches.android.wisefy.addnetwork.AddNetworkApi](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md) | | +| [com.isupatches.android.wisefy.addnetwork.AddNetworkApiAsync](../../com.isupatches.android.wisefy.addnetwork/-add-network-api-async/index.md) | | +| [com.isupatches.android.wisefy.frequency.FrequencyApi](../../com.isupatches.android.wisefy.frequency/-frequency-api/index.md) | | +| [com.isupatches.android.wisefy.frequency.FrequencyApiAsync](../../com.isupatches.android.wisefy.frequency/-frequency-api-async/index.md) | | +| [com.isupatches.android.wisefy.networkconnection.NetworkConnectionApi](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md) | | +| [com.isupatches.android.wisefy.networkconnection.NetworkConnectionApiAsync](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/index.md) | | +| [com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusApi](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md) | | +| [com.isupatches.android.wisefy.networkinfo.NetworkInfoApi](../../com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md) | | +| [com.isupatches.android.wisefy.networkinfo.NetworkInfoApiAsync](../../com.isupatches.android.wisefy.networkinfo/-network-info-api-async/index.md) | | +| [com.isupatches.android.wisefy.removenetwork.RemoveNetworkApi](../../com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md) | | +| [com.isupatches.android.wisefy.removenetwork.RemoveNetworkApiAsync](../../com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/index.md) | | +| [com.isupatches.android.wisefy.savednetworks.SavedNetworkApi](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md) | | +| [com.isupatches.android.wisefy.savednetworks.SavedNetworkApiAsync](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/index.md) | | +| [com.isupatches.android.wisefy.security.SecurityApi](../../com.isupatches.android.wisefy.security/-security-api/index.md) | | +| [com.isupatches.android.wisefy.signal.SignalApi](../../com.isupatches.android.wisefy.signal/-signal-api/index.md) | | +| [com.isupatches.android.wisefy.wifi.WifiApi](../../com.isupatches.android.wisefy.wifi/-wifi-api/index.md) | | +| [com.isupatches.android.wisefy.wifi.WifiApiAsync](../../com.isupatches.android.wisefy.wifi/-wifi-api-async/index.md) | | + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addOpenNetwork](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addOpenNetwork](../../com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA2Network](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA2Network](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA2Network](../../com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA3Network](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a3-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA3Network](../../com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [addWPA3Network](../../com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [attachNetworkWatcher](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/attach-network-watcher.md) | [androidJvm]
abstract fun [attachNetworkWatcher](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/attach-network-watcher.md)() | +| [calculateBars](../../com.isupatches.android.wisefy.signal/-signal-api/calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
abstract fun [calculateBars](../../com.isupatches.android.wisefy.signal/-signal-api/calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
~~abstract~~ ~~fun~~ [~~calculateBars~~](../../com.isupatches.android.wisefy.signal/-signal-api/calculate-bars.md)~~(~~~~rssiLevel~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~,~~ ~~targetNumberOfBars~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)~~)~~~~:~~ [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](../../com.isupatches.android.wisefy.signal/-signal-api/compare-signal-level.md) | [androidJvm]
abstract fun [compareSignalLevel](../../com.isupatches.android.wisefy.signal/-signal-api/compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [connectToNetwork](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api/connect-to-network.md) | [androidJvm]
abstract fun [connectToNetwork](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api/connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md)
abstract fun [connectToNetwork](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [ConnectToNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md)?) | +| [detachNetworkWatcher](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/detach-network-watcher.md) | [androidJvm]
abstract fun [detachNetworkWatcher](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/detach-network-watcher.md)() | +| [disableWifi](../../com.isupatches.android.wisefy.wifi/-wifi-api/disable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~disableWifi~~](../../com.isupatches.android.wisefy.wifi/-wifi-api/disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
~~abstract~~ ~~fun~~ [~~disableWifi~~](../../com.isupatches.android.wisefy.wifi/-wifi-api-async/disable-wifi.md)~~(~~~~callbacks~~~~:~~ [DisableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md)?~~)~~ | +| [disconnectFromCurrentNetwork](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api/disconnect-from-current-network.md) | [androidJvm]
abstract fun [disconnectFromCurrentNetwork](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api/disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md)
abstract fun [disconnectFromCurrentNetwork](../../com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/disconnect-from-current-network.md)(callbacks: [DisconnectFromCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md)?) | +| [enableWifi](../../com.isupatches.android.wisefy.wifi/-wifi-api/enable-wifi.md) | [androidJvm]
~~abstract~~ ~~fun~~ [~~enableWifi~~](../../com.isupatches.android.wisefy.wifi/-wifi-api/enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
~~abstract~~ ~~fun~~ [~~enableWifi~~](../../com.isupatches.android.wisefy.wifi/-wifi-api-async/enable-wifi.md)~~(~~~~callbacks~~~~:~~ [EnableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md)?~~)~~ | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getCurrentNetwork](../../com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network.md) | [androidJvm]
abstract fun [getCurrentNetwork](../../com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)?
abstract fun [getCurrentNetwork](../../com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network.md)(callbacks: [GetCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md)?) | +| [getCurrentNetworkInfo](../../com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network-info.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [getCurrentNetworkInfo](../../com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)? = null): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
abstract fun [getCurrentNetworkInfo](../../com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network-info.md)(callbacks: [GetCurrentNetworkInfoCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md)?, network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)? = null) | +| [getFrequency](../../com.isupatches.android.wisefy.frequency/-frequency-api/get-frequency.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](../../com.isupatches.android.wisefy.frequency/-frequency-api/get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](../../com.isupatches.android.wisefy.frequency/-frequency-api/get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [getFrequency](../../com.isupatches.android.wisefy.frequency/-frequency-api-async/get-frequency.md)(callbacks: [GetFrequencyCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md)?) | +| [getIP](../../com.isupatches.android.wisefy.networkinfo/-network-info-api/get-i-p.md) | [androidJvm]
abstract fun [getIP](../../com.isupatches.android.wisefy.networkinfo/-network-info-api/get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
abstract fun [getIP](../../com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-i-p.md)(callbacks: [GetIPCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md)?) | +| [getNearbyAccessPoints](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/get-nearby-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getNearbyAccessPoints](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getNearbyAccessPoints](../../com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [GetNearbyAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md)?) | +| [getRSSI](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/get-r-s-s-i.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getRSSI](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [getRSSI](../../com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [GetRSSICallbacks](../../com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md)?) | +| [getSavedNetworks](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [getSavedNetworks](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [getSavedNetworks](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/get-saved-networks.md)(callbacks: [GetSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isDeviceConnectedToMobileNetwork](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToMobileNetwork](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToMobileOrWifiNetwork](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToMobileOrWifiNetwork](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToSSID](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-s-s-i-d.md) | [androidJvm]
abstract fun [isDeviceConnectedToSSID](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToWifiNetwork](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-wifi-network.md) | [androidJvm]
abstract fun [isDeviceConnectedToWifiNetwork](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceRoaming](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-roaming.md) | [androidJvm]
abstract fun [isDeviceRoaming](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetwork5gHz](../../com.isupatches.android.wisefy.frequency/-frequency-api/is-network5g-hz.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [isNetwork5gHz](../../com.isupatches.android.wisefy.frequency/-frequency-api/is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
abstract fun [isNetwork5gHz](../../com.isupatches.android.wisefy.frequency/-frequency-api/is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkEAP](../../com.isupatches.android.wisefy.security/-security-api/is-network-e-a-p.md) | [androidJvm]
abstract fun [isNetworkEAP](../../com.isupatches.android.wisefy.security/-security-api/is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkPSK](../../com.isupatches.android.wisefy.security/-security-api/is-network-p-s-k.md) | [androidJvm]
abstract fun [isNetworkPSK](../../com.isupatches.android.wisefy.security/-security-api/is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSaved](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [isNetworkSaved](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSecure](../../com.isupatches.android.wisefy.security/-security-api/is-network-secure.md) | [androidJvm]
abstract fun [isNetworkSecure](../../com.isupatches.android.wisefy.security/-security-api/is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWEP](../../com.isupatches.android.wisefy.security/-security-api/is-network-w-e-p.md) | [androidJvm]
abstract fun [isNetworkWEP](../../com.isupatches.android.wisefy.security/-security-api/is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA](../../com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a.md) | [androidJvm]
abstract fun [isNetworkWPA](../../com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA2](../../com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a2.md) | [androidJvm]
abstract fun [isNetworkWPA2](../../com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA3](../../com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a3.md) | [androidJvm]
abstract fun [isNetworkWPA3](../../com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isWifiEnabled](../../com.isupatches.android.wisefy.wifi/-wifi-api/is-wifi-enabled.md) | [androidJvm]
abstract fun [isWifiEnabled](../../com.isupatches.android.wisefy.wifi/-wifi-api/is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [removeNetwork](../../com.isupatches.android.wisefy.removenetwork/-remove-network-api/remove-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [removeNetwork](../../com.isupatches.android.wisefy.removenetwork/-remove-network-api/remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
abstract fun [removeNetwork](../../com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [RemoveNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md)?) | +| [searchForAccessPoint](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-point.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoint](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoint](../../com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md)?) | +| [searchForAccessPoints](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoints](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForAccessPoints](../../com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md)?) | +| [searchForSavedNetwork](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetwork](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetwork](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md)?) | +| [searchForSavedNetworks](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetworks](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
abstract fun [searchForSavedNetworks](../../com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md)?) | +| [searchForSSID](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-d.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSID](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSID](../../com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [SearchForSSIDCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md)?) | +| [searchForSSIDs](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-ds.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSIDs](../../com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
abstract fun [searchForSSIDs](../../com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSSIDsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Inheritors + +| Name | +|---| +| [Wisefy](../-wisefy/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/-brains.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/-brains.md new file mode 100644 index 00000000..f434bc60 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/-brains.md @@ -0,0 +1,9 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[Brains](-brains.md) + +# Brains + +[androidJvm]\ + +@[JvmOverloads](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-overloads/index.html)() + +fun [Brains](-brains.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), logger: [WisefyLogger](../../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? = null) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/access-points-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/access-points-util.md new file mode 100644 index 00000000..907ec913 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/access-points-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[accessPointsUtil](access-points-util.md) + +# accessPointsUtil + +[androidJvm]\ +private var [accessPointsUtil](access-points-util.md): [AccessPointsUtil](../../../com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/add-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/add-network-util.md new file mode 100644 index 00000000..53358455 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/add-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[addNetworkUtil](add-network-util.md) + +# addNetworkUtil + +[androidJvm]\ +private var [addNetworkUtil](add-network-util.md): [AddNetworkUtil](../../../com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/connectivity-manager.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/connectivity-manager.md new file mode 100644 index 00000000..395e90dc --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/connectivity-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[connectivityManager](connectivity-manager.md) + +# connectivityManager + +[androidJvm]\ +private var [connectivityManager](connectivity-manager.md): [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-access-points-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-access-points-util.md new file mode 100644 index 00000000..f1cd2298 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-access-points-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customAccessPointsUtil](custom-access-points-util.md) + +# customAccessPointsUtil + +[androidJvm]\ +internal fun [customAccessPointsUtil](custom-access-points-util.md)(accessPointsUtil: [AccessPointsUtil](../../../com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-add-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-add-network-util.md new file mode 100644 index 00000000..85bc62fe --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-add-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customAddNetworkUtil](custom-add-network-util.md) + +# customAddNetworkUtil + +[androidJvm]\ +internal fun [customAddNetworkUtil](custom-add-network-util.md)(addNetworkUtil: [AddNetworkUtil](../../../com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-connectivity-manager.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-connectivity-manager.md new file mode 100644 index 00000000..dcd56651 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-connectivity-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customConnectivityManager](custom-connectivity-manager.md) + +# customConnectivityManager + +[androidJvm]\ +internal fun [customConnectivityManager](custom-connectivity-manager.md)(connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-frequency-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-frequency-util.md new file mode 100644 index 00000000..c7dc2b3f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-frequency-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customFrequencyUtil](custom-frequency-util.md) + +# customFrequencyUtil + +[androidJvm]\ +internal fun [customFrequencyUtil](custom-frequency-util.md)(frequencyUtil: [FrequencyUtil](../../../com.isupatches.android.wisefy.frequency/-frequency-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-status-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-status-util.md new file mode 100644 index 00000000..32105c35 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-status-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customNetworkConnectionStatusUtil](custom-network-connection-status-util.md) + +# customNetworkConnectionStatusUtil + +[androidJvm]\ +internal fun [customNetworkConnectionStatusUtil](custom-network-connection-status-util.md)(networkConnectionStatusUtil: [NetworkConnectionStatusUtil](../../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-util.md new file mode 100644 index 00000000..8fd53f22 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customNetworkConnectionUtil](custom-network-connection-util.md) + +# customNetworkConnectionUtil + +[androidJvm]\ +internal fun [customNetworkConnectionUtil](custom-network-connection-util.md)(networkConnectionUtil: [NetworkConnectionUtil](../../../com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-info-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-info-util.md new file mode 100644 index 00000000..7430a5b3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-info-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customNetworkInfoUtil](custom-network-info-util.md) + +# customNetworkInfoUtil + +[androidJvm]\ +internal fun [customNetworkInfoUtil](custom-network-info-util.md)(networkInfoUtil: [NetworkInfoUtil](../../../com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-remove-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-remove-network-util.md new file mode 100644 index 00000000..b4cb5e39 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-remove-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customRemoveNetworkUtil](custom-remove-network-util.md) + +# customRemoveNetworkUtil + +[androidJvm]\ +internal fun [customRemoveNetworkUtil](custom-remove-network-util.md)(removeNetworkUtil: [RemoveNetworkUtil](../../../com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-saved-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-saved-network-util.md new file mode 100644 index 00000000..625ad877 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-saved-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customSavedNetworkUtil](custom-saved-network-util.md) + +# customSavedNetworkUtil + +[androidJvm]\ +internal fun [customSavedNetworkUtil](custom-saved-network-util.md)(savedNetworkUtil: [SavedNetworkUtil](../../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-security-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-security-util.md new file mode 100644 index 00000000..4e5e3411 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-security-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customSecurityUtil](custom-security-util.md) + +# customSecurityUtil + +[androidJvm]\ +internal fun [customSecurityUtil](custom-security-util.md)(securityUtil: [SecurityUtil](../../../com.isupatches.android.wisefy.security/-security-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-signal-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-signal-util.md new file mode 100644 index 00000000..7ada9385 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-signal-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customSignalUtil](custom-signal-util.md) + +# customSignalUtil + +[androidJvm]\ +internal fun [customSignalUtil](custom-signal-util.md)(signalUtil: [SignalUtil](../../../com.isupatches.android.wisefy.signal/-signal-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-manager.md new file mode 100644 index 00000000..cc45ea10 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customWifiManager](custom-wifi-manager.md) + +# customWifiManager + +[androidJvm]\ +internal fun [customWifiManager](custom-wifi-manager.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-util.md new file mode 100644 index 00000000..4a9e5196 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[customWifiUtil](custom-wifi-util.md) + +# customWifiUtil + +[androidJvm]\ +internal fun [customWifiUtil](custom-wifi-util.md)(wifiUtil: [WifiUtil](../../../com.isupatches.android.wisefy.wifi/-wifi-util/index.md)): [Wisefy.Brains](index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/frequency-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/frequency-util.md new file mode 100644 index 00000000..d5665309 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/frequency-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[frequencyUtil](frequency-util.md) + +# frequencyUtil + +[androidJvm]\ +private var [frequencyUtil](frequency-util.md): [FrequencyUtil](../../../com.isupatches.android.wisefy.frequency/-frequency-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/get-smarts.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/get-smarts.md new file mode 100644 index 00000000..debed38f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/get-smarts.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[getSmarts](get-smarts.md) + +# getSmarts + +[androidJvm]\ +fun [getSmarts](get-smarts.md)(): [WisefyApi](../../-wisefy-api/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/index.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/index.md new file mode 100644 index 00000000..ea830e59 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/index.md @@ -0,0 +1,48 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md) + +# Brains + +[androidJvm]\ +class [Brains](index.md)@[JvmOverloads](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-overloads/index.html)()constructor(**context**: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), **logger**: [WisefyLogger](../../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) + +## Functions + +| Name | Summary | +|---|---| +| [customAccessPointsUtil](custom-access-points-util.md) | [androidJvm]
internal fun [customAccessPointsUtil](custom-access-points-util.md)(accessPointsUtil: [AccessPointsUtil](../../../com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md)): [Wisefy.Brains](index.md) | +| [customAddNetworkUtil](custom-add-network-util.md) | [androidJvm]
internal fun [customAddNetworkUtil](custom-add-network-util.md)(addNetworkUtil: [AddNetworkUtil](../../../com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md)): [Wisefy.Brains](index.md) | +| [customConnectivityManager](custom-connectivity-manager.md) | [androidJvm]
internal fun [customConnectivityManager](custom-connectivity-manager.md)(connectivityManager: [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html)): [Wisefy.Brains](index.md) | +| [customFrequencyUtil](custom-frequency-util.md) | [androidJvm]
internal fun [customFrequencyUtil](custom-frequency-util.md)(frequencyUtil: [FrequencyUtil](../../../com.isupatches.android.wisefy.frequency/-frequency-util/index.md)): [Wisefy.Brains](index.md) | +| [customNetworkConnectionStatusUtil](custom-network-connection-status-util.md) | [androidJvm]
internal fun [customNetworkConnectionStatusUtil](custom-network-connection-status-util.md)(networkConnectionStatusUtil: [NetworkConnectionStatusUtil](../../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md)): [Wisefy.Brains](index.md) | +| [customNetworkConnectionUtil](custom-network-connection-util.md) | [androidJvm]
internal fun [customNetworkConnectionUtil](custom-network-connection-util.md)(networkConnectionUtil: [NetworkConnectionUtil](../../../com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md)): [Wisefy.Brains](index.md) | +| [customNetworkInfoUtil](custom-network-info-util.md) | [androidJvm]
internal fun [customNetworkInfoUtil](custom-network-info-util.md)(networkInfoUtil: [NetworkInfoUtil](../../../com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md)): [Wisefy.Brains](index.md) | +| [customRemoveNetworkUtil](custom-remove-network-util.md) | [androidJvm]
internal fun [customRemoveNetworkUtil](custom-remove-network-util.md)(removeNetworkUtil: [RemoveNetworkUtil](../../../com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md)): [Wisefy.Brains](index.md) | +| [customSavedNetworkUtil](custom-saved-network-util.md) | [androidJvm]
internal fun [customSavedNetworkUtil](custom-saved-network-util.md)(savedNetworkUtil: [SavedNetworkUtil](../../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md)): [Wisefy.Brains](index.md) | +| [customSecurityUtil](custom-security-util.md) | [androidJvm]
internal fun [customSecurityUtil](custom-security-util.md)(securityUtil: [SecurityUtil](../../../com.isupatches.android.wisefy.security/-security-util/index.md)): [Wisefy.Brains](index.md) | +| [customSignalUtil](custom-signal-util.md) | [androidJvm]
internal fun [customSignalUtil](custom-signal-util.md)(signalUtil: [SignalUtil](../../../com.isupatches.android.wisefy.signal/-signal-util/index.md)): [Wisefy.Brains](index.md) | +| [customWifiManager](custom-wifi-manager.md) | [androidJvm]
internal fun [customWifiManager](custom-wifi-manager.md)(wifiManager: [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html)): [Wisefy.Brains](index.md) | +| [customWifiUtil](custom-wifi-util.md) | [androidJvm]
internal fun [customWifiUtil](custom-wifi-util.md)(wifiUtil: [WifiUtil](../../../com.isupatches.android.wisefy.wifi/-wifi-util/index.md)): [Wisefy.Brains](index.md) | +| [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getSmarts](get-smarts.md) | [androidJvm]
fun [getSmarts](get-smarts.md)(): [WisefyApi](../../-wisefy-api/index.md) | +| [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [logger](logger.md) | [androidJvm]
internal fun [logger](logger.md)(logger: [WisefyLogger](../../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)): [Wisefy.Brains](index.md) | +| [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [accessPointsUtil](access-points-util.md) | [androidJvm]
private var [accessPointsUtil](access-points-util.md): [AccessPointsUtil](../../../com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md) | +| [addNetworkUtil](add-network-util.md) | [androidJvm]
private var [addNetworkUtil](add-network-util.md): [AddNetworkUtil](../../../com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md) | +| [connectivityManager](connectivity-manager.md) | [androidJvm]
private var [connectivityManager](connectivity-manager.md): [ConnectivityManager](https://developer.android.com/reference/kotlin/android/net/ConnectivityManager.html) | +| [frequencyUtil](frequency-util.md) | [androidJvm]
private var [frequencyUtil](frequency-util.md): [FrequencyUtil](../../../com.isupatches.android.wisefy.frequency/-frequency-util/index.md) | +| [logger](logger.md) | [androidJvm]
private var [logger](logger.md): [WisefyLogger](../../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? = null | +| [networkConnectionStatusUtil](network-connection-status-util.md) | [androidJvm]
private var [networkConnectionStatusUtil](network-connection-status-util.md): [NetworkConnectionStatusUtil](../../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md) | +| [networkConnectionUtil](network-connection-util.md) | [androidJvm]
private var [networkConnectionUtil](network-connection-util.md): [NetworkConnectionUtil](../../../com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md) | +| [networkInfoUtil](network-info-util.md) | [androidJvm]
private var [networkInfoUtil](network-info-util.md): [NetworkInfoUtil](../../../com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md) | +| [removeNetworkUtil](remove-network-util.md) | [androidJvm]
private var [removeNetworkUtil](remove-network-util.md): [RemoveNetworkUtil](../../../com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md) | +| [savedNetworkUtil](saved-network-util.md) | [androidJvm]
private var [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) | +| [securityUtil](security-util.md) | [androidJvm]
private var [securityUtil](security-util.md): [SecurityUtil](../../../com.isupatches.android.wisefy.security/-security-util/index.md) | +| [signalUtil](signal-util.md) | [androidJvm]
private var [signalUtil](signal-util.md): [SignalUtil](../../../com.isupatches.android.wisefy.signal/-signal-util/index.md) | +| [wifiManager](wifi-manager.md) | [androidJvm]
private var [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) | +| [wifiUtil](wifi-util.md) | [androidJvm]
private var [wifiUtil](wifi-util.md): [WifiUtil](../../../com.isupatches.android.wisefy.wifi/-wifi-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/logger.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/logger.md new file mode 100644 index 00000000..7eb00da5 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/logger.md @@ -0,0 +1,8 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[logger](logger.md) + +# logger + +[androidJvm]\ +internal fun [logger](logger.md)(logger: [WisefyLogger](../../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)): [Wisefy.Brains](index.md) + +private var [logger](logger.md): [WisefyLogger](../../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)? = null diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-status-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-status-util.md new file mode 100644 index 00000000..a089967f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-status-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[networkConnectionStatusUtil](network-connection-status-util.md) + +# networkConnectionStatusUtil + +[androidJvm]\ +private var [networkConnectionStatusUtil](network-connection-status-util.md): [NetworkConnectionStatusUtil](../../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-util.md new file mode 100644 index 00000000..ac30d1c6 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[networkConnectionUtil](network-connection-util.md) + +# networkConnectionUtil + +[androidJvm]\ +private var [networkConnectionUtil](network-connection-util.md): [NetworkConnectionUtil](../../../com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-info-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-info-util.md new file mode 100644 index 00000000..c42d3288 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-info-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[networkInfoUtil](network-info-util.md) + +# networkInfoUtil + +[androidJvm]\ +private var [networkInfoUtil](network-info-util.md): [NetworkInfoUtil](../../../com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/remove-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/remove-network-util.md new file mode 100644 index 00000000..cd9d91e9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/remove-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[removeNetworkUtil](remove-network-util.md) + +# removeNetworkUtil + +[androidJvm]\ +private var [removeNetworkUtil](remove-network-util.md): [RemoveNetworkUtil](../../../com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/saved-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/saved-network-util.md new file mode 100644 index 00000000..edd056a3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/saved-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[savedNetworkUtil](saved-network-util.md) + +# savedNetworkUtil + +[androidJvm]\ +private var [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/security-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/security-util.md new file mode 100644 index 00000000..d467ab64 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/security-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[securityUtil](security-util.md) + +# securityUtil + +[androidJvm]\ +private var [securityUtil](security-util.md): [SecurityUtil](../../../com.isupatches.android.wisefy.security/-security-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/signal-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/signal-util.md new file mode 100644 index 00000000..1b4e9fcd --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/signal-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[signalUtil](signal-util.md) + +# signalUtil + +[androidJvm]\ +private var [signalUtil](signal-util.md): [SignalUtil](../../../com.isupatches.android.wisefy.signal/-signal-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-manager.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-manager.md new file mode 100644 index 00000000..80dd3e93 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-manager.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[wifiManager](wifi-manager.md) + +# wifiManager + +[androidJvm]\ +private var [wifiManager](wifi-manager.md): [WifiManager](https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-util.md new file mode 100644 index 00000000..08364f46 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[wifiUtil](wifi-util.md) + +# wifiUtil + +[androidJvm]\ +private var [wifiUtil](wifi-util.md): [WifiUtil](../../../com.isupatches.android.wisefy.wifi/-wifi-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-wisefy.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-wisefy.md new file mode 100644 index 00000000..a8ace802 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/-wisefy.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[Wisefy](-wisefy.md) + +# Wisefy + +[androidJvm]\ +private fun [Wisefy](-wisefy.md)(accessPointsUtil: [AccessPointsUtil](../../com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md), addNetworkUtil: [AddNetworkUtil](../../com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md), frequencyUtil: [FrequencyUtil](../../com.isupatches.android.wisefy.frequency/-frequency-util/index.md), networkConnectionUtil: [NetworkConnectionUtil](../../com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md), networkConnectionStatusUtil: [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), networkInfoUtil: [NetworkInfoUtil](../../com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md), removeNetworkUtil: [RemoveNetworkUtil](../../com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md), savedNetworkUtil: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), securityUtil: [SecurityUtil](../../com.isupatches.android.wisefy.security/-security-util/index.md), signalUtil: [SignalUtil](../../com.isupatches.android.wisefy.signal/-signal-util/index.md), wifiUtil: [WifiUtil](../../com.isupatches.android.wisefy.wifi/-wifi-util/index.md)) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/access-points-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/access-points-util.md new file mode 100644 index 00000000..cb0c97b4 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/access-points-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[accessPointsUtil](access-points-util.md) + +# accessPointsUtil + +[androidJvm]\ +private val [accessPointsUtil](access-points-util.md): [AccessPointsUtil](../../com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-network-util.md new file mode 100644 index 00000000..5911da51 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[addNetworkUtil](add-network-util.md) + +# addNetworkUtil + +[androidJvm]\ +private val [addNetworkUtil](add-network-util.md): [AddNetworkUtil](../../com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-open-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-open-network.md new file mode 100644 index 00000000..430e300a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-open-network.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[addOpenNetwork](add-open-network.md) + +# addOpenNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a2-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a2-network.md new file mode 100644 index 00000000..7102ed9f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a2-network.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[addWPA2Network](add-w-p-a2-network.md) + +# addWPA2Network + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a3-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a3-network.md new file mode 100644 index 00000000..fd507c01 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a3-network.md @@ -0,0 +1,17 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[addWPA3Network](add-w-p-a3-network.md) + +# addWPA3Network + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/attach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/attach-network-watcher.md new file mode 100644 index 00000000..ca240275 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/attach-network-watcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[attachNetworkWatcher](attach-network-watcher.md) + +# attachNetworkWatcher + +[androidJvm]\ +open override fun [attachNetworkWatcher](attach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/calculate-bars.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/calculate-bars.md new file mode 100644 index 00000000..1355b2b3 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/calculate-bars.md @@ -0,0 +1,10 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[calculateBars](calculate-bars.md) + +# calculateBars + +[androidJvm]\ +open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), targetNumberOfBars: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30) + +open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/compare-signal-level.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/compare-signal-level.md new file mode 100644 index 00000000..bd918619 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/compare-signal-level.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[compareSignalLevel](compare-signal-level.md) + +# compareSignalLevel + +[androidJvm]\ +open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/connect-to-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/connect-to-network.md new file mode 100644 index 00000000..dae2560d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/connect-to-network.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[connectToNetwork](connect-to-network.md) + +# connectToNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [ConnectToNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/detach-network-watcher.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/detach-network-watcher.md new file mode 100644 index 00000000..6daf5626 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/detach-network-watcher.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[detachNetworkWatcher](detach-network-watcher.md) + +# detachNetworkWatcher + +[androidJvm]\ +open override fun [detachNetworkWatcher](detach-network-watcher.md)() diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/disable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/disable-wifi.md new file mode 100644 index 00000000..f7274f91 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/disable-wifi.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[disableWifi](disable-wifi.md) + +# disableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~callbacks~~~~:~~ [DisableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md)?~~)~~ diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/disconnect-from-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/disconnect-from-current-network.md new file mode 100644 index 00000000..9cad2317 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/disconnect-from-current-network.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[disconnectFromCurrentNetwork](disconnect-from-current-network.md) + +# disconnectFromCurrentNetwork + +[androidJvm]\ +open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md) + +open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(callbacks: [DisconnectFromCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/enable-wifi.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/enable-wifi.md new file mode 100644 index 00000000..abc64f96 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/enable-wifi.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[enableWifi](enable-wifi.md) + +# enableWifi + +[androidJvm]\ +~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~callbacks~~~~:~~ [EnableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md)?~~)~~ diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/frequency-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/frequency-util.md new file mode 100644 index 00000000..bd6cf91e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/frequency-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[frequencyUtil](frequency-util.md) + +# frequencyUtil + +[androidJvm]\ +private val [frequencyUtil](frequency-util.md): [FrequencyUtil](../../com.isupatches.android.wisefy.frequency/-frequency-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network-info.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network-info.md new file mode 100644 index 00000000..97a11952 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network-info.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[getCurrentNetworkInfo](get-current-network-info.md) + +# getCurrentNetworkInfo + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE) + +open override fun [getCurrentNetworkInfo](get-current-network-info.md)(callbacks: [GetCurrentNetworkInfoCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md)?, network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network.md new file mode 100644 index 00000000..5daeee39 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[getCurrentNetwork](get-current-network.md) + +# getCurrentNetwork + +[androidJvm]\ +open override fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)? + +open override fun [getCurrentNetwork](get-current-network.md)(callbacks: [GetCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-frequency.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-frequency.md new file mode 100644 index 00000000..5ba42a5f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-frequency.md @@ -0,0 +1,21 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[getFrequency](get-frequency.md) + +# getFrequency + +[androidJvm]\ + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getFrequency](get-frequency.md)(callbacks: [GetFrequencyCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md)?) + +@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21) + +open override fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-i-p.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-i-p.md new file mode 100644 index 00000000..88fff62e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-i-p.md @@ -0,0 +1,8 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[getIP](get-i-p.md) + +# getIP + +[androidJvm]\ +open override fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? + +open override fun [getIP](get-i-p.md)(callbacks: [GetIPCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-nearby-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-nearby-access-points.md new file mode 100644 index 00000000..232cbfbb --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-nearby-access-points.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[getNearbyAccessPoints](get-nearby-access-points.md) + +# getNearbyAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [GetNearbyAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-r-s-s-i.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-r-s-s-i.md new file mode 100644 index 00000000..c42754c9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-r-s-s-i.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[getRSSI](get-r-s-s-i.md) + +# getRSSI + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [GetRSSICallbacks](../../com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-saved-networks.md new file mode 100644 index 00000000..3bd244e9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/get-saved-networks.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[getSavedNetworks](get-saved-networks.md) + +# getSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [getSavedNetworks](get-saved-networks.md)(callbacks: [GetSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/index.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/index.md new file mode 100644 index 00000000..43848961 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/index.md @@ -0,0 +1,76 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md) + +# Wisefy + +[androidJvm]\ +class [Wisefy](index.md)(**accessPointsUtil**: [AccessPointsUtil](../../com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md), **addNetworkUtil**: [AddNetworkUtil](../../com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md), **frequencyUtil**: [FrequencyUtil](../../com.isupatches.android.wisefy.frequency/-frequency-util/index.md), **networkConnectionUtil**: [NetworkConnectionUtil](../../com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md), **networkConnectionStatusUtil**: [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), **networkInfoUtil**: [NetworkInfoUtil](../../com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md), **removeNetworkUtil**: [RemoveNetworkUtil](../../com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md), **savedNetworkUtil**: [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **securityUtil**: [SecurityUtil](../../com.isupatches.android.wisefy.security/-security-util/index.md), **signalUtil**: [SignalUtil](../../com.isupatches.android.wisefy.signal/-signal-util/index.md), **wifiUtil**: [WifiUtil](../../com.isupatches.android.wisefy.wifi/-wifi-util/index.md)) : [WisefyApi](../-wisefy-api/index.md) + +## Types + +| Name | Summary | +|---|---| +| [Brains](-brains/index.md) | [androidJvm]
class [Brains](-brains/index.md)@[JvmOverloads](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-overloads/index.html)()constructor(**context**: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), **logger**: [WisefyLogger](../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)?) | + +## Functions + +| Name | Summary | +|---|---| +| [addOpenNetwork](add-open-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addOpenNetwork](add-open-network.md)(data: [OpenNetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA2Network](add-w-p-a2-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA2Network](add-w-p-a2-network.md)(data: [WPA2NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [addWPA3Network](add-w-p-a3-network.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md)): [AddNetworkResult](../../com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 29)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [addWPA3Network](add-w-p-a3-network.md)(data: [WPA3NetworkData](../../com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md), callbacks: [AddNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md)?) | +| [attachNetworkWatcher](attach-network-watcher.md) | [androidJvm]
open override fun [attachNetworkWatcher](attach-network-watcher.md)() | +| [calculateBars](calculate-bars.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 30)
open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
open override fun [calculateBars](calculate-bars.md)(rssiLevel: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), targetNumberOfBars: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [compareSignalLevel](compare-signal-level.md) | [androidJvm]
open override fun [compareSignalLevel](compare-signal-level.md)(rssi1: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), rssi2: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [connectToNetwork](connect-to-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [connectToNetwork](connect-to-network.md)(ssidToConnectTo: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [ConnectToNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md)?) | +| [detachNetworkWatcher](detach-network-watcher.md) | [androidJvm]
open override fun [detachNetworkWatcher](detach-network-watcher.md)() | +| [disableWifi](disable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
~~open~~ ~~override~~ ~~fun~~ [~~disableWifi~~](disable-wifi.md)~~(~~~~callbacks~~~~:~~ [DisableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md)?~~)~~ | +| [disconnectFromCurrentNetwork](disconnect-from-current-network.md) | [androidJvm]
open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(): [NetworkConnectionResult](../../com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md)
open override fun [disconnectFromCurrentNetwork](disconnect-from-current-network.md)(callbacks: [DisconnectFromCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md)?) | +| [enableWifi](enable-wifi.md) | [androidJvm]
~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~)~~~~:~~ [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
~~open~~ ~~override~~ ~~fun~~ [~~enableWifi~~](enable-wifi.md)~~(~~~~callbacks~~~~:~~ [EnableWifiCallbacks](../../com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md)?~~)~~ | +| [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596) | [androidJvm]
open operator fun [equals](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#585090901%2FFunctions%2F1622544596)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [getCurrentNetwork](get-current-network.md) | [androidJvm]
open override fun [getCurrentNetwork](get-current-network.md)(): [CurrentNetworkData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md)?
open override fun [getCurrentNetwork](get-current-network.md)(callbacks: [GetCurrentNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md)?) | +| [getCurrentNetworkInfo](get-current-network-info.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [getCurrentNetworkInfo](get-current-network-info.md)(network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?): [CurrentNetworkInfoData](../../com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_NETWORK_STATE)
open override fun [getCurrentNetworkInfo](get-current-network-info.md)(callbacks: [GetCurrentNetworkInfoCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md)?, network: [Network](https://developer.android.com/reference/kotlin/android/net/Network.html)?) | +| [getFrequency](get-frequency.md) | [androidJvm]
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getFrequency](get-frequency.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
open override fun [getFrequency](get-frequency.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
@[RequiresApi](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi.html)(value = 21)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getFrequency](get-frequency.md)(callbacks: [GetFrequencyCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md)?) | +| [getIP](get-i-p.md) | [androidJvm]
open override fun [getIP](get-i-p.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
open override fun [getIP](get-i-p.md)(callbacks: [GetIPCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md)?) | +| [getNearbyAccessPoints](get-nearby-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getNearbyAccessPoints](get-nearby-access-points.md)(filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [GetNearbyAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md)?) | +| [getRSSI](get-r-s-s-i.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [getRSSI](get-r-s-s-i.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), takeHighest: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [GetRSSICallbacks](../../com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md)?) | +| [getSavedNetworks](get-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [getSavedNetworks](get-saved-networks.md)(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [getSavedNetworks](get-saved-networks.md)(callbacks: [GetSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md)?) | +| [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596) | [androidJvm]
open fun [hashCode](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1794629105%2FFunctions%2F1622544596)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) | [androidJvm]
open override fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) | [androidJvm]
open override fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) | [androidJvm]
open override fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) | [androidJvm]
open override fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isDeviceRoaming](is-device-roaming.md) | [androidJvm]
open override fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetwork5gHz](is-network5g-hz.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
open override fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkEAP](is-network-e-a-p.md) | [androidJvm]
open override fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkPSK](is-network-p-s-k.md) | [androidJvm]
open override fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSaved](is-network-saved.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkSecure](is-network-secure.md) | [androidJvm]
open override fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWEP](is-network-w-e-p.md) | [androidJvm]
open override fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA](is-network-w-p-a.md) | [androidJvm]
open override fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA2](is-network-w-p-a2.md) | [androidJvm]
open override fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isNetworkWPA3](is-network-w-p-a3.md) | [androidJvm]
open override fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [isWifiEnabled](is-wifi-enabled.md) | [androidJvm]
open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [removeNetwork](remove-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md)
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE])
open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [RemoveNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md)?) | +| [searchForAccessPoint](search-for-access-point.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md)?) | +| [searchForAccessPoints](search-for-access-points.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md)?) | +| [searchForSavedNetwork](search-for-saved-network.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md)?) | +| [searchForSavedNetworks](search-for-saved-networks.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE])
open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md)?) | +| [searchForSSID](search-for-s-s-i-d.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [SearchForSSIDCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md)?) | +| [searchForSSIDs](search-for-s-s-i-ds.md) | [androidJvm]
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>
@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION)
open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSSIDsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md)?) | +| [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596) | [androidJvm]
open fun [toString](../../com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md#1616463040%2FFunctions%2F1622544596)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | + +## Properties + +| Name | Summary | +|---|---| +| [accessPointsUtil](access-points-util.md) | [androidJvm]
private val [accessPointsUtil](access-points-util.md): [AccessPointsUtil](../../com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md) | +| [addNetworkUtil](add-network-util.md) | [androidJvm]
private val [addNetworkUtil](add-network-util.md): [AddNetworkUtil](../../com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md) | +| [frequencyUtil](frequency-util.md) | [androidJvm]
private val [frequencyUtil](frequency-util.md): [FrequencyUtil](../../com.isupatches.android.wisefy.frequency/-frequency-util/index.md) | +| [networkConnectionStatusUtil](network-connection-status-util.md) | [androidJvm]
private val [networkConnectionStatusUtil](network-connection-status-util.md): [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md) | +| [networkConnectionUtil](network-connection-util.md) | [androidJvm]
private val [networkConnectionUtil](network-connection-util.md): [NetworkConnectionUtil](../../com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md) | +| [networkInfoUtil](network-info-util.md) | [androidJvm]
private val [networkInfoUtil](network-info-util.md): [NetworkInfoUtil](../../com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md) | +| [removeNetworkUtil](remove-network-util.md) | [androidJvm]
private val [removeNetworkUtil](remove-network-util.md): [RemoveNetworkUtil](../../com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md) | +| [savedNetworkUtil](saved-network-util.md) | [androidJvm]
private val [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) | +| [securityUtil](security-util.md) | [androidJvm]
private val [securityUtil](security-util.md): [SecurityUtil](../../com.isupatches.android.wisefy.security/-security-util/index.md) | +| [signalUtil](signal-util.md) | [androidJvm]
private val [signalUtil](signal-util.md): [SignalUtil](../../com.isupatches.android.wisefy.signal/-signal-util/index.md) | +| [wifiUtil](wifi-util.md) | [androidJvm]
private val [wifiUtil](wifi-util.md): [WifiUtil](../../com.isupatches.android.wisefy.wifi/-wifi-util/index.md) | diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-network.md new file mode 100644 index 00000000..73cb4af1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md) + +# isDeviceConnectedToMobileNetwork + +[androidJvm]\ +open override fun [isDeviceConnectedToMobileNetwork](is-device-connected-to-mobile-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-or-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-or-wifi-network.md new file mode 100644 index 00000000..f6fa370e --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-or-wifi-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md) + +# isDeviceConnectedToMobileOrWifiNetwork + +[androidJvm]\ +open override fun [isDeviceConnectedToMobileOrWifiNetwork](is-device-connected-to-mobile-or-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-s-s-i-d.md new file mode 100644 index 00000000..da744129 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-s-s-i-d.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md) + +# isDeviceConnectedToSSID + +[androidJvm]\ +open override fun [isDeviceConnectedToSSID](is-device-connected-to-s-s-i-d.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-wifi-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-wifi-network.md new file mode 100644 index 00000000..b36d29a9 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-wifi-network.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md) + +# isDeviceConnectedToWifiNetwork + +[androidJvm]\ +open override fun [isDeviceConnectedToWifiNetwork](is-device-connected-to-wifi-network.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-roaming.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-roaming.md new file mode 100644 index 00000000..f7084cde --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-roaming.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isDeviceRoaming](is-device-roaming.md) + +# isDeviceRoaming + +[androidJvm]\ +open override fun [isDeviceRoaming](is-device-roaming.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-e-a-p.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-e-a-p.md new file mode 100644 index 00000000..0c179e05 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-e-a-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isNetworkEAP](is-network-e-a-p.md) + +# isNetworkEAP + +[androidJvm]\ +open override fun [isNetworkEAP](is-network-e-a-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-p-s-k.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-p-s-k.md new file mode 100644 index 00000000..d1dd8e8b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-p-s-k.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isNetworkPSK](is-network-p-s-k.md) + +# isNetworkPSK + +[androidJvm]\ +open override fun [isNetworkPSK](is-network-p-s-k.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-saved.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-saved.md new file mode 100644 index 00000000..11722f2a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-saved.md @@ -0,0 +1,9 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isNetworkSaved](is-network-saved.md) + +# isNetworkSaved + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [isNetworkSaved](is-network-saved.md)(ssid: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-secure.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-secure.md new file mode 100644 index 00000000..48bbc506 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-secure.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isNetworkSecure](is-network-secure.md) + +# isNetworkSecure + +[androidJvm]\ +open override fun [isNetworkSecure](is-network-secure.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-e-p.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-e-p.md new file mode 100644 index 00000000..9aba2117 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-e-p.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isNetworkWEP](is-network-w-e-p.md) + +# isNetworkWEP + +[androidJvm]\ +open override fun [isNetworkWEP](is-network-w-e-p.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a.md new file mode 100644 index 00000000..72ca4078 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isNetworkWPA](is-network-w-p-a.md) + +# isNetworkWPA + +[androidJvm]\ +open override fun [isNetworkWPA](is-network-w-p-a.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a2.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a2.md new file mode 100644 index 00000000..5e033fd1 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a2.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isNetworkWPA2](is-network-w-p-a2.md) + +# isNetworkWPA2 + +[androidJvm]\ +open override fun [isNetworkWPA2](is-network-w-p-a2.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a3.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a3.md new file mode 100644 index 00000000..0f330368 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a3.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isNetworkWPA3](is-network-w-p-a3.md) + +# isNetworkWPA3 + +[androidJvm]\ +open override fun [isNetworkWPA3](is-network-w-p-a3.md)(scanResult: [ScanResult](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network5g-hz.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network5g-hz.md new file mode 100644 index 00000000..4a8a2168 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-network5g-hz.md @@ -0,0 +1,11 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isNetwork5gHz](is-network5g-hz.md) + +# isNetwork5gHz + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [isNetwork5gHz](is-network5g-hz.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +open override fun [isNetwork5gHz](is-network5g-hz.md)(network: [WifiInfo](https://developer.android.com/reference/kotlin/android/net/wifi/WifiInfo.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-wifi-enabled.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-wifi-enabled.md new file mode 100644 index 00000000..3a317112 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/is-wifi-enabled.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[isWifiEnabled](is-wifi-enabled.md) + +# isWifiEnabled + +[androidJvm]\ +open override fun [isWifiEnabled](is-wifi-enabled.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-status-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-status-util.md new file mode 100644 index 00000000..11c1de86 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-status-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[networkConnectionStatusUtil](network-connection-status-util.md) + +# networkConnectionStatusUtil + +[androidJvm]\ +private val [networkConnectionStatusUtil](network-connection-status-util.md): [NetworkConnectionStatusUtil](../../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-util.md new file mode 100644 index 00000000..943909b8 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[networkConnectionUtil](network-connection-util.md) + +# networkConnectionUtil + +[androidJvm]\ +private val [networkConnectionUtil](network-connection-util.md): [NetworkConnectionUtil](../../com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-info-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-info-util.md new file mode 100644 index 00000000..8bc6a802 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/network-info-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[networkInfoUtil](network-info-util.md) + +# networkInfoUtil + +[androidJvm]\ +private val [networkInfoUtil](network-info-util.md): [NetworkInfoUtil](../../com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network-util.md new file mode 100644 index 00000000..f0055022 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[removeNetworkUtil](remove-network-util.md) + +# removeNetworkUtil + +[androidJvm]\ +private val [removeNetworkUtil](remove-network-util.md): [RemoveNetworkUtil](../../com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network.md new file mode 100644 index 00000000..91bdf775 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[removeNetwork](remove-network.md) + +# removeNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RemoveNetworkResult](../../com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md) + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.CHANGE_WIFI_STATE]) + +open override fun [removeNetwork](remove-network.md)(ssidToRemove: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [RemoveNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/saved-network-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/saved-network-util.md new file mode 100644 index 00000000..f5ffda7f --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/saved-network-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[savedNetworkUtil](saved-network-util.md) + +# savedNetworkUtil + +[androidJvm]\ +private val [savedNetworkUtil](saved-network-util.md): [SavedNetworkUtil](../../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-point.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-point.md new file mode 100644 index 00000000..edf7b271 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-point.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[searchForAccessPoint](search-for-access-point.md) + +# searchForAccessPoint + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoint](search-for-access-point.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-points.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-points.md new file mode 100644 index 00000000..0af2cb6b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-points.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[searchForAccessPoints](search-for-access-points.md) + +# searchForAccessPoints + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[AccessPointData](../../com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForAccessPoints](search-for-access-points.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), filterDuplicates: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), callbacks: [SearchForAccessPointsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-d.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-d.md new file mode 100644 index 00000000..c82a5795 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-d.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[searchForSSID](search-for-s-s-i-d.md) + +# searchForSSID + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSID](search-for-s-s-i-d.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), timeoutInMillis: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbacks: [SearchForSSIDCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-ds.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-ds.md new file mode 100644 index 00000000..819d3b4c --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-ds.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[searchForSSIDs](search-for-s-s-i-ds.md) + +# searchForSSIDs + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(value = android.permission.ACCESS_FINE_LOCATION) + +open override fun [searchForSSIDs](search-for-s-s-i-ds.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSSIDsCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-network.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-network.md new file mode 100644 index 00000000..bb56563b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-network.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[searchForSavedNetwork](search-for-saved-network.md) + +# searchForSavedNetwork + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)? + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetwork](search-for-saved-network.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworkCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-networks.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-networks.md new file mode 100644 index 00000000..092eee13 --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-networks.md @@ -0,0 +1,13 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[searchForSavedNetworks](search-for-saved-networks.md) + +# searchForSavedNetworks + +[androidJvm]\ + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[SavedNetworkData](../../com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md)> + +@[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html)(allOf = [android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_WIFI_STATE]) + +open override fun [searchForSavedNetworks](search-for-saved-networks.md)(regexForSSID: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), callbacks: [SearchForSavedNetworksCallbacks](../../com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md)?) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/security-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/security-util.md new file mode 100644 index 00000000..e9180a1a --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/security-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[securityUtil](security-util.md) + +# securityUtil + +[androidJvm]\ +private val [securityUtil](security-util.md): [SecurityUtil](../../com.isupatches.android.wisefy.security/-security-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/signal-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/signal-util.md new file mode 100644 index 00000000..63e71f7b --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/signal-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[signalUtil](signal-util.md) + +# signalUtil + +[androidJvm]\ +private val [signalUtil](signal-util.md): [SignalUtil](../../com.isupatches.android.wisefy.signal/-signal-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/wifi-util.md b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/wifi-util.md new file mode 100644 index 00000000..09a05c3d --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/-wisefy/wifi-util.md @@ -0,0 +1,6 @@ +//[wisefy](../../../index.md)/[com.isupatches.android.wisefy](../index.md)/[Wisefy](index.md)/[wifiUtil](wifi-util.md) + +# wifiUtil + +[androidJvm]\ +private val [wifiUtil](wifi-util.md): [WifiUtil](../../com.isupatches.android.wisefy.wifi/-wifi-util/index.md) diff --git a/documentation/wisefy/com.isupatches.android.wisefy/index.md b/documentation/wisefy/com.isupatches.android.wisefy/index.md new file mode 100644 index 00000000..cea83cad --- /dev/null +++ b/documentation/wisefy/com.isupatches.android.wisefy/index.md @@ -0,0 +1,10 @@ +//[wisefy](../../index.md)/[com.isupatches.android.wisefy](index.md) + +# Package com.isupatches.android.wisefy + +## Types + +| Name | Summary | +|---|---| +| [Wisefy](-wisefy/index.md) | [androidJvm]
class [Wisefy](-wisefy/index.md)(**accessPointsUtil**: [AccessPointsUtil](../com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md), **addNetworkUtil**: [AddNetworkUtil](../com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md), **frequencyUtil**: [FrequencyUtil](../com.isupatches.android.wisefy.frequency/-frequency-util/index.md), **networkConnectionUtil**: [NetworkConnectionUtil](../com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md), **networkConnectionStatusUtil**: [NetworkConnectionStatusUtil](../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md), **networkInfoUtil**: [NetworkInfoUtil](../com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md), **removeNetworkUtil**: [RemoveNetworkUtil](../com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md), **savedNetworkUtil**: [SavedNetworkUtil](../com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md), **securityUtil**: [SecurityUtil](../com.isupatches.android.wisefy.security/-security-util/index.md), **signalUtil**: [SignalUtil](../com.isupatches.android.wisefy.signal/-signal-util/index.md), **wifiUtil**: [WifiUtil](../com.isupatches.android.wisefy.wifi/-wifi-util/index.md)) : [WisefyApi](-wisefy-api/index.md) | +| [WisefyApi](-wisefy-api/index.md) | [androidJvm]
interface [WisefyApi](-wisefy-api/index.md) : [AccessPointsApi](../com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md), [AccessPointsApiAsync](../com.isupatches.android.wisefy.accesspoints/-access-points-api-async/index.md), [AddNetworkApi](../com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md), [AddNetworkApiAsync](../com.isupatches.android.wisefy.addnetwork/-add-network-api-async/index.md), [FrequencyApi](../com.isupatches.android.wisefy.frequency/-frequency-api/index.md), [FrequencyApiAsync](../com.isupatches.android.wisefy.frequency/-frequency-api-async/index.md), [NetworkConnectionApi](../com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md), [NetworkConnectionApiAsync](../com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/index.md), [NetworkConnectionStatusApi](../com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md), [NetworkInfoApi](../com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md), [NetworkInfoApiAsync](../com.isupatches.android.wisefy.networkinfo/-network-info-api-async/index.md), [RemoveNetworkApi](../com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md), [RemoveNetworkApiAsync](../com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/index.md), [SavedNetworkApi](../com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md), [SavedNetworkApiAsync](../com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/index.md), [SecurityApi](../com.isupatches.android.wisefy.security/-security-api/index.md), [SignalApi](../com.isupatches.android.wisefy.signal/-signal-api/index.md), [WifiApi](../com.isupatches.android.wisefy.wifi/-wifi-api/index.md), [WifiApiAsync](../com.isupatches.android.wisefy.wifi/-wifi-api-async/index.md)
The culmination of APIs that create WiseFy's public interface. | diff --git a/documentation/wisefy/package-list b/documentation/wisefy/package-list new file mode 100644 index 00000000..9a0b8f5d --- /dev/null +++ b/documentation/wisefy/package-list @@ -0,0 +1,1027 @@ +$dokka.format:gfm-v1 +$dokka.linkExtension:md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApi/getNearbyAccessPoints/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApi/getRSSI/#kotlin.String#kotlin.Boolean#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/get-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApi/searchForAccessPoint/#kotlin.String#kotlin.Int#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-point.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApi/searchForAccessPoints/#kotlin.String#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApi/searchForSSID/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApi/searchForSSIDs/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api/search-for-s-s-i-ds.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/LegacyAccessPointsApiImpl/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.logging.WisefyLogger?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/-legacy-access-points-api-impl.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/accessPointMatchesRegex/#android.net.wifi.ScanResult?#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/access-point-matches-regex.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/getNearbyAccessPoints/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/getRSSI/#kotlin.String#kotlin.Boolean#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/get-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/hasHighestSignalStrength/#kotlin.collections.List[android.net.wifi.ScanResult]#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/has-highest-signal-strength.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/logger/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/logger.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/removeEntriesWithLowerSignalStrength/#kotlin.collections.List[android.net.wifi.ScanResult]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/remove-entries-with-lower-signal-strength.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/scanResultsProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/scan-results-provider.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/searchForAccessPoint/#kotlin.String#kotlin.Int#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-point.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/searchForAccessPoints/#kotlin.String#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/searchForSSID/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/searchForSSIDs/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/search-for-s-s-i-ds.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsDelegate/LegacyAccessPointsDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.accesspoints.delegates.LegacyAccessPointsApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/-legacy-access-points-delegate.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsDelegate/getNearbyAccessPoints/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsDelegate/getRSSI/#kotlin.String#kotlin.Boolean#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/get-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsDelegate/searchForAccessPoint/#kotlin.String#kotlin.Int#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-point.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsDelegate/searchForAccessPoints/#kotlin.String#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsDelegate/searchForSSID/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.delegates/LegacyAccessPointsDelegate/searchForSSIDs/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.delegates/-legacy-access-points-delegate/search-for-s-s-i-ds.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.entities////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.entities/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.entities/AccessPointData.ScanData///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.entities/AccessPointData.ScanData/ScanData/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/-scan-data.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.entities/AccessPointData.ScanData/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/component1.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.entities/AccessPointData.ScanData/copy/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/copy.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.entities/AccessPointData.ScanData/data/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-scan-data/data.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.entities/AccessPointData///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints.entities/AccessPointData/AccessPointData/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints.entities/-access-point-data/-access-point-data.md +$dokka.location:com.isupatches.android.wisefy.accesspoints////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApi/getNearbyAccessPoints/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApi/getRSSI/#kotlin.String#kotlin.Boolean#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/get-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApi/searchForAccessPoint/#kotlin.String#kotlin.Int#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-point.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApi/searchForAccessPoints/#kotlin.String#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApi/searchForSSID/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApi/searchForSSIDs/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api/search-for-s-s-i-ds.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApiAsync///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApiAsync/getNearbyAccessPoints/#kotlin.Boolean#com.isupatches.android.wisefy.callbacks.GetNearbyAccessPointCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApiAsync/getRSSI/#kotlin.String#kotlin.Boolean#kotlin.Int#com.isupatches.android.wisefy.callbacks.GetRSSICallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/get-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApiAsync/searchForAccessPoint/#kotlin.String#kotlin.Int#kotlin.Boolean#com.isupatches.android.wisefy.callbacks.SearchForAccessPointCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-point.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApiAsync/searchForAccessPoints/#kotlin.String#kotlin.Boolean#com.isupatches.android.wisefy.callbacks.SearchForAccessPointsCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApiAsync/searchForSSID/#kotlin.String#kotlin.Int#com.isupatches.android.wisefy.callbacks.SearchForSSIDCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsApiAsync/searchForSSIDs/#kotlin.String#com.isupatches.android.wisefy.callbacks.SearchForSSIDsCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-api-async/search-for-s-s-i-ds.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/AccessPointsUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-access-points-util/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/index.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/WisefyAccessPointsUtil/#com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider#com.isupatches.android.wisefy.logging.WisefyLogger?#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/-wisefy-access-points-util.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/accessPointScope/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/access-point-scope.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/coroutineDispatcherProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/coroutine-dispatcher-provider.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/getNearbyAccessPoints/#kotlin.Boolean#com.isupatches.android.wisefy.callbacks.GetNearbyAccessPointCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/getNearbyAccessPoints/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/getRSSI/#kotlin.String#kotlin.Boolean#kotlin.Int#com.isupatches.android.wisefy.callbacks.GetRSSICallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/getRSSI/#kotlin.String#kotlin.Boolean#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/get-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/searchForAccessPoint/#kotlin.String#kotlin.Int#kotlin.Boolean#com.isupatches.android.wisefy.callbacks.SearchForAccessPointCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-point.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/searchForAccessPoint/#kotlin.String#kotlin.Int#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-point.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/searchForAccessPoints/#kotlin.String#kotlin.Boolean#com.isupatches.android.wisefy.callbacks.SearchForAccessPointsCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/searchForAccessPoints/#kotlin.String#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-access-points.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/searchForSSID/#kotlin.String#kotlin.Int#com.isupatches.android.wisefy.callbacks.SearchForSSIDCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/searchForSSID/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/searchForSSIDs/#kotlin.String#com.isupatches.android.wisefy.callbacks.SearchForSSIDsCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-ds.md +$dokka.location:com.isupatches.android.wisefy.accesspoints/WisefyAccessPointsUtil/searchForSSIDs/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.accesspoints/-wisefy-access-points-util/search-for-s-s-i-ds.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates//ANDROID_Q_SAVE_NETWORK_WARNING/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApi/addOpenNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApi/addWPA2Network/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApi/addWPA3Network/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApiImpl/Android29AddNetworkApiImpl/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.logging.WisefyLogger?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/-android29-add-network-api-impl.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApiImpl/addOpenNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApiImpl/addWPA2Network/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApiImpl/addWPA3Network/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApiImpl/logger/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/logger.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkDelegate/Android29AddNetworkDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.addnetwork.delegates.Android29AddNetworkApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/-android29-add-network-delegate.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkDelegate/addOpenNetwork/#com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkDelegate/addWPA2Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkDelegate/addWPA3Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android29AddNetworkDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android29-add-network-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApi/addOpenNetwork/#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApi/addWPA2Network/#kotlin.String#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApi/addWPA3Network/#kotlin.String#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApiImpl/Android30AddNetworkApiImpl/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/-android30-add-network-api-impl.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApiImpl/addOpenNetwork/#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApiImpl/addWPA2Network/#kotlin.String#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApiImpl/addWPA3Network/#kotlin.String#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApiImpl/launchIntent/#android.net.wifi.WifiNetworkSuggestion#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/launch-intent.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkDelegate/Android30AddNetworkDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.addnetwork.delegates.Android30AddNetworkApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/-android30-add-network-delegate.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkDelegate/addOpenNetwork/#com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkDelegate/addWPA2Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkDelegate/addWPA3Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/Android30AddNetworkDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-android30-add-network-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkApi/addOpenNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkApi/addWPA2Network/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkApiImpl/LegacyAddNetworkApiImpl/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/-legacy-add-network-api-impl.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkApiImpl/addOpenNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkApiImpl/addWPA2Network/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkDelegate/LegacyAddNetworkDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.addnetwork.delegates.LegacyAddNetworkApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/-legacy-add-network-delegate.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkDelegate/addOpenNetwork/#com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkDelegate/addWPA2Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkDelegate/addWPA3Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.delegates/LegacyAddNetworkDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.delegates/-legacy-add-network-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.IntentLaunched///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-intent-launched/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.ResultCode///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.ResultCode/ResultCode/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/-result-code.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.ResultCode/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/component1.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.ResultCode/copy/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/copy.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.ResultCode/data/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-result-code/data.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.WrongSDKLevelError///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.WrongSDKLevelError/WrongSDKLevelError/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/-wrong-s-d-k-level-error.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.WrongSDKLevelError/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/component1.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.WrongSDKLevelError/copy/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/copy.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult.WrongSDKLevelError/message/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-wrong-s-d-k-level-error/message.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/AddNetworkResult/AddNetworkResult/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-add-network-result/-add-network-result.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.Ssid///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.Ssid/Ssid/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/-ssid.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.Ssid/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/component1.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.Ssid/copy/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/copy.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.Ssid/ssid/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid/ssid.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.SsidAndActivityResultLauncher///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.SsidAndActivityResultLauncher/SsidAndActivityResultLauncher/#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/-ssid-and-activity-result-launcher.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.SsidAndActivityResultLauncher/activityResultLauncher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/activity-result-launcher.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.SsidAndActivityResultLauncher/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component1.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.SsidAndActivityResultLauncher/component2/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/component2.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.SsidAndActivityResultLauncher/copy/#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/copy.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData.SsidAndActivityResultLauncher/ssid/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-ssid-and-activity-result-launcher/ssid.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/OpenNetworkData/OpenNetworkData/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-open-network-data/-open-network-data.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidAndPassphrase///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidAndPassphrase/SsidAndPassphrase/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidAndPassphrase/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component1.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidAndPassphrase/component2/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/component2.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidAndPassphrase/copy/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/copy.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidAndPassphrase/passphrase/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/passphrase.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidAndPassphrase/ssid/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-and-passphrase/ssid.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidPassphraseAndActivityResultLauncher///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidPassphraseAndActivityResultLauncher/SsidPassphraseAndActivityResultLauncher/#kotlin.String#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidPassphraseAndActivityResultLauncher/activityResultLauncher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidPassphraseAndActivityResultLauncher/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidPassphraseAndActivityResultLauncher/component2/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidPassphraseAndActivityResultLauncher/component3/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidPassphraseAndActivityResultLauncher/copy/#kotlin.String#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidPassphraseAndActivityResultLauncher/passphrase/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData.SsidPassphraseAndActivityResultLauncher/ssid/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA2NetworkData/WPA2NetworkData/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a2-network-data/-w-p-a2-network-data.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidAndPassphrase///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidAndPassphrase/SsidAndPassphrase/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/-ssid-and-passphrase.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidAndPassphrase/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component1.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidAndPassphrase/component2/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/component2.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidAndPassphrase/copy/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/copy.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidAndPassphrase/passphrase/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/passphrase.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidAndPassphrase/ssid/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-and-passphrase/ssid.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidPassphraseAndActivityResultLauncher///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidPassphraseAndActivityResultLauncher/SsidPassphraseAndActivityResultLauncher/#kotlin.String#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/-ssid-passphrase-and-activity-result-launcher.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidPassphraseAndActivityResultLauncher/activityResultLauncher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/activity-result-launcher.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidPassphraseAndActivityResultLauncher/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component1.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidPassphraseAndActivityResultLauncher/component2/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component2.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidPassphraseAndActivityResultLauncher/component3/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/component3.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidPassphraseAndActivityResultLauncher/copy/#kotlin.String#kotlin.String#androidx.activity.result.ActivityResultLauncher[android.content.Intent]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/copy.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidPassphraseAndActivityResultLauncher/passphrase/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/passphrase.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData.SsidPassphraseAndActivityResultLauncher/ssid/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-ssid-passphrase-and-activity-result-launcher/ssid.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork.entities/WPA3NetworkData/WPA3NetworkData/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork.entities/-w-p-a3-network-data/-w-p-a3-network-data.md +$dokka.location:com.isupatches.android.wisefy.addnetwork////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/AddNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/AddNetworkApi/addOpenNetwork/#com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/AddNetworkApi/addWPA2Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/AddNetworkApi/addWPA3Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/AddNetworkApiAsync///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/AddNetworkApiAsync/addOpenNetwork/#com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData#com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/AddNetworkApiAsync/addWPA2Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData#com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/AddNetworkApiAsync/addWPA3Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData#com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-api-async/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/AddNetworkUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-add-network-util/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/index.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/WisefyAddNetworkUtil/#com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.util.SdkUtil#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/-wisefy-add-network-util.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/addNetworkScope/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-network-scope.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/addOpenNetwork/#com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData#com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/addOpenNetwork/#com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-open-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/addWPA2Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData#com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/addWPA2Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/addWPA3Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData#com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/addWPA3Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/coroutineDispatcherProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/coroutine-dispatcher-provider.md +$dokka.location:com.isupatches.android.wisefy.addnetwork/WisefyAddNetworkUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.addnetwork/-wisefy-add-network-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.callbacks////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/AddNetworkCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/AddNetworkCallbacks/onFailureAddingNetwork/#com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-failure-adding-network.md +$dokka.location:com.isupatches.android.wisefy.callbacks/AddNetworkCallbacks/onNetworkAdded/#com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-add-network-callbacks/on-network-added.md +$dokka.location:com.isupatches.android.wisefy.callbacks/BaseWisefyCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/BaseWisefyCallbacks/onWisefyAsyncFailure/#kotlin.Throwable/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-base-wisefy-callbacks/on-wisefy-async-failure.md +$dokka.location:com.isupatches.android.wisefy.callbacks/ConnectToNetworkCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/ConnectToNetworkCallbacks/onConnectedToNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connected-to-network.md +$dokka.location:com.isupatches.android.wisefy.callbacks/ConnectToNetworkCallbacks/onConnectionRequestPlaced/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-connection-request-placed.md +$dokka.location:com.isupatches.android.wisefy.callbacks/ConnectToNetworkCallbacks/onFailureConnectingToNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-failure-connecting-to-network.md +$dokka.location:com.isupatches.android.wisefy.callbacks/ConnectToNetworkCallbacks/onNetworkNotFoundToConnectTo/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-connect-to-network-callbacks/on-network-not-found-to-connect-to.md +$dokka.location:com.isupatches.android.wisefy.callbacks/DisableWifiCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/DisableWifiCallbacks/onFailureDisablingWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-failure-disabling-wifi.md +$dokka.location:com.isupatches.android.wisefy.callbacks/DisableWifiCallbacks/onWifiDisabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-disable-wifi-callbacks/on-wifi-disabled.md +$dokka.location:com.isupatches.android.wisefy.callbacks/DisconnectFromCurrentNetworkCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/DisconnectFromCurrentNetworkCallbacks/onDisconnectedFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-disconnected-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.callbacks/DisconnectFromCurrentNetworkCallbacks/onFailureDisconnectingFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-disconnect-from-current-network-callbacks/on-failure-disconnecting-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.callbacks/EnableWifiCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/EnableWifiCallbacks/onFailureEnablingWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-failure-enabling-wifi.md +$dokka.location:com.isupatches.android.wisefy.callbacks/EnableWifiCallbacks/onWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-enable-wifi-callbacks/on-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetCurrentNetworkCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetCurrentNetworkCallbacks/onCurrentNetworkRetrieved/#com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-current-network-retrieved.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetCurrentNetworkCallbacks/onNoCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-callbacks/on-no-current-network.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetCurrentNetworkInfoCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetCurrentNetworkInfoCallbacks/onCurrentNetworkInfoRetrieved/#com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkInfoData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-current-network-info-retrieved.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetCurrentNetworkInfoCallbacks/onNoCurrentNetworkInfo/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-current-network-info-callbacks/on-no-current-network-info.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetFrequencyCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetFrequencyCallbacks/onFailureRetrievingFrequency/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-failure-retrieving-frequency.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetFrequencyCallbacks/onFrequencyRetrieved/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-frequency-callbacks/on-frequency-retrieved.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetIPCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetIPCallbacks/onFailureRetrievingIP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-failure-retrieving-i-p.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetIPCallbacks/onIPRetrieved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-i-p-callbacks/on-i-p-retrieved.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetNearbyAccessPointCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetNearbyAccessPointCallbacks/onNearbyAccessPointsRetrieved/#kotlin.collections.List[com.isupatches.android.wisefy.accesspoints.entities.AccessPointData]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-nearby-access-points-retrieved.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetNearbyAccessPointCallbacks/onNoNearbyAccessPoints/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-nearby-access-point-callbacks/on-no-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetRSSICallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetRSSICallbacks/onNoNetworkToRetrieveRSSI/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-no-network-to-retrieve-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetRSSICallbacks/onRSSIRetrieved/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-r-s-s-i-callbacks/on-r-s-s-i-retrieved.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetSavedNetworksCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetSavedNetworksCallbacks/onNoSavedNetworksFound/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-no-saved-networks-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/GetSavedNetworksCallbacks/onSavedNetworksRetrieved/#kotlin.collections.List[com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-get-saved-networks-callbacks/on-saved-networks-retrieved.md +$dokka.location:com.isupatches.android.wisefy.callbacks/RemoveNetworkCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/RemoveNetworkCallbacks/onFailureRemovingNetwork/#com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-failure-removing-network.md +$dokka.location:com.isupatches.android.wisefy.callbacks/RemoveNetworkCallbacks/onNetworkNotFoundToRemove/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-not-found-to-remove.md +$dokka.location:com.isupatches.android.wisefy.callbacks/RemoveNetworkCallbacks/onNetworkRemoved/#com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-remove-network-callbacks/on-network-removed.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForAccessPointCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForAccessPointCallbacks/onAccessPointFound/#com.isupatches.android.wisefy.accesspoints.entities.AccessPointData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-access-point-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForAccessPointCallbacks/onNoAccessPointFound/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-point-callbacks/on-no-access-point-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForAccessPointsCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForAccessPointsCallbacks/onAccessPointsFound/#kotlin.collections.List[com.isupatches.android.wisefy.accesspoints.entities.AccessPointData]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-access-points-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForAccessPointsCallbacks/onNoAccessPointsFound/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-access-points-callbacks/on-no-access-points-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSSIDCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSSIDCallbacks/onSSIDFound/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSSIDCallbacks/onSSIDNotFound/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-d-callbacks/on-s-s-i-d-not-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSSIDsCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSSIDsCallbacks/onNoSSIDsFound/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-no-s-s-i-ds-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSSIDsCallbacks/onSSIDsFound/#kotlin.collections.List[kotlin.String]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/on-s-s-i-ds-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSavedNetworkCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSavedNetworkCallbacks/onSavedNetworkNotFound/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-not-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSavedNetworkCallbacks/onSavedNetworkRetrieved/#com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-network-callbacks/on-saved-network-retrieved.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSavedNetworksCallbacks///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/index.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSavedNetworksCallbacks/onNoSavedNetworksFound/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-no-saved-networks-found.md +$dokka.location:com.isupatches.android.wisefy.callbacks/SearchForSavedNetworksCallbacks/onSavedNetworksRetrieved/#kotlin.collections.List[com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.callbacks/-search-for-saved-networks-callbacks/on-saved-networks-retrieved.md +$dokka.location:com.isupatches.android.wisefy.constants////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/index.md +$dokka.location:com.isupatches.android.wisefy.constants//QUOTE/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-q-u-o-t-e.md +$dokka.location:com.isupatches.android.wisefy.constants/DeprecationMessages///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/index.md +$dokka.location:com.isupatches.android.wisefy.constants/DeprecationMessages/CALCULATE_BARS/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s.md +$dokka.location:com.isupatches.android.wisefy.constants/DeprecationMessages/DISABLE_WIFI/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-d-i-s-a-b-l-e_-w-i-f-i.md +$dokka.location:com.isupatches.android.wisefy.constants/DeprecationMessages/ENABLE_WIFI/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-deprecation-messages/-e-n-a-b-l-e_-w-i-f-i.md +$dokka.location:com.isupatches.android.wisefy.constants/ErrorMessages.AddNetwork.ActivityResultLauncher///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/index.md +$dokka.location:com.isupatches.android.wisefy.constants/ErrorMessages.AddNetwork.ActivityResultLauncher/NOT_USED_ANDROID_30/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-n-o-t_-u-s-e-d_-a-n-d-r-o-i-d_30.md +$dokka.location:com.isupatches.android.wisefy.constants/ErrorMessages.AddNetwork.ActivityResultLauncher/USED_PRE_ANDROID_30/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-activity-result-launcher/-u-s-e-d_-p-r-e_-a-n-d-r-o-i-d_30.md +$dokka.location:com.isupatches.android.wisefy.constants/ErrorMessages.AddNetwork.WPA3Network///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/index.md +$dokka.location:com.isupatches.android.wisefy.constants/ErrorMessages.AddNetwork.WPA3Network/PRE_ANDROID_29/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/-w-p-a3-network/-p-r-e_-a-n-d-r-o-i-d_29.md +$dokka.location:com.isupatches.android.wisefy.constants/ErrorMessages.AddNetwork///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-add-network/index.md +$dokka.location:com.isupatches.android.wisefy.constants/ErrorMessages///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-error-messages/index.md +$dokka.location:com.isupatches.android.wisefy.constants/ErrorMessages/CALCULATE_BARS_ANDROID_30/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-a-n-d-r-o-i-d_30.md +$dokka.location:com.isupatches.android.wisefy.constants/ErrorMessages/CALCULATE_BARS_LEGACY/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.constants/-error-messages/-c-a-l-c-u-l-a-t-e_-b-a-r-s_-l-e-g-a-c-y.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/index.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApi/getFrequency/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApi/getFrequency/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApi/isNetwork5gHz/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApi/isNetwork5gHz/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApiImpl/LegacyFrequencyApiImpl/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/-legacy-frequency-api-impl.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApiImpl/getFrequency/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApiImpl/getFrequency/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApiImpl/isNetwork5gHz/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApiImpl/isNetwork5gHz/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyDelegate/LegacyFrequencyDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.frequency.delegates.LegacyFrequencyApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/-legacy-frequency-delegate.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyDelegate/getFrequency/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyDelegate/getFrequency/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyDelegate/isNetwork5gHz/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.frequency.delegates/LegacyFrequencyDelegate/isNetwork5gHz/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency.delegates/-legacy-frequency-delegate/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.frequency////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/index.md +$dokka.location:com.isupatches.android.wisefy.frequency//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.frequency//MAX_FREQUENCY_5GHZ/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.md +$dokka.location:com.isupatches.android.wisefy.frequency//MIN_FREQUENCY_5GHZ/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.md +$dokka.location:com.isupatches.android.wisefy.frequency/FrequencyApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/index.md +$dokka.location:com.isupatches.android.wisefy.frequency/FrequencyApi/getFrequency/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency/FrequencyApi/getFrequency/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency/FrequencyApi/isNetwork5gHz/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.frequency/FrequencyApi/isNetwork5gHz/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.frequency/FrequencyApiAsync///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/index.md +$dokka.location:com.isupatches.android.wisefy.frequency/FrequencyApiAsync/getFrequency/#com.isupatches.android.wisefy.callbacks.GetFrequencyCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-frequency-api-async/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency/FrequencyUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/index.md +$dokka.location:com.isupatches.android.wisefy.frequency/FrequencyUtil/getFrequency/#com.isupatches.android.wisefy.callbacks.GetFrequencyCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-frequency-util/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/index.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil/WisefyFrequencyUtil/#com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider#com.isupatches.android.wisefy.logging.WisefyLogger?#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/-wisefy-frequency-util.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil/coroutineDispatcherProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/coroutine-dispatcher-provider.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil/frequencyScope/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/frequency-scope.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil/getFrequency/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil/getFrequency/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil/getFrequency/#com.isupatches.android.wisefy.callbacks.GetFrequencyCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/get-frequency.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil/isNetwork5gHz/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.frequency/WisefyFrequencyUtil/isNetwork5gHz/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.frequency/-wisefy-frequency-util/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy.logging////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/index.md +$dokka.location:com.isupatches.android.wisefy.logging/WisefyLogger///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/index.md +$dokka.location:com.isupatches.android.wisefy.logging/WisefyLogger/d/#kotlin.String#kotlin.String#kotlin.Array[kotlin.Any]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/d.md +$dokka.location:com.isupatches.android.wisefy.logging/WisefyLogger/e/#kotlin.String#kotlin.String#kotlin.Array[kotlin.Any]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/e.md +$dokka.location:com.isupatches.android.wisefy.logging/WisefyLogger/e/#kotlin.String#kotlin.Throwable#kotlin.String#kotlin.Array[kotlin.Any]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/e.md +$dokka.location:com.isupatches.android.wisefy.logging/WisefyLogger/i/#kotlin.String#kotlin.String#kotlin.Array[kotlin.Any]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/i.md +$dokka.location:com.isupatches.android.wisefy.logging/WisefyLogger/v/#kotlin.String#kotlin.String#kotlin.Array[kotlin.Any]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/v.md +$dokka.location:com.isupatches.android.wisefy.logging/WisefyLogger/w/#kotlin.String#kotlin.String#kotlin.Array[kotlin.Any]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/w.md +$dokka.location:com.isupatches.android.wisefy.logging/WisefyLogger/wtf/#kotlin.String#kotlin.String#kotlin.Array[kotlin.Any]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/wtf.md +$dokka.location:com.isupatches.android.wisefy.logging/WisefyLogger/wtf/#kotlin.String#kotlin.Throwable#kotlin.String#kotlin.Array[kotlin.Any]/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.logging/-wisefy-logger/wtf.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApi/connectToNetwork/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApi/disconnectFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApiImpl/Android29NetworkConnectionApiImpl/#android.net.ConnectivityManager#com.isupatches.android.wisefy.logging.WisefyLogger?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/-android29-network-connection-api-impl.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApiImpl/connectToNetwork/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApiImpl/connectionManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/connection-manager.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApiImpl/disconnectFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApiImpl/logger/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/logger.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionApiImpl/networkCallback/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-api-impl/network-callback.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionDelegate/Android29NetworkConnectionDelegate/#android.net.ConnectivityManager#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.networkconnection.delegates.Android29NetworkConnectionApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/-android29-network-connection-delegate.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionDelegate/connectToNetwork/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionDelegate/disconnectFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/Android29NetworkConnectionDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-android29-network-connection-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApi/connectToNetwork/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApi/disconnectFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl/LegacyNetworkConnectionApiImpl/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusUtil#com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil#com.isupatches.android.wisefy.logging.WisefyLogger?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/-legacy-network-connection-api-impl.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl/connectToNetwork/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl/disconnectFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl/isCurrentNetworkConnectedToSSID/#kotlin.String?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/is-current-network-connected-to-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl/logger/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/logger.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl/networkConnectionStatusUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/network-connection-status-util.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl/savedNetworkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/saved-network-util.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl/waitToConnectToSSID/#kotlin.String?#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wait-to-connect-to-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionDelegate/LegacyNetworkConnectionDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusUtil#com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.networkconnection.delegates.LegacyNetworkConnectionApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/-legacy-network-connection-delegate.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionDelegate/connectToNetwork/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionDelegate/disconnectFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.delegates/LegacyNetworkConnectionDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.delegates/-legacy-network-connection-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult.ConnectionRequestPlaced///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-connection-request-placed/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult.NetworkNotFound///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-not-found/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult.Succeeded///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult.Succeeded/Succeeded/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/-succeeded.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult.Succeeded/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/component1.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult.Succeeded/copy/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/copy.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult.Succeeded/data/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-succeeded/data.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult.UnregisterRequestSent///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-unregister-request-sent/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection.entities/NetworkConnectionResult/NetworkConnectionResult/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection.entities/-network-connection-result/-network-connection-result.md +$dokka.location:com.isupatches.android.wisefy.networkconnection////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/NetworkConnectionApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/NetworkConnectionApi/connectToNetwork/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/NetworkConnectionApi/disconnectFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/NetworkConnectionApiAsync///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/NetworkConnectionApiAsync/connectToNetwork/#kotlin.String#kotlin.Int#com.isupatches.android.wisefy.callbacks.ConnectToNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/NetworkConnectionApiAsync/disconnectFromCurrentNetwork/#com.isupatches.android.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-api-async/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/NetworkConnectionUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-network-connection-util/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/WisefyNetworkConnectionUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/WisefyNetworkConnectionUtil/WisefyNetworkConnectionUtil/#com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider#android.net.ConnectivityManager#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusUtil#com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil#com.isupatches.android.wisefy.util.SdkUtil#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/-wisefy-network-connection-util.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/WisefyNetworkConnectionUtil/connectToNetwork/#kotlin.String#kotlin.Int#com.isupatches.android.wisefy.callbacks.ConnectToNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/WisefyNetworkConnectionUtil/connectToNetwork/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/WisefyNetworkConnectionUtil/coroutineDispatcherProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/coroutine-dispatcher-provider.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/WisefyNetworkConnectionUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/WisefyNetworkConnectionUtil/disconnectFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/WisefyNetworkConnectionUtil/disconnectFromCurrentNetwork/#com.isupatches.android.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnection/WisefyNetworkConnectionUtil/networkConnectionScope/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnection/-wisefy-network-connection-util/network-connection-scope.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApi/attachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/attach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApi/detachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/detach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApi/isDeviceConnectedToMobileNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApi/isDeviceConnectedToMobileOrWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApi/isDeviceConnectedToSSID/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApi/isDeviceConnectedToWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-connected-to-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApi/isDeviceRoaming/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api/is-device-roaming.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/LegacyNetworkConnectionStatusApiImpl/#android.net.wifi.WifiManager#android.net.ConnectivityManager#com.isupatches.android.wisefy.util.SdkUtil#com.isupatches.android.wisefy.logging.WisefyLogger?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/-legacy-network-connection-status-api-impl.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/attachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/attach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/connectionStatus/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connection-status.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/connectivityManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/connectivity-manager.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/detachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/detach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/doesNetworkHaveCapability/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-capability.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/doesNetworkHaveTransportTypeAndInternetCapability/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/does-network-have-transport-type-and-internet-capability.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/getActiveNetworkCapabilities/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/get-active-network-capabilities.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/isDeviceConnectedToMobileNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/isDeviceConnectedToMobileOrWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-mobile-or-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/isDeviceConnectedToSSID/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/isDeviceConnectedToWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-connected-to-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/isDeviceRoaming/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-device-roaming.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/isNetworkConnected/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/is-network-connected.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/logger/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/logger.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/onAvailable/#android.net.Network/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-available.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/onCapabilitiesChanged/#android.net.Network#android.net.NetworkCapabilities/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-capabilities-changed.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/onLinkPropertiesChanged/#android.net.Network#android.net.LinkProperties/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-link-properties-changed.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/onLosing/#android.net.Network#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-losing.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/onLost/#android.net.Network/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-lost.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/onUnavailable/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/on-unavailable.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/sdkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/sdk-util.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/startListeningForNetworkChanges/#android.net.ConnectivityManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/start-listening-for-network-changes.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/stopListeningForNetworkChanges/#android.net.ConnectivityManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/stop-listening-for-network-changes.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate/LegacyNetworkConnectionStatusDelegate/#android.net.ConnectivityManager#android.net.wifi.WifiManager#com.isupatches.android.wisefy.util.SdkUtil#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.networkconnectionstatus.delegates.LegacyNetworkConnectionStatusApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/-legacy-network-connection-status-delegate.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate/attachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/attach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate/detachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/detach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate/isDeviceConnectedToMobileNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate/isDeviceConnectedToMobileOrWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-mobile-or-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate/isDeviceConnectedToSSID/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate/isDeviceConnectedToWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-connected-to-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.delegates/LegacyNetworkConnectionStatusDelegate/isDeviceRoaming/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.delegates/-legacy-network-connection-status-delegate/is-device-roaming.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.AVAILABLE///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.AVAILABLE/name/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/name.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.AVAILABLE/ordinal/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-a-v-a-i-l-a-b-l-e/ordinal.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.LOSING///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.LOSING/name/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/name.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.LOSING/ordinal/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-i-n-g/ordinal.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.LOST///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.LOST/name/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/name.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.LOST/ordinal/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-l-o-s-t/ordinal.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.UNAVAILABLE///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.UNAVAILABLE/name/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/name.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus.UNAVAILABLE/ordinal/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-u-n-a-v-a-i-l-a-b-l-e/ordinal.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus.entities/NetworkConnectionStatus/NetworkConnectionStatus/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus.entities/-network-connection-status/-network-connection-status.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/NetworkConnectionStatusApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/NetworkConnectionStatusApi/attachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/attach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/NetworkConnectionStatusApi/detachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/detach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/NetworkConnectionStatusApi/isDeviceConnectedToMobileNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/NetworkConnectionStatusApi/isDeviceConnectedToMobileOrWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-mobile-or-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/NetworkConnectionStatusApi/isDeviceConnectedToSSID/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/NetworkConnectionStatusApi/isDeviceConnectedToWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-connected-to-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/NetworkConnectionStatusApi/isDeviceRoaming/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-api/is-device-roaming.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/NetworkConnectionStatusUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-network-connection-status-util/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/index.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil/WisefyNetworkConnectionStatusUtil/#android.net.ConnectivityManager#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.util.SdkUtil#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/-wisefy-network-connection-status-util.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil/attachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/attach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil/detachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/detach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil/isDeviceConnectedToMobileNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil/isDeviceConnectedToMobileOrWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-mobile-or-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil/isDeviceConnectedToSSID/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil/isDeviceConnectedToWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-connected-to-wifi-network.md +$dokka.location:com.isupatches.android.wisefy.networkconnectionstatus/WisefyNetworkConnectionStatusUtil/isDeviceRoaming/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkconnectionstatus/-wisefy-network-connection-status-util/is-device-roaming.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApi/getCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApi/getCurrentNetworkInfo/#android.net.Network?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-current-network-info.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApi/getIP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api/get-i-p.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApiImpl/LegacyNetworkInfoApiImpl/#android.net.wifi.WifiManager#android.net.ConnectivityManager#com.isupatches.android.wisefy.logging.WisefyLogger?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/-legacy-network-info-api-impl.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApiImpl/connectivityManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/connectivity-manager.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApiImpl/getCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApiImpl/getCurrentNetworkInfo/#android.net.Network?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-current-network-info.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApiImpl/getIP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/get-i-p.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApiImpl/logger/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/logger.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoDelegate/LegacyNetworkInfoDelegate/#android.net.wifi.WifiManager#android.net.ConnectivityManager#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.networkinfo.delegates.LegacyNetworkInfoApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/-legacy-network-info-delegate.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoDelegate/getCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoDelegate/getCurrentNetworkInfo/#android.net.Network?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-current-network-info.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoDelegate/getIP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/get-i-p.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.delegates/LegacyNetworkInfoDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.delegates/-legacy-network-info-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkData///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkData/CurrentNetworkData/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/-current-network-data.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkData/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/component1.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkData/copy/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/copy.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkData/data/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-data/data.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkInfoData///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkInfoData/CurrentNetworkInfoData/#android.net.NetworkCapabilities?#android.net.LinkProperties?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/-current-network-info-data.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkInfoData/capabilities/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/capabilities.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkInfoData/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component1.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkInfoData/component2/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/component2.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkInfoData/copy/#android.net.NetworkCapabilities?#android.net.LinkProperties?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/copy.md +$dokka.location:com.isupatches.android.wisefy.networkinfo.entities/CurrentNetworkInfoData/linkProperties/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo.entities/-current-network-info-data/link-properties.md +$dokka.location:com.isupatches.android.wisefy.networkinfo////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/NetworkInfoApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/NetworkInfoApi/getCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/NetworkInfoApi/getCurrentNetworkInfo/#android.net.Network?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-current-network-info.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/NetworkInfoApi/getIP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api/get-i-p.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/NetworkInfoApiAsync///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/NetworkInfoApiAsync/getCurrentNetwork/#com.isupatches.android.wisefy.callbacks.GetCurrentNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/NetworkInfoApiAsync/getCurrentNetworkInfo/#com.isupatches.android.wisefy.callbacks.GetCurrentNetworkInfoCallbacks?#android.net.Network?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-current-network-info.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/NetworkInfoApiAsync/getIP/#com.isupatches.android.wisefy.callbacks.GetIPCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-api-async/get-i-p.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/NetworkInfoUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-network-info-util/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/index.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/WisefyNetworkInfoUtil/#com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider#android.net.ConnectivityManager#com.isupatches.android.wisefy.logging.WisefyLogger?#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/-wisefy-network-info-util.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/coroutineDispatcherProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/coroutine-dispatcher-provider.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/getCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/getCurrentNetwork/#com.isupatches.android.wisefy.callbacks.GetCurrentNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/getCurrentNetworkInfo/#android.net.Network?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network-info.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/getCurrentNetworkInfo/#com.isupatches.android.wisefy.callbacks.GetCurrentNetworkInfoCallbacks?#android.net.Network?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-current-network-info.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/getIP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-i-p.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/getIP/#com.isupatches.android.wisefy.callbacks.GetIPCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/get-i-p.md +$dokka.location:com.isupatches.android.wisefy.networkinfo/WisefyNetworkInfoUtil/networkInfoScope/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.networkinfo/-wisefy-network-info-util/network-info-scope.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkApi/removeNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkApiImpl/Android29RemoveNetworkApiImpl/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/-android29-remove-network-api-impl.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkApiImpl/removeNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkDelegate/Android29RemoveNetworkDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.removenetwork.delegates.Android29RemoveNetworkApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/-android29-remove-network-delegate.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkDelegate/removeNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/Android29RemoveNetworkDelegate/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-android29-remove-network-delegate/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkApi/removeNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkApiImpl/LegacyRemoveNetworkApiImpl/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/-legacy-remove-network-api-impl.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkApiImpl/removeNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkApiImpl/savedNetworkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/saved-network-util.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkDelegate/LegacyRemoveNetworkDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil#com.isupatches.android.wisefy.removenetwork.delegates.LegacyRemoveNetworkApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/-legacy-remove-network-delegate.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkDelegate/removeNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkDelegate/savedNetworkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/saved-network-util.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.delegates/LegacyRemoveNetworkDelegate/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.delegates/-legacy-remove-network-delegate/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.NetworkNotFound///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-network-not-found/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.ResultCode///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.ResultCode/ResultCode/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/-result-code.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.ResultCode/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/component1.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.ResultCode/copy/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/copy.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.ResultCode/data/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-result-code/data.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.Succeeded///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.Succeeded/Succeeded/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/-succeeded.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.Succeeded/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/component1.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.Succeeded/copy/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/copy.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult.Succeeded/data/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-succeeded/data.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork.entities/RemoveNetworkResult/RemoveNetworkResult/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork.entities/-remove-network-result/-remove-network-result.md +$dokka.location:com.isupatches.android.wisefy.removenetwork////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/RemoveNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/RemoveNetworkApi/removeNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/RemoveNetworkApiAsync///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/RemoveNetworkApiAsync/removeNetwork/#kotlin.String#com.isupatches.android.wisefy.callbacks.RemoveNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-api-async/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/RemoveNetworkUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-remove-network-util/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/WisefyRemoveNetworkUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/index.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/WisefyRemoveNetworkUtil/WisefyRemoveNetworkUtil/#com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil#com.isupatches.android.wisefy.util.SdkUtil#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/-wisefy-remove-network-util.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/WisefyRemoveNetworkUtil/coroutineDispatcherProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/coroutine-dispatcher-provider.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/WisefyRemoveNetworkUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/WisefyRemoveNetworkUtil/removeNetwork/#kotlin.String#com.isupatches.android.wisefy.callbacks.RemoveNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/WisefyRemoveNetworkUtil/removeNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network.md +$dokka.location:com.isupatches.android.wisefy.removenetwork/WisefyRemoveNetworkUtil/removeNetworkScope/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.removenetwork/-wisefy-remove-network-util/remove-network-scope.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates//ANDROID_Q_SAVED_NETWORK_WARNING/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-a-n-d-r-o-i-d_-q_-s-a-v-e-d_-n-e-t-w-o-r-k_-w-a-r-n-i-n-g.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApi/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApi/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApi/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApi/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApiImpl/Android29SavedNetworkApiImpl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/-android29-saved-network-api-impl.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApiImpl/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApiImpl/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApiImpl/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkApiImpl/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-api-impl/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkDelegate/Android29SavedNetworkDelegate/#com.isupatches.android.wisefy.savednetworks.delegates.Android29SavedNetworkApiImpl/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/-android29-saved-network-delegate.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkDelegate/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkDelegate/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkDelegate/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android29SavedNetworkDelegate/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android29-saved-network-delegate/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApi/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApi/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApi/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApi/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApiImpl/Android30SavedNetworkApiImpl/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/-android30-saved-network-api-impl.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApiImpl/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApiImpl/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApiImpl/matchesRegexForSSID/#android.net.wifi.WifiNetworkSuggestion#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/matches-regex-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApiImpl/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApiImpl/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkDelegate/Android30SavedNetworkDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.savednetworks.delegates.Android30SavedNetworkApiImpl/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/-android30-saved-network-delegate.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkDelegate/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkDelegate/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkDelegate/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/Android30SavedNetworkDelegate/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-android30-saved-network-delegate/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApi/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApi/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApi/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApi/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApiImpl/LegacySavedNetworkApiImpl/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/-legacy-saved-network-api-impl.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApiImpl/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApiImpl/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApiImpl/matchesRegexForSSID/#android.net.wifi.WifiConfiguration#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/matches-regex-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApiImpl/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApiImpl/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkDelegate/LegacySavedNetworkDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.savednetworks.delegates.LegacySavedNetworkApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/-legacy-saved-network-delegate.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkDelegate/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkDelegate/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkDelegate/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.delegates/LegacySavedNetworkDelegate/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.delegates/-legacy-saved-network-delegate/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Configuration///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Configuration/Configuration/#android.net.wifi.WifiConfiguration/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/-configuration.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Configuration/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/component1.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Configuration/copy/#android.net.wifi.WifiConfiguration/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/copy.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Configuration/data/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-configuration/data.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Suggestion///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Suggestion/Suggestion/#android.net.wifi.WifiNetworkSuggestion/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/-suggestion.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Suggestion/component1/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/component1.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Suggestion/copy/#android.net.wifi.WifiNetworkSuggestion/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/copy.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData.Suggestion/data/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-suggestion/data.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks.entities/SavedNetworkData/SavedNetworkData/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks.entities/-saved-network-data/-saved-network-data.md +$dokka.location:com.isupatches.android.wisefy.savednetworks////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkApi/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkApi/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkApi/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkApi/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkApiAsync///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkApiAsync/getSavedNetworks/#com.isupatches.android.wisefy.callbacks.GetSavedNetworksCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkApiAsync/searchForSavedNetwork/#kotlin.String#com.isupatches.android.wisefy.callbacks.SearchForSavedNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkApiAsync/searchForSavedNetworks/#kotlin.String#com.isupatches.android.wisefy.callbacks.SearchForSavedNetworksCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-api-async/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/SavedNetworkUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-saved-network-util/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/index.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/WisefySavedNetworkUtil/#com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.util.SdkUtil#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/-wisefy-saved-network-util.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/coroutineDispatcherProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/coroutine-dispatcher-provider.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/getSavedNetworks/#com.isupatches.android.wisefy.callbacks.GetSavedNetworksCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/savedNetworkScope/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/saved-network-scope.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/searchForSavedNetwork/#kotlin.String#com.isupatches.android.wisefy.callbacks.SearchForSavedNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/searchForSavedNetworks/#kotlin.String#com.isupatches.android.wisefy.callbacks.SearchForSavedNetworksCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.savednetworks/WisefySavedNetworkUtil/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.savednetworks/-wisefy-saved-network-util/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy.security.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/index.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApi/isNetworkEAP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-e-a-p.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApi/isNetworkPSK/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-p-s-k.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApi/isNetworkSecure/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-secure.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApi/isNetworkWEP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-e-p.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApi/isNetworkWPA/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApi/isNetworkWPA2/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a2.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApi/isNetworkWPA3/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api/is-network-w-p-a3.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl/LegacySecurityApiImpl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/-legacy-security-api-impl.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl/containsCapability/#android.net.wifi.ScanResult?#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/contains-capability.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl/isNetworkEAP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-e-a-p.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl/isNetworkPSK/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-p-s-k.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl/isNetworkSecure/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-secure.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl/isNetworkWEP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-e-p.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl/isNetworkWPA/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl/isNetworkWPA2/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a2.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityApiImpl/isNetworkWPA3/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-api-impl/is-network-w-p-a3.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate/LegacySecurityDelegate/#com.isupatches.android.wisefy.security.delegates.LegacySecurityApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/-legacy-security-delegate.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate/isNetworkEAP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-e-a-p.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate/isNetworkPSK/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-p-s-k.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate/isNetworkSecure/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-secure.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate/isNetworkWEP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-e-p.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate/isNetworkWPA/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate/isNetworkWPA2/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a2.md +$dokka.location:com.isupatches.android.wisefy.security.delegates/LegacySecurityDelegate/isNetworkWPA3/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.delegates/-legacy-security-delegate/is-network-w-p-a3.md +$dokka.location:com.isupatches.android.wisefy.security.entities////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.entities/index.md +$dokka.location:com.isupatches.android.wisefy.security.entities//EAP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.entities/-e-a-p.md +$dokka.location:com.isupatches.android.wisefy.security.entities//PSK/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.entities/-p-s-k.md +$dokka.location:com.isupatches.android.wisefy.security.entities//WEP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.entities/-w-e-p.md +$dokka.location:com.isupatches.android.wisefy.security.entities//WPA/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a.md +$dokka.location:com.isupatches.android.wisefy.security.entities//WPA2/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a2.md +$dokka.location:com.isupatches.android.wisefy.security.entities//WPA3/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.entities/-w-p-a3.md +$dokka.location:com.isupatches.android.wisefy.security.entities/Capability///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.entities/-capability/index.md +$dokka.location:com.isupatches.android.wisefy.security.entities/Capability/Capability/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security.entities/-capability/-capability.md +$dokka.location:com.isupatches.android.wisefy.security////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/index.md +$dokka.location:com.isupatches.android.wisefy.security//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.security/SecurityApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-security-api/index.md +$dokka.location:com.isupatches.android.wisefy.security/SecurityApi/isNetworkEAP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-e-a-p.md +$dokka.location:com.isupatches.android.wisefy.security/SecurityApi/isNetworkPSK/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-p-s-k.md +$dokka.location:com.isupatches.android.wisefy.security/SecurityApi/isNetworkSecure/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-secure.md +$dokka.location:com.isupatches.android.wisefy.security/SecurityApi/isNetworkWEP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-e-p.md +$dokka.location:com.isupatches.android.wisefy.security/SecurityApi/isNetworkWPA/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a.md +$dokka.location:com.isupatches.android.wisefy.security/SecurityApi/isNetworkWPA2/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a2.md +$dokka.location:com.isupatches.android.wisefy.security/SecurityApi/isNetworkWPA3/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-security-api/is-network-w-p-a3.md +$dokka.location:com.isupatches.android.wisefy.security/SecurityUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-security-util/index.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/index.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil/WisefySecurityUtil/#com.isupatches.android.wisefy.logging.WisefyLogger?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/-wisefy-security-util.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil/isNetworkEAP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-e-a-p.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil/isNetworkPSK/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-p-s-k.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil/isNetworkSecure/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-secure.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil/isNetworkWEP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-e-p.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil/isNetworkWPA/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil/isNetworkWPA2/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a2.md +$dokka.location:com.isupatches.android.wisefy.security/WisefySecurityUtil/isNetworkWPA3/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.security/-wisefy-security-util/is-network-w-p-a3.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/index.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApi/calculateBars/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApi/calculateBars/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApi/compareSignalLevel/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api/compare-signal-level.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApiImpl/Android30SignalApiImpl/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/-android30-signal-api-impl.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApiImpl/calculateBars/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApiImpl/calculateBars/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApiImpl/compareSignalLevel/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/compare-signal-level.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalDelegate/Android30SignalDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.signal.delegates.Android30SignalApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/-android30-signal-delegate.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalDelegate/calculateBars/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalDelegate/calculateBars/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalDelegate/compareSignalLevel/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/compare-signal-level.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/Android30SignalDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-android30-signal-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/index.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalApi/calculateBars/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalApi/calculateBars/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalApi/compareSignalLevel/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api/compare-signal-level.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalApiImpl/LegacySignalApiImpl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/-legacy-signal-api-impl.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalApiImpl/calculateBars/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalApiImpl/calculateBars/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalApiImpl/compareSignalLevel/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-api-impl/compare-signal-level.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalDelegate/LegacySignalDelegate/#com.isupatches.android.wisefy.signal.delegates.LegacySignalApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/-legacy-signal-delegate.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalDelegate/calculateBars/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalDelegate/calculateBars/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalDelegate/compareSignalLevel/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/compare-signal-level.md +$dokka.location:com.isupatches.android.wisefy.signal.delegates/LegacySignalDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal.delegates/-legacy-signal-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.signal////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/index.md +$dokka.location:com.isupatches.android.wisefy.signal//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.signal/SignalApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-signal-api/index.md +$dokka.location:com.isupatches.android.wisefy.signal/SignalApi/calculateBars/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-signal-api/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal/SignalApi/calculateBars/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-signal-api/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal/SignalApi/compareSignalLevel/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-signal-api/compare-signal-level.md +$dokka.location:com.isupatches.android.wisefy.signal/SignalUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-signal-util/index.md +$dokka.location:com.isupatches.android.wisefy.signal/WisefySignalUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/index.md +$dokka.location:com.isupatches.android.wisefy.signal/WisefySignalUtil/WisefySignalUtil/#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.util.SdkUtil#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/-wisefy-signal-util.md +$dokka.location:com.isupatches.android.wisefy.signal/WisefySignalUtil/calculateBars/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal/WisefySignalUtil/calculateBars/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy.signal/WisefySignalUtil/compareSignalLevel/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/compare-signal-level.md +$dokka.location:com.isupatches.android.wisefy.signal/WisefySignalUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.signal/-wisefy-signal-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.util.coroutines////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.coroutines/index.md +$dokka.location:com.isupatches.android.wisefy.util.coroutines//createBaseCoroutineExceptionHandler/#com.isupatches.android.wisefy.callbacks.BaseWisefyCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.coroutines/create-base-coroutine-exception-handler.md +$dokka.location:com.isupatches.android.wisefy.util.coroutines/CoroutineDispatcherProvider///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/index.md +$dokka.location:com.isupatches.android.wisefy.util.coroutines/CoroutineDispatcherProvider/CoroutineDispatcherProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/-coroutine-dispatcher-provider.md +$dokka.location:com.isupatches.android.wisefy.util.coroutines/CoroutineDispatcherProvider/io/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/io.md +$dokka.location:com.isupatches.android.wisefy.util.coroutines/CoroutineDispatcherProvider/main/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.coroutines/-coroutine-dispatcher-provider/main.md +$dokka.location:com.isupatches.android.wisefy.util.legacy////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.legacy/index.md +$dokka.location:com.isupatches.android.wisefy.util.legacy//convertSSIDForConfig/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.legacy/convert-s-s-i-d-for-config.md +$dokka.location:com.isupatches.android.wisefy.util.legacy//generateOpenNetworkConfiguration/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.legacy/generate-open-network-configuration.md +$dokka.location:com.isupatches.android.wisefy.util.legacy//generateWPA2NetworkConfiguration/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util.legacy/generate-w-p-a2-network-configuration.md +$dokka.location:com.isupatches.android.wisefy.util////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/index.md +$dokka.location:com.isupatches.android.wisefy.util//BASE_DELAY/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-b-a-s-e_-d-e-l-a-y.md +$dokka.location:com.isupatches.android.wisefy.util//createOpenNetworkSuggestion/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/create-open-network-suggestion.md +$dokka.location:com.isupatches.android.wisefy.util//createWPA2NetworkSuggestion/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/create-w-p-a2-network-suggestion.md +$dokka.location:com.isupatches.android.wisefy.util//createWPA3NetworkSuggestion/#kotlin.String#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/create-w-p-a3-network-suggestion.md +$dokka.location:com.isupatches.android.wisefy.util//fail/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/fail.md +$dokka.location:com.isupatches.android.wisefy.util//rest/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/rest.md +$dokka.location:com.isupatches.android.wisefy.util//sleep/#kotlin.Long/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/sleep.md +$dokka.location:com.isupatches.android.wisefy.util/SdkUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-sdk-util/index.md +$dokka.location:com.isupatches.android.wisefy.util/SdkUtil/isAtLeastP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-p.md +$dokka.location:com.isupatches.android.wisefy.util/SdkUtil/isAtLeastQ/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-q.md +$dokka.location:com.isupatches.android.wisefy.util/SdkUtil/isAtLeastR/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-sdk-util/is-at-least-r.md +$dokka.location:com.isupatches.android.wisefy.util/SdkUtilImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/index.md +$dokka.location:com.isupatches.android.wisefy.util/SdkUtilImpl/SdkUtilImpl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/-sdk-util-impl.md +$dokka.location:com.isupatches.android.wisefy.util/SdkUtilImpl/isAtLeastP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-p.md +$dokka.location:com.isupatches.android.wisefy.util/SdkUtilImpl/isAtLeastQ/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-q.md +$dokka.location:com.isupatches.android.wisefy.util/SdkUtilImpl/isAtLeastR/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.util/-sdk-util-impl/is-at-least-r.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/index.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/index.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApi/disableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApi/enableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApi/isWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api/is-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApiImpl/Android29WifiApiImpl/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/-android29-wifi-api-impl.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApiImpl/disableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApiImpl/enableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApiImpl/isWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/is-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiDelegate/Android29WifiDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.wifi.delegates.Android29WifiApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/-android29-wifi-delegate.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiDelegate/disableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiDelegate/enableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/Android29WifiDelegate/isWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-android29-wifi-delegate/is-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/index.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApi/disableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApi/enableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApi/isWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api/is-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApiImpl///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/index.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApiImpl/LegacyWifiApiImpl/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/-legacy-wifi-api-impl.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApiImpl/disableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApiImpl/enableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApiImpl/isWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/is-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiApiImpl/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-api-impl/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiDelegate///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/index.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiDelegate/LegacyWifiDelegate/#android.net.wifi.WifiManager#com.isupatches.android.wisefy.wifi.delegates.LegacyWifiApi/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/-legacy-wifi-delegate.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiDelegate/disableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiDelegate/enableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiDelegate/impl/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/impl.md +$dokka.location:com.isupatches.android.wisefy.wifi.delegates/LegacyWifiDelegate/isWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi.delegates/-legacy-wifi-delegate/is-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy.wifi////PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/index.md +$dokka.location:com.isupatches.android.wisefy.wifi//LOG_TAG/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-l-o-g_-t-a-g.md +$dokka.location:com.isupatches.android.wisefy.wifi/WifiApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/index.md +$dokka.location:com.isupatches.android.wisefy.wifi/WifiApi/disableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi/WifiApi/enableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi/WifiApi/isWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api/is-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy.wifi/WifiApiAsync///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/index.md +$dokka.location:com.isupatches.android.wisefy.wifi/WifiApiAsync/disableWifi/#com.isupatches.android.wisefy.callbacks.DisableWifiCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi/WifiApiAsync/enableWifi/#com.isupatches.android.wisefy.callbacks.EnableWifiCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wifi-api-async/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi/WifiUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wifi-util/index.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil///PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/index.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil/WisefyWifiUtil/#com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider#com.isupatches.android.wisefy.logging.WisefyLogger?#com.isupatches.android.wisefy.util.SdkUtil#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/-wisefy-wifi-util.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil/coroutineDispatcherProvider/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/coroutine-dispatcher-provider.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil/delegate/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/delegate.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil/disableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil/disableWifi/#com.isupatches.android.wisefy.callbacks.DisableWifiCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil/enableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil/enableWifi/#com.isupatches.android.wisefy.callbacks.EnableWifiCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil/isWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/is-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy.wifi/WisefyWifiUtil/wifiScope/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy.wifi/-wisefy-wifi-util/wifi-scope.md +$dokka.location:com.isupatches.android.wisefy////PointingToDeclaration/wisefy/com.isupatches.android.wisefy/index.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains///PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/index.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/Brains/#android.content.Context#com.isupatches.android.wisefy.logging.WisefyLogger?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/-brains.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/accessPointsUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/access-points-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/addNetworkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/add-network-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/connectivityManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/connectivity-manager.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customAccessPointsUtil/#com.isupatches.android.wisefy.accesspoints.AccessPointsUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-access-points-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customAddNetworkUtil/#com.isupatches.android.wisefy.addnetwork.AddNetworkUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-add-network-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customConnectivityManager/#android.net.ConnectivityManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-connectivity-manager.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customFrequencyUtil/#com.isupatches.android.wisefy.frequency.FrequencyUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-frequency-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customNetworkConnectionStatusUtil/#com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-status-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customNetworkConnectionUtil/#com.isupatches.android.wisefy.networkconnection.NetworkConnectionUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-connection-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customNetworkInfoUtil/#com.isupatches.android.wisefy.networkinfo.NetworkInfoUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-network-info-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customRemoveNetworkUtil/#com.isupatches.android.wisefy.removenetwork.RemoveNetworkUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-remove-network-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customSavedNetworkUtil/#com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-saved-network-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customSecurityUtil/#com.isupatches.android.wisefy.security.SecurityUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-security-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customSignalUtil/#com.isupatches.android.wisefy.signal.SignalUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-signal-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customWifiManager/#android.net.wifi.WifiManager/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-manager.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/customWifiUtil/#com.isupatches.android.wisefy.wifi.WifiUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/custom-wifi-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/frequencyUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/frequency-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/getSmarts/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/get-smarts.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/logger/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/logger.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/logger/#com.isupatches.android.wisefy.logging.WisefyLogger/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/logger.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/networkConnectionStatusUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-status-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/networkConnectionUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-connection-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/networkInfoUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/network-info-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/removeNetworkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/remove-network-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/savedNetworkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/saved-network-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/securityUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/security-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/signalUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/signal-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/wifiManager/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-manager.md +$dokka.location:com.isupatches.android.wisefy/Wisefy.Brains/wifiUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-brains/wifi-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy///PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/index.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/Wisefy/#com.isupatches.android.wisefy.accesspoints.AccessPointsUtil#com.isupatches.android.wisefy.addnetwork.AddNetworkUtil#com.isupatches.android.wisefy.frequency.FrequencyUtil#com.isupatches.android.wisefy.networkconnection.NetworkConnectionUtil#com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusUtil#com.isupatches.android.wisefy.networkinfo.NetworkInfoUtil#com.isupatches.android.wisefy.removenetwork.RemoveNetworkUtil#com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil#com.isupatches.android.wisefy.security.SecurityUtil#com.isupatches.android.wisefy.signal.SignalUtil#com.isupatches.android.wisefy.wifi.WifiUtil/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/-wisefy.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/accessPointsUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/access-points-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/addNetworkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/add-network-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/addOpenNetwork/#com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData#com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/add-open-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/addOpenNetwork/#com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/add-open-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/addWPA2Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData#com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/addWPA2Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a2-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/addWPA3Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData#com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/addWPA3Network/#com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/add-w-p-a3-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/attachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/attach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/calculateBars/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/calculateBars/#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/calculate-bars.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/compareSignalLevel/#kotlin.Int#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/compare-signal-level.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/connectToNetwork/#kotlin.String#kotlin.Int#com.isupatches.android.wisefy.callbacks.ConnectToNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/connectToNetwork/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/connect-to-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/detachNetworkWatcher/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/detach-network-watcher.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/disableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/disableWifi/#com.isupatches.android.wisefy.callbacks.DisableWifiCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/disable-wifi.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/disconnectFromCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/disconnectFromCurrentNetwork/#com.isupatches.android.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/disconnect-from-current-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/enableWifi/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/enableWifi/#com.isupatches.android.wisefy.callbacks.EnableWifiCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/enable-wifi.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/frequencyUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/frequency-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getCurrentNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getCurrentNetwork/#com.isupatches.android.wisefy.callbacks.GetCurrentNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getCurrentNetworkInfo/#android.net.Network?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network-info.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getCurrentNetworkInfo/#com.isupatches.android.wisefy.callbacks.GetCurrentNetworkInfoCallbacks?#android.net.Network?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-current-network-info.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getFrequency/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-frequency.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getFrequency/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-frequency.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getFrequency/#com.isupatches.android.wisefy.callbacks.GetFrequencyCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-frequency.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getIP/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-i-p.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getIP/#com.isupatches.android.wisefy.callbacks.GetIPCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-i-p.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getNearbyAccessPoints/#kotlin.Boolean#com.isupatches.android.wisefy.callbacks.GetNearbyAccessPointCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getNearbyAccessPoints/#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-nearby-access-points.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getRSSI/#kotlin.String#kotlin.Boolean#kotlin.Int#com.isupatches.android.wisefy.callbacks.GetRSSICallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getRSSI/#kotlin.String#kotlin.Boolean#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-r-s-s-i.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getSavedNetworks/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/getSavedNetworks/#com.isupatches.android.wisefy.callbacks.GetSavedNetworksCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/get-saved-networks.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isDeviceConnectedToMobileNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isDeviceConnectedToMobileOrWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-mobile-or-wifi-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isDeviceConnectedToSSID/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isDeviceConnectedToWifiNetwork/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-connected-to-wifi-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isDeviceRoaming/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-device-roaming.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetwork5gHz/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetwork5gHz/#android.net.wifi.WifiInfo/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network5g-hz.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetworkEAP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-e-a-p.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetworkPSK/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-p-s-k.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetworkSaved/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-saved.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetworkSecure/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-secure.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetworkWEP/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-e-p.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetworkWPA/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetworkWPA2/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a2.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isNetworkWPA3/#android.net.wifi.ScanResult/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-network-w-p-a3.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/isWifiEnabled/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/is-wifi-enabled.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/networkConnectionStatusUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-status-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/networkConnectionUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/network-connection-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/networkInfoUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/network-info-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/removeNetwork/#kotlin.String#com.isupatches.android.wisefy.callbacks.RemoveNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/removeNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/removeNetworkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/remove-network-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/savedNetworkUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/saved-network-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForAccessPoint/#kotlin.String#kotlin.Int#kotlin.Boolean#com.isupatches.android.wisefy.callbacks.SearchForAccessPointCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-point.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForAccessPoint/#kotlin.String#kotlin.Int#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-point.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForAccessPoints/#kotlin.String#kotlin.Boolean#com.isupatches.android.wisefy.callbacks.SearchForAccessPointsCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-points.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForAccessPoints/#kotlin.String#kotlin.Boolean/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-access-points.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForSSID/#kotlin.String#kotlin.Int#com.isupatches.android.wisefy.callbacks.SearchForSSIDCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForSSID/#kotlin.String#kotlin.Int/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-d.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForSSIDs/#kotlin.String#com.isupatches.android.wisefy.callbacks.SearchForSSIDsCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-ds.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForSSIDs/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-s-s-i-ds.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForSavedNetwork/#kotlin.String#com.isupatches.android.wisefy.callbacks.SearchForSavedNetworkCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForSavedNetwork/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-network.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForSavedNetworks/#kotlin.String#com.isupatches.android.wisefy.callbacks.SearchForSavedNetworksCallbacks?/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/searchForSavedNetworks/#kotlin.String/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/search-for-saved-networks.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/securityUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/security-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/signalUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/signal-util.md +$dokka.location:com.isupatches.android.wisefy/Wisefy/wifiUtil/#/PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy/wifi-util.md +$dokka.location:com.isupatches.android.wisefy/WisefyApi///PointingToDeclaration/wisefy/com.isupatches.android.wisefy/-wisefy-api/index.md +com.isupatches.android.wisefy +com.isupatches.android.wisefy.accesspoints +com.isupatches.android.wisefy.accesspoints.delegates +com.isupatches.android.wisefy.accesspoints.entities +com.isupatches.android.wisefy.addnetwork +com.isupatches.android.wisefy.addnetwork.delegates +com.isupatches.android.wisefy.addnetwork.entities +com.isupatches.android.wisefy.callbacks +com.isupatches.android.wisefy.constants +com.isupatches.android.wisefy.frequency +com.isupatches.android.wisefy.frequency.delegates +com.isupatches.android.wisefy.logging +com.isupatches.android.wisefy.networkconnection +com.isupatches.android.wisefy.networkconnection.delegates +com.isupatches.android.wisefy.networkconnection.entities +com.isupatches.android.wisefy.networkconnectionstatus +com.isupatches.android.wisefy.networkconnectionstatus.delegates +com.isupatches.android.wisefy.networkconnectionstatus.entities +com.isupatches.android.wisefy.networkinfo +com.isupatches.android.wisefy.networkinfo.delegates +com.isupatches.android.wisefy.networkinfo.entities +com.isupatches.android.wisefy.removenetwork +com.isupatches.android.wisefy.removenetwork.delegates +com.isupatches.android.wisefy.removenetwork.entities +com.isupatches.android.wisefy.savednetworks +com.isupatches.android.wisefy.savednetworks.delegates +com.isupatches.android.wisefy.savednetworks.entities +com.isupatches.android.wisefy.security +com.isupatches.android.wisefy.security.delegates +com.isupatches.android.wisefy.security.entities +com.isupatches.android.wisefy.signal +com.isupatches.android.wisefy.signal.delegates +com.isupatches.android.wisefy.util +com.isupatches.android.wisefy.util.coroutines +com.isupatches.android.wisefy.util.legacy +com.isupatches.android.wisefy.wifi +com.isupatches.android.wisefy.wifi.delegates + diff --git a/gradle.properties b/gradle.properties index 8c2e47de..386d53af 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,4 +3,4 @@ android.enableJetifier=true android.useAndroidX=true org.gradle.caching=false -org.gradle.jvmargs=-Xmx1g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 diff --git a/gradle/code-coverage.gradle b/gradle/code-coverage.gradle deleted file mode 100644 index b27feead..00000000 --- a/gradle/code-coverage.gradle +++ /dev/null @@ -1,35 +0,0 @@ -task jacocoAllCombinedTests { - group = "verification" - outputs.upToDateWhen { false } - dependsOn ':wisefy:jacocoDebugCombinedTest' -} - -task jacocoAllCombinedTestReports { - group = "verification" - outputs.upToDateWhen { false } - dependsOn ':wisefy:jacocoDebugCombinedTestReport' -} - -task jacocoAllUnitTests { - group = "verification" - outputs.upToDateWhen { false } - dependsOn ':wisefy:jacocoDebugUnitTest' -} - -task jacocoAllUnitTestReports { - group = "verification" - outputs.upToDateWhen { false } - dependsOn ':wisefy:jacocoDebugUnitTestReport' -} - -task jacocoAllAndroidTests { - group = "verification" - outputs.upToDateWhen { false } - dependsOn ':wisefy:jacocoDebugAndroidTest' -} - -task jacocoAllAndroidTestReports { - group = "verification" - outputs.upToDateWhen { false } - dependsOn ':wisefy:jacocoDebugAndroidTestReport' -} \ No newline at end of file diff --git a/gradle/cpd.gradle b/gradle/cpd.gradle deleted file mode 100644 index 70c94a35..00000000 --- a/gradle/cpd.gradle +++ /dev/null @@ -1,25 +0,0 @@ -apply plugin: 'cpd' - -cpd { - language = 'kotlin' - toolVersion = '6.13.0' -} - -cpdCheck { - group = "verification" - - ignoreFailures false - - def classes = fileTree("$projectDir/src/main/java") - classes += fileTree('src/androidTest/java') - classes += fileTree('src/commonTest/java') - classes += fileTree('src/test/java') - source = classes - - skipLexicalErrors true - - reports { - text.enabled = false - xml.enabled = true - } -} \ No newline at end of file diff --git a/gradle/cpd.gradle.kts b/gradle/cpd.gradle.kts new file mode 100644 index 00000000..4253ae20 --- /dev/null +++ b/gradle/cpd.gradle.kts @@ -0,0 +1,35 @@ +import de.aaschmid.gradle.plugins.cpd.Cpd +import de.aaschmid.gradle.plugins.cpd.CpdExtension +import de.aaschmid.gradle.plugins.cpd.CpdPlugin + +buildscript { + repositories { + mavenCentral() + } + + dependencies { + val versions = com.isupatches.android.wisefy.build.Versions + classpath("de.aaschmid:gradle-cpd-plugin:${versions.CPD}") + } +} + +plugins.apply(CpdPlugin::class) + +configure { + language = "kotlin" + group = "reporting" + isIgnoreFailures = false + minimumTokenCount = 75 +} + +tasks.withType().configureEach { + source = fileTree("$projectDir/src/main/java") + reports { + text.required.set(false) + xml.required.set(true) + } + exclude( + "**/*Delegate.kt", + "**/*Api.kt" + ) +} diff --git a/gradle/detekt.gradle b/gradle/detekt.gradle deleted file mode 100644 index 8ed4038b..00000000 --- a/gradle/detekt.gradle +++ /dev/null @@ -1,7 +0,0 @@ -apply plugin: "io.gitlab.arturbosch.detekt" - -detekt { - version = "$detekt_version" - failFast = false - config = files("$project.rootDir/config/detekt-config.yml") -} \ No newline at end of file diff --git a/gradle/detekt.gradle.kts b/gradle/detekt.gradle.kts new file mode 100644 index 00000000..e218acee --- /dev/null +++ b/gradle/detekt.gradle.kts @@ -0,0 +1,21 @@ +import io.gitlab.arturbosch.detekt.DetektPlugin +import io.gitlab.arturbosch.detekt.extensions.DetektExtension + +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + } + + dependencies { + val versions = com.isupatches.android.wisefy.build.Versions + classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${versions.DETEKT}") + } +} + +plugins.apply(DetektPlugin::class) + +configure { + version = com.isupatches.android.wisefy.build.Versions.DETEKT + config = files("${project.rootDir}/config/detekt.yml") +} diff --git a/gradle/dexcount.gradle b/gradle/dexcount.gradle deleted file mode 100644 index d4244ccc..00000000 --- a/gradle/dexcount.gradle +++ /dev/null @@ -1,10 +0,0 @@ -apply plugin: 'com.getkeepsafe.dexcount' - -dexcount { - format = "tree" - includeClasses = true - includeFieldCount = true - includeTotalMethodCount = true - orderByMethodCount = true - verbose = false -} \ No newline at end of file diff --git a/gradle/dexcount.gradle.kts b/gradle/dexcount.gradle.kts new file mode 100644 index 00000000..56076839 --- /dev/null +++ b/gradle/dexcount.gradle.kts @@ -0,0 +1,26 @@ +import com.getkeepsafe.dexcount.DexCountExtension +import com.getkeepsafe.dexcount.DexMethodCountPlugin +import com.getkeepsafe.dexcount.OutputFormat + +buildscript { + repositories { + mavenCentral() + } + + dependencies { + val versions = com.isupatches.android.wisefy.build.Versions + classpath("com.getkeepsafe.dexcount:dexcount-gradle-plugin:${versions.DEXCOUNT}") + } +} + +plugins.apply(DexMethodCountPlugin::class) + +configure { + format = OutputFormat.TREE + includeClasses = true + includeFieldCount = true + includeTotalMethodCount = true + orderByMethodCount = true + verbose = false + runOnEachPackage = true +} diff --git a/gradle/dokka.gradle b/gradle/dokka.gradle deleted file mode 100644 index ef460a81..00000000 --- a/gradle/dokka.gradle +++ /dev/null @@ -1,6 +0,0 @@ -dokka { - moduleName = 'wisefy' - outputFormat = 'html' - outputDirectory = "$rootProject.projectDir/javadoc" - jdkVersion = 8 -} \ No newline at end of file diff --git a/gradle/gradle-bintray-install.gradle b/gradle/gradle-bintray-install.gradle deleted file mode 100644 index fb98a471..00000000 --- a/gradle/gradle-bintray-install.gradle +++ /dev/null @@ -1,38 +0,0 @@ -// Source: https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle - -apply plugin: 'com.github.dcendents.android-maven' - -install { - repositories.mavenInstaller { - // This generates POM.xml with proper parameters - pom.project { - packaging POM_PACKAGING - groupId GROUP - artifactId BINTRAY_NAME - - name POM_DESCRIPTION - description LIBRARY_DESCRIPTION - url POM_URL - - // Set your license - licenses { - license { - name POM_LICENSE_NAME - url POM_LICENSE_URL - } - } - developers { - developer { - id POM_DEVELOPER_ID - name POM_DEVELOPER_NAME - email POM_DEVELOPER_EMAIL - } - } - scm { - url POM_SCM_URL - connection POM_SCM_CONNECTION - developerConnection POM_SCM_DEV_CONNECTION - } - } - } -} \ No newline at end of file diff --git a/gradle/gradle-bintray-upload.gradle b/gradle/gradle-bintray-upload.gradle deleted file mode 100644 index bfda33b0..00000000 --- a/gradle/gradle-bintray-upload.gradle +++ /dev/null @@ -1,73 +0,0 @@ -// Source: https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle - -apply plugin: 'com.jfrog.bintray' - -version = VERSION_NAME - -if (project.hasProperty("android")) { // Android libraries - task sourcesJar(type: Jar) { - outputs.upToDateWhen { false } - getArchiveClassifier().set('sources') - from android.sourceSets.main.java.srcDirs - } - - task javadoc(type: Javadoc, dependsOn: dokka) { - outputs.upToDateWhen { false } - } -} else { // Java libraries - task sourcesJar(type: Jar, dependsOn: classes) { - outputs.upToDateWhen { false } - getArchiveClassifier().set('sources') - from sourceSets.main.allSource - } -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - outputs.upToDateWhen { false } - getArchiveClassifier().set('javadoc') - from javadoc.destinationDir -} - -artifacts { - archives javadocJar - archives sourcesJar -} - -// Bintray -final Properties properties = new Properties() -if (project.rootProject.file('local.properties').exists()) { - properties.load(project.rootProject.file('local.properties').newDataInputStream()) -} - -bintray { - key = properties.getProperty("bintray.apikey") - user = properties.getProperty("bintray.user") - final def gpgPassphrase = properties.getProperty("bintray.gpg_passphrase") - - println("user: " + user) - println("key: " + key) - println("gpg_passphrase: " + gpgPassphrase) - - configurations = ['archives'] - - pkg { - repo = BINTRAY_REPO - name = BINTRAY_NAME - desc = LIBRARY_DESCRIPTION - websiteUrl = POM_URL - vcsUrl = POM_SCM_URL - issueTrackerUrl = POM_SCM_ISSUE_URL - licenses = ALL_LICENSES - labels = ['Wifi', 'WifiManager', 'ConnectivityManager', 'Android', 'isuPatches', 'Patches'] - publish = true - publicDownloadNumbers = true - version { - desc = LIBRARY_DESCRIPTION - gpg { - sign = true // Determines whether to GPG sign the files. The default is false - passphrase = gpgPassphrase - // Optional. The passphrase for GPG signing' - } - } - } -} \ No newline at end of file diff --git a/gradle/jacoco.gradle b/gradle/jacoco.gradle deleted file mode 100644 index 89d2c679..00000000 --- a/gradle/jacoco.gradle +++ /dev/null @@ -1,163 +0,0 @@ -apply plugin: 'jacoco' - -jacoco { - toolVersion = "$jacoco_version" -} - -final def srcDirs = ["src/main/java"] - -final def excludes = [ - '**/R.class', - '**/R$*.class', - '**/*$ViewBinder*.*', - '**/*MembersInjector*.*', - '**/BuildConfig.*', - '**/Manifest*.*', - '**/*$Lambda$*.class', - '**/*Factory*.class', - '**/*$Builder*', - '**/di/*.class' -] - -project.afterEvaluate { - final def variants = getVariants() - if (variants != null) { - variants.all { final variant -> - if (variant.name.toLowerCase().contains("release")) { - return - } - - task("jacoco${variant.name.capitalize()}UnitTest", type: JacocoReport, dependsOn: "test${variant.name.capitalize()}UnitTest") { - group = "verification" - - outputs.upToDateWhen { false } - - classDirectories.setFrom(getClassDirs('debug', 'debug', excludes)) - additionalSourceDirs.setFrom(files(srcDirs)) - sourceDirectories.setFrom(files(srcDirs)) - executionData.setFrom(fileTree(dir: "$project.buildDir/jacoco", includes: [ - "**/*.exec" - ])) - - reports { - xml.enabled = false - html.enabled = true - } - } - - task("jacoco${variant.name.capitalize()}UnitTestReport", type: JacocoReport) { - group = "verification" - - outputs.upToDateWhen { false } - - classDirectories.setFrom(getClassDirs('debug', 'debug', excludes)) - additionalSourceDirs.setFrom(files(srcDirs)) - sourceDirectories.setFrom(files(srcDirs)) - executionData.setFrom(fileTree(dir: "$project.buildDir/jacoco", includes: [ - "**/*.exec" - ])) - - reports { - xml.enabled = false - html.enabled = true - } - } - - task("jacoco${variant.name.capitalize()}AndroidTest", type: JacocoReport, dependsOn: "connected${variant.name.capitalize()}AndroidTest") { - group = "verification" - - outputs.upToDateWhen { false } - - classDirectories.setFrom(getClassDirs('debug', 'debug', excludes)) - additionalSourceDirs.setFrom(files(srcDirs)) - sourceDirectories.setFrom(files(srcDirs)) - executionData.setFrom(fileTree(dir: "$project.buildDir/outputs", includes: [ - '**/*.ec' - ])) - - reports { - xml.enabled = false - html.enabled = true - } - } - - task("jacoco${variant.name.capitalize()}AndroidTestReport", type: JacocoReport) { - group = "verification" - - outputs.upToDateWhen { false } - - classDirectories.setFrom(getClassDirs('debug', 'debug', excludes)) - additionalSourceDirs.setFrom(files(srcDirs)) - sourceDirectories.setFrom(files(srcDirs)) - executionData.setFrom(fileTree(dir: "$project.buildDir/outputs", includes: [ - '**/*.ec' - ])) - - reports { - xml.enabled = false - html.enabled = true - } - } - - task("jacoco${variant.name.capitalize()}CombinedTest", type: JacocoReport, dependsOn: ["test${variant.name.capitalize()}UnitTest", "connected${variant.name.capitalize()}AndroidTest"]) { - group = "verification" - - outputs.upToDateWhen { false } - - classDirectories.setFrom(getClassDirs('debug', 'debug', excludes)) - additionalSourceDirs.setFrom(files(srcDirs)) - sourceDirectories.setFrom(files(srcDirs)) - executionData.setFrom(files([ - fileTree(dir: "$project.buildDir/outputs", include: '**/*.ec'), - fileTree(dir: "$project.buildDir/jacoco", include: '**/*.exec') - ])) - - reports { - xml.enabled = false - html.enabled = true - } - } - - task("jacoco${variant.name.capitalize()}CombinedTestReport", type: JacocoReport) { - group = "verification" - - outputs.upToDateWhen { false } - - classDirectories.setFrom(getClassDirs('debug', 'debug', excludes)) - additionalSourceDirs.setFrom(files(srcDirs)) - sourceDirectories.setFrom(files(srcDirs)) - executionData.setFrom(files([ - fileTree(dir: "$project.buildDir/outputs", include: '**/*.ec'), - fileTree(dir: "$project.buildDir/jacoco", include: '**/*.exec') - ])) - - reports { - xml.enabled = true // Enabled for CodeCov - html.enabled = true - } - } - } - } -} - -private def getClassDirs(final String javaDirSuffix, final String kotlinDirSuffix, final excludes) { - final def java = fileTree( - dir: "${buildDir}/intermediates/classes/${javaDirSuffix}", - excludes: excludes - ) - final def kotlin = fileTree( - dir: "${buildDir}/tmp/kotlin-classes/${kotlinDirSuffix}", - excludes: excludes - ) - files([java], [kotlin]) -} - -private def getVariants() { - if (project.hasProperty("android")) { - if (project.android.hasProperty('libraryVariants')) { - return project.android.libraryVariants - } else { - return project.android.applicationVariants - } - } -} diff --git a/gradle/jacoco.gradle.kts b/gradle/jacoco.gradle.kts new file mode 100644 index 00000000..664d9771 --- /dev/null +++ b/gradle/jacoco.gradle.kts @@ -0,0 +1,149 @@ +plugins.apply(JacocoPlugin::class) + +fun getCoverageVariants() = listOf("debug") +val buildTaskGroup = "verification" + +val excludes = setOf( + "**/R.class", + "**/R\$*.class", + "**/BuildConfig.*", + "**/Manifest*.*", + "**/*\$Lambda\$*.class", + "**/*Factory*.class", + "**/*\$Builder*" +) + +fun getSourceDirectoriesTree() = files( + "src/main/java" +) + +fun getClassDirectoriesTree(excludes: Set): FileTree { + return fileTree("${project.buildDir}") { + include( + "**/classes/**/main/**", + "**/intermediates/classes/debug/**", + "**/intermediates/javac/debug/*/classes/**", // Android Gradle Plugin 3.2.x support. + "**/tmp/kotlin-classes/debug/**" + ) + + exclude(excludes) + } +} + +afterEvaluate { + getCoverageVariants().forEach { variant -> + tasks.create("jacoco${variant.capitalize()}UnitTest") { + group = buildTaskGroup + + dependsOn("test${variant.capitalize()}UnitTest") + + classDirectories.setFrom(getClassDirectoriesTree(excludes)) + sourceDirectories.setFrom(getSourceDirectoriesTree()) + executionData.setFrom( + fileTree("${project.buildDir}/jacoco") { + include("**/*.exec") + } + ) + + reports { + xml.required.set(false) + html.required.set(true) + } + } + + tasks.create("jacoco${variant.capitalize()}UnitTestReport") { + group = buildTaskGroup + + classDirectories.setFrom(getClassDirectoriesTree(excludes)) + sourceDirectories.setFrom(getSourceDirectoriesTree()) + executionData.setFrom( + fileTree("${project.buildDir}/jacoco") { + include("**/*.exec") + } + ) + + reports { + xml.required.set(false) + html.required.set(true) + } + } + + tasks.create("jacoco${variant.capitalize()}AndroidTest") { + group = buildTaskGroup + + dependsOn("connected${variant.capitalize()}AndroidTest") + + classDirectories.setFrom(getClassDirectoriesTree(excludes)) + sourceDirectories.setFrom(getSourceDirectoriesTree()) + executionData.setFrom( + fileTree("${project.buildDir}/outputs/code_coverage/") { + include("**/*.ec") + } + ) + + reports { + xml.required.set(false) + html.required.set(true) + } + } + + tasks.create("jacoco${variant.capitalize()}AndroidTestReport") { + group = buildTaskGroup + + classDirectories.setFrom(getClassDirectoriesTree(excludes)) + sourceDirectories.setFrom(getSourceDirectoriesTree()) + executionData.setFrom( + fileTree("${project.buildDir}/outputs/code_coverage/") { + include("**/*.ec") + } + ) + + reports { + xml.required.set(false) + html.required.set(true) + } + } + + tasks.create("jacoco${variant.capitalize()}CombinedTest") { + group = buildTaskGroup + + dependsOn("test${variant.capitalize()}UnitTest", "connected${variant.capitalize()}AndroidTest") + + classDirectories.setFrom(getClassDirectoriesTree(excludes)) + sourceDirectories.setFrom(getSourceDirectoriesTree()) + executionData.setFrom( + fileTree("${project.buildDir}/jacoco") { + include("**/*.exec") + }, + fileTree("${project.buildDir}/outputs/code_coverage/") { + include("**/*.ec") + } + ) + + reports { + xml.required.set(false) + html.required.set(true) + } + } + + tasks.create("jacoco${variant.capitalize()}CombinedTestReport") { + group = buildTaskGroup + + classDirectories.setFrom(getClassDirectoriesTree(excludes)) + sourceDirectories.setFrom(getSourceDirectoriesTree()) + executionData.setFrom( + fileTree("${project.buildDir}/jacoco") { + include("**/*.exec") + }, + fileTree("${project.buildDir}/outputs/code_coverage/") { + include("**/*.ec") + } + ) + + reports { + xml.required.set(false) + html.required.set(true) + } + } + } +} diff --git a/gradle/ktlint.gradle b/gradle/ktlint.gradle deleted file mode 100644 index 3ca52e74..00000000 --- a/gradle/ktlint.gradle +++ /dev/null @@ -1,12 +0,0 @@ -ktlint { - version "$ktlint_version" - debug = true - verbose = true - android = true - reporters { - reporter "plain" - reporter "checkstyle" - - } - ignoreFailures = false -} diff --git a/gradle/ktlint.gradle.kts b/gradle/ktlint.gradle.kts new file mode 100644 index 00000000..f57df092 --- /dev/null +++ b/gradle/ktlint.gradle.kts @@ -0,0 +1,30 @@ +import org.jlleitschuh.gradle.ktlint.KtlintExtension +import org.jlleitschuh.gradle.ktlint.KtlintPlugin +import org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE +import org.jlleitschuh.gradle.ktlint.reporter.ReporterType.PLAIN + +buildscript { + repositories { + mavenCentral() + maven("https://plugins.gradle.org/m2/") + } + + dependencies { + val versions = com.isupatches.android.wisefy.build.Versions + classpath("org.jlleitschuh.gradle:ktlint-gradle:${versions.KTLINT_PLUGIN}") + } +} + +plugins.apply(KtlintPlugin::class) + +configure { + version.set(com.isupatches.android.wisefy.build.Versions.KTLINT) + debug.set(false) + verbose.set(true) + android.set(true) + reporters { + reporter(PLAIN) + reporter(CHECKSTYLE) + } + ignoreFailures.set(false) +} diff --git a/gradle/pmd.gradle b/gradle/pmd.gradle deleted file mode 100644 index 06116525..00000000 --- a/gradle/pmd.gradle +++ /dev/null @@ -1,17 +0,0 @@ -apply plugin: 'pmd' - -task pmd(type: Pmd) { - description 'Analyze code with pmd' - group 'verification' - - ignoreFailures = false - - source = fileTree('src/main/java') - - outputs.upToDateWhen { false } - - reports { - xml.enabled = false - html.enabled = true - } -} \ No newline at end of file diff --git a/gradle/static-analysis.gradle b/gradle/static-analysis.gradle deleted file mode 100644 index 9bf6736d..00000000 --- a/gradle/static-analysis.gradle +++ /dev/null @@ -1,69 +0,0 @@ -task staticAnalysisSanityCheck { - group = "verification" - - outputs.upToDateWhen { false } - - dependsOn 'ktlintAll', 'detektAll', 'cpdAll', 'pmdAll', 'lintAll' - doLast { - println "\n##################################################" + - "\n# Static analysis passed! You are doing so good! #" + - "\n##################################################" - } -} - -task ktlintAll { - group = 'verification' - - dependsOn ':wisefy:ktlintCheck', 'wisefysample:ktlintCheck' - doLast { - println "\n##################################################" + - "\n# KTLinted all the things! Go you! #" + - "\n##################################################" - } -} - -task detektAll { - group = 'verification' - - dependsOn ':wisefy:detekt', 'wisefysample:detekt' - doLast { - println "\n##################################################" + - "\n# No issues Detekt'ed :badjoke: #" + - "\n##################################################" - } -} - -task cpdAll { - group = 'verification' - - dependsOn ':wisefy:cpdCheck', 'wisefysample:cpdCheck' - doLast { - println "\n##################################################" + - "\n# Code so DRY, it must have an umbrella! #" + - "\n##################################################" - } -} - -task pmdAll { - group = 'verification' - - dependsOn ':wisefy:pmd', 'wisefysample:pmd' - doLast { - println "\n##################################################" + - "\n# PMD'ed all the things! Oooohh yea!! #" + - "\n##################################################" - } -} - -task lintAll { - group = 'verification' - - outputs.upToDateWhen { false } - - dependsOn ':wisefy:lintDebug', 'wisefysample:lintDebug' - doLast { - println "\n##################################################" + - "\n# Lint error free is the way to be! #" + - "\n##################################################" - } -} diff --git a/gradle/versions.gradle b/gradle/versions.gradle deleted file mode 100644 index 715cfc82..00000000 --- a/gradle/versions.gradle +++ /dev/null @@ -1,25 +0,0 @@ -ext { - androidx_appcompat_version = "1.1.0" - androidx_constraintlayout_version = "2.0.0-beta4" - androidx_support_annotations_version = '1.0.0' - androidx_core_ktx_version = '1.1.0' - androidx_core_test_version = '1.1.0' - - google_android_material_version = "1.2.0-alpha03" - - dagger_version = "2.25.4" - - detekt_version = "1.3.1" - ktlint_version = "0.36.0" - - rxandroid_version = '2.1.1' - rxjava_version = '2.2.15' - - // Test deps - junit_version = '4.12' - mockito_version = '3.2.4' - mockito_kotlin_version = '2.2.0' - - androidx_espresso_core_version = '3.2.0' - androidx_test_runner_version = '1.2.0' -} \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index cc4fdc293d0e50b0ad9b65c16e7ddd1db2f6025b..e708b1c023ec8b20f512888fe07c5bd3ff77bb8f 100644 GIT binary patch delta 18978 zcmY&fV{@PlkPJ5)+qP}nwr$&ZV%xTD+uGRNVB>7e4eq`Bc2)Barh0m&r+aQ1d}I#1 zF#sCA44g!o7Xk!i0}2F0IK{~rBc=Z*bV@a}0ia;$cOLt5HS1a4@*VT_shE|gj|F)G_Q`4pn)*lCWG0!y+Cgg6 zvR4x*bZ%013&osqCFlqib0Yg~auk(8d~R0Id*-CETJ*z@aX39Dra2_%UKj0GIDGGU zMxbIwfRUS|@Ax4M@}S~jI@7q47FsgZn+Pl3!P99&*9AWzgW=s^6EjU_uO4Dpz1|no zugS`Hb$T5805c4isS)p>pjDrj>z9*27i`c(@Ku({PegC>!>!Z~edi(`LD~;#fy=~l z?i=(j)-iuwf%Vh_qq%w}H-s44-U|p`aloR{g`rLqp+OCTJ9jH?z34kqqD(r~rd?z( z#KznzzQfsQg%&2PcHVV4iz+lYI0gP0MffDN0+}^u;HxPn3n>0KL|Q=st|C z1qWk79y&a6!KMq&+vqT8G&;O-MxzvaVczkxFz^1die0bg~rDxSUs<~=wa6^}~)iHbAcu zcs20JA|-eCu!q;xPBA3QEn`j^dFdfZ-jN2xxAq-!Asv%>)mQ@}d5S0PJoWfQ6|Wvc zk)|$IlDX}5D-@@Gj?&m>HgP%O%nT7CIj8G?;QqL{gtvO$j0 zj4nK_(?x`@CFbJljF{~wfRiCEEz_N|>l{^~H>%yRh*b5PTT$C%AMj4sq?pmVB^RXJ zU{+3KSdD6iKC&MK1xyp}a+TI^cMhA|P$r4CR&3TD^dGg(HRte80B^=63KLHexQ)C&jZ;BbfresuW5r&E0;Ps#PQPwJxdOiXPlq9QyjQRqTs^KRCO0wV(Fd!g5e}eosBS03r6|U&OK|lt7q!1$T z0_wY}D9UKx`eK;t;!#Sf52WniYD)i>*i@OPMaY$wugt^ncZT(K(pP{=%S+I_-1DMx zM&C0;oAUD=bZjxnxCq}l{!`Dn&%BmX1B9=D4+x{5jN)Dkl*Rds1dp1efkf*+#NbS% z2IY~#UZ6Yw4B9i?M0Um)LrLIuPOK_}0;VK?P4z-y5xuIRK~=#-;M7g4%d?N*&<*xc zLikH5(ZjnVtEpYP;@HQu64#f^oFyMaa}AQ=({5lTdb;W@rZCwb>#nDAyXvjVvlHca zjS?-`&tNP0ur>w?2wpMqeIcILC9$Y}lXcO&Qm%Pk1~!6xGs zDG5d(n>mCEt%!`wL~D%j02lX19gzF8;-L;bre)V$WohLNnbM0Aiw^!Il^wW#P_E{o)4)~AWnBHd^zCpWq5ZP+!Oqt51@ zE)UAYk|&|4%0mxhuxVxN_(_H)mJdUAM<}^}+L%_TTv_d;2vwEaywb=-FTfR?Px^63 zTz5#ncoy^ItJtk5f%YR!2Ea+ZnD9?P7|eU&=iEz9^p^$4al}yjvalDZB%DAvYc;B1}qVALh`w z+_UKPlj`^&J44~OaRBUoj7IXW(LqtTdXysq1Xu2}{VIZksB+-{qlpY;D&Pna1VoDn z1cdni_&0tP0jSe~_QIWT4@iJ$l6CSHMj<~7HOEIoTu63LPPa=cCX?zFOH8HKPSzYu z4uv#17!yIuh?)g5%0~VS-N0OR`q{Z~WM{R`0@{RWymVXUiUx(Pkzv4IW zu&)JChj&uu*Y@A+$HfmtZnbZrGD4p-NwyNEs#$`qQF3##uN5S9C+Z%)M{x$#&1>T@b*bMj!ql1@ zB~D=x?Ta01Yq!TTi)vMR^!e-}Ds{sKnZIJhTC~_?#Z)P?%Zjxra0-TJ&<%?2We~4V zb?iblt9rLYDZS&S1JWE-yz2`0;41EU5aEG)pEORdv&&xPKR#ic&?+I*aWtINkJw>3 z{CK}H(j1XlIB0vt4|LV{s_!|{I%;}F|Ktsi>x=l-Oxx4!m)|?2y;S=3OnX-LYSP(h zc8VVO%jqx?aMs3W=F8zom$UziMdn9udC5Y(%dC=or*mClNuH{=TH+X-Jcc~qIo<o<`%}#F9`{9T3`T=#n0~?V}6cOU1esENCscJXrcz4Ni!hRiot3# zp=I}_J1)(bRR9HFUVD7!D%pXt4pT0TSQoM2d<}KZVI{HzBTBg-377LKedw#Ogxse6 zDq$S1N_deJ*%(KqCJ~()i#geY?eAGNjb04I86PGGiU~@LZ8J}Z^LFE*4;-wD^vD*k z4VQM@&jN+G*vJ(s?mdLDyA{A|fH=0cQC>H}9s5q%mrgMmc`Er8i6rY+BLXYA8j;m4 z{FP3+qX#AowL@r_a${oAWBKNJBDR3(2Kb`$h}8a%bv#Ni0nS>^IoS1_Q(y8b~E9Z4j` zSyxcg$WM=jw@zVVuSn%OKehRE8D5rAVXF%*L2M(xH^&AD}H}OjG!Kwh4v?% zyl(Uun0j(=y*Gm7SYF^BYnP>FK|8xcgv2i+S7@?3(*_jrKuxYAZYY;>4I@G0puOz$ z5CwM?B2*z0!{dk^iE<{$+Sy+jnm`zreME7`Jjl;X+f=sdcm+H+uzf~ad5uMJ0!x@ zGi@K464}S(anF0ETUOoHYZRYYsQ_zm-g{ztKxR^qBKrtue~gl?Th2OeuaNUV)7Ys6 zu5_I84NYMd(hgXEby#B;pwDJ9wYrTQFX1b9Qakc}jU8t;emTWHQ4@n~)~*V*7ekA; zwQ~u!Rz~phaXpV~;j0-EETa7Mh6NwK3LSp2v2#{2%|X^sd958s&0ToSjhxN)1QlPI z-1)Fm6gO@5v1!Q`eoW9h=`=i&?pI{H5xx5->BhynbOCg*vakmT_EFn)6Q<=GisJwv zs2_n=0#v>Cg=hR^*%7R?0ucKQfx&@k+NA%SX@rdTj*CB+kOu7EQM=RFK13+>E7r57 z&AzPt@(GQ305?ZKvGFtzV50VLb22KNXJlSA{8=6FP;315#Fd-JHq4d$+0sd!YBo z5-z?f2fz_vKskHl}OEMZ-|He66T6yyq(Amoj2@Z=qRQE?*X@<*on{g zyH$UMjw?7$7y&}S|K)hve4q*H4`%3hSNPW^^nUMn(K+$pBtSf$w>v0Oz~M>W z*77aeq9Pet%Gpk=j%1thBo#P{e`G%@id{EB9%9J9AC+G#mZLzU+K>b+P=LmNiHh#t z_He3pgI2h)dZ}qjUAf-sk-f3v03skk5NCthQ1$GV$AeDp7F+_d%Clxft~_1~v_zLE zK%-`@VtcLP`{g?2_VK>Fw|<=9Q~_8nx^VXI{vCVARS}|Y?3W_lX7V#30)=7|PXfDv zS9fB<*hBBDH}_q2q^}_6ncPV|*$gy(w=9J3f!*pca|%IRN@2{#=wT4X^sSV8I>QBd zmFcUm)7}N|(2|CT3PSSN!`8L%A9POd~{nrw|rFGn|`9WWXF@x_t zCmg)(?XR>&On#Y!*9T)jJ(*YL?LghD6XQ!ZO49D}EDsU@BhpU3k2`&l&=F${$P0H* zRmuErx%KnV^E#MT8uRsJ!_MXBeqem_2a9k?r=t-G4}jLtQok~Z?c@By>Vl=-d;oWJ z^`O~g{$V{_F7Em_KLP=I(;QV}MM8!8R#?er%X5Szc>C5Rf&Cye3+=|(gau*o*Uh=a z4c>>n>uVnDo5)9X9bIBeNBv;1lfG+(Fc&#KpKXZ*4CssJI{O{4 zP4`_uN3~L{ zZ^A;vVgN*mFbyeY{vY@_U}uF-+)p~%Ta6{X(4IKWp=e^kc9Lo7=u!DCuS1WU6Q>F(4XdjQ zXRh*#F0TRNHHWU=n(wJ>b@yF1oWl$3bIUibW#{E<&09V`;`ZueR@WYiZ}HLh_-Xwt z1=-~}5gi#Be2U}fIvM3p1?A+7i$8A0*;W;o%Z(XJISp!n8ZDIogMDRXP3nR)_q3QQ z>)wy7`Q&iw`8Uh_l0V57SCw|JG*xkhtLnXSpq%XgR+h;BSlf6TpIFPK`8Y~1TNrM- ztN5E+Z!P)d`Q$9SUBbFGsw2ZxSa08=*}wdiT2^S9*Wc54Tv|C%EkA3wty>)nqY{a1 zc;6!T>W|(7iaX4=`o;ua-|P*D3$nysrMDuViTDD3QhQ zV~b$&MO)#u#$pFJ@hg~i#Yx@3+yRs}KNxEt&L!qpD~U7jS-&s|>+JC}cph+Elt=vT zjDA@Re?;2;1c-o~@pJs>k!*;D5?^mrZ9Jl!4y9=oKbg8MPQY`*w3=$Y*Kkx$)-L0B-%fc*I${@wZ=+iZi^jny9^87)bD z(@$)EO7fBAO>3C<{Nd464F-2ZTX%f>4D#LEt13F@4D$>#DX&Bh!tK>Gv!`pYN*GUZsVNko?vMn4y{ zeFe?b=_?TO7aWH-DZck=W%Rrx!r%^~AS{+me);YQy!FA7#kD-m>$%SZPVpEu{i|5>W>aOWt5nsrPCxf>YJn*x z96K}st(zdkmoS1H(~7!r6%p10{L?})j-MN8I|aOnpDhf6dgvn0O`PO0PqyaWm%AyTC^X z+PJW>m?e~5zFT7{n9&TMG94+4+v{0!1B06wkf3BV`Lkii1+ZKrCho9rzmz zl^$f8Z4eX+0&}DOs8>i=vVMj`!u5mD(hBkL>J8@;#pe?w$52A?crq-vfl+GU5CJ0c z4gFnxgNkoQikwx+kY*VR^3h!xyuu=pza9@7Li)ePK6a-}%^Q;icWvU1BX0uNafR2` z-3qpWxwN@{LvQUZKeTMwEbsr2G}|7VFqmE(d;24U_CjnMiv042bn@nAROL9W-KT58 z#$?d?u)Pl`0!HaPY{?72<>%xAByGO*@nAw{45@$Xe3bM=cdc@fjebLF!83usd@!~+5poeg zY``UxrPT8C0{V)m!f4_9)*brYyCU=fM8$rxx-_~l*+^qp(yqWtvQPiw$o6Kve-H@fdSW39yq;A!%e!$R#iZ|84d^v~C{lAzW) zdH2~|xAIjOl&Sl4Mi2R^zv%9`cOZoM*DiJ6w(I@}%d>CN6-{6POHP2M2m4h+|pE4!wnkX{eprZ6FM3vd(Vao;`R~+@!{=$8nmtj|6X1HmD)~o2kt{sLSV=_w# z`RUCO$mAZ6)EPDTLv)zITp4Gg@#M!a?8-ZWuL1F>HMz$G2CrV|XY zsl$6|OvWT#Z%7-?AMxj6S&&DJx@Ha#QLug@+BJHC#(@3QDFEg}$YaM!9U7e22qDGzmS#Vt? znH9~}mX2U#&X)aPn=LClZd|0JK^NCGaOS3Tdb^@x| zPKl?tJ4E=uTS~JkoShTPZ~cl43!S9{WkcLBGpzLpO3(F>OMALhd@!bU(|YNbyqpt< z@nG&z3~)+$3@8d_%Cw1pP2ai2&LiB?#MPL4xhL+;*p@!zf;6O^b_oYStwVGI8WI;` z@9rX6gry_~gufq-yM&LziRzBya0&=Z)wK}v;+E`^%cWoK(yMgAJ`~P3tDRfMx50Y( z2YE|PEfa0t^p{#8&b{}_?i}Lw=^HR1&iw)u6FKg~a17B(e+~PS;(|J)C2&}4*z6FL zUfbF1ARjCIO{PF8&0BJHPV{gEs0MwHvC}Nf6HW0Dok%8k{ie9uxu|J2K^3MRRFEqr zkM@Y%qttsk9r^m^e9OEW#&2L%VslEp2ap1Uj%L{U`J~bp42B6)p$SpU1@THbN8$CC zdWSTvK9J)Y%$9HurMDv`F1u&j`7c-dK^h+N*ZDNnWQm<hJ`rRQ@x*1lSSrqINhZd?dYc@LDaB$I3DE1O=5ys-jyu0UZJtVg~a_edMhNACA zIp#R+T@1;sSsGn7jmzG{Mfgc`spcC=Vt(#bM~_m)GIk{ORx|j3B@Ms1#zH0jjBe6e zs-I&=u^cM?v-5KOR(~5PSy&g@Fa7c4KeXAZ%;g`ImHiBsN=G#dyIkEl)|=9Ge2%kp zwY5{zmn0e*mBxAQZLjrG9eyL}gHfCG%gH!~@Et~t^yp#Ut`PaUEXlG}x{pkwe|{L% zu&*u>H_mSB&m5lvEWV3`L5{pD!QRXeQ*;r+OLnr_$UO}tPT92|mwigy_ST9y>swNf2NrjEX&!R;yd zUswqm>=LQi!3dY|QCM)C?q-9J?v}w6d^U&KNhS^Yb$1gHt8x(yD74gb`UWf-O(`_- zlWQjN%fBH?ekoupL#8=TiA~$Estd((`u6(n#^%ei41ucXlVGp{hmnH#V$ihs?l^|9DH6%Nq|SDx z3#+Os-LN*~$@1YKj(R=V?Bu&T49}oN>2g)qkSd3?3u}<>bf|*@rX9NZw;+FUK5-Zn z#$F@}@3QKh(=R~_usiDdYf)2!nA>2qYYimG>W08K@rZ|#jhneE3|UGVqklF>yJW6T zs4}wxIa~ZPbdEjL|6;DQR3l`l`g08lUc^WE|o9JjAW)JO{yB7Xv@kYz! zQ)V_^P%6*suv#Q3S6HuOXkq*UC~A85#FyyOEv6dLX2f7#;5kXdE@?J-s7I{2m~>p< zV_hyQ;Tq5>Pu-X7QV!Zwywvj%8uUj}=F_Ku8@{lqiX7_)pA3YCW*H4_|1GIW_=-Dg zjTp?l_U=r4I}Pl;s3wYJ4cT`3>%#SJA4hziXBgR z#YCgA9XUE8(Tiw?(Y_v9+7fo~{%8Q;wxb>(nB6yS#@KUjVH)I?UFt^Cm}+(Ys>3YN zJ?(iT$V+eYxmolYBFXyIJ;592jf8JI0B*gpg@j1IeI7?Cgy$Lw7Df*sz~07Jd*XL>wKX~T=u zC@1b_;ztMxF9U;-Ojg=Pxg7d)%|dRcg+!kR6~xe{=i}2kA~R}4xGh6IhN{5au7n1A ziqUDjV!3*7Xy(k9qBNqSKb;6H=RKM0b}Q6s7=Y$D#nC*E!<~KL_ai_3V(M=%KlC88 zu((8m?v7AGhqK(rnPGV+gS`CE_fbB*xf|gD4EG3vz|SG0qKs_G^5ad7Z^6|-DXR-5 z3VB^=Zrj|)P^i55Xfqhs-y$N}oxIgfC$J9wg@OcB`?fsOAE*NeK-no^Q2Divf4!io1EYfN-Gxp(U9&X8a_x6?*ytrOK)& z8ZWgga!4)@_b&m1+Xy~%4G-PhDJG6!#lyoP7JZT)mgHE)9W2klB%}35^IXGi4bOKn z5OzRNA+Ykc{(+kZ%m4$T(ib|&=Z}_OeRBYkgB{|gZ^Kc1VD+5vQ8Dj(+z<>#G4~@2Bi95!w3(ZgZYVa{dFq^SoK--xe%dF+ zdR!MT(A7CvSK-8IYt5Y8C--Q7G-(yi=8^f1d03gdjbRzB15i=R11Y^?u(nF9$Qjyk z5LW{8%zl=-rp!o<@5jjEh^9I%HkOIHTorjW^RVo`b*m5BTg#IfqH0?8rmESyg_K2d z+q_Jp-Sa5oShA_8&Gm&m=Uk#}#aVAjABObM3`BV)R&wJq`8L-Z4P*|&f+t$;r<`Ap0dmT>ShRK6B`LQVZiVanmm05M&v(R-km#5@2JZ;(MA|N}SJIhhFJJ2#4kddvQb8_*p+SEE` zaPoD1maNPTTBXThr|?N!gP#Jj*j=pk))$b1EN)KXQH{EVcSR`h;kpcF!em_f*zZN` zR5FrwQX6OAE3rd#kzkLGEE@8@@U9E&z!r@dPGJ@aw~zE(BEpl{Pws1IG}n>WeJO(* zfd;7U7-?54#x#_q1d&J3?$}I*2~7h3M400_&>Kh>(4u_JC4r~j==$*oxCH}ILh*mh ze)IXeytlj$&;D-zh^sLfFd6=#CNJXr^hQDjN&R1*F71xw@gt(~BkSh|s)pNt%^{lgu?0Snf` zQ_FML!faXAbBx}%bB)<&lN0;QkfY8L#QnH_5Q%3@IbN9}`4G0gGQU6zHg65D2g>CR zu+@GM$GtkX7MA17iY(gRusz-IFCFB2ZZ^)PDCvgh8QIBiA#uSx?Q8r} zrx}o6RnOiUudtuQH%;5t$^!6VKyTPr86lU9YfW3?nxdt*W62%y{;~Kco1^6QhrEa-e0&eJ1R%XOhhE51?IP-zQ2cO)`}=V0!uCAJ zjq(**DmqCFt)*+#8&Q6Fdb7tXHeBgHR+hQ*{ofQoP*C+v;u*Lvk&`D~`)v`@Cg z@Dn7jcd;)PuZ49rZ$^3}fJaCbMyB^g)jFo4_>C$JzwDluStV%Jl{TD464Co_S(rCO zBusXK%Ib@7s}))j99_Ta6j6Vs;?Y6?gpVO~+zavV`X5LQMXOl+h#0$YzIvfZ-5TdL zWV2hfqC=^x+sYdphcx&mFE;VuYBZUrJE5o*Sqn;{EI%kL1VpDO~nC9jV z*h=*9YQM0~Cdxhh!X_f#+~NG9w_tit(m3f^`QQR^w{(#Ob-pDyYun&t8;#lLE5cGo zQ32u#?K!Vk%A;xq&?bt{U#e2tE8Tfg)p1kZC{UYB^$iQ>%KkyXpX=_IAAJxP(h8%j zNpEfa1gaA@IXxP;Tj?x`aMpNQ0!BNazFGRI8+&nFXzZq0LWBxw1XTkUtreZNpG!d zUjDyDQkaYs%b(J6GZ5pYtpm|X~o6c*LM;Y?2|N#loZt8P{hO!=Lq}RSYy@WvlmEq zIOv2aFYZfN%m4G=ZbIGz78L;m#DM&2pfbgc9(ddL@b?V5OtkURF8o{a9fwUTes z-rJ+Mvj2cjd> zk5y~68es7O$9^SI>5S`_L;=W9j;z>!uqNZB3>|ug^kLQ)b32eVvGECVPSv?7ZV#|= zq+?|IS4DagbNoPXk2gK;5rp!B9r@*&`Jz4e$!#86g%Ht-!y{jsp*9;m2`b`~Pl0kg zbwhiuo-mA*e4~+G!=xK2c}g+ArH#IUaGFXj1Zd3afQca_YPPTCOrCPPg+UR&qDW=H z$FOORy~s9x%xJx$kFM3+jxi=#0AY21(RDXn z!P?S&D#1uF)X4|O?8-$)@3kDGWXb`|GTG3I#!j)Nr;ru$G2v0+`?2Pct0a7i;0!8o zz=N66;t;A*Dzzpt0b=E{!Xb2cIm8Y6aMA{wnL}s_v{{)xtam95<_+phC8{bvgl#CQ zK0on!aHvRes<>|nTgkBqk8X`SX9W_buxqVnaNxAIucNk`R3(RP|1y z|FHfppTg;j=i*gR#~BMx)M&%Yo%z|#?h~R!hv%I#{s(^OvY##rMj0C?_|&fiurP_5 z6==pc`2eSIdPd%~fvg{U+i(Gw|5JHp(O!GICx=Q)qu#gf>2$^p;>yviI)7_WDWipu zSTLa~aLJZJS)`LC_rN7+InOw!Q;hZ8FRERPr9NkCGw*3bhe)I=_FZvNKSDEpA1`a~ zHt$SxY+OVM^}FuKy6BQwmaZ-hNHcXrgwtFLXd8ti7ug^V3c*Kadsp1T#=)aEm-MjA z!!rtA&I73@(NGhZn*Uqt9x-SfH|2fhoOLDGHf10*lckrZpcSA#+cocjk}O!0w!aAD z_i@_?OL$YXe2n_r*_zcc$eoP-hml3DDPM#>H+My~P`WBeZf-LL2rsX>xO`v;&GM;^ zAD_|D$sFH{`QBDu!HhFy<1ngMaSroF-V1cBu(uHVSKT={{(F z$h6}Q0Q$e~ycB~CoD^4M)Re3ZxRyY5e=r0YnFh)@P!NzCFc1(fkd(y@9w1G5TV_NE zi9e?_uI>)w#uJjz1|58iQ#=tvn2LrfxZi%e%pp#CvpgCoGeY*e1^=LO_Rt-zChDJ^ z&B|hRwRpMy{DUq8I-_06lou3&ZEvAJ+oNUVWZRskH%&3()HUSjO?32IDBPq%lSXN9tU8W?9EVp2&@;Rq+lFuWBn8z5pMf zPiClklDoL`{-WEmBH2)g9JJh7S6vMI(NC_MeM%f6jtK6=UwY831(;BM7!p7;(})nP zh8)R=s-gbituS={(_pPtrYN^KuXEe>BifHXvKLe0)Bq;H{kW5UZ(UdUiw<&9Dcv0!AGqH0#C zVS530lIf0i^Gl)sn=Z`Gcxi(=HhH~*CzDh^3-SNkDqBz8yg2`hG$bK_fKdEz!$<%I zQ#)f<*EEfD0CyFg-&7XIo6n$l1DeA_DObo$x;-02J|{DEgC%OPS>JKxzZd6{SiV>` za|@Y=wXF5B$V+;?^|^>+tZ~zloK-eau;gyLsuS^&Ssa2` zi&BC`85-eG3O4uj?#A-e|a_BB%Kd!n6_b`ot&v{TAf8^ z^fi9o_j-+l0n*=iEgueOp!CK%IA}<7)ag7mPDCS+!B3+K%S@B-%ep|+2UMNkd2&0k z5ySJ`RUe|Du9<<`?2`DH4rP?dnem@y!WbC#CA=`7im& z$uCeFy-1MLOaum;_$*EDlxRRvJMIA*8`Vo{96J~NjuhMaLu)+6OJJ_qq;#L-Wzyvr~?YPc$mnEOb4z3PwzyZ=a2iNRDX>$AN}PUygIdF<`i zn%IG+?QJ`TcL%@$_RRio9?RY^el_X<^-`XDC1N}#o9gJk`9}yUdk~Yl6zgXVQjq$##znQ*36&Zu|QvaqS8)d7dI)36))vXm1viLo-rRTHZj((`^`#KnbI z{zZvyc?)0wNIp!I3!GDvS3^(LUp5zIePR7(npc}KN4=K|V>fmGA!!$J&QbC21$w~! z4&j0aB`j9QJ#78Dt#?ljSYee$SSDyw!kJ&Z2*`%a4!Oe#UDsPpSfE;jgCh+j^~xmM zR2}w~Tbcz?6&NHfo$5vbA4PR6tP5I_Zw;g>!UM#iB=kx}^V<_fQI<_mtmXb?I;M~( zo#fn!pd2;_z6LYc8Unmm3oaiK6qfKjuUK zJtNpC!QCvml$jbYTHrvaM}UA5VSiM=*n=YxGllz5`db7-C=pzoI7%_DH_zacdzrsm zx&i1BCGgzReR^gq`TQmlRpHH}U+%bI6Ss(dBrN#}0WCQWCr!LmdXq^A8>0c5tvDKG z^w0iL)44Kyqy^rP@7oYVu*NN3 zF<$a-cU%x1HeRlLa$8Rab1M#!$_P8&IX_@9#-Db@5nnGML8UqIw{udG`doR~HuQ!s zF6E4@!7uFlbcKu6{P4aDVKgfb% z%|Wpc8IzBSyR2B}Ifoz<-F7UL@7$T$T*rQHURK|LudjRbK_U$@Hqs?2Q8f`*5)>1x zN0Xl~T;be*VSiOZ#52c3;T@s$W~LGy5KoZCQ~yYKlc9$wh68q`cPGVN!gGJoCdnDZ zkv-PYYtK-q%WJ2{1)Gdc`RJ{xxh5O8uWx=h!pi2-H^scvF?XW+Xc$`|2bbm5wVLpy zEPE%nl0U`f8m7RjU&V-Y6wWv~UzAm0u~sWHX?iY+Oa0jIEvJ?sVZ?-i(T?MCfm0hU z;_AyXoq^F*B>-pUQW^~&DL9YUUC0=1yC$oxD|HwQ z7|vZS48rB{F3d8zB}U|EqJa1vq#jT z8Oy6ovD_%$_4YRZQ6w=TPfe9yXS8kb1_^m{Nk|yYE&eLnCp$%Eo{*YOnXa&{G#qvK z0Z`qfW75p8a6KLF!cuM%J=B5;|EJ#-BQG1G9r;gI?i5v+h!LBNHjkR9@#Cg>w`uj; zPxZ9QMgSFz<}}xYW{jtMxUf4sB|7_ic8tqzfOV_Z;7@^Ec!DA~k>^ADxPg1IUA z%YUtJRneqH^aQc~1lfC1%53ld5*1(07uQ&@LN&5OuCs%_rV9hn zZK{N@r<7EqaDv?x6Rvewo)!m@T zA5DyKw-Jr(e#a7HymdVc_Dj0s5vnCG5)>RhHbx%x<3DVF)e2TK^#O~uYc zV_EnLIl%Wq!+Mr-Fj-ePX39I5@4DJ-`FCBxU-S7;U>E?-6cNFqV0s4uFUu0%IGL0} zY^*JTkulO4T!Tj#{R?KITB(OZ6c~4p$0go5?j%3r5J+YYbdT?irQ+a%!Slp^&vT6R z@e4PmbKFdm8`J2h@sX&($zre3Q2lk?Ykc9U-c!HLy=1^4H_|oiVnUU$HF18}d{pyIS= zq3V!V?O3n2>8nrKDrTJY(iBCr*5XyV7E!RIg9A_3c2nD?=JSA?IerZ_UeNXJKU*Ny z)lGSmyy&ngug*@BTWo@FNxn>#dlS8Bl*bCL)<<4(-zagk?0OeV?zly;(zV*Q@Nw^T z^lA*N7FnK9-aJ14IsCJ&9dMQOzY5TcCmET;oud6lve?~$<;z1Jsl__MI_%pqO^neP zS);NP6G8AilY{+>o;wy9Y@B=0Igu!UQE_VS0^N{?X`l%@D|=0ASE=iix{d;gMs<2>wE^8c(7 z_sh0I@}!_%k|Mrhv~f>W{NhP@s=ECA$;Zz*oM7D#@y2`lVbv+tCOkTb3eFy^+6H~s zm}?(qc_vlUQ&$}7Cy)*id}n}U=ZsWvz~M1)IX;a`#a{>6qp3jJKw9LYP^GOJm0rfc zMTqxnCE%Rk!bS7--$+60^FScb^*vB2i$6hQvcmgc6m^UQS-IC5T})`jg{fD*N4FJm zsg^8RkT_AQ+ynU|=oz$E^hnxy{A6(g1IYsOmSHOVJob@U253L1uS`#lJpj*j)cJ(P z^JlB^O_Z5J+ZNxKIFy9QFA;oV^#Wl;o|Yk9y2*SRrR z88}p<&SVgfG{X#Gd`6-#lPuNLapZReM^V}*%`lRMV2x2uAHmX@W-v>ujqt^u^jhJhI;?eHfNV;h~f4 z{g^I!1!4ZDY7&xILGO=6NK0p^;)1zDQ|drQt1p%0Z&1jV%Y*?i7{4o(xrHD99k$3R zM3s~&+sSyqFRgP=RCToPK8|0d%b>DJG~&);XUT3s!Mqx_;Ro6D7|N~|5L@4heP$faa~OqVKB%vipVgQA|Y#{ zB))dpMWy&k$d)YANV284lA*DL>`dl|k`fKd&e)e>ELpOq5|ZyVPs`8w=X^fz`JDGT z_dd^k?m6#y&#BZqg_956#TFiOx=%V2u>GD8((?Ac^>Pm{nSZBhN^?k8c@GVv58ZlEXhd+laRG_GN41Eh{;7gn4&z^e2^F zX%<2~rmp3srEX-!!m=!T(e6%XW!d3Jt0+A)Z>pl4gWBY+>@8wv^JRTU|NUfJ*QD@4 zanJOSa0jV{Jlt3;fw0UG3}kRhY4s56B-CeW?pFpEl*^rdm@g|;oV~6vIJ(HR?*_}> z8x~(tRFqtBk$Aw?=P@`^{BYZc#Qy6T>Yd6NxSeg&0>_1JE8Y5V**a(VQ$3(LW$1<83=;wuO? zX0idj*M|xl^vI8w;RO}?H3fY#q|#yYuQek6wuuHp9cbV8<>B|kQjL|Y%Tbzlr?0S; zNcP<^f!R-+lLXw5Rk6o;XoweCxfQQC8ZzuYuiV8MaN5*Vg?jb`9Q2xh-l}5)+gN@U zR)MU#?~kmC9)@#{s>2q&#Re*=lD+Aurc%Ey?%|%CmLI|z#!Di$TihC{6Ta1U$e>!z zEo7SBce|4^=hfhxbkf`Gt9`sMn;h#FFybTf_VJcn8CHeXtY@%)b9(c0Ii~Upsom}^ zW!G@1?{(}pP}X-*%ObkV)0M-lkmdMn^<#k~u}`m_@gq4N1I!m4G9)R@W|agV7By>P z*9xY3FKgjp9<$tI7hU+xJ0e_+vJ2zp64K+ag00x%5$dx?9yxE!G;$PoJ}RxLsu_Y z1Z)3fCyDPbFz_ZI$PsZZ^jSR$VMu&W=k1S6fuTCdG(W#!?GPIhl{a!IQ%mG|fxDFY z|5`^CQjSFimbC6Bi|>k{^sp4suVu@eu3*-P)VIsmrYrTIw>#TH8@C`ta#L zx`@bDjN_Wq1Ks^a>>|4^9%-Z;Fpuh$GpfR)o^uIAY+4FLL zs+VVxGLU!+)1#!bD)d6OeL*I^)=IqtC-*+^`RG3EdO=F$(Yh|H z7~a_Y^~n!6mB)4UCKjQ-6qf~&F{@c?6K&e@z{kD$MRmHwT#Y&!#GblXd0N4nF|Bk49NH7!S8OXiT+V#vQ&w zUK{f^kJdJ>6G(NeyNYCWn5V-Z-TvakmQ~i-dN%Il0H(h$Owcg&M$DmIqBUHwGzXW7 zK}3xq$wSvfNy}m+Zi?SWESeoRX?@1jtum+-_9YedE`a8wJ$oy3wl|5r+Ky=O-a4!8BWU;04KlSVo*rKSKn7tLC>Fj|f4e6BXtb-olm zru;F=1Hn6DW{!KSKBgNJkw()05o5B<{yIM7o!7Ez2oG-5(yMmGG9jom`g3{8m|fKP z#LEMX=B;hKc&RPR zFWvuVMO#;d(}=B4Div_oIIlQ)d59l*Kjuxk%jH7$s5ABR4joH*2mK$$@D#3or$vgl zaX3*%)8iH_+e5q}w(>pO4M$!#zmY$sw;;^%Q;AYT7Fp9IZxE9BIS`rZEc`r7OxGl# zKOZzD7A3zU&2sZ?%6?NnK&&FZh^cNMS3lY0o2%CPK(4KAA5Y?+HLdi2>7l52CkI{DYu<1wrVK4&_t- zDOva~O@?Tx7mMDJas5ZKJ+2h!kTCQB+X>jFeMf;HO9mzMq0u`xE&g`O!b{jd5%F{A zok8;d7qHuHhs;6i{-Z$nCCH&X__`kpB)Wk3D@Q=~egr5nfCA#&Ac_VZ2b6(1A24~q z2r%#kKMhy_k9@&XgQ@_<7sL(P14cK&5^q6pbv_e_{@7OiZf3TcJ7&kGTg4M8U>k9iSk=3uXtD*yj$nbM6b2n0 zISnkPGN4BK9#E6W549pd?@<)+CF7TwA6%y+z&^;dJDXuL%oG4+=~!S_4ujI@d%;Nh zQD8Ig7d->a6*8dSm@06xgaM<94s3fy@AwLK4DePdm_d>N_m5+NE(*9&D*<{yklqZY uj9US)c2K%ijq#ebCQv|sM|`^~gXKc3kP1>J^nssLkb6>Tk9OC#+y4Mph6Viq delta 18570 zcmY(K18*e^)U9iGYTLGL+qP}v)b^=u+qR9Vt!X>O)W&_ko12?_$^HpDPxgAU_Q*W= z{4{uDAS@ycg&8L|1PI6mGzf?Yu*eJ(*bf5>>{+7#F2M2t5}5kkCBy#4<-PNSvhkK2 zhY}r6!~r6YyE1NXQh97qv5e_2bm=i%n^IdNnz%vly*u?Q0^f3j+ zr1lyU2?b#bzf9d%N%byMCh{gW#UP)Zx*PgqMzSgArYWLZJPjz=sbte4zqtdp=Dc`{3; z6Ie6xhAc*@Nzk3*?!tA)VW(Dits$9WLo!ZN3-k3SY#B5I3g{D`<#`)Mwhei?1YKLG zF~PP0ZqX8W8tvL1*0O{yYA#i~h{0ISR-u;mu}2Zp^xhixQ(Gw(?qrGs5UtM084Rta z1L2&ldfY+3;3t-pYTpriO-;Zc;iX(=i(mfefCDk>ji(1&TYF_Kc7r)bK+8NTA1|V- z@irbzSEx~}5PB^SJ@ngdq3UtHfg}$?-HI{*r^EOKLoA7E#eZgTT%qZy1h)H64n-NZ zeLVPtCH#7hr23K+c5Z8E_ zRrPDPaPBD`|A=L$mEBIvuveBpIZRyv7Zk?=za@xuY+_bTu*uiYn}5<9`%A9+sY;0! zBZ*w#glIfzj^wR#uAuJFQ(|_BeJ62Mdkj756Q6loy=%jNKL)N+H>^@ynORo1_(49g ztYqOWqP-K~lUW{yeG~qYnTHL)pj=8I=!=X%E?0xit9}K|hI&#$$+KD4TJ-(_)PoTb zhiEdyQz=W`Thaby`kiUy0ydERrNn#3$NCCR_9|EAnlj0O`o>OC4IC>4D%FgebFIu& zmu7BFm9nR)6SM}yL)Ah}$2vyo8lt79Jtj=Z>b}&?>lxxJaP8@g^=q&LIyc{=VxC_Z z>jZVgVvl*kF-iX{Klt!hefwOH-ize3vj0FT%Yj3{fq=lkfcysukcBolK`by35c&VG z!T$e|LA#C(NK?CZL={07Xi>)OkQ>t&()}>eyHrgp3zP_Dv0dau0yZW*ko?X6ORGk z(Ud)|i+kzoH!%!#qbohg(PVQ(DE2p;=>0E+*f7HtfQ6h+#eiAA{=LY1orfR!UO)(j z`bfP57wNh4@yQ2WzPfzBd?z6;!FQWr6}{-*PG2HrC=e||R1<8^5q>zeI@#VEaq2So zwmYRmSJbzm*b!U2w?ELZaF%%=**5ZgS9)#2H4vS(wk!NE)pwR(k@B9o^5$qjgoc;x zVO{eLV2hiUh299nywS5Hp*DKG|3<(qh1QmclQokp9-g0NmLts;L$7-u$$>649w+UGpf(L~}tx zGE7|{0?k`iC%wRYrbBpxrFf?E9fnui z8inh_#e0_I4%gzy^U{w^1OC{EYfcFXqko z2_BWA;u(zty3Ud;2k7GtzPr+%AtRmxuY%^qQqB`)&JxRDGlxE<-+AiBC$Vy_=)4fv zu-}$@a&MCvZTo_18lA;PnlFU@_X;WH6%Y;m0s%oI1Qw!D19V`$^|d^{ z6D@s|N-D<8^qx1O*%Hj8)^Pa}2xg+uW-d4GrPs7sn~%AbmVxZg){H( zaN(`t!Z66vL5o?ko%j=b~7$7um~w?nPy-5KjYMnDM32FkiNMFS}khT~U<&f5hBP&NF%P>38;RQLD^3k5W3qr5WyfJjTu0Bgb>#q z7HBUKpeka3^|smf+XF=DSP%3Q@mmuSprzmda5^FadzJbG1_L+&ch?}CherO&0Nfzl zPr7f0po-gnl>KOffCHhluz$4EUWlI=&BuPWuTC7FiMag@5n8`*!8vA^F@tGPg$vZP zj#$R*qL_kqI~`*RlvvPXt1MR$fDm9&((yE!AUstZW%EhC61L11Su`Tx|Cr5vgf%B+ z)o{~(Yedv?lABKhaMjjuT|;TOpqPm-<-4X*8&i7n(B6L3xwB<*l%`-S0^F8~a|Am^@uZ#3)FM5F!RnMhipzUrifXeUa4LC8%V#RH|lX z(@|}^Rgc;e+FOJ&+yq$5&nKn8oAb3;b+cOmTP5xg5G!y+UNj{NNJL<4u1yX3*{Xkq z`H#V!`OYqY;oMetIApAzsob6r+54qj(%L-0i~mBr1x-xxy;C67S^ZXZ#M5+8abndk z_}pXScy=*fE=wLwO-}c@r1L{}x6_0>4L?57Vr71KdC}yBou+&%(+;VC&sGVumqiNB zR>w`jr%Pty`utxkdh4hf0rU~9lpXU`GKvN6rKuo*?$T;>s`JiVL~Hl6k3Q%ND>6@} zZE_A#A}_i0vJ~hUGH$UF4XN7GRmYg)vg|jWD_X{SC$_nyqQRn3(QU27%C~ezy=}LX zYDd+bcaq6xSU!kDlXAk0rcdA7S5><_tIulA?)AjqXP;2YR%>4dnXkTv!JhtkG1U#! z$xs1!UBNPHjdcZB*l?ue>amyZCjAm~WHXN?(L?OYgR;6(sSqN-s?|fjnu7~SQbIF4pOoj)?zCNizsAs5RV8YpA(|Ay zGBM{QOXRV0hpyIG9>;VYM_E}%HXs=|vos5kFeLlQ&QDYl5VPu%DKl8QIhXm@u@c>R zq^mQoQC&)UoWLqMFwaX>Gwo@ue!T`iJ53N`arO7me%LebTb10gJ~!#j@p6)aqcjVM z?n{zZ&Nbw7?10=Lmfi?wH z+52v&2#n7&f=TzJn3=#isgLB)n;+;-9_5BVa8qrxLA>tVi_H_rre0$*9u$X9+)`Q^ z?|4vcQ(+uXpCN9VOyzkSF7~IUk6C4)_O2u;%6U#1r0+2FFmy@XwB2&*H{X)*n@tg# z%t+FXsx2lQ zan6O@6T|HFaQ?J5IC7E}^3E5d`Tf@9zRWuXCeaZ{1VVdwYu;%2NZg0NeW(c9f$Xfu z2oI^S3nsD~3gNMtcz?=oMF=`>VP+@^h^A@tpPikCNwz8-vbgisY2%L(25_5@0&h_vT4&`e^~<7xC}JAhB&?Y#8d4ETrF7`+TF zVRjL16{dEhT@EMO}BCb+?}l z%i*;2ya43Pl&AC4CjyW~Y1uu^jV^HAk5vcT!nvZiV*<2-a7+Wrwn29r{E0KfM4IFJ zdb4`YFedNr-2aMx_qVtA9-FDjtoLiD|4qX{5*SMU>6oePmQU4sK)-11i-?ynbo8ir z)af=yZcFVtr+`Z|thTkZd#X6NC~rIWwL0dGFvBMo(-QSe}#zJAgrysLZIukq$; zB&BqwF;mT|HPevy)`O$LX5@JHEVobAdtLryu(|GDE!W36OUK-&E~l@xMBl$KFnUt; z_k$%rdNxn}6bo=*7_LAem##&uHUPzZQ|-Q4TEieDDxfNRw{sX7pEGwwP{D4oau4~^ zH4>R-zaQ?tV^M@1CqiD#_E{Z2)Og32;TM5c71tfYQr~pwB2|<)^j4%kKDXct8ylWg zH|*f*NqN42oIWEbTYJuC z{0UdnHi+0==BdPA3o1G4_c>hk)9Uv>BT=s)`xVP#f6BF;17yU%)$oyP-o;SV245xr~(nr@fw96S%sfJtg+!vEA$5l=>_D za{{okR|aq`n|8j@n-I#DRob`#!=e?h4uOYctexN$Cvi3=4r}3_@BtIXplpPaDV6;P z^anIv3B(t^lOOU|_RBs#_#aLo!3%<)^1r>;+1(+nb682jYR!~lH^Z3F z%(NaU$>li1x%2H6`N3_{r9%}^tFC^Or+Ki(a01X*dP8ee8u2^Y=1Xe0&0u(EZ`TiQ zm)b?B70Hsk*7!}M$G?@%+xMe5Zc3GI zmH}9EIDNrzAJBQ2c0~msWK@z886@s$?`Mkz{6eJ4POF*u<3BsItI+l09N3VKH}6FA zrk+SNp=53F^eWRE&bL3^m63{l=0r#Pz&_Xj2t5Z@y1(nzlV*F znrX0~ESPvybaYXikO3m`MECF=uO1ofhUF|Ps`ebW2rKtg)cQ&| zPvEn7!k{~}v;+{(XxGl1AN(5c**1`SDI(+9HrTOyJ#ZD)aqToUjhelFv#&f6?X_X6A#>> zSS;dszxrcT{1MGwd5>NxKVB@B`vD4DUeX_gHVp^0jb>wVHi@=5e_vl{1K|?cqV?_| zXwJ01QR@5i5Y3N3Z@zJ!eK@Xp61`k83l(sBV|zJTtx<($bQtp0 zQjx9RP^(dq_Tpa#$*Pm?`TWhjQU6(}tFr)LgLUBQIU45&F~R?_-KGY=-~qh12B8ri zapHj9RaTe^a<0*TwidbN#J*zRqU2lLE%)Hi4G{dD)4x_5t;=2`5%4W96eYSW0!*v- zUD31eVL~grZN3oN5jf8pHMn=?3miVXLWQ>9TFh|03>n+1jGVZQ)}Al#OeEbE$D}6T z==13+U(G=^ytq2#&8%9lX8^bT$XE77_4u9wuyX4+2DQ6u2fJ(=0^IR_AuoR#E3#mA z#;kt%ZN|CX0waebttUnhR>=@fE}LSy5YZ-YC{yQ#9&S+WuNa5M9sN_^ERtZ1iB^*5rLXct!N8M)$1n zg$55Dz=mrz^hly9JP)!^wkdt!(v4PTB?sT6d6{y26z6?40u5Z^R(B_KiLBZNf}g&y z>Ga1g1tpC+cm#*+eE^evpan;>a?`f{xEWbPF5}!vesMYg(1OF-#Eo0{T$-rBUi8Ze z4}G5pVr&4WmUT&tGkmpW)n17mFfU1sf*|MAi`^|uTMlzz<-G3=@vQ?Pd?9hZGemO{B#5h&pc}s>WgGPE=h>fx_uN1@3Rg+u6;uz zZq~!3A6`(A&!C_pyx<`I53rXYAjaUy)wn5Xe_;STDoDM} zz9>IreH%B4h*njsJhr1P2NPgyH{66X7jrAc8OkU{`5H8GF2-#eDAr}kXig4tGZ-)(G0(tsJkf#CjS#}#)C z06&3|crh&KwNuX2E`fZDTQ?~|r+>3rD|^mo7_WJ8M+^0kh84Es!G#nSP^zl*n!|_$ zhQe%*&R89*hd5vBA4x}t;+Sb!~Ho%Im$W!Io+ISdxV_^2}G7SVW}?Zv9{ior4aunMUFmsz^ zQhI$ocT?0T7IF7u_M1|JMa)S(!mt;@bs2Qdb@^93&h!+)d6;TDRJ>)-9ohwf<~!6^ zi>g6IX1dn~wWN)sWR0^J3&N&3lW6o4aayS~kiA6j`-B4K%ri$^&4r4jF~IV+cZ{aZ$BVT2$T-I5}5)QiPSMBcKSNZZMU z@WnR@sD-xgbnUJ8Nf13VszZ_QD7 ziVgxI%m4yH{QuSz5x6M|516{$03$)T41y5F98Q2J6@@`X0EI;c*YF`{nwq4)o5M?~ ztZSEWu`y8I4)Lgqf!9!x8KmCQU9VoPZmZM7x~^~2tkGoO|LNso%OXbt1sDZR_5IuR z`%lQc6}T<*`22~5MnYYZ|DIJkb539%DaBz_sAnf@UOJIsQ#Aw+1kfI+z$JR34187= zeDX{F8JA_7UpVHWo`VolIywGqjir(SHr$#EA)e8Q8WrBE6Jfny1Tw02ZYY&>jw&JD zvg6RCS#}SzeX{3Ez4=fs+^g{{q_6WV&!$=Kf$&aFe0cW{Td?*GDxKYn;_wem#FqYK z7bu;K2^x~Joszz)0!V6a)d-m$?qrsk7XHW@9{%UGrxPpE;Iuw$1U<)gXl*p*++rH_ z$nb6bdo?B3XnG9~b%_f89`oXC98^&Bs$@5OTzCj79IjvpiVHn+H z7!H8sdezRzkhJ+jvvX46u~X|jxnOmVX)_#Hot7L`z$% zpQEG_Z>bY>OzT&Gu+@6C7vhLD$a%{JeIzNMo8vX4;4?a{U3O?UsO(ZB+1+&#TEWrR zX}5bDtZuQT12ora4b-~KcekcBR;_9cdp&v76j!shH0#)FC30l#QOaff|vYKq!g&n0crIHJ?~Bed<<@mFv&$9YgR z85QPd7#XrRd$CC+IU~a##48|c*lZfDQ};B96i3DM08bW0js2bdhKUnewkmTeb-$y< z#!Rq+^1Mu_aaplg@(gb&d;_{Dr7->e`ciuN)QVW)>SM(GU5%c!+|{lzQRPRjSs%XS zAS3@bCDO5pA96O%ePjQDyZmv9Xu$SVR@6DgzONFh+Y>2rWF=^Ztu%POvzQ>Pas=4`b8EW>Ok{wWP(?p`YY8>Ayw_=i-jZ=FZ{$a6M+7 z0+^9r955yN^Er!Zwa3ovCr-*=hYhIt_N^OM5&&dWGl%<5!vbbeOTP+ZJinH>U%D8rN`PTSrB9PPpGKoQxu^4vvv89BO9M%~zAi>{?NNsgQ=)|N1WI2?Ssw)k%a9;E)-$Hx5?DCX zKNU8do^)-OyQ|!g?-&9Vm#{X}rT`cu>nBT5cs=f^gb7s1K1YcWkiI&J2CgS4yK$^` zP*{!7dE;sIU9tnvi-Y(+84O>zoZn&D#enQA=Ek>2vfIB_h=t_!IT#K>#WYa*b$H3j z{EW9!AkU{z5-kwfWGly<#g7pj-D}2H%blCZa+x--x_V5pI4E=M3}9Z^SxEl6oMf?9 z*lukoz}#MP6u9kN=iKGSZwS_smzV^NizI`j=Yh6j))4p85PQZDu#9?by+3HV9LX2-0PW9U}Bcka9FtZ40F8(VW&k zf(HV@AYuCwiwwvOTpu_VRk2lM;hpyc_snCERARQI-xh3oa8oNfO|7UUdBqU;MJmZq zifJ>gnf`KdBOGk=J!__hI2wvT9$?)dUHb;g;1|~Em3sc{)M3w z7Mm;9N-Nkz?jQR6cuwtki^C}lOuBcDnQmaYQo;Q16Yt+;^J6~?{%Nb62H7~vvscNc z?b3(-2j!*CI}`>~W!Q5llJJRnDwYIkM;tGcy$PAls=a?;8&b>;+ls92?f}iNsU_O} zwNsom4w?&$4;C4a6LDd)QMgIw9A@tMe6toUhzkl|%-k?9l(!A~& z!yD2vh^qVvj2i9{{RM0%nE)am2qvB-(_D9R$|P!HVg7UXV-(c>>fbE;A)O1kb1<&J?eWSLMm^L{ZglXJ`L6JsX zq9oiDLV^?<$ScP~*0Tu3+8k}l?3EJRB9;fv@iMGAn6=XRts-og_5g80q`wZ_sUz1z zI5yqSHkB;CVR~(E@(4A(iG1oeCttKg2Y#7~e6`3^ea9Q5m~s9bul;^l1Pd!^dA)v zdU4p8+1DcHON@S-=kzkgZo007P>8Z$Xb59P?IdfVGkE4Q%522CtdL*^Yo1f5Ly}~e z!2$AQC|F7xWgF}&^qD$)P%3$8kPpXiOX`e>vJNzA&(2#JPk<@frrCSA4G1i~GQ$Db zGyo&ZYv;7mEf7wq?0)4lZhGLrN(JiiWNR#QRa?9v(w zmOt%h7NGLlK>HK_Q-3e?T99eiRwI(OfBK^SjWv)62Ke3dt#Tpo-7!rRh4nK+R6e`i zAg%UBCgbsgL6mrL8LZJ)-I1Jy!{sI$_tW%xgq9{)uB85*+MxLc@aKcO9HH_nr;*Zm zDO6Qdkb@|Z&Goq=+NWvIo0t6n+B|0XgISSMwD{xy?okv0-DAS^eWNHzvcSDjH-AoX zbZ9}b1GEj0syxb-87S+}^Z|!*9YvJyIWH`ot|QUqul*2Nn~_w;$A)jgCThYClCS37 z$D8y&{LA=Ka|KQH3WRN*d>Pe03+0R|>_4W%b)0Gl+Fa)`O0?txQyDxzdz%+S$S{mY zJF<0je;q==^f7u~;ex{b3JOVwTJp8#9yuI02K+@~^xhdX3_Y+rPN_;uVq97-%u=;8 z8H~v7Ai;sX38``&V{7#aY^~>k&TKjr=n&|FOiS3fJL;*LvTtW*@Qa>1squ0b@d3O) zLaN*ywz-nNWHqJY%TgPn*s$CM|8;1c2fKu?B5H~MVz{IZ?B*;WX?ufBFeUi%%H<>E z1?Uaq5nfp}wF2^n17zqe!QOReWYrBg$}KaGf`?SMHEg1(X+g}wBa&U_v6uyxlGm&( z@3)(f-j*(pRu@F?NN^ekhtgfGOpG)(bZqYac+=-Hdqh9%rHS%Qla&%;{o0+iOIu}j zTu>Ndjx>4gme?C!5@a=p$k%g%*P(7#0mO4%5>KUHHds8Dttk`t7Nm*Zl~wWL6x$$z zT)9Z~2ajTk720)S#!IN2ML1YUp>yl^X}<|DCZHd(xh%RZl(yQEpg|%k64ITpCB*l} z^{#*TdX_#AL|$>#TG9F#QI-hGKxwR%Z48^ir3Px*rTA!--;l8B$A!*KbAbcj01Qui zAFWMNSd-UU)nF}x5s9=&rHt2Lk$u-mc)8lZJOM2#Izai9)EGcSmf+(mV??GNd409? z$0d!WX>dADqe&AVQCI)pCK+(t1qpJgwxiCLA0d~nZf2$v5qo00S6HOn&Ue2A(Q)mF z&Md+ZWsU3>G)RcJx+809y?13m{$)hE2UCCJ!EK3=OE~bopo-4QQlKlJ^=L_|mlF|B zh3JH+Gh;+81$%b6$o)k+Aa~|^ciEM(xaI;^`lRUXG2k7v^VNp)3t7|E#DV0xlt`py zY4L%#n@}Ci24OddifK1$)v>l0*6voo>2l=EbT%;y-c|CZVsM%fS3~Q!Oi7J_+pbvT zqF6txQa#@#6s{WTt@~nT*Ny(m)9ybkX#RSAY93Fom+dhE_IdxQJqhunh(F%xutjWPNYS_zDL0@L^{4u!IWC%#lJMwW8f*sX{8qswQvjRwaSi z8E8<3p8jVh{2~K0K$WwukjI^FS5i=g*I^Cbnkz1Baj<&(;up3RGxx5Hmq< ze-tI1`Zo>Y)hY1TUwPA7JUnmlThY#8H3QcmN;Z5xeyf-dfC+7-8^-!oMb$^ut>G*> zN!m_O)lt7%J-B*`#9;QItB`^ps(4vIl)349Upj*6;}mn^Xbx5~FSZM=xH$SSJ3KNZ z6$z&n2`?83<5*>j1MCWvee3P`+DhQBhXU1(&1;E%&{@-A-hNEA zv9f$VKA4BYBR?gZ*J+ReF2m=hq$}jeXYu{D&!!SX_jLda@1_tm>ftb|5yaG-V%gIC7-W2+$lD)5<{$IA@_do&t&+r9VBo(aHX6aU}&n zMP&I3Dk_!k7FZOyNnp)MDW}P#>ofu}i}kb-cdgQ*yXv*oY41UFPYO zOC#qs0)HO`xdvfcs9bY0nO@Ev^)v1ves_#qc?oaw*^ny>g2NOb*)t72xJG5V-XV+@ ziAR6|rZ*qS1t1}bb##|7WI8??Rde&wJevgWnI**!NnJh2sA#G>xhoe}UM(`Ma|d_R z@$EN@GAu7M;)tXm* z6|4ZuhXzSsbzhe8)HO_KMcCK6DYYIg?!tZ$42rxGQxk$A5S6oLTEZ3s ziZJgQVUxDOqVk}B>w}OPKrHBk?du1h)tuV|J>zs^LiNJ_=}F6neu7Vz(gRu7#b;bt zVX8x(op_DisLL8(ZU9jv^3)Y$TAC4-!^x9xSZp}VkrV!){em)EA8ct@c4BB0N*^CI z({wJOmLUAhgM8LEA75WKZXhmb!25Uys0xldb&1NM`x+Esz%9cO6uV%f5qGjhOGm8* zmwFl_+wT{00Xan2_Q=a6Ppv;}9s<<&MG!S4czmHbEO$i-UkKOp-TlwBkNP2&j3RuD zKzEGV;#h|NB&my)i9Dubw2(F@CY4IXK6sHYNT&_3&h{E(kF6#)8DzqMbaA<#fq+D(uD$^5fW0|&?_AZnP zRgf_gsRK%dM50BgrBD82^PIVF&R!FGX2$afe{Hv5)u6CzfMO{6JAC37x_tAAk<=90 zkAyvAa%)L!_GvBBrnI2id=>-1bw2DC*>aHHbVA;p>NMJQ>>f4Lm*97ZvUgSNyeK}7 zN8cY_nmrlHn1Ud^2vkrfDu=X8+g%0l>vLN~>cp#?eqBxnph&?J`mI1SmTZ26*j|u3 z)GzmoFOWCS$8DEydnLR^Tw}6#Xv_UFl1HYK%NLVeB;($nMc7A@`=<%O!6S`#fFw)d zjPQQKxBff+XSWR={DfmS!dIHKsOc3);|w`(+V`)1!dgP59|$j|*N$bs4KdXHgw`f6 zW2ukcZIPdLVF1ORJ+BbhJ-GByyM9sfJrAPFx!C9?39Sb8a(rvG`GLMAbM2y3nC{^~ zfvTq_SMQAsP@9BSZTA+CTd^Q(pUf+@CK8u;0X*SxB^ZaOe-m@LeXov{RUTZO^DvSN zjghOpuM6;c=>hq(IjLADa8{&|+?><9;Y|Hujet~0T*Dp>ZJGP|W+QhpGVi66K3VZI zWa@gK*fC9xMVtdYv!C7?CaV)!%D&|l<=Q26P9o_2=b>~FLz@DSt_c_GJpADcXVK6$ zW-S+1s32-YE}?uNyNv?})bKA=S|bs(oR@`irtvMhmk#u_tlNU%w4?WI+BRu=Imh(d z$kEqNm)AC|DRnb+pdxqDrE93ec%^m@1t)sRH#-5&eV1lwjqs*m1~9V;%IW(N@N5#v z^s`eDac^40BgKmvti6IDO+98|YJp- z-}9C&H5Z!4)qR_C#e$MDO75C9(_h zqAZ#)0hw%P&w2lHMn2!aj;VqI>}N}&uqeE>+4khj4BxzuOGIzCZIb|60mGstRPz$G z&9BlF_g|&%mFz<^J+_T+>43()Nq4Fn>m@~V|00P2CXY{vlihb?;)U$!-*FFumFlNN zuuof8&o;{!)|X)igys%1+V+*|gh&h7ssJv}h`sbr=fz%`K9d^=h73 zjdauyB^%l&5z@?Ty}h~A_O}J(K)sFRx7}0&rLJ}lfEUHhab0#)D4=0ex#NTzrb7A| zfl(MX5e%XdDsw^~gvd>B4ff-wA$e7sCR&>B?#xoD-Bq;6Qd1|315x7}hwvv0Otd7p zZxIG;+JbCJ(;MhL>ls|ah~MeoAihne><&-0g;Rulop502wl`FqXX1;l^q1u?`i!*l zA9?n1(`ckxEAC0(2({Iw{3R1@tvmB!+y{s5m?cCwEr1Pw&Tmh5X2;ApO8x-kt37BV zK@iW|*{!o$yxOGB`|N#j0LcID6B5X79AW;~VAuPvQ%L!LwKcy!2EfJ)PYXl9Ob%Cv za3aB!s?7{*jHQl#6BCwQcn7MNL&a`$NY7KS6j*VY8oNq&%h$CgBhb#b5P1_Be}K5M!v~ zE(^xpU$fLo!(Z{wf|N6=QPN?1%$Yhr(Kr@a)S;Y-zfS4^>4?_Y;=1^IcZ^fmodU`L z#yGr*KVQhdgPxEdQ|x{C;}6$Y2@ED0Ze9cJl?R~ZRMXsQGr$a!9#VI!8NrXVAwyPD zW+*z=%?!ArMi={_=0=xc$)-m40Pl8@6$@9qvi_9gOWUB=^_w42yGsSq0S&U|FCk|--%yE2bArRB+fPn#a+xokMX+S_tg^sfn<)1vsf$O>y7JY4p1s2m&^ zS~&gcR)xY$CVoKzyD>0&Iu$K44 z;@c*okRvR0{80p1Ct$_>aomLJWPZuwRNk>ZtG~G>;pKkopaQ*z>KwhfWk?5yn{5MA zN!(kV5r<;{hBLohOVz#=4z}CamqrV4K9$p&Ee_dy1?aWBFn-!6`Lx-eF z?XH8A9UitLmZ&egjhAMz$tHvdDpi@+ra7!^%33^sD|{XNO($F3bobB?7A5L=*3R3~ zXNw8+7p1@ofq6*i_arO9`VzJ2h>ssuFtc4@sZGIq4my>TGjUI4H#^q~!5RtNN1Jh0 zjdi;a1BenI8niyN74NN<-;vG;k0GIpTYKfoxS=fryo3H?krMO#8F~}lG-NXejtw-_ zN}hy8sPI=Fj&L^|MdDK4Hb+d{g+(NqX^P>l^ltkx*uA0{E;Yt*?A?dbkIz^N+HK$l z((?)pDdD81Miflhq6@9x!Y2ntYoX@`yht!{0s_m9)^RPFXJYfS{DsGAa05g4ZC?oj z8xE0POF|SgR-qiq#^?06T;p<;-+|O|rh4bS+u{``)j>MM=t{- zA2TC&L!pqqSHj15UUv0tdyR`ow6QS`y1r# z%!wr|s99*39rSa<3<56q2kM zd|Ir|Zc&%<=ig3dIE#Q*W&Z1H_pud3HlX$I^-DhZOV7h}cH#9UO~HHe0uD~AhUh7% zoeO|mRd4sUMB>Csyi3{HhlVk~!P-L^_;YVF0YPu`fNO_rLenASU9*94b#9#)Ad3DF zeIRB2KDHKT*Bj)l@E}y5!zAev=~{>C%?zy+{|})b=|p6wuaH%^8?#FIeRhp+uvr+} zVkF4Tm=v{5KB{00%e<-a4%aO+hXfZX6zUY8b+sOksP2K6Mi9H+;y+#98=H@Gaa3JV zQ!rrv+z+bEsXt$GZDCi8FeQsRK*E`lCAXH;U9b_{L+2Y#YpFSO(iNjl-v*;qBGLK$ zmvd!dUrfTokil-rhx>nHU{e`L-5P2(6MbXsRT(pXoy{iz;}W-$Celh4j28D7BBC+c zWW7y}@FLr;gJtZtQS%mokrhjU-vg+7hMkVq`1+n}W=)AbErlIIeBBB-RFNgIy|=gz zRXL#@^dT0Bn8R?_aPcp{iIxi7AR7oE4z|kdY+>vOvnm;P7(6ZNTu#jqM|>eZcC|}^ zo|FQlot>OWKaLvg07;BrW|5bCJ)K>7geChl9z77$o&R}SLN}eB(^yvjD6HSplz$4e zY9;PsPq?%$pZ%ijDVPLQL^FH}3jc_mk6HM~z1GDo;Q#S?WG~5*+DkB+1;BXMa<7(6@c#fTF0f-XfLNW>ajA{iTy3 zH_N9db~)M{TdsNxSC2Y1@rAYZ+D5UDCV11rPs8blUGc#xmXZw!h7W)s+9Lc5&#y7` zTXzw1G{6+%BwAML=lG8P-4S}qtIRRs|#b zH!c>TVEJadQ}Kr~%Wcss)Ha4Exm)0Iv;5=lwwbm0@UXD%1hSl&u^1#yz#sz~FD)%i zLLkg^jUKl-_hhl^ z&&Y%og*J~HqpzK+ppYvkU*Mc^X!<9uEc-ZHrxlYkLoNwnh{ix`t|>&HzPfbv-(Ry6 zYWx_sLVRn&WI*<`H1=P_fT0uxx(*YYh&Be8IlX%Y+2j0Vto{Sm? zgm%;Q=nLDW+N!29Y~s~j6T}SIIpxI(cE$d>wC=v*^?(qVV^L%hb{Bp`Q+zahposh- zj#!SKEjE+^flpDx#dvz4xIil*72FYRJ?w;KWs(7+JQ4W5Yi?oBG?*J)ly1!@^-ea1 zTtd-5c>zrY`Gm3Abo=T^GhW3c!GIOz>mIG8Xo&-AmAt8#V$9g&U~&x`Cye-|)7Fdf zG7Qw;8i3-FUo4e*57lFfDuOJoGd0zw*Sic>F0)HJyy#m!C6;qMt!8hFRqZ|%HQ9cv z#b3N52RvQFN~%opgFk8AuQtj{k^`TTzW9yG(g^Iuy|+JUZ8DV0YkQH<5BNetnqq=_<|Apwmv+47@ior-Jtzh7=gr2Ht~QSujV z#|8?=L;qFgU4IAPGQO(Dk$+Qfi|jr#mQoaT#15*`E7lsnbP=CsRoZ+BQ%C0 z{FZ~G<}|d7`ImEaPU>u_rosmu5<}v6*10`?K4h^aHDwPjFs>Wz7W$kc2f| zdLHQ=UdAkb4|0t}vgbq-_s*YLE^rC_25Xs#0R=}aotQWP{qI*Q2Ob23AJ`N~05m>? z27bj80#vsp(ZAO)Ysq3qJ2S)DOMh{I`VZ}-80U~fX6v~)>r%B+_DzYpVA%7J%_tZa zB`$VITWyihtd#!nu5_I5_lxlf(D4|XhRRd2eUk;X&NIiOpbQ zsm_y=QHDsR6eGeYaCG#49l_PR`jcbM;M0LU1DX(U*17AUokNeyydyLw+D>cJ-5y#DT2rX=>l|&}MY<8%9shOUW{`E3h<-DC z0lG~%u1s5Y?xzZOSQU14>#E};6dNU!Qkv=$&Pzoch_)nh=UbQ&e$N%x>3SX}JN#Bi zSipwb?ZS)YbhvNh$pTacHk8*?>&Rd^%rMh+DbA#FJ^k7r9cs|UATfv(diV5zRwC^} z^9oH52cL0o2!6pwYM0Tl9^NRn@@U6c3U~-JWW_;%<{W!q=&d+qt*7CNaGV4Z&tJ0b=w&E6<^fxbFaJN031%G zt7SVYbApzl@5V>j#jJ&N;7=pFE#3TUge7#ue`7QH5ZYWPfg^hDBL`M#>-)DHEy9y< zo!pzPE+e7x+MC_HcH}W;d36(JaWh7l)K$d%zAQ`8P*}l>-#9`rsDC58c}T^pvB6tq z#{gHs{)Jsxt>KK3 zi%3xAdgzw1&T)B5sRUK&6U>M|c_;XXO84WIP(Ue0fHP6BJ&3p`=w*si9^e-?LH!oN zR$?p18G+=|fBM7(u_#s24_}ok-AwRUHvx$Fhw~0x7z%hL2(D!({R-Au_dk*f^CHPW zZABP|ZQ$P>6Q=Q3eMhX2{Z_xj5#_`7?}~Mn=}pE>HYC~i`HL^RC;+eM&L++gtCBu~ zttXmdAemrL_Qz$cXy5>K8&J|<1_l(@n=QBgBZiz4MJ6LCC6kX{Uge>{2mSOFiXSxOd2>GT{B((xu$ha-eIxn|=4P9!#23u-hX8WS9uzB=$$jb01(s;B zQ`GjCN{4?sJqzvx#gc+ma$&iTWG5UXarcErlp#;-c3AAbAUNSUv2pK)8u=WdIN4k*Ibr*^bsa80RBSLLLpXOE9c=ZBU1|7NcoQw%mniM~$fUjqNVcnmD`e5|emzVLz+0AbS<4?x5EKxkXlcx@ z$irWYdl%(s-J?FUR@=S#=>?zaiwoh{^{Zw=?DuICJu6ad4XI#kvbLu<+mctlhWZI5{pzVgo1u?c{6v z-SjfTqvv6%NQ<3l1=j2(#uD&L3tWCYbNf*O)^}tK>;86yi?B`B|5L@8$5WO5aa>P! z;#e=om0hy55OI+ui4-A&B1^K2rsT>t=_WB=$kp#b;aVE&gsi!;L_)<_GG)2wy0#_} zEhA%{+xf}NJ^wu4@8@}c&vRbSIp_5{=Q-#5-TB8V|KOMmRr#IEM?!Vq$x8=SF56d$ zJq;2)YFM=U{=Gbr##=N`otGgWjB?tZSJKC&buO8<3*p5EM}AVFEyNO4o)#qhR-@^e zmK*L8uSQNw6(-fk%;@ku^J<8n& zbv}NDujGu=ncURO(#o?(t4=+u_C1Ds@MC05%TK-Ya<3?U8u?Cw#jlDFPNflkR`|>p z$7!48VV82rvtl97TahB?=(xA*mq%s7ro|tZ3_et&=~5{Ntm~j9QC-W{clB6ZWAyv4 zb$(N$_U`k5Lb|P=h?{8+)E58aLjA?Hc7d68L%#kL$#-D}dK-3nlBR-&fu{*JJ6}vJ zwb-lql)L#i^yNP5&vwrgjoY>{=R7o+ys})<)v7w`;@zfRGyQnx1evP3|CX##F^7u zmbq^&UG<0(S@(u&SjQtbH0Z+}@645aJ?_YQ?maD|VqyjcuHEuk`9Yr!)1=M!dt6Tq z_^cS$;)%8~;<@>)bG?M~8L5^QjDAb@r`nO0$rBUEE=LzFN;1L zm*|fph1l**%yp(TH=0!mDXGgC4uV=_*mctMLRbY~#oRWW=X+E(L9O@b7ZS;)7a)St$w4aX$_*>8-bRy$g@(i^l1k0JI~Rtn1K5uE4@o*(W`mWVfQpGm9%?i*xL#ciN0zrE-}s<- zLS)jMdAREdhB9str<)o4Bt7V4|FmESzpF%qhE{Fb>mP&y;+qR=wP_=S=sGR>>VSy7 z(c#-K`bLuq{9`Lk%xIz085@X12jL;SC~%oat@V7zGn?J_vl+G@_1ar;UrudsDYxFy zRbG#_8mBLrUX3QjsXb_FnS|8cd?B`!cxI-aK}b{fZ;n@Gf*B605^LAQOA3Cki<1@( zb~}=GlWUz!D^7A9E8tarGx1C3ujLl_qyVCo|B0LeFLZphA*pdHy}T>8Q!z6k`{due zIP?pjMSIj^XU)ZB4#f#M>UD{533Bb!dQq{549(?Evfb@lxngo7=Jet1t6Uwr*UUtP zx0e*j$2wG#z^Y7_?peN@k2$IqGVY4Ad!5dBRh3XFE-Xf=AN(2`^eK2;vzzQg(pym* zBt^ZiqPBJjabUGhU`+pyc$N|d%%TS0x4cL$0T`(+h800k9ZNebQ_JOtEKnWj1{97Uk$5DL%( z7<^<%53p-v=C|Ac%8&$}C2N3X_;kZ9aCS%m&+^|k3+Q3I2_6K89WXPIhR6T=6@-mV zmxZ5q#2^Eg9q><@3Z7+UodsNR-ULOU1OtIy!zgg@z$EH9X-vxVMfksm zxL~)h2;4EE3f%oRB_mKD2+1QhK#B;*MjU__5gr`X2axGq(Spbu1X4#)urrwHO2XMu zYtR!88OeC)^u`37zlxdN*90-J{|yS-A}~pSt^@dPGED{ON5|o}mN|IX*z~_27qiWa zT>L-OL^lJOu^8V(=YWFoJ0M{U!Lz)-vBV|CWANH7DL6z&VD%UZ-jgxu^O!cCQ!v-KkP{xr7RM;xaTIK1Z^@NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init +if "%ERRORLEVEL%" == "0" goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. @@ -51,7 +54,7 @@ goto fail set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe -if exist "%JAVA_EXE%" goto init +if exist "%JAVA_EXE%" goto execute echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% @@ -61,28 +64,14 @@ echo location of your Java installation. goto fail -:init -@rem Get command-line arguments, handling Windows variants - -if not "%OS%" == "Windows_NT" goto win9xME_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* - :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + @rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* :end @rem End local scope for the variables with windows NT shell diff --git a/javadoc/style.css b/javadoc/style.css deleted file mode 100644 index 914be69d..00000000 --- a/javadoc/style.css +++ /dev/null @@ -1,283 +0,0 @@ -@import url(https://fonts.googleapis.com/css?family=Open+Sans:300i,400,700); - -body, table { - padding:50px; - font:14px/1.5 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif; - color:#555; - font-weight:300; - margin-left: auto; - margin-right: auto; - max-width: 1440px; -} - -.keyword { - color:black; - font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal; - font-size:12px; -} - -.symbol { - font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal; - font-size:12px; -} - -.identifier { - color: darkblue; - font-size:12px; - font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal; -} - -h1, h2, h3, h4, h5, h6 { - color:#222; - margin:0 0 20px; -} - -p, ul, ol, table, pre, dl { - margin:0 0 20px; -} - -h1, h2, h3 { - line-height:1.1; -} - -h1 { - font-size:28px; -} - -h2 { - color:#393939; -} - -h3, h4, h5, h6 { - color:#494949; -} - -a { - color:#258aaf; - font-weight:400; - text-decoration:none; -} - -a:hover { - color: inherit; - text-decoration:underline; -} - -a small { - font-size:11px; - color:#555; - margin-top:-0.6em; - display:block; -} - -.wrapper { - width:860px; - margin:0 auto; -} - -blockquote { - border-left:1px solid #e5e5e5; - margin:0; - padding:0 0 0 20px; - font-style:italic; -} - -code, pre { - font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal; - color:#333; - font-size:12px; -} - -pre { - display: block; -/* - padding:8px 8px; - background: #f8f8f8; - border-radius:5px; - border:1px solid #e5e5e5; -*/ - overflow-x: auto; -} - -table { - width:100%; - border-collapse:collapse; -} - -th, td { - text-align:left; - vertical-align: top; - padding:5px 10px; -} - -dt { - color:#444; - font-weight:700; -} - -th { - color:#444; -} - -img { - max-width:100%; -} - -header { - width:270px; - float:left; - position:fixed; -} - -header ul { - list-style:none; - height:40px; - - padding:0; - - background: #eee; - background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd)); - background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%); - background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%); - background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%); - background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%); - - border-radius:5px; - border:1px solid #d2d2d2; - box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0; - width:270px; -} - -header li { - width:89px; - float:left; - border-right:1px solid #d2d2d2; - height:40px; -} - -header ul a { - line-height:1; - font-size:11px; - color:#999; - display:block; - text-align:center; - padding-top:6px; - height:40px; -} - -strong { - color:#222; - font-weight:700; -} - -header ul li + li { - width:88px; - border-left:1px solid #fff; -} - -header ul li + li + li { - border-right:none; - width:89px; -} - -header ul a strong { - font-size:14px; - display:block; - color:#222; -} - -section { - width:500px; - float:right; - padding-bottom:50px; -} - -small { - font-size:11px; -} - -hr { - border:0; - background:#e5e5e5; - height:1px; - margin:0 0 20px; -} - -footer { - width:270px; - float:left; - position:fixed; - bottom:50px; -} - -@media print, screen and (max-width: 960px) { - - div.wrapper { - width:auto; - margin:0; - } - - header, section, footer { - float:none; - position:static; - width:auto; - } - - header { - padding-right:320px; - } - - section { - border:1px solid #e5e5e5; - border-width:1px 0; - padding:20px 0; - margin:0 0 20px; - } - - header a small { - display:inline; - } - - header ul { - position:absolute; - right:50px; - top:52px; - } -} - -@media print, screen and (max-width: 720px) { - body { - word-wrap:break-word; - } - - header { - padding:0; - } - - header ul, header p.view { - position:static; - } - - pre, code { - word-wrap:normal; - } -} - -@media print, screen and (max-width: 480px) { - body { - padding:15px; - } - - header ul { - display:none; - } -} - -@media print { - body { - padding:0.4in; - font-size:12pt; - color:#444; - } -} diff --git a/javadoc/wisefy/alltypes/index.html b/javadoc/wisefy/alltypes/index.html deleted file mode 100644 index 3018c115..00000000 --- a/javadoc/wisefy/alltypes/index.html +++ /dev/null @@ -1,283 +0,0 @@ - - - -alltypes - wisefy - - - -

All Types

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-com.isupatches.wisefy.AccessPointApi -

An API for querying for nearby access points and related information.

-
-com.isupatches.wisefy.AddNetworkApi -

An API for adding networks as saved configurations on a device.

-
-com.isupatches.wisefy.callbacks.AddNetworkCallbacks -

Callbacks for adding a network as a saved configuration on a device.

-
-com.isupatches.wisefy.callbacks.BaseCallback -

Callbacks that are applicable to all Async WiseFy operations. -All Async interfaces should extend this class.

-
-com.isupatches.wisefy.constants.Capability -

Annotation to help avoid crazy strings when working with network security capabilities.

-
-com.isupatches.wisefy.ConnectionApi -

An API for managing the network connection of a device.

-
-com.isupatches.wisefy.callbacks.ConnectToNetworkCallbacks -

Callbacks for attempting to connect to a network.

-
-com.isupatches.wisefy.DeviceApi -

An API for querying about the different network statuses of a device.

-
-com.isupatches.wisefy.callbacks.DisableWifiCallbacks -

Callbacks for disabling a device's wifi.

-
-com.isupatches.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks -

Callbacks for disconnecting a device from it's current network.

-
-com.isupatches.wisefy.callbacks.EnableWifiCallbacks -

Callbacks for enabling a device's wifi.

-
-com.isupatches.wisefy.FrequencyApi -

An API for querying about a network's frequency.

-
-com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -

Callbacks for retrieving a device's current network.

-
-com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -

Callbacks for retrieving a device's current network.

-
-com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -

Callbacks for retrieving the frequency of a network.

-
-com.isupatches.wisefy.callbacks.GetIPCallbacks -

Callbacks for retrieving a device's IP.

-
-com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -

Callbacks for retrieving a list of nearby access points.

-
-com.isupatches.wisefy.callbacks.GetRSSICallbacks -

Callbacks for retrieving RSSI level of a nearby access point.

-
-com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -

Callbacks for retrieving a list of saved networks on a device.

-
-com.isupatches.wisefy.NetworkInfoApi -

An API for querying about a device's current network information.

-
-com.isupatches.wisefy.constants.NetworkType -

Annotation to help avoid crazy strings when handling network types.

-
-com.isupatches.wisefy.RemoveNetworkApi -

An API for removing a network as a saved configuration.

-
-com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -

Callbacks for removing a saved network on a device.

-
-com.isupatches.wisefy.SavedNetworkApi -

An API for querying saved network information on a device.

-
-com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -

Callbacks for finding a nearby access point on a device.

-
-com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -

Callbacks for finding a list of nearby access points on a device.

-
-com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -

Callbacks for retrieving a saved network on a device.

-
-com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -

Callbacks for retrieving a list of saved networks on a device.

-
-com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -

Callbacks for finding a nearby SSID on a device.

-
-com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -

Callbacks for finding a list of nearby SSIDs on a device.

-
-com.isupatches.wisefy.SecurityApi -

An API for querying about a network's security details.

-
-com.isupatches.wisefy.SignalStrengthApi -

An API for functionality relating to signal strength.

-
-com.isupatches.wisefy.WifiApi -

An API for functionality relating to Wifi.

-
-com.isupatches.wisefy.WiseFy -

Main class for WiseFy that provides a synchronous and asynchronous API to manipulate and query -for different parts of a device's wifi configuration and status.

-
-com.isupatches.wisefy.constants.WiseFyCode -

Interface to avoid magic numbers when handling internal WiseFy codes.

-
-com.isupatches.wisefy.threads.WiseFyHandlerThread -

A Thread to use for all WiseFy background processing.

-
-com.isupatches.wisefy.WiseFyLock -

A class used to synchronize logic.

-
-com.isupatches.wisefy.WiseFyPublicApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/failure-adding-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/failure-adding-network.html deleted file mode 100644 index ce75ff8e..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/failure-adding-network.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -AddNetworkCallbacks.failureAddingNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / AddNetworkCallbacks / failureAddingNetwork
-
-

failureAddingNetwork

- -abstract fun failureAddingNetwork(wifiManagerReturn: Int): Unit -

Called when android.net.wifi.WifiManager encounters an error adding a network.

-

See Also
-

android.net.wifi.WifiManager

-

com.isupatches.wisefy.WiseFy.WIFI_MANAGER_FAILURE

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/index.html deleted file mode 100644 index 7cd6060d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - -AddNetworkCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / AddNetworkCallbacks
-
-

AddNetworkCallbacks

-interface AddNetworkCallbacks : BaseCallback -

Callbacks for adding a network as a saved configuration on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.addOpenNetwork

-

com.isupatches.wisefy.WiseFy.addWEPNetwork

-

com.isupatches.wisefy.WiseFy.addWPA2Network

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

failureAddingNetwork

-
-abstract fun failureAddingNetwork(wifiManagerReturn: Int): Unit -

Called when android.net.wifi.WifiManager encounters an error adding a network.

-
-

networkAdded

-
-abstract fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration): Unit -

Called upon successfully adding a network.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/network-added.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/network-added.html deleted file mode 100644 index 607d9d26..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-add-network-callbacks/network-added.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -AddNetworkCallbacks.networkAdded - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / AddNetworkCallbacks / networkAdded
-
-

networkAdded

- -abstract fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration): Unit -

Called upon successfully adding a network.

-

See Also
-

android.net.wifi.WifiConfiguration

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-base-callback/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-base-callback/index.html deleted file mode 100644 index e041183d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-base-callback/index.html +++ /dev/null @@ -1,210 +0,0 @@ - - - -BaseCallback - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / BaseCallback
-
-

BaseCallback

-interface BaseCallback -

Callbacks that are applicable to all Async WiseFy operations. -All Async interfaces should extend this class.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
-

Inheritors

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

AddNetworkCallbacks

-
-interface AddNetworkCallbacks : BaseCallback -

Callbacks for adding a network as a saved configuration on a device.

-
-

ConnectToNetworkCallbacks

-
-interface ConnectToNetworkCallbacks : BaseCallback -

Callbacks for attempting to connect to a network.

-
-

DisableWifiCallbacks

-
-interface DisableWifiCallbacks : BaseCallback -

Callbacks for disabling a device's wifi.

-
-

DisconnectFromCurrentNetworkCallbacks

-
-interface DisconnectFromCurrentNetworkCallbacks : BaseCallback -

Callbacks for disconnecting a device from it's current network.

-
-

EnableWifiCallbacks

-
-interface EnableWifiCallbacks : BaseCallback -

Callbacks for enabling a device's wifi.

-
-

GetCurrentNetworkCallbacks

-
-interface GetCurrentNetworkCallbacks : BaseCallback -

Callbacks for retrieving a device's current network.

-
-

GetCurrentNetworkInfoCallbacks

-
-interface GetCurrentNetworkInfoCallbacks : BaseCallback -

Callbacks for retrieving a device's current network.

-
-

GetFrequencyCallbacks

-
-interface GetFrequencyCallbacks : BaseCallback -

Callbacks for retrieving the frequency of a network.

-
-

GetIPCallbacks

-
-interface GetIPCallbacks : BaseCallback -

Callbacks for retrieving a device's IP.

-
-

GetNearbyAccessPointsCallbacks

-
-interface GetNearbyAccessPointsCallbacks : BaseCallback -

Callbacks for retrieving a list of nearby access points.

-
-

GetRSSICallbacks

-
-interface GetRSSICallbacks : BaseCallback -

Callbacks for retrieving RSSI level of a nearby access point.

-
-

GetSavedNetworksCallbacks

-
-interface GetSavedNetworksCallbacks : BaseCallback -

Callbacks for retrieving a list of saved networks on a device.

-
-

RemoveNetworkCallbacks

-
-interface RemoveNetworkCallbacks : BaseCallback -

Callbacks for removing a saved network on a device.

-
-

SearchForAccessPointCallbacks

-
-interface SearchForAccessPointCallbacks : BaseCallback -

Callbacks for finding a nearby access point on a device.

-
-

SearchForAccessPointsCallbacks

-
-interface SearchForAccessPointsCallbacks : BaseCallback -

Callbacks for finding a list of nearby access points on a device.

-
-

SearchForSavedNetworkCallbacks

-
-interface SearchForSavedNetworkCallbacks : BaseCallback -

Callbacks for retrieving a saved network on a device.

-
-

SearchForSavedNetworksCallbacks

-
-interface SearchForSavedNetworksCallbacks : BaseCallback -

Callbacks for retrieving a list of saved networks on a device.

-
-

SearchForSSIDCallbacks

-
-interface SearchForSSIDCallbacks : BaseCallback -

Callbacks for finding a nearby SSID on a device.

-
-

SearchForSSIDsCallbacks

-
-interface SearchForSSIDsCallbacks : BaseCallback -

Callbacks for finding a list of nearby SSIDs on a device.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-base-callback/wisefy-failure.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-base-callback/wisefy-failure.html deleted file mode 100644 index 6757f0ca..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-base-callback/wisefy-failure.html +++ /dev/null @@ -1,25 +0,0 @@ - - - -BaseCallback.wisefyFailure - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / BaseCallback / wisefyFailure
-
-

wisefyFailure

- -abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-

Example: A null or empty ssid is passed in but is a required parameter.

-

See Also
-

com.isupatches.wisefy.WiseFyPrechecks

-

com.isupatches.wisefy.constants.WiseFyCode

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/connected-to-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/connected-to-network.html deleted file mode 100644 index cd39661d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/connected-to-network.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -ConnectToNetworkCallbacks.connectedToNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / ConnectToNetworkCallbacks / connectedToNetwork
-
-

connectedToNetwork

- -abstract fun connectedToNetwork(): Unit -

Called when WiseFy has successfully connected to a network.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/failure-connecting-to-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/failure-connecting-to-network.html deleted file mode 100644 index a7352421..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/failure-connecting-to-network.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -ConnectToNetworkCallbacks.failureConnectingToNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / ConnectToNetworkCallbacks / failureConnectingToNetwork
-
-

failureConnectingToNetwork

- -abstract fun failureConnectingToNetwork(): Unit -

Called when the network was found, but there was an issue attempting to connect to -it with android.net.wifi.WifiManager.

-

See Also
-

android.net.wifi.WifiManager

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/index.html deleted file mode 100644 index 6b04890c..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/index.html +++ /dev/null @@ -1,70 +0,0 @@ - - - -ConnectToNetworkCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / ConnectToNetworkCallbacks
-
-

ConnectToNetworkCallbacks

-interface ConnectToNetworkCallbacks : BaseCallback -

Callbacks for attempting to connect to a network.

-

See Also
-

com.isupatches.wisefy.WiseFy.connectToNetwork

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - -
-

connectedToNetwork

-
-abstract fun connectedToNetwork(): Unit -

Called when WiseFy has successfully connected to a network.

-
-

failureConnectingToNetwork

-
-abstract fun failureConnectingToNetwork(): Unit -

Called when the network was found, but there was an issue attempting to connect to -it with android.net.wifi.WifiManager.

-
-

networkNotFoundToConnectTo

-
-abstract fun networkNotFoundToConnectTo(): Unit -

Called when the SSID of the network to connect to cannot be found by android.net.wifi.WifiManager -and WiseFy.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/network-not-found-to-connect-to.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/network-not-found-to-connect-to.html deleted file mode 100644 index 32d35168..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-connect-to-network-callbacks/network-not-found-to-connect-to.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -ConnectToNetworkCallbacks.networkNotFoundToConnectTo - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / ConnectToNetworkCallbacks / networkNotFoundToConnectTo
-
-

networkNotFoundToConnectTo

- -abstract fun networkNotFoundToConnectTo(): Unit -

Called when the SSID of the network to connect to cannot be found by android.net.wifi.WifiManager -and WiseFy.

-

See Also
-

android.net.wifi.WifiManager

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/failure-disabling-wifi.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/failure-disabling-wifi.html deleted file mode 100644 index 19ad49b8..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/failure-disabling-wifi.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -DisableWifiCallbacks.failureDisablingWifi - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / DisableWifiCallbacks / failureDisablingWifi
-
-

failureDisablingWifi

- -abstract fun failureDisablingWifi(): Unit -

Called when there is an issue disabling Wifi on the device.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/index.html deleted file mode 100644 index d5a7dd59..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -DisableWifiCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / DisableWifiCallbacks
-
-

DisableWifiCallbacks

-interface DisableWifiCallbacks : BaseCallback -

Callbacks for disabling a device's wifi.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.disableWifi

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

failureDisablingWifi

-
-abstract fun failureDisablingWifi(): Unit -

Called when there is an issue disabling Wifi on the device.

-
-

wifiDisabled

-
-abstract fun wifiDisabled(): Unit -

Called when WiseFy has successfully disabled Wifi on the device.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/wifi-disabled.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/wifi-disabled.html deleted file mode 100644 index 9830e6ff..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disable-wifi-callbacks/wifi-disabled.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -DisableWifiCallbacks.wifiDisabled - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / DisableWifiCallbacks / wifiDisabled
-
-

wifiDisabled

- -abstract fun wifiDisabled(): Unit -

Called when WiseFy has successfully disabled Wifi on the device.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/disconnected-from-current-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/disconnected-from-current-network.html deleted file mode 100644 index e61546b2..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/disconnected-from-current-network.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -DisconnectFromCurrentNetworkCallbacks.disconnectedFromCurrentNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / DisconnectFromCurrentNetworkCallbacks / disconnectedFromCurrentNetwork
-
-

disconnectedFromCurrentNetwork

- -abstract fun disconnectedFromCurrentNetwork(): Unit -

Called when WiseFy has successfully disconnected from the device's current network.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/failure-disconnecting-from-current-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/failure-disconnecting-from-current-network.html deleted file mode 100644 index 0dbe19ae..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/failure-disconnecting-from-current-network.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -DisconnectFromCurrentNetworkCallbacks.failureDisconnectingFromCurrentNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / DisconnectFromCurrentNetworkCallbacks / failureDisconnectingFromCurrentNetwork
-
-

failureDisconnectingFromCurrentNetwork

- -abstract fun failureDisconnectingFromCurrentNetwork(): Unit -

Called when there is an issue disconnecting the device from it's current network.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.html deleted file mode 100644 index df9a0ca3..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-disconnect-from-current-network-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -DisconnectFromCurrentNetworkCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / DisconnectFromCurrentNetworkCallbacks
-
-

DisconnectFromCurrentNetworkCallbacks

-interface DisconnectFromCurrentNetworkCallbacks : BaseCallback -

Callbacks for disconnecting a device from it's current network.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.disconnectFromCurrentNetwork

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

disconnectedFromCurrentNetwork

-
-abstract fun disconnectedFromCurrentNetwork(): Unit -

Called when WiseFy has successfully disconnected from the device's current network.

-
-

failureDisconnectingFromCurrentNetwork

-
-abstract fun failureDisconnectingFromCurrentNetwork(): Unit -

Called when there is an issue disconnecting the device from it's current network.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/failure-enabling-wifi.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/failure-enabling-wifi.html deleted file mode 100644 index aa3ed386..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/failure-enabling-wifi.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -EnableWifiCallbacks.failureEnablingWifi - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / EnableWifiCallbacks / failureEnablingWifi
-
-

failureEnablingWifi

- -abstract fun failureEnablingWifi(): Unit -

Called when there is an issue enabling wifi on the device.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/index.html deleted file mode 100644 index f8d89842..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -EnableWifiCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / EnableWifiCallbacks
-
-

EnableWifiCallbacks

-interface EnableWifiCallbacks : BaseCallback -

Callbacks for enabling a device's wifi.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.enableWifi

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

failureEnablingWifi

-
-abstract fun failureEnablingWifi(): Unit -

Called when there is an issue enabling wifi on the device.

-
-

wifiEnabled

-
-abstract fun wifiEnabled(): Unit -

Called when WiseFy has successfully enabled wifi on the device.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/wifi-enabled.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/wifi-enabled.html deleted file mode 100644 index 47354881..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-enable-wifi-callbacks/wifi-enabled.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -EnableWifiCallbacks.wifiEnabled - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / EnableWifiCallbacks / wifiEnabled
-
-

wifiEnabled

- -abstract fun wifiEnabled(): Unit -

Called when WiseFy has successfully enabled wifi on the device.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/index.html deleted file mode 100644 index 052f2d87..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -GetCurrentNetworkCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetCurrentNetworkCallbacks
-
-

GetCurrentNetworkCallbacks

-interface GetCurrentNetworkCallbacks : BaseCallback -

Callbacks for retrieving a device's current network.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.getCurrentNetwork

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

noCurrentNetwork

-
-abstract fun noCurrentNetwork(): Unit -

Called when the Android OS returns no current network.

-
-

retrievedCurrentNetwork

-
-abstract fun retrievedCurrentNetwork(currentNetwork: WifiInfo): Unit -

Called when WiseFy has successfully retrieved the device's current network.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/no-current-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/no-current-network.html deleted file mode 100644 index 3e8db520..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/no-current-network.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -GetCurrentNetworkCallbacks.noCurrentNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetCurrentNetworkCallbacks / noCurrentNetwork
-
-

noCurrentNetwork

- -abstract fun noCurrentNetwork(): Unit -

Called when the Android OS returns no current network.

-

Author
-Patches

-

Since
-4.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/retrieved-current-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/retrieved-current-network.html deleted file mode 100644 index d60d230d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-callbacks/retrieved-current-network.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -GetCurrentNetworkCallbacks.retrievedCurrentNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetCurrentNetworkCallbacks / retrievedCurrentNetwork
-
-

retrievedCurrentNetwork

- -abstract fun retrievedCurrentNetwork(currentNetwork: WifiInfo): Unit -

Called when WiseFy has successfully retrieved the device's current network.

-

See Also
-

WifiInfo

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/index.html deleted file mode 100644 index 0aa60cb2..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -GetCurrentNetworkInfoCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetCurrentNetworkInfoCallbacks
-
-

GetCurrentNetworkInfoCallbacks

-interface GetCurrentNetworkInfoCallbacks : BaseCallback -

Callbacks for retrieving a device's current network.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.getCurrentNetworkInfo

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

noCurrentNetworkInfo

-
-abstract fun noCurrentNetworkInfo(): Unit -

Called when the Android OS returns no current network info.

-
-

retrievedCurrentNetworkInfo

-
-abstract fun retrievedCurrentNetworkInfo(currentNetworkInfo: NetworkInfo): Unit -

Called when WiseFy has successfully retrieved the device's current network info.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/no-current-network-info.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/no-current-network-info.html deleted file mode 100644 index fc08dc8a..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/no-current-network-info.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -GetCurrentNetworkInfoCallbacks.noCurrentNetworkInfo - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetCurrentNetworkInfoCallbacks / noCurrentNetworkInfo
-
-

noCurrentNetworkInfo

- -abstract fun noCurrentNetworkInfo(): Unit -

Called when the Android OS returns no current network info.

-

Author
-Patches

-

Since
-4.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/retrieved-current-network-info.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/retrieved-current-network-info.html deleted file mode 100644 index 1ee56dae..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-current-network-info-callbacks/retrieved-current-network-info.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -GetCurrentNetworkInfoCallbacks.retrievedCurrentNetworkInfo - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetCurrentNetworkInfoCallbacks / retrievedCurrentNetworkInfo
-
-

retrievedCurrentNetworkInfo

- -abstract fun retrievedCurrentNetworkInfo(currentNetworkInfo: NetworkInfo): Unit -

Called when WiseFy has successfully retrieved the device's current network info.

-

See Also
-

NetworkInfo

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/failure-getting-frequency.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/failure-getting-frequency.html deleted file mode 100644 index 9be3c6c7..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/failure-getting-frequency.html +++ /dev/null @@ -1,20 +0,0 @@ - - - -GetFrequencyCallbacks.failureGettingFrequency - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetFrequencyCallbacks / failureGettingFrequency
-
-

failureGettingFrequency

- -abstract fun failureGettingFrequency(): Unit -

Called when there is an issue retrieving the frequency of a network.

-

i.e. Unable to retrieve current network or no current network

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/index.html deleted file mode 100644 index b6de27e9..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -GetFrequencyCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetFrequencyCallbacks
-
-

GetFrequencyCallbacks

-interface GetFrequencyCallbacks : BaseCallback -

Callbacks for retrieving the frequency of a network.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.getFrequency

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

failureGettingFrequency

-
-abstract fun failureGettingFrequency(): Unit -

Called when there is an issue retrieving the frequency of a network.

-
-

retrievedFrequency

-
-abstract fun retrievedFrequency(frequency: Int): Unit -

Called when WiseFy has successfully retrieved the frequency of a network.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/retrieved-frequency.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/retrieved-frequency.html deleted file mode 100644 index 96164162..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-frequency-callbacks/retrieved-frequency.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -GetFrequencyCallbacks.retrievedFrequency - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetFrequencyCallbacks / retrievedFrequency
-
-

retrievedFrequency

- -abstract fun retrievedFrequency(frequency: Int): Unit -

Called when WiseFy has successfully retrieved the frequency of a network.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/failure-retrieving-i-p.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/failure-retrieving-i-p.html deleted file mode 100644 index e1769e4b..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/failure-retrieving-i-p.html +++ /dev/null @@ -1,20 +0,0 @@ - - - -GetIPCallbacks.failureRetrievingIP - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetIPCallbacks / failureRetrievingIP
-
-

failureRetrievingIP

- -abstract fun failureRetrievingIP(): Unit -

Called when there is an issue retrieving the IP of a device.

-

i.e. No current IP for the device, bad formatting, etc.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/index.html deleted file mode 100644 index 60a42671..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -GetIPCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetIPCallbacks
-
-

GetIPCallbacks

-interface GetIPCallbacks : BaseCallback -

Callbacks for retrieving a device's IP.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.getIP

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

failureRetrievingIP

-
-abstract fun failureRetrievingIP(): Unit -

Called when there is an issue retrieving the IP of a device.

-
-

retrievedIP

-
-abstract fun retrievedIP(ip: String): Unit -

Called when WiseFy has successfully retrieved the IP of a device.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/retrieved-i-p.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/retrieved-i-p.html deleted file mode 100644 index b09de196..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-i-p-callbacks/retrieved-i-p.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -GetIPCallbacks.retrievedIP - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetIPCallbacks / retrievedIP
-
-

retrievedIP

- -abstract fun retrievedIP(ip: String): Unit -

Called when WiseFy has successfully retrieved the IP of a device.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/index.html deleted file mode 100644 index e1f8cd41..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -GetNearbyAccessPointsCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetNearbyAccessPointsCallbacks
-
-

GetNearbyAccessPointsCallbacks

-interface GetNearbyAccessPointsCallbacks : BaseCallback -

Callbacks for retrieving a list of nearby access points.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.getNearbyAccessPoints

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

noAccessPointsFound

-
-abstract fun noAccessPointsFound(): Unit -

Called when the Android OS returns no access points.

-
-

retrievedNearbyAccessPoints

-
-abstract fun retrievedNearbyAccessPoints(nearbyAccessPoints: List<ScanResult>): Unit -

Called when WiseFy has successfully retrieved a list of nearby access points.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/no-access-points-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/no-access-points-found.html deleted file mode 100644 index fd442055..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/no-access-points-found.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -GetNearbyAccessPointsCallbacks.noAccessPointsFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetNearbyAccessPointsCallbacks / noAccessPointsFound
-
-

noAccessPointsFound

- -abstract fun noAccessPointsFound(): Unit -

Called when the Android OS returns no access points.

-

Author
-Patches

-

Since
-4.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/retrieved-nearby-access-points.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/retrieved-nearby-access-points.html deleted file mode 100644 index 081ee7cb..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-nearby-access-points-callbacks/retrieved-nearby-access-points.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -GetNearbyAccessPointsCallbacks.retrievedNearbyAccessPoints - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetNearbyAccessPointsCallbacks / retrievedNearbyAccessPoints
-
-

retrievedNearbyAccessPoints

- -abstract fun retrievedNearbyAccessPoints(nearbyAccessPoints: List<@JvmSuppressWildcards ScanResult>): Unit -

Called when WiseFy has successfully retrieved a list of nearby access points.

-

See Also
-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/index.html deleted file mode 100644 index 4e52aaa0..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/index.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -GetRSSICallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetRSSICallbacks
-
-

GetRSSICallbacks

-interface GetRSSICallbacks : BaseCallback -

Callbacks for retrieving RSSI level of a nearby access point.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.getRSSI

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

networkNotFoundToRetrieveRSSI

-
-abstract fun networkNotFoundToRetrieveRSSI(): Unit -

Called when the network to retrieve the RSSI level of is not found -in the list of nearby access points.

-
-

retrievedRSSI

-
-abstract fun retrievedRSSI(rssi: Int): Unit -

Called when WiseFy has successfully retrieved the RSSI level of a network.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/network-not-found-to-retrieve-r-s-s-i.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/network-not-found-to-retrieve-r-s-s-i.html deleted file mode 100644 index dd172c92..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/network-not-found-to-retrieve-r-s-s-i.html +++ /dev/null @@ -1,20 +0,0 @@ - - - -GetRSSICallbacks.networkNotFoundToRetrieveRSSI - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetRSSICallbacks / networkNotFoundToRetrieveRSSI
-
-

networkNotFoundToRetrieveRSSI

- -abstract fun networkNotFoundToRetrieveRSSI(): Unit -

Called when the network to retrieve the RSSI level of is not found -in the list of nearby access points.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/retrieved-r-s-s-i.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/retrieved-r-s-s-i.html deleted file mode 100644 index 584f6ac1..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-r-s-s-i-callbacks/retrieved-r-s-s-i.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -GetRSSICallbacks.retrievedRSSI - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetRSSICallbacks / retrievedRSSI
-
-

retrievedRSSI

- -abstract fun retrievedRSSI(rssi: Int): Unit -

Called when WiseFy has successfully retrieved the RSSI level of a network.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/index.html deleted file mode 100644 index 1e9501a9..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/index.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -GetSavedNetworkCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetSavedNetworkCallbacks
-
-

GetSavedNetworkCallbacks

-interface GetSavedNetworkCallbacks : BaseCallback -

Callbacks for retrieving a saved network on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.getSavedNetwork

-

-

Author
-Patches

-

Functions

- - - - - - - - - - - -
-

retrievedSavedNetwork

-
-abstract fun retrievedSavedNetwork(savedNetwork: WifiConfiguration): Unit -

Called when WiseFy has successfully retrieved a matching saved network configuration.

-
-

savedNetworkNotFound

-
-abstract fun savedNetworkNotFound(): Unit -

Called when the given network is not a saved configuration.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/retrieved-saved-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/retrieved-saved-network.html deleted file mode 100644 index 6f776e12..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/retrieved-saved-network.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -GetSavedNetworkCallbacks.retrievedSavedNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetSavedNetworkCallbacks / retrievedSavedNetwork
-
-

retrievedSavedNetwork

- -abstract fun retrievedSavedNetwork(savedNetwork: WifiConfiguration): Unit -

Called when WiseFy has successfully retrieved a matching saved network configuration.

-

See Also
-

WifiConfiguration

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/saved-network-not-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/saved-network-not-found.html deleted file mode 100644 index aabf6122..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-network-callbacks/saved-network-not-found.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -GetSavedNetworkCallbacks.savedNetworkNotFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetSavedNetworkCallbacks / savedNetworkNotFound
-
-

savedNetworkNotFound

- -abstract fun savedNetworkNotFound(): Unit -

Called when the given network is not a saved configuration.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/index.html deleted file mode 100644 index ef8c929c..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -GetSavedNetworksCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetSavedNetworksCallbacks
-
-

GetSavedNetworksCallbacks

-interface GetSavedNetworksCallbacks : BaseCallback -

Callbacks for retrieving a list of saved networks on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.getSavedNetworks

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

noSavedNetworksFound

-
-abstract fun noSavedNetworksFound(): Unit -

Called when there are no saved network configuration on the device.

-
-

retrievedSavedNetworks

-
-abstract fun retrievedSavedNetworks(savedNetworks: List<WifiConfiguration>): Unit -

Called when WiseFy has successfully retrieved a list of saved networks.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/no-saved-networks-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/no-saved-networks-found.html deleted file mode 100644 index 7468ac01..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/no-saved-networks-found.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -GetSavedNetworksCallbacks.noSavedNetworksFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetSavedNetworksCallbacks / noSavedNetworksFound
-
-

noSavedNetworksFound

- -abstract fun noSavedNetworksFound(): Unit -

Called when there are no saved network configuration on the device.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/retrieved-saved-networks.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/retrieved-saved-networks.html deleted file mode 100644 index d74ccad1..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-get-saved-networks-callbacks/retrieved-saved-networks.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -GetSavedNetworksCallbacks.retrievedSavedNetworks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / GetSavedNetworksCallbacks / retrievedSavedNetworks
-
-

retrievedSavedNetworks

- -abstract fun retrievedSavedNetworks(savedNetworks: List<@JvmSuppressWildcards WifiConfiguration>): Unit -

Called when WiseFy has successfully retrieved a list of saved networks.

-

See Also
-

WifiConfiguration

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/failure-removing-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/failure-removing-network.html deleted file mode 100644 index bdb429f8..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/failure-removing-network.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -RemoveNetworkCallbacks.failureRemovingNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / RemoveNetworkCallbacks / failureRemovingNetwork
-
-

failureRemovingNetwork

- -abstract fun failureRemovingNetwork(): Unit -

Called when there is an issue removing a saved network configuration with WifiManager.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/index.html deleted file mode 100644 index c9b3ff15..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/index.html +++ /dev/null @@ -1,70 +0,0 @@ - - - -RemoveNetworkCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / RemoveNetworkCallbacks
-
-

RemoveNetworkCallbacks

-interface RemoveNetworkCallbacks : BaseCallback -

Callbacks for removing a saved network on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.removeNetwork

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - -
-

failureRemovingNetwork

-
-abstract fun failureRemovingNetwork(): Unit -

Called when there is an issue removing a saved network configuration with WifiManager.

-
-

networkNotFoundToRemove

-
-abstract fun networkNotFoundToRemove(): Unit -

Called when the network is not found in the save network configuration list.

-
-

networkRemoved

-
-abstract fun networkRemoved(): Unit -

Called when WiseFy has successfully removed a network from the -list of saved network configurations.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/network-not-found-to-remove.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/network-not-found-to-remove.html deleted file mode 100644 index 331ec8c8..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/network-not-found-to-remove.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -RemoveNetworkCallbacks.networkNotFoundToRemove - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / RemoveNetworkCallbacks / networkNotFoundToRemove
-
-

networkNotFoundToRemove

- -abstract fun networkNotFoundToRemove(): Unit -

Called when the network is not found in the save network configuration list.

-

This is not necessarily an error as it may have never been stored, -removed manually, or various other scenarios.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/network-removed.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/network-removed.html deleted file mode 100644 index d07f0f66..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-remove-network-callbacks/network-removed.html +++ /dev/null @@ -1,20 +0,0 @@ - - - -RemoveNetworkCallbacks.networkRemoved - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / RemoveNetworkCallbacks / networkRemoved
-
-

networkRemoved

- -abstract fun networkRemoved(): Unit -

Called when WiseFy has successfully removed a network from the -list of saved network configurations.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/access-point-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/access-point-found.html deleted file mode 100644 index d1a0feee..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/access-point-found.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -SearchForAccessPointCallbacks.accessPointFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForAccessPointCallbacks / accessPointFound
-
-

accessPointFound

- -abstract fun accessPointFound(accessPoint: ScanResult): Unit -

Called when WiseFy has successfully found a matching access point.

-

See Also
-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/access-point-not-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/access-point-not-found.html deleted file mode 100644 index 5990433f..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/access-point-not-found.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -SearchForAccessPointCallbacks.accessPointNotFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForAccessPointCallbacks / accessPointNotFound
-
-

accessPointNotFound

- -abstract fun accessPointNotFound(): Unit -

Called when WiseFy times out trying to find a matching access point.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/index.html deleted file mode 100644 index d49c89cc..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-point-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -SearchForAccessPointCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForAccessPointCallbacks
-
-

SearchForAccessPointCallbacks

-interface SearchForAccessPointCallbacks : BaseCallback -

Callbacks for finding a nearby access point on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.searchForAccessPoint

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

accessPointFound

-
-abstract fun accessPointFound(accessPoint: ScanResult): Unit -

Called when WiseFy has successfully found a matching access point.

-
-

accessPointNotFound

-
-abstract fun accessPointNotFound(): Unit -

Called when WiseFy times out trying to find a matching access point.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/found-access-points.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/found-access-points.html deleted file mode 100644 index 643418a0..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/found-access-points.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -SearchForAccessPointsCallbacks.foundAccessPoints - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForAccessPointsCallbacks / foundAccessPoints
-
-

foundAccessPoints

- -abstract fun foundAccessPoints(accessPoints: List<@JvmSuppressWildcards ScanResult>): Unit -

Called when WiseFy has successfully found matching access points.

-

See Also
-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/index.html deleted file mode 100644 index 1bd71501..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/index.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -SearchForAccessPointsCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForAccessPointsCallbacks
-
-

SearchForAccessPointsCallbacks

-interface SearchForAccessPointsCallbacks : BaseCallback -

Callbacks for finding a list of nearby access points on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.searchForAccessPoints

-

-

Author
-Patches

-

Functions

- - - - - - - - - - - -
-

foundAccessPoints

-
-abstract fun foundAccessPoints(accessPoints: List<ScanResult>): Unit -

Called when WiseFy has successfully found matching access points.

-
-

noAccessPointsFound

-
-abstract fun noAccessPointsFound(): Unit -

Called when WiseFy times out trying to find a matching access points.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/no-access-points-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/no-access-points-found.html deleted file mode 100644 index 1477dffb..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-access-points-callbacks/no-access-points-found.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -SearchForAccessPointsCallbacks.noAccessPointsFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForAccessPointsCallbacks / noAccessPointsFound
-
-

noAccessPointsFound

- -abstract fun noAccessPointsFound(): Unit -

Called when WiseFy times out trying to find a matching access points.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.html deleted file mode 100644 index 8f43b985..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -SearchForSSIDCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSSIDCallbacks
-
-

SearchForSSIDCallbacks

-interface SearchForSSIDCallbacks : BaseCallback -

Callbacks for finding a nearby SSID on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.searchForSSID

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

ssidFound

-
-abstract fun ssidFound(ssid: String): Unit -

Called when WiseFy has successfully found an access point with a matching SSID.

-
-

ssidNotFound

-
-abstract fun ssidNotFound(): Unit -

Called when WiseFy times out trying to find an access point with a matching SSID.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/ssid-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/ssid-found.html deleted file mode 100644 index 31b52db1..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/ssid-found.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -SearchForSSIDCallbacks.ssidFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSSIDCallbacks / ssidFound
-
-

ssidFound

- -abstract fun ssidFound(ssid: String): Unit -

Called when WiseFy has successfully found an access point with a matching SSID.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/ssid-not-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/ssid-not-found.html deleted file mode 100644 index 14546b14..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-d-callbacks/ssid-not-found.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -SearchForSSIDCallbacks.ssidNotFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSSIDCallbacks / ssidNotFound
-
-

ssidNotFound

- -abstract fun ssidNotFound(): Unit -

Called when WiseFy times out trying to find an access point with a matching SSID.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.html deleted file mode 100644 index d940cdf3..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -SearchForSSIDsCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSSIDsCallbacks
-
-

SearchForSSIDsCallbacks

-interface SearchForSSIDsCallbacks : BaseCallback -

Callbacks for finding a list of nearby SSIDs on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.searchForSSIDs

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

noSSIDsFound

-
-abstract fun noSSIDsFound(): Unit -

Called when WiseFy times out trying to find access points with a matching SSID.

-
-

retrievedSSIDs

-
-abstract fun retrievedSSIDs(ssids: List<String>): Unit -

Called when WiseFy has successfully found access points with a matching SSID.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/no-s-s-i-ds-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/no-s-s-i-ds-found.html deleted file mode 100644 index d059a19c..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/no-s-s-i-ds-found.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -SearchForSSIDsCallbacks.noSSIDsFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSSIDsCallbacks / noSSIDsFound
-
-

noSSIDsFound

- -abstract fun noSSIDsFound(): Unit -

Called when WiseFy times out trying to find access points with a matching SSID.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/retrieved-s-s-i-ds.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/retrieved-s-s-i-ds.html deleted file mode 100644 index 7a1646de..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-s-s-i-ds-callbacks/retrieved-s-s-i-ds.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -SearchForSSIDsCallbacks.retrievedSSIDs - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSSIDsCallbacks / retrievedSSIDs
-
-

retrievedSSIDs

- -abstract fun retrievedSSIDs(ssids: List<String>): Unit -

Called when WiseFy has successfully found access points with a matching SSID.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/index.html deleted file mode 100644 index 63d6c39c..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/index.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -SearchForSavedNetworkCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSavedNetworkCallbacks
-
-

SearchForSavedNetworkCallbacks

-interface SearchForSavedNetworkCallbacks : BaseCallback -

Callbacks for retrieving a saved network on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.searchForSavedNetwork

-

-

Author
-Patches

-

Functions

- - - - - - - - - - - -
-

retrievedSavedNetwork

-
-abstract fun retrievedSavedNetwork(savedNetwork: WifiConfiguration): Unit -

Called when WiseFy has successfully retrieved a matching saved network configuration.

-
-

savedNetworkNotFound

-
-abstract fun savedNetworkNotFound(): Unit -

Called when there are no saved network configurations matching search criteria.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/retrieved-saved-network.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/retrieved-saved-network.html deleted file mode 100644 index ec20b33a..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/retrieved-saved-network.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -SearchForSavedNetworkCallbacks.retrievedSavedNetwork - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSavedNetworkCallbacks / retrievedSavedNetwork
-
-

retrievedSavedNetwork

- -abstract fun retrievedSavedNetwork(savedNetwork: WifiConfiguration): Unit -

Called when WiseFy has successfully retrieved a matching saved network configuration.

-

See Also
-

WifiConfiguration

-

-

Author
-Patches

-

Since
-4.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/saved-network-not-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/saved-network-not-found.html deleted file mode 100644 index 756d8897..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-network-callbacks/saved-network-not-found.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -SearchForSavedNetworkCallbacks.savedNetworkNotFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSavedNetworkCallbacks / savedNetworkNotFound
-
-

savedNetworkNotFound

- -abstract fun savedNetworkNotFound(): Unit -

Called when there are no saved network configurations matching search criteria.

-

Author
-Patches

-

Since
-4.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/index.html deleted file mode 100644 index 07a9b1e0..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - -SearchForSavedNetworksCallbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSavedNetworksCallbacks
-
-

SearchForSavedNetworksCallbacks

-interface SearchForSavedNetworksCallbacks : BaseCallback -

Callbacks for retrieving a list of saved networks on a device.

-

See Also
-

BaseCallback

-

com.isupatches.wisefy.WiseFy.searchForSavedNetworks

-

-

Author
-Patches

-

Since
-4.0

-

Functions

- - - - - - - - - - - -
-

noSavedNetworksFound

-
-abstract fun noSavedNetworksFound(): Unit -

Called when there are no saved network configuration on the device matching the -given search criteria.

-
-

retrievedSavedNetworks

-
-abstract fun retrievedSavedNetworks(savedNetworks: List<WifiConfiguration>): Unit -

Called when WiseFy has successfully retrieved a list of saved networks matching -the given search criteria.

-
-

Inherited Functions

- - - - - - - -
-

wisefyFailure

-
-abstract fun wisefyFailure(wisefyFailureCode: Int): Unit -

Called when com.isupatches.wisefy.WiseFyPrechecks determines that there -is an issue and an operation cannot be completed.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/no-saved-networks-found.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/no-saved-networks-found.html deleted file mode 100644 index db0a6b77..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/no-saved-networks-found.html +++ /dev/null @@ -1,20 +0,0 @@ - - - -SearchForSavedNetworksCallbacks.noSavedNetworksFound - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSavedNetworksCallbacks / noSavedNetworksFound
-
-

noSavedNetworksFound

- -abstract fun noSavedNetworksFound(): Unit -

Called when there are no saved network configuration on the device matching the -given search criteria.

-

Author
-Patches

-

Since
-4.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/retrieved-saved-networks.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/retrieved-saved-networks.html deleted file mode 100644 index 78de4f6d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/-search-for-saved-networks-callbacks/retrieved-saved-networks.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -SearchForSavedNetworksCallbacks.retrievedSavedNetworks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks / SearchForSavedNetworksCallbacks / retrievedSavedNetworks
-
-

retrievedSavedNetworks

- -abstract fun retrievedSavedNetworks(savedNetworks: List<@JvmSuppressWildcards WifiConfiguration>): Unit -

Called when WiseFy has successfully retrieved a list of saved networks matching -the given search criteria.

-

See Also
-

WifiConfiguration

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.callbacks/index.html b/javadoc/wisefy/com.isupatches.wisefy.callbacks/index.html deleted file mode 100644 index 4d809543..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.callbacks/index.html +++ /dev/null @@ -1,198 +0,0 @@ - - - -com.isupatches.wisefy.callbacks - wisefy - - - -wisefy / com.isupatches.wisefy.callbacks
-
-

Package com.isupatches.wisefy.callbacks

-

Types

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

AddNetworkCallbacks

-
-interface AddNetworkCallbacks : BaseCallback -

Callbacks for adding a network as a saved configuration on a device.

-
-

BaseCallback

-
-interface BaseCallback -

Callbacks that are applicable to all Async WiseFy operations. -All Async interfaces should extend this class.

-
-

ConnectToNetworkCallbacks

-
-interface ConnectToNetworkCallbacks : BaseCallback -

Callbacks for attempting to connect to a network.

-
-

DisableWifiCallbacks

-
-interface DisableWifiCallbacks : BaseCallback -

Callbacks for disabling a device's wifi.

-
-

DisconnectFromCurrentNetworkCallbacks

-
-interface DisconnectFromCurrentNetworkCallbacks : BaseCallback -

Callbacks for disconnecting a device from it's current network.

-
-

EnableWifiCallbacks

-
-interface EnableWifiCallbacks : BaseCallback -

Callbacks for enabling a device's wifi.

-
-

GetCurrentNetworkCallbacks

-
-interface GetCurrentNetworkCallbacks : BaseCallback -

Callbacks for retrieving a device's current network.

-
-

GetCurrentNetworkInfoCallbacks

-
-interface GetCurrentNetworkInfoCallbacks : BaseCallback -

Callbacks for retrieving a device's current network.

-
-

GetFrequencyCallbacks

-
-interface GetFrequencyCallbacks : BaseCallback -

Callbacks for retrieving the frequency of a network.

-
-

GetIPCallbacks

-
-interface GetIPCallbacks : BaseCallback -

Callbacks for retrieving a device's IP.

-
-

GetNearbyAccessPointsCallbacks

-
-interface GetNearbyAccessPointsCallbacks : BaseCallback -

Callbacks for retrieving a list of nearby access points.

-
-

GetRSSICallbacks

-
-interface GetRSSICallbacks : BaseCallback -

Callbacks for retrieving RSSI level of a nearby access point.

-
-

GetSavedNetworksCallbacks

-
-interface GetSavedNetworksCallbacks : BaseCallback -

Callbacks for retrieving a list of saved networks on a device.

-
-

RemoveNetworkCallbacks

-
-interface RemoveNetworkCallbacks : BaseCallback -

Callbacks for removing a saved network on a device.

-
-

SearchForAccessPointCallbacks

-
-interface SearchForAccessPointCallbacks : BaseCallback -

Callbacks for finding a nearby access point on a device.

-
-

SearchForAccessPointsCallbacks

-
-interface SearchForAccessPointsCallbacks : BaseCallback -

Callbacks for finding a list of nearby access points on a device.

-
-

SearchForSavedNetworkCallbacks

-
-interface SearchForSavedNetworkCallbacks : BaseCallback -

Callbacks for retrieving a saved network on a device.

-
-

SearchForSavedNetworksCallbacks

-
-interface SearchForSavedNetworksCallbacks : BaseCallback -

Callbacks for retrieving a list of saved networks on a device.

-
-

SearchForSSIDCallbacks

-
-interface SearchForSSIDCallbacks : BaseCallback -

Callbacks for finding a nearby SSID on a device.

-
-

SearchForSSIDsCallbacks

-
-interface SearchForSSIDsCallbacks : BaseCallback -

Callbacks for finding a list of nearby SSIDs on a device.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-capability/-init-.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-capability/-init-.html deleted file mode 100644 index d76082bb..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-capability/-init-.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -Capability.<init> - wisefy - - - -wisefy / com.isupatches.wisefy.constants / Capability / <init>
-
-

<init>

- -Capability() -

Annotation to help avoid crazy strings when working with network security capabilities.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-capability/index.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-capability/index.html deleted file mode 100644 index 8e6775d5..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-capability/index.html +++ /dev/null @@ -1,32 +0,0 @@ - - - -Capability - wisefy - - - -wisefy / com.isupatches.wisefy.constants / Capability
-
-

Capability

-annotation class Capability -

Annotation to help avoid crazy strings when working with network security capabilities.

-

Author
-Patches

-

Since
-3.0

-

Constructors

- - - - - - - -
-

<init>

-
-Capability() -

Annotation to help avoid crazy strings when working with network security capabilities.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-d-e-f-a-u-l-t_-p-r-e-c-h-e-c-k_-r-e-t-u-r-n_-c-o-d-e.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-d-e-f-a-u-l-t_-p-r-e-c-h-e-c-k_-r-e-t-u-r-n_-c-o-d-e.html deleted file mode 100644 index 41f423b8..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-d-e-f-a-u-l-t_-p-r-e-c-h-e-c-k_-r-e-t-u-r-n_-c-o-d-e.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -DEFAULT_PRECHECK_RETURN_CODE - wisefy - - - -wisefy / com.isupatches.wisefy.constants / DEFAULT_PRECHECK_RETURN_CODE
-
-

DEFAULT_PRECHECK_RETURN_CODE

- -const val DEFAULT_PRECHECK_RETURN_CODE: Int -

A constant that denotes a successful operation within WiseFy.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-e-a-p.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-e-a-p.html deleted file mode 100644 index 5064d48e..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-e-a-p.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -EAP - wisefy - - - -wisefy / com.isupatches.wisefy.constants / EAP
-
-

EAP

- -const val EAP: String -

Constant for EAP security capabilities.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-m-i-s-s-i-n-g_-p-a-r-a-m-e-t-e-r.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-m-i-s-s-i-n-g_-p-a-r-a-m-e-t-e-r.html deleted file mode 100644 index dc2a9828..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-m-i-s-s-i-n-g_-p-a-r-a-m-e-t-e-r.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -MISSING_PARAMETER - wisefy - - - -wisefy / com.isupatches.wisefy.constants / MISSING_PARAMETER
-
-

MISSING_PARAMETER

- -const val MISSING_PARAMETER: Int -

A constant that denotes a parameter was null or empty ("")/ length 0.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-m-o-b-i-l-e.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-m-o-b-i-l-e.html deleted file mode 100644 index 9c386235..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-m-o-b-i-l-e.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -MOBILE - wisefy - - - -wisefy / com.isupatches.wisefy.constants / MOBILE
-
-

MOBILE

- -const val MOBILE: String -

Constant for a mobile network.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-n-e-t-w-o-r-k_-a-l-r-e-a-d-y_-c-o-n-f-i-g-u-r-e-d.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-n-e-t-w-o-r-k_-a-l-r-e-a-d-y_-c-o-n-f-i-g-u-r-e-d.html deleted file mode 100644 index 12aec029..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-n-e-t-w-o-r-k_-a-l-r-e-a-d-y_-c-o-n-f-i-g-u-r-e-d.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -NETWORK_ALREADY_CONFIGURED - wisefy - - - -wisefy / com.isupatches.wisefy.constants / NETWORK_ALREADY_CONFIGURED
-
-

NETWORK_ALREADY_CONFIGURED

- -const val NETWORK_ALREADY_CONFIGURED: Int -

A constant that denotes that a network is already a saved configuration.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-network-type/-init-.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-network-type/-init-.html deleted file mode 100644 index 9eebfcda..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-network-type/-init-.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -NetworkType.<init> - wisefy - - - -wisefy / com.isupatches.wisefy.constants / NetworkType / <init>
-
-

<init>

- -NetworkType() -

Annotation to help avoid crazy strings when handling network types.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-network-type/index.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-network-type/index.html deleted file mode 100644 index 78419995..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-network-type/index.html +++ /dev/null @@ -1,32 +0,0 @@ - - - -NetworkType - wisefy - - - -wisefy / com.isupatches.wisefy.constants / NetworkType
-
-

NetworkType

-annotation class NetworkType -

Annotation to help avoid crazy strings when handling network types.

-

Author
-Patches

-

Since
-3.0

-

Constructors

- - - - - - - -
-

<init>

-
-NetworkType() -

Annotation to help avoid crazy strings when handling network types.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-p-s-k.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-p-s-k.html deleted file mode 100644 index d92693c8..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-p-s-k.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -PSK - wisefy - - - -wisefy / com.isupatches.wisefy.constants / PSK
-
-

PSK

- -const val PSK: String -

Constant for PSK security capabilities.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-w-e-p.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-w-e-p.html deleted file mode 100644 index 5269064c..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-w-e-p.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -WEP - wisefy - - - -wisefy / com.isupatches.wisefy.constants / WEP
-
-

WEP

- -const val WEP: String -

Constant for WEP security capabilities.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-w-i-f-i.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-w-i-f-i.html deleted file mode 100644 index 37c9f057..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-w-i-f-i.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -WIFI - wisefy - - - -wisefy / com.isupatches.wisefy.constants / WIFI
-
-

WIFI

- -const val WIFI: String -

Constant for a Wifi network.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-w-p-a.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-w-p-a.html deleted file mode 100644 index daa02b4d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-w-p-a.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -WPA - wisefy - - - -wisefy / com.isupatches.wisefy.constants / WPA
-
-

WPA

- -const val WPA: String -

Constant for WPA security capabilities.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-w-p-a2.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-w-p-a2.html deleted file mode 100644 index dfe8c3fd..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-w-p-a2.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -WPA2 - wisefy - - - -wisefy / com.isupatches.wisefy.constants / WPA2
-
-

WPA2

- -const val WPA2: String -

Constant for WPA2 security capabilities.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-wise-fy-code/-init-.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-wise-fy-code/-init-.html deleted file mode 100644 index 9076c581..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-wise-fy-code/-init-.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -WiseFyCode.<init> - wisefy - - - -wisefy / com.isupatches.wisefy.constants / WiseFyCode / <init>
-
-

<init>

- -WiseFyCode() -

Interface to avoid magic numbers when handling internal WiseFy codes.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/-wise-fy-code/index.html b/javadoc/wisefy/com.isupatches.wisefy.constants/-wise-fy-code/index.html deleted file mode 100644 index a45d39ce..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/-wise-fy-code/index.html +++ /dev/null @@ -1,32 +0,0 @@ - - - -WiseFyCode - wisefy - - - -wisefy / com.isupatches.wisefy.constants / WiseFyCode
-
-

WiseFyCode

-annotation class WiseFyCode -

Interface to avoid magic numbers when handling internal WiseFy codes.

-

Author
-Patches

-

Since
-3.0

-

Constructors

- - - - - - - -
-

<init>

-
-WiseFyCode() -

Interface to avoid magic numbers when handling internal WiseFy codes.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.constants/index.html b/javadoc/wisefy/com.isupatches.wisefy.constants/index.html deleted file mode 100644 index 81e48e60..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.constants/index.html +++ /dev/null @@ -1,139 +0,0 @@ - - - -com.isupatches.wisefy.constants - wisefy - - - -wisefy / com.isupatches.wisefy.constants
-
-

Package com.isupatches.wisefy.constants

-

Annotations

- - - - - - - - - - - - - - - -
-

Capability

-
-annotation class Capability -

Annotation to help avoid crazy strings when working with network security capabilities.

-
-

NetworkType

-
-annotation class NetworkType -

Annotation to help avoid crazy strings when handling network types.

-
-

WiseFyCode

-
-annotation class WiseFyCode -

Interface to avoid magic numbers when handling internal WiseFy codes.

-
-

Properties

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

DEFAULT_PRECHECK_RETURN_CODE

-
-const val DEFAULT_PRECHECK_RETURN_CODE: Int -

A constant that denotes a successful operation within WiseFy.

-
-

EAP

-
-const val EAP: String -

Constant for EAP security capabilities.

-
-

MISSING_PARAMETER

-
-const val MISSING_PARAMETER: Int -

A constant that denotes a parameter was null or empty ("")/ length 0.

-
-

MOBILE

-
-const val MOBILE: String -

Constant for a mobile network.

-
-

NETWORK_ALREADY_CONFIGURED

-
-const val NETWORK_ALREADY_CONFIGURED: Int -

A constant that denotes that a network is already a saved configuration.

-
-

PSK

-
-const val PSK: String -

Constant for PSK security capabilities.

-
-

WEP

-
-const val WEP: String -

Constant for WEP security capabilities.

-
-

WIFI

-
-const val WIFI: String -

Constant for a Wifi network.

-
-

WPA

-
-const val WPA: String -

Constant for WPA security capabilities.

-
-

WPA2

-
-const val WPA2: String -

Constant for WPA2 security capabilities.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/-init-.html b/javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/-init-.html deleted file mode 100644 index b4fc78e4..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/-init-.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -WiseFyReceiver.<init> - wisefy - - - -wisefy / com.isupatches.wisefy.reciever / WiseFyReceiver / <init>
-
-

<init>

- -WiseFyReceiver() - - diff --git a/javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/index.html b/javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/index.html deleted file mode 100644 index 95c8a785..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - -WiseFyReceiver - wisefy - - - -wisefy / com.isupatches.wisefy.reciever / WiseFyReceiver
-
-

WiseFyReceiver

-class WiseFyReceiver : BroadcastReceiver -

Constructors

- - - - - - - -
-

<init>

-
-WiseFyReceiver()
-

Functions

- - - - - - - -
-

onReceive

-
-fun onReceive(context: Context?, intent: Intent?): Unit
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/on-receive.html b/javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/on-receive.html deleted file mode 100644 index 2de22f0b..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.reciever/-wise-fy-receiver/on-receive.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -WiseFyReceiver.onReceive - wisefy - - - -wisefy / com.isupatches.wisefy.reciever / WiseFyReceiver / onReceive
-
-

onReceive

- -fun onReceive(context: Context?, intent: Intent?): Unit - - diff --git a/javadoc/wisefy/com.isupatches.wisefy.reciever/index.html b/javadoc/wisefy/com.isupatches.wisefy.reciever/index.html deleted file mode 100644 index 2a37983a..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.reciever/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -com.isupatches.wisefy.reciever - wisefy - - - -wisefy / com.isupatches.wisefy.reciever
-
-

Package com.isupatches.wisefy.reciever

-

Types

- - - - - - - -
-

WiseFyReceiver

-
-class WiseFyReceiver : BroadcastReceiver
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.threads/-wise-fy-handler-thread/-init-.html b/javadoc/wisefy/com.isupatches.wisefy.threads/-wise-fy-handler-thread/-init-.html deleted file mode 100644 index 0bdd2dc6..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.threads/-wise-fy-handler-thread/-init-.html +++ /dev/null @@ -1,20 +0,0 @@ - - - -WiseFyHandlerThread.<init> - wisefy - - - -wisefy / com.isupatches.wisefy.threads / WiseFyHandlerThread / <init>
-
-

<init>

- -WiseFyHandlerThread(name: String) -

A Thread to use for all WiseFy background processing.

-

NOTE Must be cleaned!! com.isupatches.wisefy.WiseFy.dump

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.threads/-wise-fy-handler-thread/index.html b/javadoc/wisefy/com.isupatches.wisefy.threads/-wise-fy-handler-thread/index.html deleted file mode 100644 index 1b238343..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.threads/-wise-fy-handler-thread/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - -WiseFyHandlerThread - wisefy - - - -wisefy / com.isupatches.wisefy.threads / WiseFyHandlerThread
-
-

WiseFyHandlerThread

-class WiseFyHandlerThread : HandlerThread -

A Thread to use for all WiseFy background processing.

-

NOTE Must be cleaned!! com.isupatches.wisefy.WiseFy.dump

-

Author
-Patches

-

Since
-3.0

-

Constructors

- - - - - - - -
-

<init>

-
-WiseFyHandlerThread(name: String) -

A Thread to use for all WiseFy background processing.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy.threads/index.html b/javadoc/wisefy/com.isupatches.wisefy.threads/index.html deleted file mode 100644 index 1295da01..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy.threads/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -com.isupatches.wisefy.threads - wisefy - - - -wisefy / com.isupatches.wisefy.threads
-
-

Package com.isupatches.wisefy.threads

-

Types

- - - - - - - -
-

WiseFyHandlerThread

-
-class WiseFyHandlerThread : HandlerThread -

A Thread to use for all WiseFy background processing.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/get-nearby-access-points.html b/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/get-nearby-access-points.html deleted file mode 100644 index d364d5e8..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/get-nearby-access-points.html +++ /dev/null @@ -1,48 +0,0 @@ - - - -AccessPointApi.getNearbyAccessPoints - wisefy - - - -wisefy / com.isupatches.wisefy / AccessPointApi / getNearbyAccessPoints
-
-

getNearbyAccessPoints

- -abstract fun getNearbyAccessPoints(filterDuplicates: Boolean): List<ScanResult>? -

To retrieve a list of nearby access points.

-

NOTE Setting filterDuplicates to true will exclude access points for an SSID that have a weaker RSSI -(will always take the highest signal strength).

-

Parameters

-

-filterDuplicates - If you want to exclude SSIDs with that same name that have a weaker signal strength

-

Return
-List of ScanResults|null - List of nearby access points

-

See Also
-

WiseFy.getNearbyAccessPoints

-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointsCallbacks?): Unit -

To retrieve a list of nearby access points.

-

NOTE Setting filterDuplicates to true will not return SSIDs with a weaker signal strength -(will always take the highest).

-

Parameters

-

-filterDuplicates - If you want to exclude SSIDs with that same name that have a weaker signal strength

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.getNearbyAccessPoints

-

GetNearbyAccessPointsCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/get-r-s-s-i.html b/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/get-r-s-s-i.html deleted file mode 100644 index 0498b91f..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/get-r-s-s-i.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -AccessPointApi.getRSSI - wisefy - - - -wisefy / com.isupatches.wisefy / AccessPointApi / getRSSI
-
-

getRSSI

- -abstract fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int): Int? -

To retrieve the RSSI of the first network matching a given regex.

-

NOTE Setting takeHighest to true will return the access point with the highest RSSI for the given SSID.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-takeHighest - Whether to return the access point with the highest RSSI for the given SSID

-

-timeoutInMillis - The amount of time to search for a matching SSID

-

Return
-Integer - The RSSI value for the found SSID or null if no matching network found

-

See Also
-

WiseFy.getRSSI

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int, callbacks: GetRSSICallbacks?): Unit -

To retrieve the RSSI of the first network matching a given regex.

-

NOTE Setting takeHighest to true will return the access point with the highest RSSI for the given SSID.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-takeHighest - Whether to return the access point with the highest RSSI for the given SSID

-

-timeoutInMillis - The amount of time to search for a matching SSID

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.getRSSI

-

GetRSSICallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/index.html deleted file mode 100644 index 91523374..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/index.html +++ /dev/null @@ -1,98 +0,0 @@ - - - -AccessPointApi - wisefy - - - -wisefy / com.isupatches.wisefy / AccessPointApi
-
-

AccessPointApi

-interface AccessPointApi -

An API for querying for nearby access points and related information.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

getNearbyAccessPoints

-
-abstract fun getNearbyAccessPoints(filterDuplicates: Boolean): List<ScanResult>?
-abstract fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointsCallbacks?): Unit -

To retrieve a list of nearby access points.

-
-

getRSSI

-
-abstract fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int): Int?
-abstract fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int, callbacks: GetRSSICallbacks?): Unit -

To retrieve the RSSI of the first network matching a given regex.

-
-

searchForAccessPoint

-
-abstract fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean): ScanResult?
-abstract fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean, callbacks: SearchForAccessPointCallbacks?): Unit -

To return the first access point that matches a given regex.

-
-

searchForAccessPoints

-
-abstract fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean): List<ScanResult>?
-abstract fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean, callbacks: SearchForAccessPointsCallbacks?): Unit -

To return nearby access points that match a given regex.

-
-

searchForSSID

-
-abstract fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int): String?
-abstract fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?): Unit -

To search local networks and return the first one that contains a given ssid.

-
-

searchForSSIDs

-
-abstract fun searchForSSIDs(regexForSSID: String?): List<String>?
-abstract fun searchForSSIDs(regexForSSID: String?, callbacks: SearchForSSIDsCallbacks?): Unit -

To search local networks and return the first one that contains a given ssid.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-access-point.html b/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-access-point.html deleted file mode 100644 index 23d293ec..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-access-point.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -AccessPointApi.searchForAccessPoint - wisefy - - - -wisefy / com.isupatches.wisefy / AccessPointApi / searchForAccessPoint
-
-

searchForAccessPoint

- -abstract fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean): ScanResult? -

To return the first access point that matches a given regex.

-

NOTE Setting filterDuplicates to true will not return an access point with a weaker signal strength (will always take the highest).

-

Parameters

-

-regexForSSID - The regex to use when iterating through nearby access points

-

-timeoutInMillis - The amount of time (in milliseconds) to wait for a matching access point

-

-filterDuplicates - If you want to exclude access points with the same name that have a weaker signal strength

-

Return
-ScanResult|null - The first access point or access point with the highest signal strength matching the regex

-

See Also
-

WiseFy.searchForAccessPoint

-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean, callbacks: SearchForAccessPointCallbacks?): Unit -

To return the first access point that matches a given regex.

-

NOTE Setting filterDuplicates to true will not return an access point with a weaker signal strength (will always take the highest).

-

Parameters

-

-regexForSSID - The regex to use when iterating through nearby access points

-

-timeoutInMillis - The amount of time (in milliseconds) to wait for a matching access point

-

-filterDuplicates - If you want to exclude access points with the same name that have a weaker signal strength

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.searchForAccessPoint

-

SearchForAccessPointCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-access-points.html b/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-access-points.html deleted file mode 100644 index 0d7d1a8c..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-access-points.html +++ /dev/null @@ -1,50 +0,0 @@ - - - -AccessPointApi.searchForAccessPoints - wisefy - - - -wisefy / com.isupatches.wisefy / AccessPointApi / searchForAccessPoints
-
-

searchForAccessPoints

- -abstract fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean): List<ScanResult>? -

To return nearby access points that match a given regex.

-

NOTE Setting filterDuplicates to true will not return access points with a weaker signal strength (will always take the highest).

-

Parameters

-

-regexForSSID - The regex to use when iterating through nearby access points

-

-filterDuplicates - If you want to exclude access points with the same name that have a weaker signal strength

-

Return
-List of ScanResult|null - The list of matching access points or null if none match the given regex

-

See Also
-

WiseFy.searchForAccessPoints

-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean, callbacks: SearchForAccessPointsCallbacks?): Unit -

To return nearby access points that match a given regex.

-

NOTE Setting filterDuplicates to true will not return access points with a weaker signal strength (will always take the highest).

-

Parameters

-

-regexForSSID - The regex to use when iterating through nearby access points

-

-filterDuplicates - If you want to exclude access points with the same name that have a weaker signal strength

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.searchForAccessPoints

-

SearchForAccessPointsCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-s-s-i-d.html b/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-s-s-i-d.html deleted file mode 100644 index 7336ca1c..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-s-s-i-d.html +++ /dev/null @@ -1,47 +0,0 @@ - - - -AccessPointApi.searchForSSID - wisefy - - - -wisefy / com.isupatches.wisefy / AccessPointApi / searchForSSID
-
-

searchForSSID

- -abstract fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int): String? -

To search local networks and return the first one that contains a given ssid.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-timeoutInMillis - The number of milliseconds to keep searching for the SSID

-

Return
-String|null - The first SSID that contains the search ssid (if any, else null)

-

See Also
-

WiseFy.searchForSSID

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?): Unit -

To search local networks and return the first one that contains a given ssid.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-timeoutInMillis - The number of milliseconds to keep searching for the SSID

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.searchForSSID

-

SearchForSSIDCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-s-s-i-ds.html b/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-s-s-i-ds.html deleted file mode 100644 index f09aec24..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-access-point-api/search-for-s-s-i-ds.html +++ /dev/null @@ -1,43 +0,0 @@ - - - -AccessPointApi.searchForSSIDs - wisefy - - - -wisefy / com.isupatches.wisefy / AccessPointApi / searchForSSIDs
-
-

searchForSSIDs

- -abstract fun searchForSSIDs(regexForSSID: String?): List<String>? -

To search local networks and return the first one that contains a given ssid.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

Return
-String|null - The first SSID that contains the search ssid (if any, else null)

-

See Also
-

WiseFy.searchForSSIDs

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun searchForSSIDs(regexForSSID: String?, callbacks: SearchForSSIDsCallbacks?): Unit -

To search local networks and return the first one that contains a given ssid.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.searchForSSIDs

-

SearchForSSIDsCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-open-network.html b/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-open-network.html deleted file mode 100644 index aec91a8d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-open-network.html +++ /dev/null @@ -1,43 +0,0 @@ - - - -AddNetworkApi.addOpenNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / AddNetworkApi / addOpenNetwork
-
-

addOpenNetwork

- -abstract fun addOpenNetwork(ssid: String?): Int -

To add an open network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the open network you want to add

-

Return
-int - The return code from WifiManager for network creation (-1 for failure)

-

See Also
-

WiseFy.addOpenNetwork

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun addOpenNetwork(ssid: String?, callbacks: AddNetworkCallbacks?): Unit -

To add an open network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the open network you want to add

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.addOpenNetwork

-

AddNetworkCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-w-e-p-network.html b/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-w-e-p-network.html deleted file mode 100644 index be9ceed0..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-w-e-p-network.html +++ /dev/null @@ -1,47 +0,0 @@ - - - -AddNetworkApi.addWEPNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / AddNetworkApi / addWEPNetwork
-
-

addWEPNetwork

- -abstract fun addWEPNetwork(ssid: String?, password: String?): Int -

To add a WEP network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the WEP network you want to add

-

-password - The password for the WEP network being added

-

Return
-int - The return code from WifiManager for network creation (-1 for failure)

-

See Also
-

WiseFy.addWEPNetwork

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun addWEPNetwork(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

To add a WEP network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the WEP network you want to add

-

-password - The password for the WEP network being added

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.addWEPNetwork

-

AddNetworkCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-w-p-a2-network.html b/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-w-p-a2-network.html deleted file mode 100644 index 4adac6c6..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/add-w-p-a2-network.html +++ /dev/null @@ -1,47 +0,0 @@ - - - -AddNetworkApi.addWPA2Network - wisefy - - - -wisefy / com.isupatches.wisefy / AddNetworkApi / addWPA2Network
-
-

addWPA2Network

- -abstract fun addWPA2Network(ssid: String?, password: String?): Int -

To add a WPA2 network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the WPA2 network you want to add

-

-password - The password for the WPA2 network being added

-

Return
-int - The return code from WifiManager for network creation (-1 for failure)

-

See Also
-

WiseFy.addWPA2Network

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun addWPA2Network(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

To add a WPA2 network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the WPA2 network you want to add

-

-password - The password for the WPA2 network being added

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.addWPA2Network

-

AddNetworkCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/index.html deleted file mode 100644 index 9cba776b..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-add-network-api/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - -AddNetworkApi - wisefy - - - -wisefy / com.isupatches.wisefy / AddNetworkApi
-
-

AddNetworkApi

-interface AddNetworkApi -

An API for adding networks as saved configurations on a device.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - -
-

addOpenNetwork

-
-abstract fun addOpenNetwork(ssid: String?): Int
-abstract fun addOpenNetwork(ssid: String?, callbacks: AddNetworkCallbacks?): Unit -

To add an open network to the user's configured network list.

-
-

addWEPNetwork

-
-abstract fun addWEPNetwork(ssid: String?, password: String?): Int
-abstract fun addWEPNetwork(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

To add a WEP network to the user's configured network list.

-
-

addWPA2Network

-
-abstract fun addWPA2Network(ssid: String?, password: String?): Int
-abstract fun addWPA2Network(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

To add a WPA2 network to the user's configured network list.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-connection-api/connect-to-network.html b/javadoc/wisefy/com.isupatches.wisefy/-connection-api/connect-to-network.html deleted file mode 100644 index 2a63e9d7..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-connection-api/connect-to-network.html +++ /dev/null @@ -1,47 +0,0 @@ - - - -ConnectionApi.connectToNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / ConnectionApi / connectToNetwork
-
-

connectToNetwork

- -abstract fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int): Boolean -

Used to connect to a network.

-

Parameters

-

-ssidToConnectTo - The ssid to connect/reconnect to

-

-timeoutInMillis - The number of milliseconds to continue waiting for the device to connect to the given SSID

-

Return
-boolean - If the network was successfully reconnected

-

See Also
-

WiseFy.connectToNetwork

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int, callbacks: ConnectToNetworkCallbacks?): Unit -

Used to connect to a network.

-

Parameters

-

-ssidToConnectTo - The ssid to connect/reconnect to

-

-timeoutInMillis - The number of milliseconds to continue waiting for the device to connect to the given SSID

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.connectToNetwork

-

ConnectToNetworkCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-connection-api/disconnect-from-current-network.html b/javadoc/wisefy/com.isupatches.wisefy/-connection-api/disconnect-from-current-network.html deleted file mode 100644 index 823beafd..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-connection-api/disconnect-from-current-network.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -ConnectionApi.disconnectFromCurrentNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / ConnectionApi / disconnectFromCurrentNetwork
-
-

disconnectFromCurrentNetwork

- -abstract fun disconnectFromCurrentNetwork(): Boolean -

To disconnect the user from their current network.

-

Return
-boolean - If the command succeeded in disconnecting the device from the current network

-

See Also
-

WiseFy.disconnectFromCurrentNetwork

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?): Unit -

To disconnect the user from their current network.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.disconnectFromCurrentNetwork

-

DisconnectFromCurrentNetworkCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-connection-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-connection-api/index.html deleted file mode 100644 index 2af1d1aa..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-connection-api/index.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -ConnectionApi - wisefy - - - -wisefy / com.isupatches.wisefy / ConnectionApi
-
-

ConnectionApi

-interface ConnectionApi -

An API for managing the network connection of a device.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

connectToNetwork

-
-abstract fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int): Boolean
-abstract fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int, callbacks: ConnectToNetworkCallbacks?): Unit -

Used to connect to a network.

-
-

disconnectFromCurrentNetwork

-
-abstract fun disconnectFromCurrentNetwork(): Boolean
-abstract fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?): Unit -

To disconnect the user from their current network.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-device-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-device-api/index.html deleted file mode 100644 index ae426d99..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-device-api/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - -DeviceApi - wisefy - - - -wisefy / com.isupatches.wisefy / DeviceApi
-
-

DeviceApi

-interface DeviceApi -

An API for querying about the different network statuses of a device.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - - - - - - - - - -
-

isDeviceConnectedToMobileNetwork

-
-abstract fun isDeviceConnectedToMobileNetwork(): Boolean -

To check if the device is connected to a mobile network.

-
-

isDeviceConnectedToMobileOrWifiNetwork

-
-abstract fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean -

To check if the device is connected to a mobile or wifi network.

-
-

isDeviceConnectedToSSID

-
-abstract fun isDeviceConnectedToSSID(ssid: String?): Boolean -

To check if the device is connected to a given SSID.

-
-

isDeviceConnectedToWifiNetwork

-
-abstract fun isDeviceConnectedToWifiNetwork(): Boolean -

To check if the device is connected to a wifi network.

-
-

isDeviceRoaming

-
-abstract fun isDeviceRoaming(): Boolean -

To query if the device is roaming.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-mobile-network.html b/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-mobile-network.html deleted file mode 100644 index 3174ec95..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-mobile-network.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -DeviceApi.isDeviceConnectedToMobileNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / DeviceApi / isDeviceConnectedToMobileNetwork
-
-

isDeviceConnectedToMobileNetwork

- -abstract fun isDeviceConnectedToMobileNetwork(): Boolean -

To check if the device is connected to a mobile network.

-

Return
-bool - If the device is currently connected to a mobile network

-

See Also
-

WiseFy.isDeviceConnectedToMobileNetwork

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-mobile-or-wifi-network.html b/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-mobile-or-wifi-network.html deleted file mode 100644 index 5186abc3..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-mobile-or-wifi-network.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -DeviceApi.isDeviceConnectedToMobileOrWifiNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / DeviceApi / isDeviceConnectedToMobileOrWifiNetwork
-
-

isDeviceConnectedToMobileOrWifiNetwork

- -abstract fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean -

To check if the device is connected to a mobile or wifi network.

-

Return
-bool - If the device is currently connected to a mobile or wifi network

-

See Also
-

WiseFy.isDeviceConnectedToMobileOrWifiNetwork

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-s-s-i-d.html b/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-s-s-i-d.html deleted file mode 100644 index 33081a96..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-s-s-i-d.html +++ /dev/null @@ -1,27 +0,0 @@ - - - -DeviceApi.isDeviceConnectedToSSID - wisefy - - - -wisefy / com.isupatches.wisefy / DeviceApi / isDeviceConnectedToSSID
-
-

isDeviceConnectedToSSID

- -abstract fun isDeviceConnectedToSSID(ssid: String?): Boolean -

To check if the device is connected to a given SSID.

-

Parameters

-

-ssid - The SSID to check if the device is attached to

-

Return
-bool - If the device is currently attached to the given SSID

-

See Also
-

WiseFy.isDeviceConnectedToSSID

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-wifi-network.html b/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-wifi-network.html deleted file mode 100644 index caa81456..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-connected-to-wifi-network.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -DeviceApi.isDeviceConnectedToWifiNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / DeviceApi / isDeviceConnectedToWifiNetwork
-
-

isDeviceConnectedToWifiNetwork

- -abstract fun isDeviceConnectedToWifiNetwork(): Boolean -

To check if the device is connected to a wifi network.

-

Return
-bool - If the device is currently connected to a wifi network

-

See Also
-

WiseFy.isDeviceConnectedToWifiNetwork

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-roaming.html b/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-roaming.html deleted file mode 100644 index 0d2ed99f..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-device-api/is-device-roaming.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -DeviceApi.isDeviceRoaming - wisefy - - - -wisefy / com.isupatches.wisefy / DeviceApi / isDeviceRoaming
-
-

isDeviceRoaming

- -abstract fun isDeviceRoaming(): Boolean -

To query if the device is roaming.

-

Return
-boolean - If the current network is roaming

-

See Also
-

WiseFy.isDeviceRoaming

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-frequency-api/get-frequency.html b/javadoc/wisefy/com.isupatches.wisefy/-frequency-api/get-frequency.html deleted file mode 100644 index 2d6b21e8..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-frequency-api/get-frequency.html +++ /dev/null @@ -1,71 +0,0 @@ - - - -FrequencyApi.getFrequency - wisefy - - - -wisefy / com.isupatches.wisefy / FrequencyApi / getFrequency
-
-

getFrequency

- -abstract fun getFrequency(): Int? -

To retrieve the frequency of the device's current network.

-

Return
-Integer - The frequency of the devices current network or null if no network

-

See Also
-

WiseFy.getFrequency

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun getFrequency(callbacks: GetFrequencyCallbacks?): Unit -

To retrieve the frequency of the device's current network.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.getFrequency

-

GetFrequencyCallbacks

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun getFrequency(network: WifiInfo?): Int? -

To retrieve the frequency of a network.

-

Parameters

-

-network - The network to return the frequency of

-

Return
-Integer - The frequency of the devices current network or null if no network

-

See Also
-

WiseFy.getFrequency

-

WifiInfo

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun getFrequency(network: WifiInfo?, callbacks: GetFrequencyCallbacks?): Unit -

To retrieve the frequency of a network.

-

Parameters

-

-network - The network to return the frequency of

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.getFrequency

-

GetFrequencyCallbacks

-

WifiInfo

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-frequency-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-frequency-api/index.html deleted file mode 100644 index 7c029ef1..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-frequency-api/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - -FrequencyApi - wisefy - - - -wisefy / com.isupatches.wisefy / FrequencyApi
-
-

FrequencyApi

-interface FrequencyApi -

An API for querying about a network's frequency.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

getFrequency

-
-abstract fun getFrequency(): Int?
-abstract fun getFrequency(callbacks: GetFrequencyCallbacks?): Unit -

To retrieve the frequency of the device's current network.

-abstract fun getFrequency(network: WifiInfo?): Int?
-abstract fun getFrequency(network: WifiInfo?, callbacks: GetFrequencyCallbacks?): Unit -

To retrieve the frequency of a network.

-
-

isNetwork5gHz

-
-abstract fun isNetwork5gHz(): Boolean -

To check if the device's current network is 5gHz.

-abstract fun isNetwork5gHz(network: WifiInfo?): Boolean -

To check if a given network is 5gHz.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-frequency-api/is-network5g-hz.html b/javadoc/wisefy/com.isupatches.wisefy/-frequency-api/is-network5g-hz.html deleted file mode 100644 index 7c9a4421..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-frequency-api/is-network5g-hz.html +++ /dev/null @@ -1,41 +0,0 @@ - - - -FrequencyApi.isNetwork5gHz - wisefy - - - -wisefy / com.isupatches.wisefy / FrequencyApi / isNetwork5gHz
-
-

isNetwork5gHz

- -abstract fun isNetwork5gHz(): Boolean -

To check if the device's current network is 5gHz.

-

Return
-boolean - If the network is 5gHz

-

See Also
-

WiseFy.isNetwork5gHz

-

getFrequency

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun isNetwork5gHz(network: WifiInfo?): Boolean -

To check if a given network is 5gHz.

-

Parameters

-

-network - The network to check if it's 5gHz

-

Return
-boolean - If the network is 5gHz

-

See Also
-

WiseFy.isNetwork5gHz

-

WifiInfo

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-current-network-info.html b/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-current-network-info.html deleted file mode 100644 index 10f7ca13..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-current-network-info.html +++ /dev/null @@ -1,39 +0,0 @@ - - - -NetworkInfoApi.getCurrentNetworkInfo - wisefy - - - -wisefy / com.isupatches.wisefy / NetworkInfoApi / getCurrentNetworkInfo
-
-

getCurrentNetworkInfo

- -abstract fun getCurrentNetworkInfo(): NetworkInfo? -

To retrieve the details of the phones active network.

-

Return
-NetworkInfo

-

See Also
-

WiseFy.getCurrentNetworkInfo

-

NetworkInfo

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?): Unit -

To retrieve the details of the phones active network.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.getCurrentNetworkInfo

-

GetCurrentNetworkInfoCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-current-network.html b/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-current-network.html deleted file mode 100644 index 6182617f..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-current-network.html +++ /dev/null @@ -1,39 +0,0 @@ - - - -NetworkInfoApi.getCurrentNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / NetworkInfoApi / getCurrentNetwork
-
-

getCurrentNetwork

- -abstract fun getCurrentNetwork(): WifiInfo? -

To retrieve the user's current network.

-

Return
-WifiInfo|null - The user's current network information

-

See Also
-

WiseFy.getCurrentNetwork

-

WifiInfo

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?): Unit -

To retrieve the user's current network.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.getCurrentNetwork

-

GetCurrentNetworkCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-i-p.html b/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-i-p.html deleted file mode 100644 index e34b0d2e..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/get-i-p.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -NetworkInfoApi.getIP - wisefy - - - -wisefy / com.isupatches.wisefy / NetworkInfoApi / getIP
-
-

getIP

- -abstract fun getIP(): String? -

To retrieve the IPv4 or IPv6 of a device.

-

Return
-String - The IPv4 or IPv6 address

-

See Also
-

WiseFy.getIP

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun getIP(callbacks: GetIPCallbacks?): Unit -

To retrieve the IPv4 or IPv6 of a device.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.getIP

-

GetIPCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/index.html deleted file mode 100644 index 50bd0a1e..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-network-info-api/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - -NetworkInfoApi - wisefy - - - -wisefy / com.isupatches.wisefy / NetworkInfoApi
-
-

NetworkInfoApi

-interface NetworkInfoApi -

An API for querying about a device's current network information.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - -
-

getCurrentNetwork

-
-abstract fun getCurrentNetwork(): WifiInfo?
-abstract fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?): Unit -

To retrieve the user's current network.

-
-

getCurrentNetworkInfo

-
-abstract fun getCurrentNetworkInfo(): NetworkInfo?
-abstract fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?): Unit -

To retrieve the details of the phones active network.

-
-

getIP

-
-abstract fun getIP(): String?
-abstract fun getIP(callbacks: GetIPCallbacks?): Unit -

To retrieve the IPv4 or IPv6 of a device.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-remove-network-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-remove-network-api/index.html deleted file mode 100644 index 8f4d5e39..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-remove-network-api/index.html +++ /dev/null @@ -1,48 +0,0 @@ - - - -RemoveNetworkApi - wisefy - - - -wisefy / com.isupatches.wisefy / RemoveNetworkApi
-
-

RemoveNetworkApi

-interface RemoveNetworkApi -

An API for removing a network as a saved configuration.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - -
-

removeNetwork

-
-abstract fun removeNetwork(ssidToRemove: String?): Boolean
-abstract fun removeNetwork(ssidToRemove: String?, callbacks: RemoveNetworkCallbacks?): Unit -

To remove a configured network.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-remove-network-api/remove-network.html b/javadoc/wisefy/com.isupatches.wisefy/-remove-network-api/remove-network.html deleted file mode 100644 index 4b5be774..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-remove-network-api/remove-network.html +++ /dev/null @@ -1,43 +0,0 @@ - - - -RemoveNetworkApi.removeNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / RemoveNetworkApi / removeNetwork
-
-

removeNetwork

- -abstract fun removeNetwork(ssidToRemove: String?): Boolean -

To remove a configured network.

-

Parameters

-

-ssidToRemove - The ssid of the network you want to remove from the configured network list

-

Return
-boolean - If the command succeeded in removing the network

-

See Also
-

WiseFy.removeNetwork

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun removeNetwork(ssidToRemove: String?, callbacks: RemoveNetworkCallbacks?): Unit -

To remove a configured network.

-

Parameters

-

-ssidToRemove - The ssid of the network you want to remove from the configured network list

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.removeNetwork

-

RemoveNetworkCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/get-saved-networks.html b/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/get-saved-networks.html deleted file mode 100644 index 73b05ccc..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/get-saved-networks.html +++ /dev/null @@ -1,39 +0,0 @@ - - - -SavedNetworkApi.getSavedNetworks - wisefy - - - -wisefy / com.isupatches.wisefy / SavedNetworkApi / getSavedNetworks
-
-

getSavedNetworks

- -abstract fun getSavedNetworks(): List<WifiConfiguration>? -

To retrieve a list of saved networks on a user's device.

-

Return
-List of WifiConfiguration|null - List of saved networks on a users device

-

See Also
-

WiseFy.getSavedNetworks

-

WifiConfiguration

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?): Unit -

To retrieve a list of saved networks on a user's device.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.getSavedNetworks

-

GetSavedNetworksCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/index.html deleted file mode 100644 index 6a544b07..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/index.html +++ /dev/null @@ -1,77 +0,0 @@ - - - -SavedNetworkApi - wisefy - - - -wisefy / com.isupatches.wisefy / SavedNetworkApi
-
-

SavedNetworkApi

-interface SavedNetworkApi -

An API for querying saved network information on a device.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - - - - - -
-

getSavedNetworks

-
-abstract fun getSavedNetworks(): List<WifiConfiguration>?
-abstract fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?): Unit -

To retrieve a list of saved networks on a user's device.

-
-

isNetworkSaved

-
-abstract fun isNetworkSaved(ssid: String?): Boolean -

To check if an SSID is in the list of configured networks.

-
-

searchForSavedNetwork

-
-abstract fun searchForSavedNetwork(regexForSSID: String?): WifiConfiguration?
-abstract fun searchForSavedNetwork(regexForSSID: String?, callbacks: SearchForSavedNetworkCallbacks?): Unit -

To search for and return a saved WiFiConfiguration given an SSID.

-
-

searchForSavedNetworks

-
-abstract fun searchForSavedNetworks(regexForSSID: String?): List<WifiConfiguration>?
-abstract fun searchForSavedNetworks(regexForSSID: String?, callbacks: SearchForSavedNetworksCallbacks?): Unit -

To retrieve a list of saved networks on a user's device that match a given regex.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/is-network-saved.html b/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/is-network-saved.html deleted file mode 100644 index 0a5a9b06..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/is-network-saved.html +++ /dev/null @@ -1,27 +0,0 @@ - - - -SavedNetworkApi.isNetworkSaved - wisefy - - - -wisefy / com.isupatches.wisefy / SavedNetworkApi / isNetworkSaved
-
-

isNetworkSaved

- -abstract fun isNetworkSaved(ssid: String?): Boolean -

To check if an SSID is in the list of configured networks.

-

Parameters

-

-ssid - The SSID to check and see if it's in the list of configured networks

-

Return
-boolean - If the SSID is in the list of configured networks

-

See Also
-

WiseFy.isNetworkSaved

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/search-for-saved-network.html b/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/search-for-saved-network.html deleted file mode 100644 index 00eb4523..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/search-for-saved-network.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -SavedNetworkApi.searchForSavedNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / SavedNetworkApi / searchForSavedNetwork
-
-

searchForSavedNetwork

- -abstract fun searchForSavedNetwork(regexForSSID: String?): WifiConfiguration? -

To search for and return a saved WiFiConfiguration given an SSID.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configuration

-

Return
-WifiConfiguration|null - Saved network that matches the ssid

-

See Also
-

WiseFy.searchForSavedNetwork

-

WifiConfiguration

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun searchForSavedNetwork(regexForSSID: String?, callbacks: SearchForSavedNetworkCallbacks?): Unit -

To search for and return a saved WiFiConfiguration given an SSID.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configuration

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.searchForSavedNetwork

-

SearchForSavedNetworkCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/search-for-saved-networks.html b/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/search-for-saved-networks.html deleted file mode 100644 index 74d718b1..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-saved-network-api/search-for-saved-networks.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -SavedNetworkApi.searchForSavedNetworks - wisefy - - - -wisefy / com.isupatches.wisefy / SavedNetworkApi / searchForSavedNetworks
-
-

searchForSavedNetworks

- -abstract fun searchForSavedNetworks(regexForSSID: String?): List<WifiConfiguration>? -

To retrieve a list of saved networks on a user's device that match a given regex.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configurations

-

Return
-List of WifiConfigurations|null - The list of saved network configurations that match the given regex

-

See Also
-

WiseFy.searchForSavedNetworks

-

WifiConfiguration

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun searchForSavedNetworks(regexForSSID: String?, callbacks: SearchForSavedNetworksCallbacks?): Unit -

To retrieve a list of saved networks on a user's device that match a given regex.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configurations

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.searchForSavedNetworks

-

SearchForSavedNetworksCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-security-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-security-api/index.html deleted file mode 100644 index 7c0688e2..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-security-api/index.html +++ /dev/null @@ -1,92 +0,0 @@ - - - -SecurityApi - wisefy - - - -wisefy / com.isupatches.wisefy / SecurityApi
-
-

SecurityApi

-interface SecurityApi -

An API for querying about a network's security details.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

isNetworkEAP

-
-abstract fun isNetworkEAP(scanResult: ScanResult?): Boolean -

To check and return if a network is a EAP network.

-
-

isNetworkPSK

-
-abstract fun isNetworkPSK(scanResult: ScanResult?): Boolean -

To check and return if a network is a PSK network.

-
-

isNetworkSecure

-
-abstract fun isNetworkSecure(scanResult: ScanResult?): Boolean -

To check and return if a network is secure (contains EAP/PSK/WEP/WPA/WPA2 capabilities).

-
-

isNetworkWEP

-
-abstract fun isNetworkWEP(scanResult: ScanResult?): Boolean -

To check and return if a network is a WEP network.

-
-

isNetworkWPA

-
-abstract fun isNetworkWPA(scanResult: ScanResult?): Boolean -

To check and return if a network is a WPA network.

-
-

isNetworkWPA2

-
-abstract fun isNetworkWPA2(scanResult: ScanResult?): Boolean -

To check and return if a network is a WPA2 network.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-e-a-p.html b/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-e-a-p.html deleted file mode 100644 index 5fed5e0a..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-e-a-p.html +++ /dev/null @@ -1,28 +0,0 @@ - - - -SecurityApi.isNetworkEAP - wisefy - - - -wisefy / com.isupatches.wisefy / SecurityApi / isNetworkEAP
-
-

isNetworkEAP

- -abstract fun isNetworkEAP(scanResult: ScanResult?): Boolean -

To check and return if a network is a EAP network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has EAP capabilities listed

-

See Also
-

WiseFy.isNetworkEAP

-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-p-s-k.html b/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-p-s-k.html deleted file mode 100644 index ef265901..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-p-s-k.html +++ /dev/null @@ -1,28 +0,0 @@ - - - -SecurityApi.isNetworkPSK - wisefy - - - -wisefy / com.isupatches.wisefy / SecurityApi / isNetworkPSK
-
-

isNetworkPSK

- -abstract fun isNetworkPSK(scanResult: ScanResult?): Boolean -

To check and return if a network is a PSK network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has PSK capabilities listed

-

See Also
-

WiseFy.isNetworkPSK

-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-secure.html b/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-secure.html deleted file mode 100644 index 3ff94d93..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-secure.html +++ /dev/null @@ -1,28 +0,0 @@ - - - -SecurityApi.isNetworkSecure - wisefy - - - -wisefy / com.isupatches.wisefy / SecurityApi / isNetworkSecure
-
-

isNetworkSecure

- -abstract fun isNetworkSecure(scanResult: ScanResult?): Boolean -

To check and return if a network is secure (contains EAP/PSK/WEP/WPA/WPA2 capabilities).

-

Parameters

-

-scanResult - The network to see if it is secure

-

Return
-boolean - Whether the network is secure

-

See Also
-

WiseFy.isNetworkSecure

-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-e-p.html b/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-e-p.html deleted file mode 100644 index abb76c0e..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-e-p.html +++ /dev/null @@ -1,28 +0,0 @@ - - - -SecurityApi.isNetworkWEP - wisefy - - - -wisefy / com.isupatches.wisefy / SecurityApi / isNetworkWEP
-
-

isNetworkWEP

- -abstract fun isNetworkWEP(scanResult: ScanResult?): Boolean -

To check and return if a network is a WEP network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has WEP capabilities listed

-

See Also
-

WiseFy.isNetworkWEP

-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-p-a.html b/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-p-a.html deleted file mode 100644 index eaa1de28..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-p-a.html +++ /dev/null @@ -1,28 +0,0 @@ - - - -SecurityApi.isNetworkWPA - wisefy - - - -wisefy / com.isupatches.wisefy / SecurityApi / isNetworkWPA
-
-

isNetworkWPA

- -abstract fun isNetworkWPA(scanResult: ScanResult?): Boolean -

To check and return if a network is a WPA network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has WPA capabilities listed

-

See Also
-

WiseFy.isNetworkWPA

-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-p-a2.html b/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-p-a2.html deleted file mode 100644 index a6f4f592..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-security-api/is-network-w-p-a2.html +++ /dev/null @@ -1,28 +0,0 @@ - - - -SecurityApi.isNetworkWPA2 - wisefy - - - -wisefy / com.isupatches.wisefy / SecurityApi / isNetworkWPA2
-
-

isNetworkWPA2

- -abstract fun isNetworkWPA2(scanResult: ScanResult?): Boolean -

To check and return if a network is a WPA2 network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has WPA2 capabilities listed

-

See Also
-

WiseFy.isNetworkWPA2

-

ScanResult

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/calculate-bars.html b/javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/calculate-bars.html deleted file mode 100644 index 2cbc75a1..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/calculate-bars.html +++ /dev/null @@ -1,29 +0,0 @@ - - - -SignalStrengthApi.calculateBars - wisefy - - - -wisefy / com.isupatches.wisefy / SignalStrengthApi / calculateBars
-
-

calculateBars

- -abstract fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int -

To convert an RSSI level for a network to a number of bars.

-

Parameters

-

-rssiLevel - The signal strength of the network

-

-targetNumberOfBars - How many bars or levels there will be total

-

Return
-int - The number of bars for the given RSSI value

-

See Also
-

WiseFy.calculateBars

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/compare-signal-level.html b/javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/compare-signal-level.html deleted file mode 100644 index 299a1dfb..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/compare-signal-level.html +++ /dev/null @@ -1,34 +0,0 @@ - - - -SignalStrengthApi.compareSignalLevel - wisefy - - - -wisefy / com.isupatches.wisefy / SignalStrengthApi / compareSignalLevel
-
-

compareSignalLevel

- -abstract fun compareSignalLevel(rssi1: Int, rssi2: Int): Int -

To compare the signal strength of two networks.

-

This method will return:

-
  • Negative value if the first signal is weaker than the second signal
  • -
  • 0 if the two signals have the same strength
  • -
  • Positive value if the first signal is stronger than the second signal
  • -
-

Parameters

-

-rssi1 - The signal strength of network 1

-

-rssi2 - The signal strength of network 2

-

Return
-int - The result of the comparison

-

See Also
-

WiseFy.compareSignalLevel

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/index.html deleted file mode 100644 index c464426d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-signal-strength-api/index.html +++ /dev/null @@ -1,56 +0,0 @@ - - - -SignalStrengthApi - wisefy - - - -wisefy / com.isupatches.wisefy / SignalStrengthApi
-
-

SignalStrengthApi

-interface SignalStrengthApi -

An API for functionality relating to signal strength.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - -
-

calculateBars

-
-abstract fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int -

To convert an RSSI level for a network to a number of bars.

-
-

compareSignalLevel

-
-abstract fun compareSignalLevel(rssi1: Int, rssi2: Int): Int -

To compare the signal strength of two networks.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/disable-wifi.html b/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/disable-wifi.html deleted file mode 100644 index cd4adca1..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/disable-wifi.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -WifiApi.disableWifi - wisefy - - - -wisefy / com.isupatches.wisefy / WifiApi / disableWifi
-
-

disableWifi

- -abstract fun disableWifi(): Boolean -

To disable Wifi on a user's device.

-

Return
-boolean - True if the command succeeded in disabling wifi

-

See Also
-

WiseFy.disableWifi

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun disableWifi(callbacks: DisableWifiCallbacks?): Unit -

To disable Wifi on a user's device.

-

See Also
-

WiseFy.disableWifi

-

DisableWifiCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/enable-wifi.html b/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/enable-wifi.html deleted file mode 100644 index 7ccca1af..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/enable-wifi.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -WifiApi.enableWifi - wisefy - - - -wisefy / com.isupatches.wisefy / WifiApi / enableWifi
-
-

enableWifi

- -abstract fun enableWifi(): Boolean -

To enable Wifi on a user's device.

-

Return
-boolean - If the command succeeded in enabling wifi

-

See Also
-

WiseFy.enableWifi

-

-

Author
-Patches

-

Since
-3.0

- -abstract fun enableWifi(callbacks: EnableWifiCallbacks?): Unit -

To enable Wifi on a user's device.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

WiseFy.enableWifi

-

EnableWifiCallbacks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/index.html deleted file mode 100644 index aff58b16..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/index.html +++ /dev/null @@ -1,67 +0,0 @@ - - - -WifiApi - wisefy - - - -wisefy / com.isupatches.wisefy / WifiApi
-
-

WifiApi

-interface WifiApi -

An API for functionality relating to Wifi.

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - -
-

disableWifi

-
-abstract fun disableWifi(): Boolean
-abstract fun disableWifi(callbacks: DisableWifiCallbacks?): Unit -

To disable Wifi on a user's device.

-
-

enableWifi

-
-abstract fun enableWifi(): Boolean
-abstract fun enableWifi(callbacks: EnableWifiCallbacks?): Unit -

To enable Wifi on a user's device.

-
-

isWifiEnabled

-
-abstract fun isWifiEnabled(): Boolean -

To check if Wifi is enabled on the device or not.

-
-

Inheritors

- - - - - - - -
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/is-wifi-enabled.html b/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/is-wifi-enabled.html deleted file mode 100644 index f6445335..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wifi-api/is-wifi-enabled.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -WifiApi.isWifiEnabled - wisefy - - - -wisefy / com.isupatches.wisefy / WifiApi / isWifiEnabled
-
-

isWifiEnabled

- -abstract fun isWifiEnabled(): Boolean -

To check if Wifi is enabled on the device or not.

-

Return
-boolean - if Wifi is enabled on device

-

See Also
-

WiseFy.isWifiEnabled

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-lock.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-lock.html deleted file mode 100644 index 72f35568..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-lock.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -WiseFyLock - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFyLock
-
-

WiseFyLock

-class WiseFyLock -

A class used to synchronize logic.

-

See Also
-

WiseFy.getWiseFyLock

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/dump.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/dump.html deleted file mode 100644 index 0de1ca6e..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/dump.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -WiseFyPublicApi.dump - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFyPublicApi / dump
-
-

dump

- -abstract fun dump(): Unit -

Used to cleanup the thread started by WiseFy.

-

See Also
-

WiseFy.dump

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/get-wise-fy-lock.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/get-wise-fy-lock.html deleted file mode 100644 index 3ddcf9f1..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/get-wise-fy-lock.html +++ /dev/null @@ -1,25 +0,0 @@ - - - -WiseFyPublicApi.getWiseFyLock - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFyPublicApi / getWiseFyLock
-
-

getWiseFyLock

- -abstract fun getWiseFyLock(): WiseFyLock -

To retrieve the lock in use by WiseFy for synchronization.

-

Return
-WiseFyLock - The instance of the lock in-use by WiseFy

-

See Also
-

WiseFy.getWiseFyLock

-

WiseFyLock

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/index.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/index.html deleted file mode 100644 index 8d3859a7..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/index.html +++ /dev/null @@ -1,443 +0,0 @@ - - - -WiseFyPublicApi - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFyPublicApi
-
-

WiseFyPublicApi

-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-

See Also
-

AccessPointApi

-

AddNetworkApi

-

ConnectionApi

-

DeviceApi

-

FrequencyApi

-

NetworkInfoApi

-

RemoveNetworkApi

-

SavedNetworkApi

-

SecurityApi

-

SignalStrengthApi

-

WiseFy

-

-

Author
-Patches

-

Since
-3.0

-

Functions

- - - - - - - - - - - - - - - -
-

dump

-
-abstract fun dump(): Unit -

Used to cleanup the thread started by WiseFy.

-
-

getWiseFyLock

-
-abstract fun getWiseFyLock(): WiseFyLock -

To retrieve the lock in use by WiseFy for synchronization.

-
-

isLoggingEnabled

-
-abstract fun isLoggingEnabled(): Boolean -

To query if logging is enabled or disabled for a WiseFy instance.

-
-

Inherited Functions

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

addOpenNetwork

-
-abstract fun addOpenNetwork(ssid: String?): Int
-abstract fun addOpenNetwork(ssid: String?, callbacks: AddNetworkCallbacks?): Unit -

To add an open network to the user's configured network list.

-
-

addWEPNetwork

-
-abstract fun addWEPNetwork(ssid: String?, password: String?): Int
-abstract fun addWEPNetwork(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

To add a WEP network to the user's configured network list.

-
-

addWPA2Network

-
-abstract fun addWPA2Network(ssid: String?, password: String?): Int
-abstract fun addWPA2Network(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

To add a WPA2 network to the user's configured network list.

-
-

calculateBars

-
-abstract fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int -

To convert an RSSI level for a network to a number of bars.

-
-

compareSignalLevel

-
-abstract fun compareSignalLevel(rssi1: Int, rssi2: Int): Int -

To compare the signal strength of two networks.

-
-

connectToNetwork

-
-abstract fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int): Boolean
-abstract fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int, callbacks: ConnectToNetworkCallbacks?): Unit -

Used to connect to a network.

-
-

disableWifi

-
-abstract fun disableWifi(): Boolean
-abstract fun disableWifi(callbacks: DisableWifiCallbacks?): Unit -

To disable Wifi on a user's device.

-
-

disconnectFromCurrentNetwork

-
-abstract fun disconnectFromCurrentNetwork(): Boolean
-abstract fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?): Unit -

To disconnect the user from their current network.

-
-

enableWifi

-
-abstract fun enableWifi(): Boolean
-abstract fun enableWifi(callbacks: EnableWifiCallbacks?): Unit -

To enable Wifi on a user's device.

-
-

getCurrentNetwork

-
-abstract fun getCurrentNetwork(): WifiInfo?
-abstract fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?): Unit -

To retrieve the user's current network.

-
-

getCurrentNetworkInfo

-
-abstract fun getCurrentNetworkInfo(): NetworkInfo?
-abstract fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?): Unit -

To retrieve the details of the phones active network.

-
-

getFrequency

-
-abstract fun getFrequency(): Int?
-abstract fun getFrequency(callbacks: GetFrequencyCallbacks?): Unit -

To retrieve the frequency of the device's current network.

-abstract fun getFrequency(network: WifiInfo?): Int?
-abstract fun getFrequency(network: WifiInfo?, callbacks: GetFrequencyCallbacks?): Unit -

To retrieve the frequency of a network.

-
-

getIP

-
-abstract fun getIP(): String?
-abstract fun getIP(callbacks: GetIPCallbacks?): Unit -

To retrieve the IPv4 or IPv6 of a device.

-
-

getNearbyAccessPoints

-
-abstract fun getNearbyAccessPoints(filterDuplicates: Boolean): List<ScanResult>?
-abstract fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointsCallbacks?): Unit -

To retrieve a list of nearby access points.

-
-

getRSSI

-
-abstract fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int): Int?
-abstract fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int, callbacks: GetRSSICallbacks?): Unit -

To retrieve the RSSI of the first network matching a given regex.

-
-

getSavedNetworks

-
-abstract fun getSavedNetworks(): List<WifiConfiguration>?
-abstract fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?): Unit -

To retrieve a list of saved networks on a user's device.

-
-

isDeviceConnectedToMobileNetwork

-
-abstract fun isDeviceConnectedToMobileNetwork(): Boolean -

To check if the device is connected to a mobile network.

-
-

isDeviceConnectedToMobileOrWifiNetwork

-
-abstract fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean -

To check if the device is connected to a mobile or wifi network.

-
-

isDeviceConnectedToSSID

-
-abstract fun isDeviceConnectedToSSID(ssid: String?): Boolean -

To check if the device is connected to a given SSID.

-
-

isDeviceConnectedToWifiNetwork

-
-abstract fun isDeviceConnectedToWifiNetwork(): Boolean -

To check if the device is connected to a wifi network.

-
-

isDeviceRoaming

-
-abstract fun isDeviceRoaming(): Boolean -

To query if the device is roaming.

-
-

isNetwork5gHz

-
-abstract fun isNetwork5gHz(): Boolean -

To check if the device's current network is 5gHz.

-abstract fun isNetwork5gHz(network: WifiInfo?): Boolean -

To check if a given network is 5gHz.

-
-

isNetworkEAP

-
-abstract fun isNetworkEAP(scanResult: ScanResult?): Boolean -

To check and return if a network is a EAP network.

-
-

isNetworkPSK

-
-abstract fun isNetworkPSK(scanResult: ScanResult?): Boolean -

To check and return if a network is a PSK network.

-
-

isNetworkSaved

-
-abstract fun isNetworkSaved(ssid: String?): Boolean -

To check if an SSID is in the list of configured networks.

-
-

isNetworkSecure

-
-abstract fun isNetworkSecure(scanResult: ScanResult?): Boolean -

To check and return if a network is secure (contains EAP/PSK/WEP/WPA/WPA2 capabilities).

-
-

isNetworkWEP

-
-abstract fun isNetworkWEP(scanResult: ScanResult?): Boolean -

To check and return if a network is a WEP network.

-
-

isNetworkWPA

-
-abstract fun isNetworkWPA(scanResult: ScanResult?): Boolean -

To check and return if a network is a WPA network.

-
-

isNetworkWPA2

-
-abstract fun isNetworkWPA2(scanResult: ScanResult?): Boolean -

To check and return if a network is a WPA2 network.

-
-

isWifiEnabled

-
-abstract fun isWifiEnabled(): Boolean -

To check if Wifi is enabled on the device or not.

-
-

removeNetwork

-
-abstract fun removeNetwork(ssidToRemove: String?): Boolean
-abstract fun removeNetwork(ssidToRemove: String?, callbacks: RemoveNetworkCallbacks?): Unit -

To remove a configured network.

-
-

searchForAccessPoint

-
-abstract fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean): ScanResult?
-abstract fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean, callbacks: SearchForAccessPointCallbacks?): Unit -

To return the first access point that matches a given regex.

-
-

searchForAccessPoints

-
-abstract fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean): List<ScanResult>?
-abstract fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean, callbacks: SearchForAccessPointsCallbacks?): Unit -

To return nearby access points that match a given regex.

-
-

searchForSavedNetwork

-
-abstract fun searchForSavedNetwork(regexForSSID: String?): WifiConfiguration?
-abstract fun searchForSavedNetwork(regexForSSID: String?, callbacks: SearchForSavedNetworkCallbacks?): Unit -

To search for and return a saved WiFiConfiguration given an SSID.

-
-

searchForSavedNetworks

-
-abstract fun searchForSavedNetworks(regexForSSID: String?): List<WifiConfiguration>?
-abstract fun searchForSavedNetworks(regexForSSID: String?, callbacks: SearchForSavedNetworksCallbacks?): Unit -

To retrieve a list of saved networks on a user's device that match a given regex.

-
-

searchForSSID

-
-abstract fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int): String?
-abstract fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?): Unit -

To search local networks and return the first one that contains a given ssid.

-
-

searchForSSIDs

-
-abstract fun searchForSSIDs(regexForSSID: String?): List<String>?
-abstract fun searchForSSIDs(regexForSSID: String?, callbacks: SearchForSSIDsCallbacks?): Unit -

To search local networks and return the first one that contains a given ssid.

-
-

Inheritors

- - - - - - - -
-

WiseFy

-
-class WiseFy : WiseFyPublicApi -

Main class for WiseFy that provides a synchronous and asynchronous API to manipulate and query -for different parts of a device's wifi configuration and status.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/is-logging-enabled.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/is-logging-enabled.html deleted file mode 100644 index 3d6926cf..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy-public-api/is-logging-enabled.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -WiseFyPublicApi.isLoggingEnabled - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFyPublicApi / isLoggingEnabled
-
-

isLoggingEnabled

- -abstract fun isLoggingEnabled(): Boolean -

To query if logging is enabled or disabled for a WiseFy instance.

-

Return
-boolean - If logging is enabled for the WiseFy instance

-

See Also
-

WiseFy.isLoggingEnabled

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/-init-.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/-init-.html deleted file mode 100644 index aee7285f..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/-init-.html +++ /dev/null @@ -1,29 +0,0 @@ - - - -WiseFy.Brains.<init> - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / Brains / <init>
-
-

<init>

- -Brains(context: Context, useLegacyConnection: Boolean = false, useLegacySearch: Boolean = false) -

The Builder class for WiseFy.

-

Updates

-
  • -

    05/12/2019

    -
    • Branched wisefyConnection based off of if device is pre or post SDK23
    • -
    • Branched wisefySearch based off of if device is pre or post SDK23
    • -
    • Added useLegacyConnection
    • -
    • Added useLegacySearch
    • -
    -
  • -
-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/get-smarts.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/get-smarts.html deleted file mode 100644 index 0c5f8cbe..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/get-smarts.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WiseFy.Brains.getSmarts - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / Brains / getSmarts
-
-

getSmarts

- -fun getSmarts(): WiseFy -

Uses a private constructor and returns a WiseFy instance.

-

See Also
-

WiseFyLogger.configureWiseFyLoggerImplementation

-

WiseFyConnection.init

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/index.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/index.html deleted file mode 100644 index 0564ccf6..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/index.html +++ /dev/null @@ -1,65 +0,0 @@ - - - -WiseFy.Brains - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / Brains
-
-

Brains

-class Brains -

The Builder class for WiseFy.

-

Updates

-
  • -

    05/12/2019

    -
    • Branched wisefyConnection based off of if device is pre or post SDK23
    • -
    • Branched wisefySearch based off of if device is pre or post SDK23
    • -
    • Added useLegacyConnection
    • -
    • Added useLegacySearch
    • -
    -
  • -
-

Author
-Patches

-

Since
-3.0

-

Constructors

- - - - - - - -
-

<init>

-
-Brains(context: Context, useLegacyConnection: Boolean = false, useLegacySearch: Boolean = false) -

The Builder class for WiseFy.

-
-

Functions

- - - - - - - - - - - -
-

getSmarts

-
-fun getSmarts(): WiseFy -

Uses a private constructor and returns a WiseFy instance.

-
-

logging

-
-fun logging(loggingEnabled: Boolean): WiseFy.Brains -

Used to enable/or disable logging for a WiseFy instance.

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/logging.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/logging.html deleted file mode 100644 index 87bebc69..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-brains/logging.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -WiseFy.Brains.logging - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / Brains / logging
-
-

logging

- -fun logging(loggingEnabled: Boolean): WiseFy.Brains -

Used to enable/or disable logging for a WiseFy instance.

-

Parameters

-

-loggingEnabled - If logging should be enabled for the WiseFy instance.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.html deleted file mode 100644 index 9ee4b4ae..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-m-a-x_-f-r-e-q-u-e-n-c-y_5-g-h-z.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -WiseFy.MAX_FREQUENCY_5GHZ - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / MAX_FREQUENCY_5GHZ
-
-

MAX_FREQUENCY_5GHZ

- -const val MAX_FREQUENCY_5GHZ: Int -

The max value possible for a 5gHz network.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.html deleted file mode 100644 index 9b86c572..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-m-i-n_-f-r-e-q-u-e-n-c-y_5-g-h-z.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -WiseFy.MIN_FREQUENCY_5GHZ - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / MIN_FREQUENCY_5GHZ
-
-

MIN_FREQUENCY_5GHZ

- -const val MIN_FREQUENCY_5GHZ: Int -

The minimum value possible for a 5gHz network.

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-w-i-f-i_-m-a-n-a-g-e-r_-f-a-i-l-u-r-e.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-w-i-f-i_-m-a-n-a-g-e-r_-f-a-i-l-u-r-e.html deleted file mode 100644 index c11338f6..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/-w-i-f-i_-m-a-n-a-g-e-r_-f-a-i-l-u-r-e.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -WiseFy.WIFI_MANAGER_FAILURE - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / WIFI_MANAGER_FAILURE
-
-

WIFI_MANAGER_FAILURE

- -const val WIFI_MANAGER_FAILURE: Int -

The default error return from WifiManager

-

See Also
-

WifiManager

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-open-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-open-network.html deleted file mode 100644 index eaaa7108..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-open-network.html +++ /dev/null @@ -1,51 +0,0 @@ - - - -WiseFy.addOpenNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / addOpenNetwork
-
-

addOpenNetwork

- -@Sync @CallingThread fun addOpenNetwork(ssid: String?): Int -

Overrides AddNetworkApi.addOpenNetwork

-

To add an open network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the open network you want to add

-

Return
-int - The return code from WifiManager for network creation (-1 for failure)

-

See Also
-

addNetworkConfiguration

-

generateOpenNetworkConfiguration

-

WiseFyPrechecks.addNetworkPrechecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun addOpenNetwork(ssid: String?, callbacks: AddNetworkCallbacks?): Unit -

Overrides AddNetworkApi.addOpenNetwork

-

To add an open network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the open network you want to add

-

-callbacks - The listener to return results to

-

See Also
-

addNetworkConfiguration

-

AddNetworkCallbacks

-

generateOpenNetworkConfiguration

-

runOnWiseFyThread

-

WiseFyLock

-

WiseFyPrechecks.addNetworkPrechecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-w-e-p-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-w-e-p-network.html deleted file mode 100644 index 659cb8e5..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-w-e-p-network.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -WiseFy.addWEPNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / addWEPNetwork
-
-

addWEPNetwork

- -@Sync @CallingThread fun addWEPNetwork(ssid: String?, password: String?): Int -

Overrides AddNetworkApi.addWEPNetwork

-
-Deprecated: Due to security and performance limitations, WEP networks are discouraged
-
-

To add a WEP network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the WEP network you want to add

-

-password - The password for the WEP network being added

-

Return
-int - The return code from WifiManager for network creation (-1 for failure)

-

See Also
-

addNetworkConfiguration

-

generateWEPNetworkConfiguration

-

WiseFyPrechecks.addNetworkPrechecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun addWEPNetwork(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

Overrides AddNetworkApi.addWEPNetwork

-
-Deprecated: Due to security and performance limitations, WEP networks are discouraged
-
-

To add a WEP network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the WEP network you want to add

-

-password - The password for the WEP network being added

-

-callbacks - The listener to return results to

-

See Also
-

addNetworkWithPasswordAsync

-

AddNetworkCallbacks

-

generateWEPNetworkConfiguration

-

runOnWiseFyThread

-

WiseFyLock

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-w-p-a2-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-w-p-a2-network.html deleted file mode 100644 index f47342b9..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/add-w-p-a2-network.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -WiseFy.addWPA2Network - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / addWPA2Network
-
-

addWPA2Network

- -@Sync @CallingThread fun addWPA2Network(ssid: String?, password: String?): Int -

Overrides AddNetworkApi.addWPA2Network

-

To add a WPA2 network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the WPA2 network you want to add

-

-password - The password for the WPA2 network being added

-

Return
-int - The return code from WifiManager for network creation (-1 for failure)

-

See Also
-

addNetworkConfiguration

-

generateWPA2NetworkConfiguration

-

WiseFyPrechecks.addNetworkPrechecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun addWPA2Network(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

Overrides AddNetworkApi.addWPA2Network

-

To add a WPA2 network to the user's configured network list.

-

Parameters

-

-ssid - The ssid of the WPA2 network you want to add

-

-password - The password for the WPA2 network being added

-

-callbacks - The listener to return results to

-

See Also
-

addNetworkWithPasswordAsync

-

AddNetworkCallbacks

-

generateWPA2NetworkConfiguration

-

runOnWiseFyThread

-

WiseFyLock

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/calculate-bars.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/calculate-bars.html deleted file mode 100644 index 37051bc6..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/calculate-bars.html +++ /dev/null @@ -1,30 +0,0 @@ - - - -WiseFy.calculateBars - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / calculateBars
-
-

calculateBars

- -@Sync @CallingThread fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int -

Overrides SignalStrengthApi.calculateBars

-

To convert an RSSI level for a network to a number of bars.

-

Parameters

-

-rssiLevel - The signal strength of the network

-

-targetNumberOfBars - How many bars or levels there will be total

-

Return
-int - The number of bars for the given RSSI value

-

See Also
-

WifiManager.calculateSignalLevel

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/compare-signal-level.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/compare-signal-level.html deleted file mode 100644 index 85a279ea..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/compare-signal-level.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -WiseFy.compareSignalLevel - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / compareSignalLevel
-
-

compareSignalLevel

- -@Sync @CallingThread fun compareSignalLevel(rssi1: Int, rssi2: Int): Int -

Overrides SignalStrengthApi.compareSignalLevel

-

To compare the signal strength of two networks.

-

This method will return:

-
  • Negative value if the first signal is weaker than the second signal
  • -
  • 0 if the two signals have the same strength
  • -
  • Positive value if the first signal is stronger than the second signal
  • -
-

Parameters

-

-rssi1 - The signal strength of network 1

-

-rssi2 - The signal strength of network 2

-

Return
-int - The result of the comparison

-

See Also
-

WifiManager.compareSignalLevel

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/connect-to-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/connect-to-network.html deleted file mode 100644 index c8590888..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/connect-to-network.html +++ /dev/null @@ -1,59 +0,0 @@ - - - -WiseFy.connectToNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / connectToNetwork
-
-

connectToNetwork

- -@Sync @CallingThread @WaitsForTimeout fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int): Boolean -

Overrides ConnectionApi.connectToNetwork

-

Used to connect to a network.

-

NOTE Gets a list of saved networks, connects to the given ssid if found, and verifies connectivity.

-

Parameters

-

-ssidToConnectTo - The ssid to connect/reconnect to

-

-timeoutInMillis - The number of milliseconds to continue waiting for the device to connect to the given SSID

-

Return
-boolean - If the network was successfully reconnected

-

See Also
-

connectToNetworkWithId

-

WiseFyConnection.waitToConnectToSSID

-

WiseFyPrechecks.connectToNetworkPrechecks

-

WiseFySearch.findSavedNetworkByRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread @WaitsForTimeout fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int, callbacks: ConnectToNetworkCallbacks?): Unit -

Overrides ConnectionApi.connectToNetwork

-

Used to connect to a network.

-

Gets a list of saved networks, connects to the given ssid if found, and verifies connectivity.

-

Parameters

-

-ssidToConnectTo - The ssid to connect/reconnect to

-

-timeoutInMillis - The number of milliseconds to continue waiting for the device to connect to the given SSID

-

-callbacks - The listener to return results to

-

See Also
-

connectToNetworkWithId

-

ConnectToNetworkCallbacks

-

runOnWiseFyThread

-

WiseFyConnection.waitToConnectToSSID

-

WiseFyLock

-

WiseFyPrechecks.connectToNetworkPrechecks

-

WiseFySearch.findSavedNetworkByRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/disable-wifi.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/disable-wifi.html deleted file mode 100644 index a7cb20c7..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/disable-wifi.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -WiseFy.disableWifi - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / disableWifi
-
-

disableWifi

- -@Sync @CallingThread fun disableWifi(): Boolean -

Overrides WifiApi.disableWifi

-

To disable Wifi on a user's device.

-

Return
-boolean - True if the command succeeded in disabling wifi

-

See Also
-

WifiManager.setWifiEnabled

-

WiseFyPrechecks.disableWifiChecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun disableWifi(callbacks: DisableWifiCallbacks?): Unit -

Overrides WifiApi.disableWifi

-

To disable Wifi on a user's device.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

DisableWifiCallbacks

-

runOnWiseFyThread

-

WifiManager.setWifiEnabled

-

WiseFyLock

-

WiseFyPrechecks.disableWifiChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/disconnect-from-current-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/disconnect-from-current-network.html deleted file mode 100644 index 5fb53a6d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/disconnect-from-current-network.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -WiseFy.disconnectFromCurrentNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / disconnectFromCurrentNetwork
-
-

disconnectFromCurrentNetwork

- -@Sync @CallingThread fun disconnectFromCurrentNetwork(): Boolean -

Overrides ConnectionApi.disconnectFromCurrentNetwork

-

To disconnect the user from their current network.

-

Return
-boolean - If the command succeeded in disconnecting the device from the current network

-

See Also
-

WifiManager.disconnect

-

WiseFyPrechecks.disconnectFromCurrentNetworkChecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?): Unit -

Overrides ConnectionApi.disconnectFromCurrentNetwork

-

To disconnect the user from their current network.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

DisconnectFromCurrentNetworkCallbacks

-

runOnWiseFyThread

-

WifiManager.disconnect

-

WiseFyLock

-

WiseFyPrechecks.disconnectFromCurrentNetworkChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/dump.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/dump.html deleted file mode 100644 index 0fa74f0a..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/dump.html +++ /dev/null @@ -1,25 +0,0 @@ - - - -WiseFy.dump - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / dump
-
-

dump

- -fun dump(): Unit -

Overrides WiseFyPublicApi.dump

-

Used to cleanup the thread started by WiseFy.

-

See Also
-

WiseFyConnection.destroy

-

WiseFyHandlerThread

-

WiseFyLock

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/enable-wifi.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/enable-wifi.html deleted file mode 100644 index 306d1106..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/enable-wifi.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -WiseFy.enableWifi - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / enableWifi
-
-

enableWifi

- -@Sync @CallingThread fun enableWifi(): Boolean -

Overrides WifiApi.enableWifi

-

To enable Wifi on a user's device.

-

Return
-boolean - If the command succeeded in enabling wifi

-

See Also
-

WifiManager.setWifiEnabled

-

WiseFyPrechecks.enableWifiChecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun enableWifi(callbacks: EnableWifiCallbacks?): Unit -

Overrides WifiApi.enableWifi

-

To enable Wifi on a user's device.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

EnableWifiCallbacks

-

runOnWiseFyThread

-

WifiManager.setWifiEnabled

-

WiseFyLock

-

WiseFyPrechecks.enableWifiChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-current-network-info.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-current-network-info.html deleted file mode 100644 index 61325d58..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-current-network-info.html +++ /dev/null @@ -1,46 +0,0 @@ - - - -WiseFy.getCurrentNetworkInfo - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / getCurrentNetworkInfo
-
-

getCurrentNetworkInfo

- -@Sync @CallingThread fun getCurrentNetworkInfo(): NetworkInfo? -

Overrides NetworkInfoApi.getCurrentNetworkInfo

-

To retrieve the details of the phones active network.

-

Return
-NetworkInfo

-

See Also
-

ConnectivityManager.getActiveNetworkInfo

-

NetworkInfo

-

WiseFyPrechecks.getCurrentNetworkInfoChecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?): Unit -

Overrides NetworkInfoApi.getCurrentNetworkInfo

-

To retrieve the details of the phones active network.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

ConnectivityManager.getActiveNetworkInfo

-

GetCurrentNetworkInfoCallbacks

-

NetworkInfo

-

runOnWiseFyThread

-

WiseFyLock

-

WiseFyPrechecks.getCurrentNetworkInfoChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-current-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-current-network.html deleted file mode 100644 index 80168788..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-current-network.html +++ /dev/null @@ -1,46 +0,0 @@ - - - -WiseFy.getCurrentNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / getCurrentNetwork
-
-

getCurrentNetwork

- -@Sync @CallingThread fun getCurrentNetwork(): WifiInfo? -

Overrides NetworkInfoApi.getCurrentNetwork

-

To retrieve the user's current network.

-

Return
-WifiInfo|null - The user's current network information

-

See Also
-

WifiInfo

-

WifiManager.getConnectionInfo

-

WiseFyPrechecks.getCurrentNetworkChecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?): Unit -

Overrides NetworkInfoApi.getCurrentNetwork

-

To retrieve the user's current network.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

GetCurrentNetworkCallbacks

-

runOnWiseFyThread

-

WifiInfo

-

WifiManager.getConnectionInfo

-

WiseFyLock

-

WiseFyPrechecks.getCurrentNetworkChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-frequency.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-frequency.html deleted file mode 100644 index 6eba3df7..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-frequency.html +++ /dev/null @@ -1,79 +0,0 @@ - - - -WiseFy.getFrequency - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / getFrequency
-
-

getFrequency

- -@Sync @CallingThread fun getFrequency(): Int? -

Overrides FrequencyApi.getFrequency

-

To retrieve the frequency of the device's current network.

-

Return
-Integer - The frequency of the devices current network or null if no network

-

See Also
-

getCurrentNetwork

-

WifiInfo.getFrequency

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun getFrequency(callbacks: GetFrequencyCallbacks?): Unit -

Overrides FrequencyApi.getFrequency

-

To retrieve the frequency of the device's current network.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

getCurrentNetwork

-

GetFrequencyCallbacks

-

runOnWiseFyThread

-

WifiInfo.getFrequency

-

WiseFyLock

-

-

Author
-Patches

-

Since
-3.0

- -@Sync @CallingThread fun getFrequency(network: WifiInfo?): Int? -

Overrides FrequencyApi.getFrequency

-

To retrieve the frequency of a network.

-

Parameters

-

-network - The network to return the frequency of

-

Return
-Integer - The frequency of the devices current network or null if no network

-

See Also
-

WifiInfo.getFrequency

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun getFrequency(network: WifiInfo?, callbacks: GetFrequencyCallbacks?): Unit -

Overrides FrequencyApi.getFrequency

-

To retrieve the frequency of a network.

-

Parameters

-

-network - The network to return the frequency of

-

-callbacks - The listener to return results to

-

See Also
-

GetFrequencyCallbacks

-

runOnWiseFyThread

-

WifiInfo.getFrequency

-

WiseFyLock

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-i-p.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-i-p.html deleted file mode 100644 index 0a4551c9..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-i-p.html +++ /dev/null @@ -1,48 +0,0 @@ - - - -WiseFy.getIP - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / getIP
-
-

getIP

- -@Sync @CallingThread fun getIP(): String? -

Overrides NetworkInfoApi.getIP

-

To retrieve the IPv4 or IPv6 of a device.

-

Return
-String - The IPv4 or IPv6 address

-

See Also
-

InetAddress.getHostAddress

-

WifiInfo.getIpAddress

-

WifiManager.getConnectionInfo

-

WiseFyPrechecks.getIPChecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun getIP(callbacks: GetIPCallbacks?): Unit -

Overrides NetworkInfoApi.getIP

-

To retrieve the IPv4 or IPv6 of a device.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

GetIPCallbacks

-

InetAddress.getHostAddress

-

runOnWiseFyThread

-

WifiInfo.getIpAddress

-

WifiManager.getConnectionInfo

-

WiseFyLock

-

WiseFyPrechecks.getIPChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-nearby-access-points.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-nearby-access-points.html deleted file mode 100644 index 647121b3..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-nearby-access-points.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -WiseFy.getNearbyAccessPoints - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / getNearbyAccessPoints
-
-

getNearbyAccessPoints

- -@Sync @CallingThread fun getNearbyAccessPoints(filterDuplicates: Boolean): List<ScanResult>? -

Overrides AccessPointApi.getNearbyAccessPoints

-

To retrieve a list of nearby access points.

-

NOTE Setting filterDuplicates to true will exclude access points for an SSID that have a weaker RSSI -(will always take the highest signal strength).

-

Parameters

-

-filterDuplicates - If you want to exclude SSIDs with that same name that have a weaker signal strength

-

Return
-List of ScanResults|null - List of nearby access points

-

See Also
-

ScanResult

-

WiseFySearch.getNearbyAccessPoints

-

WiseFyPrechecks.getNearbyAccessPointsChecks

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointsCallbacks?): Unit -

Overrides AccessPointApi.getNearbyAccessPoints

-

To retrieve a list of nearby access points.

-

NOTE Setting filterDuplicates to true will not return SSIDs with a weaker signal strength -(will always take the highest).

-

Parameters

-

-filterDuplicates - If you want to exclude SSIDs with that same name that have a weaker signal strength

-

-callbacks - The listener to return results to

-

See Also
-

GetNearbyAccessPointsCallbacks

-

runOnWiseFyThread

-

WiseFySearch.getNearbyAccessPoints

-

WiseFyLock

-

WiseFyPrechecks.getNearbyAccessPointsChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-r-s-s-i.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-r-s-s-i.html deleted file mode 100644 index 02fd5094..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-r-s-s-i.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -WiseFy.getRSSI - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / getRSSI
-
-

getRSSI

- -@Sync @CallingThread @WaitsForTimeout fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int): Int? -

Overrides AccessPointApi.getRSSI

-

To retrieve the RSSI of the first network matching a given regex.

-

NOTE Setting takeHighest to true will return the access point with the highest RSSI for the given SSID.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-takeHighest - Whether to return the access point with the highest RSSI for the given SSID

-

-timeoutInMillis - The amount of time to search for a matching SSID

-

Return
-Integer - The RSSI value for the found SSID or null if no matching network found

-

See Also
-

ScanResult.level

-

WiseFyPrechecks.getRSSIChecks

-

WiseFySearch.findAccessPointByRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread @WaitsForTimeout fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int, callbacks: GetRSSICallbacks?): Unit -

Overrides AccessPointApi.getRSSI

-

To retrieve the RSSI of the first network matching a given regex.

-

NOTE Setting takeHighest to true will return the access point with the highest RSSI for the given SSID.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-takeHighest - Whether to return the access point with the highest RSSI for the given SSID

-

-timeoutInMillis - The amount of time to search for a matching SSID

-

-callbacks - The listener to return results to

-

See Also
-

GetRSSICallbacks

-

runOnWiseFyThread

-

ScanResult.level

-

WiseFyLock

-

WiseFyPrechecks.getRSSIChecks

-

WiseFySearch.findAccessPointByRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-saved-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-saved-network.html deleted file mode 100644 index adffad01..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-saved-network.html +++ /dev/null @@ -1,49 +0,0 @@ - - - -WiseFy.getSavedNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / getSavedNetwork
-
-

getSavedNetwork

- -@Sync @CallingThread fun getSavedNetwork(regexForSSID: String?): WifiConfiguration? -

To search for and return a saved WiFiConfiguration given an SSID.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configuration

-

Return
-WifiConfiguration|null - Saved network that matches the ssid

-

See Also
-

WifiConfiguration

-

WiseFyPrechecks.getSavedNetworkChecks

-

WiseFySearch.findSavedNetworkByRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun getSavedNetwork(regexForSSID: String?, callbacks: GetSavedNetworkCallbacks?): Unit -

To search for and return a saved WiFiConfiguration given an SSID.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configuration

-

-callbacks - The listener to return results to

-

See Also
-

GetSavedNetworkCallbacks

-

runOnWiseFyThread

-

WifiConfiguration

-

WiseFyLock

-

WiseFyPrechecks.getSavedNetworkChecks

-

WiseFySearch.findSavedNetworkByRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-saved-networks.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-saved-networks.html deleted file mode 100644 index 3376b15f..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-saved-networks.html +++ /dev/null @@ -1,46 +0,0 @@ - - - -WiseFy.getSavedNetworks - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / getSavedNetworks
-
-

getSavedNetworks

- -@Sync @CallingThread fun getSavedNetworks(): List<WifiConfiguration>? -

Overrides SavedNetworkApi.getSavedNetworks

-

To retrieve a list of saved networks on a user's device.

-

Return
-List of WifiConfiguration|null - List of saved networks on a users device

-

See Also
-

WifiConfiguration

-

WiseFyPrechecks.getSavedNetworksChecks

-

WiseFySearch.findSavedNetworksMatchingRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?): Unit -

Overrides SavedNetworkApi.getSavedNetworks

-

To retrieve a list of saved networks on a user's device.

-

Parameters

-

-callbacks - The listener to return results to

-

See Also
-

GetSavedNetworksCallbacks

-

runOnWiseFyThread

-

WifiConfiguration

-

WiseFyLock

-

WiseFyPrechecks.getSavedNetworksChecks

-

WiseFySearch.findSavedNetworksMatchingRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-wise-fy-lock.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-wise-fy-lock.html deleted file mode 100644 index fc7bb8c9..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/get-wise-fy-lock.html +++ /dev/null @@ -1,25 +0,0 @@ - - - -WiseFy.getWiseFyLock - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / getWiseFyLock
-
-

getWiseFyLock

- -fun getWiseFyLock(): WiseFyLock -

Overrides WiseFyPublicApi.getWiseFyLock

-

To retrieve the lock in use by WiseFy for synchronization.

-

Return
-WiseFyLock - The instance of the lock in-use by WiseFy

-

See Also
-

WiseFyLock

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/index.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/index.html deleted file mode 100644 index 96bdd8cc..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/index.html +++ /dev/null @@ -1,456 +0,0 @@ - - - -WiseFy - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy
-
-

WiseFy

-@PublicAPI class WiseFy : WiseFyPublicApi -

Main class for WiseFy that provides a synchronous and asynchronous API to manipulate and query -for different parts of a device's wifi configuration and status.

-

Author
-Patches

-

Since
-3.0

-

Types

- - - - - - - -
-

Brains

-
-class Brains -

The Builder class for WiseFy.

-
-

Functions

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

addOpenNetwork

-
-fun addOpenNetwork(ssid: String?): Int
-fun addOpenNetwork(ssid: String?, callbacks: AddNetworkCallbacks?): Unit -

To add an open network to the user's configured network list.

-
-

addWEPNetwork

-
-fun addWEPNetwork(ssid: String?, password: String?): Int
-fun addWEPNetwork(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

To add a WEP network to the user's configured network list.

-
-

addWPA2Network

-
-fun addWPA2Network(ssid: String?, password: String?): Int
-fun addWPA2Network(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?): Unit -

To add a WPA2 network to the user's configured network list.

-
-

calculateBars

-
-fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int -

To convert an RSSI level for a network to a number of bars.

-
-

compareSignalLevel

-
-fun compareSignalLevel(rssi1: Int, rssi2: Int): Int -

To compare the signal strength of two networks.

-
-

connectToNetwork

-
-fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int): Boolean
-fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int, callbacks: ConnectToNetworkCallbacks?): Unit -

Used to connect to a network.

-
-

disableWifi

-
-fun disableWifi(): Boolean
-fun disableWifi(callbacks: DisableWifiCallbacks?): Unit -

To disable Wifi on a user's device.

-
-

disconnectFromCurrentNetwork

-
-fun disconnectFromCurrentNetwork(): Boolean
-fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?): Unit -

To disconnect the user from their current network.

-
-

dump

-
-fun dump(): Unit -

Used to cleanup the thread started by WiseFy.

-
-

enableWifi

-
-fun enableWifi(): Boolean
-fun enableWifi(callbacks: EnableWifiCallbacks?): Unit -

To enable Wifi on a user's device.

-
-

getCurrentNetwork

-
-fun getCurrentNetwork(): WifiInfo?
-fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?): Unit -

To retrieve the user's current network.

-
-

getCurrentNetworkInfo

-
-fun getCurrentNetworkInfo(): NetworkInfo?
-fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?): Unit -

To retrieve the details of the phones active network.

-
-

getFrequency

-
-fun getFrequency(): Int?
-fun getFrequency(callbacks: GetFrequencyCallbacks?): Unit -

To retrieve the frequency of the device's current network.

-fun getFrequency(network: WifiInfo?): Int?
-fun getFrequency(network: WifiInfo?, callbacks: GetFrequencyCallbacks?): Unit -

To retrieve the frequency of a network.

-
-

getIP

-
-fun getIP(): String?
-fun getIP(callbacks: GetIPCallbacks?): Unit -

To retrieve the IPv4 or IPv6 of a device.

-
-

getNearbyAccessPoints

-
-fun getNearbyAccessPoints(filterDuplicates: Boolean): List<ScanResult>?
-fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointsCallbacks?): Unit -

To retrieve a list of nearby access points.

-
-

getRSSI

-
-fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int): Int?
-fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int, callbacks: GetRSSICallbacks?): Unit -

To retrieve the RSSI of the first network matching a given regex.

-
-

getSavedNetworks

-
-fun getSavedNetworks(): List<WifiConfiguration>?
-fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?): Unit -

To retrieve a list of saved networks on a user's device.

-
-

getWiseFyLock

-
-fun getWiseFyLock(): WiseFyLock -

To retrieve the lock in use by WiseFy for synchronization.

-
-

isDeviceConnectedToMobileNetwork

-
-fun isDeviceConnectedToMobileNetwork(): Boolean -

To check if the device is connected to a mobile network.

-
-

isDeviceConnectedToMobileOrWifiNetwork

-
-fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean -

To check if the device is connected to a mobile or wifi network.

-
-

isDeviceConnectedToSSID

-
-fun isDeviceConnectedToSSID(ssid: String?): Boolean -

To check if the device is connected to a given SSID.

-
-

isDeviceConnectedToWifiNetwork

-
-fun isDeviceConnectedToWifiNetwork(): Boolean -

To check if the device is connected to a wifi network.

-
-

isDeviceRoaming

-
-fun isDeviceRoaming(): Boolean -

To query if the device is roaming.

-
-

isLoggingEnabled

-
-fun isLoggingEnabled(): Boolean -

To query if logging is enabled or disabled for a WiseFy instance.

-
-

isNetwork5gHz

-
-fun isNetwork5gHz(): Boolean -

To check if the device's current network is 5gHz.

-fun isNetwork5gHz(network: WifiInfo?): Boolean -

To check if a given network is 5gHz.

-
-

isNetworkEAP

-
-fun isNetworkEAP(scanResult: ScanResult?): Boolean -

To check and return if a network is a EAP network.

-
-

isNetworkPSK

-
-fun isNetworkPSK(scanResult: ScanResult?): Boolean -

To check and return if a network is a PSK network.

-
-

isNetworkSaved

-
-fun isNetworkSaved(ssid: String?): Boolean -

To check if an SSID is in the list of configured networks.

-
-

isNetworkSecure

-
-fun isNetworkSecure(scanResult: ScanResult?): Boolean -

To check and return if a network is secure (contains EAP/PSK/WEP/WPA/WPA2 capabilities).

-
-

isNetworkWEP

-
-fun isNetworkWEP(scanResult: ScanResult?): Boolean -

To check and return if a network is a WEP network.

-
-

isNetworkWPA

-
-fun isNetworkWPA(scanResult: ScanResult?): Boolean -

To check and return if a network is a WPA network.

-
-

isNetworkWPA2

-
-fun isNetworkWPA2(scanResult: ScanResult?): Boolean -

To check and return if a network is a WPA2 network.

-
-

isWifiEnabled

-
-fun isWifiEnabled(): Boolean -

To check if Wifi is enabled on the device or not.

-
-

removeNetwork

-
-fun removeNetwork(ssidToRemove: String?): Boolean
-fun removeNetwork(ssidToRemove: String?, callbacks: RemoveNetworkCallbacks?): Unit -

To remove a configured network.

-
-

searchForAccessPoint

-
-fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean): ScanResult?
-fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean, callbacks: SearchForAccessPointCallbacks?): Unit -

To return the first access point that matches a given regex.

-
-

searchForAccessPoints

-
-fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean): List<ScanResult>?
-fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean, callbacks: SearchForAccessPointsCallbacks?): Unit -

To return nearby access points that match a given regex.

-
-

searchForSavedNetwork

-
-fun searchForSavedNetwork(regexForSSID: String?): WifiConfiguration?
-fun searchForSavedNetwork(regexForSSID: String?, callbacks: SearchForSavedNetworkCallbacks?): Unit -

To search for and return a saved WiFiConfiguration given an SSID.

-
-

searchForSavedNetworks

-
-fun searchForSavedNetworks(regexForSSID: String?): List<WifiConfiguration>?
-fun searchForSavedNetworks(regexForSSID: String?, callbacks: SearchForSavedNetworksCallbacks?): Unit -

To retrieve a list of saved networks on a user's device that match a given regex.

-
-

searchForSSID

-
-fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int): String?
-fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?): Unit -

To search local networks and return the first one that contains a given ssid.

-
-

searchForSSIDs

-
-fun searchForSSIDs(regexForSSID: String?): List<String>?
-fun searchForSSIDs(regexForSSID: String?, callbacks: SearchForSSIDsCallbacks?): Unit -

To search local networks and return the first one that contains a given ssid.

-
-

Companion Object Properties

- - - - - - - - - - - - - - - -
-

MAX_FREQUENCY_5GHZ

-
-const val MAX_FREQUENCY_5GHZ: Int -

The max value possible for a 5gHz network.

-
-

MIN_FREQUENCY_5GHZ

-
-const val MIN_FREQUENCY_5GHZ: Int -

The minimum value possible for a 5gHz network.

-
-

WIFI_MANAGER_FAILURE

-
-const val WIFI_MANAGER_FAILURE: Int -

The default error return from WifiManager

-
- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-mobile-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-mobile-network.html deleted file mode 100644 index 8c4259d3..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-mobile-network.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -WiseFy.isDeviceConnectedToMobileNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isDeviceConnectedToMobileNetwork
-
-

isDeviceConnectedToMobileNetwork

- -@Sync @CallingThread fun isDeviceConnectedToMobileNetwork(): Boolean -

Overrides DeviceApi.isDeviceConnectedToMobileNetwork

-

To check if the device is connected to a mobile network.

-

Return
-bool - If the device is currently connected to a mobile network

-

See Also
-

WiseFyConnection.isDeviceConnectedToMobileNetwork

-

WiseFyPrechecks.isDeviceConnectedToMobileNetworkChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-mobile-or-wifi-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-mobile-or-wifi-network.html deleted file mode 100644 index 0f819819..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-mobile-or-wifi-network.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -WiseFy.isDeviceConnectedToMobileOrWifiNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isDeviceConnectedToMobileOrWifiNetwork
-
-

isDeviceConnectedToMobileOrWifiNetwork

- -@Sync @CallingThread fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean -

Overrides DeviceApi.isDeviceConnectedToMobileOrWifiNetwork

-

To check if the device is connected to a mobile or wifi network.

-

Return
-bool - If the device is currently connected to a mobile or wifi network

-

See Also
-

WiseFyConnection.isNetworkConnected

-

WiseFyPrechecks.isDeviceConnectedToMobileOrWifiNetworkChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-s-s-i-d.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-s-s-i-d.html deleted file mode 100644 index 8d7bd329..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-s-s-i-d.html +++ /dev/null @@ -1,29 +0,0 @@ - - - -WiseFy.isDeviceConnectedToSSID - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isDeviceConnectedToSSID
-
-

isDeviceConnectedToSSID

- -@Sync @CallingThread fun isDeviceConnectedToSSID(ssid: String?): Boolean -

Overrides DeviceApi.isDeviceConnectedToSSID

-

To check if the device is connected to a given SSID.

-

Parameters

-

-ssid - The SSID to check if the device is attached to

-

Return
-bool - If the device is currently attached to the given SSID

-

See Also
-

WiseFyConnection.isCurrentNetworkConnectedToSSID

-

WiseFyPrechecks.isDeviceConnectedToSSIDChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-wifi-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-wifi-network.html deleted file mode 100644 index 8940dd86..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-connected-to-wifi-network.html +++ /dev/null @@ -1,27 +0,0 @@ - - - -WiseFy.isDeviceConnectedToWifiNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isDeviceConnectedToWifiNetwork
-
-

isDeviceConnectedToWifiNetwork

- -@Sync @CallingThread fun isDeviceConnectedToWifiNetwork(): Boolean -

Overrides DeviceApi.isDeviceConnectedToWifiNetwork

-

To check if the device is connected to a wifi network.

-

Return
-bool - If the device is currently connected to a wifi network

-

See Also
-

ConnectivityManager.getActiveNetworkInfo

-

WiseFyConnection.isDeviceConnectedToWifiNetwork

-

WiseFyPrechecks.isDeviceConnectedToWifiNetworkChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-roaming.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-roaming.html deleted file mode 100644 index 489ad889..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-device-roaming.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -WiseFy.isDeviceRoaming - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isDeviceRoaming
-
-

isDeviceRoaming

- -@Sync @CallingThread fun isDeviceRoaming(): Boolean -

Overrides DeviceApi.isDeviceRoaming

-

To query if the device is roaming.

-

Return
-boolean - If the current network is roaming

-

See Also
-

WiseFyConnection.isDeviceRoaming

-

WiseFyPrechecks.isDeviceRoamingChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-logging-enabled.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-logging-enabled.html deleted file mode 100644 index ced80aa9..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-logging-enabled.html +++ /dev/null @@ -1,25 +0,0 @@ - - - -WiseFy.isLoggingEnabled - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isLoggingEnabled
-
-

isLoggingEnabled

- -@Sync @CallingThread fun isLoggingEnabled(): Boolean -

Overrides WiseFyPublicApi.isLoggingEnabled

-

To query if logging is enabled or disabled for a WiseFy instance.

-

Return
-boolean - If logging is enabled for the WiseFy instance

-

See Also
-

WiseFyLogger.isLoggingEnabled

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-e-a-p.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-e-a-p.html deleted file mode 100644 index a98eb7c5..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-e-a-p.html +++ /dev/null @@ -1,30 +0,0 @@ - - - -WiseFy.isNetworkEAP - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isNetworkEAP
-
-

isNetworkEAP

- -@Sync @CallingThread fun isNetworkEAP(scanResult: ScanResult?): Boolean -

Overrides SecurityApi.isNetworkEAP

-

To check and return if a network is a EAP network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has EAP capabilities listed

-

See Also
-

containsCapability

-

ScanResult

-

EAP

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-p-s-k.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-p-s-k.html deleted file mode 100644 index 5fb91f0d..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-p-s-k.html +++ /dev/null @@ -1,30 +0,0 @@ - - - -WiseFy.isNetworkPSK - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isNetworkPSK
-
-

isNetworkPSK

- -@Sync @CallingThread fun isNetworkPSK(scanResult: ScanResult?): Boolean -

Overrides SecurityApi.isNetworkPSK

-

To check and return if a network is a PSK network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has PSK capabilities listed

-

See Also
-

containsCapability

-

ScanResult

-

PSK

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-saved.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-saved.html deleted file mode 100644 index 06209f53..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-saved.html +++ /dev/null @@ -1,29 +0,0 @@ - - - -WiseFy.isNetworkSaved - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isNetworkSaved
-
-

isNetworkSaved

- -@Sync @CallingThread fun isNetworkSaved(ssid: String?): Boolean -

Overrides SavedNetworkApi.isNetworkSaved

-

To check if an SSID is in the list of configured networks.

-

Parameters

-

-ssid - The SSID to check and see if it's in the list of configured networks

-

Return
-boolean - If the SSID is in the list of configured networks

-

See Also
-

WiseFyPrechecks.isNetworkSavedChecks

-

WiseFySearch.isNetworkASavedConfiguration

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-secure.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-secure.html deleted file mode 100644 index ac7506c5..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-secure.html +++ /dev/null @@ -1,33 +0,0 @@ - - - -WiseFy.isNetworkSecure - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isNetworkSecure
-
-

isNetworkSecure

- -@Sync @CallingThread fun isNetworkSecure(scanResult: ScanResult?): Boolean -

Overrides SecurityApi.isNetworkSecure

-

To check and return if a network is secure (contains EAP/PSK/WEP/WPA/WPA2 capabilities).

-

Parameters

-

-scanResult - The network to see if it is secure

-

Return
-boolean - Whether the network is secure

-

See Also
-

ScanResult.capabilities

-

EAP

-

PSK

-

WEP

-

WPA

-

WPA2

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-e-p.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-e-p.html deleted file mode 100644 index ee59efd2..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-e-p.html +++ /dev/null @@ -1,30 +0,0 @@ - - - -WiseFy.isNetworkWEP - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isNetworkWEP
-
-

isNetworkWEP

- -@Sync @CallingThread fun isNetworkWEP(scanResult: ScanResult?): Boolean -

Overrides SecurityApi.isNetworkWEP

-

To check and return if a network is a WEP network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has WEP capabilities listed

-

See Also
-

containsCapability

-

ScanResult

-

WEP

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-p-a.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-p-a.html deleted file mode 100644 index b58412de..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-p-a.html +++ /dev/null @@ -1,30 +0,0 @@ - - - -WiseFy.isNetworkWPA - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isNetworkWPA
-
-

isNetworkWPA

- -@Sync @CallingThread fun isNetworkWPA(scanResult: ScanResult?): Boolean -

Overrides SecurityApi.isNetworkWPA

-

To check and return if a network is a WPA network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has WPA capabilities listed

-

See Also
-

containsCapability

-

ScanResult

-

WPA

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-p-a2.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-p-a2.html deleted file mode 100644 index 4fdd8ed8..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network-w-p-a2.html +++ /dev/null @@ -1,30 +0,0 @@ - - - -WiseFy.isNetworkWPA2 - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isNetworkWPA2
-
-

isNetworkWPA2

- -@Sync @CallingThread fun isNetworkWPA2(scanResult: ScanResult?): Boolean -

Overrides SecurityApi.isNetworkWPA2

-

To check and return if a network is a WPA2 network.

-

Parameters

-

-scanResult - The network to check

-

Return
-boolean - Whether the network has WPA2 capabilities listed

-

See Also
-

containsCapability

-

ScanResult

-

WPA2

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network5g-hz.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network5g-hz.html deleted file mode 100644 index 07a82db3..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-network5g-hz.html +++ /dev/null @@ -1,46 +0,0 @@ - - - -WiseFy.isNetwork5gHz - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isNetwork5gHz
-
-

isNetwork5gHz

- -@Sync @CallingThread fun isNetwork5gHz(): Boolean -

Overrides FrequencyApi.isNetwork5gHz

-

To check if the device's current network is 5gHz.

-

Return
-boolean - If the network is 5gHz

-

See Also
-

getFrequency

-

MAX_FREQUENCY_5GHZ

-

MIN_FREQUENCY_5GHZ

-

-

Author
-Patches

-

Since
-3.0

- -@Sync @CallingThread fun isNetwork5gHz(network: WifiInfo?): Boolean -

Overrides FrequencyApi.isNetwork5gHz

-

To check if a given network is 5gHz.

-

Parameters

-

-network - The network to check if it's 5gHz

-

Return
-boolean - If the network is 5gHz

-

See Also
-

getFrequency

-

MAX_FREQUENCY_5GHZ

-

MIN_FREQUENCY_5GHZ

-

WifiInfo

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-wifi-enabled.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-wifi-enabled.html deleted file mode 100644 index d857cb73..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/is-wifi-enabled.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -WiseFy.isWifiEnabled - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / isWifiEnabled
-
-

isWifiEnabled

- -@Sync @CallingThread fun isWifiEnabled(): Boolean -

Overrides WifiApi.isWifiEnabled

-

To check if Wifi is enabled on the device or not.

-

Return
-boolean - if Wifi is enabled on device

-

See Also
-

WifiManager.isWifiEnabled

-

WiseFyPrechecks.isWifiEnabledChecks

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/remove-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/remove-network.html deleted file mode 100644 index eb43260e..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/remove-network.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -WiseFy.removeNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / removeNetwork
-
-

removeNetwork

- -@Sync @CallingThread fun removeNetwork(ssidToRemove: String?): Boolean -

Overrides RemoveNetworkApi.removeNetwork

-

To remove a configured network.

-

Parameters

-

-ssidToRemove - The ssid of the network you want to remove from the configured network list

-

Return
-boolean - If the command succeeded in removing the network

-

See Also
-

removeNetworkConfiguration

-

WifiConfiguration

-

WiseFyPrechecks.removeNetworkCheck

-

-

Sse
-WiseFySearch.findSavedNetworkByRegex

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun removeNetwork(ssidToRemove: String?, callbacks: RemoveNetworkCallbacks?): Unit -

Overrides RemoveNetworkApi.removeNetwork

-

To remove a configured network.

-

Parameters

-

-ssidToRemove - The ssid of the network you want to remove from the configured network list

-

-callbacks - The listener to return results to

-

See Also
-

RemoveNetworkCallbacks

-

removeNetworkConfiguration

-

runOnWiseFyThread

-

WifiConfiguration

-

WiseFyLock

-

WiseFyPrechecks.removeNetworkCheck

-

-

Sse
-WiseFySearch.findSavedNetworkByRegex

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-access-point.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-access-point.html deleted file mode 100644 index 0cb38e6a..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-access-point.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -WiseFy.searchForAccessPoint - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / searchForAccessPoint
-
-

searchForAccessPoint

- -@Sync @CallingThread fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean): ScanResult? -

Overrides AccessPointApi.searchForAccessPoint

-

To return the first access point that matches a given regex.

-

NOTE Setting filterDuplicates to true will not return an access point with a weaker signal strength (will always take the highest).

-

Parameters

-

-regexForSSID - The regex to use when iterating through nearby access points

-

-timeoutInMillis - The amount of time (in milliseconds) to wait for a matching access point

-

-filterDuplicates - If you want to exclude access points with the same name that have a weaker signal strength

-

Return
-ScanResult|null - The first access point or access point with the highest signal strength matching the regex

-

See Also
-

ScanResult

-

WiseFyPrechecks.searchForAccessPointChecks

-

WiseFySearch.findAccessPointByRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun searchForAccessPoint(regexForSSID: String?, timeoutInMillis: Int, filterDuplicates: Boolean, callbacks: SearchForAccessPointCallbacks?): Unit -

Overrides AccessPointApi.searchForAccessPoint

-

To return the first access point that matches a given regex.

-

NOTE Setting filterDuplicates to true will not return an access point with a weaker signal strength (will always take the highest).

-

Parameters

-

-regexForSSID - The regex to use when iterating through nearby access points

-

-timeoutInMillis - The amount of time (in milliseconds) to wait for a matching access point

-

-filterDuplicates - If you want to exclude access points with the same name that have a weaker signal strength

-

-callbacks - The listener to return results to

-

See Also
-

runOnWiseFyThread

-

ScanResult

-

SearchForAccessPointCallbacks

-

WiseFyLock

-

WiseFyPrechecks.searchForAccessPointChecks

-

WiseFySearch.findAccessPointByRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-access-points.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-access-points.html deleted file mode 100644 index 54f9022f..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-access-points.html +++ /dev/null @@ -1,57 +0,0 @@ - - - -WiseFy.searchForAccessPoints - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / searchForAccessPoints
-
-

searchForAccessPoints

- -@Sync @CallingThread fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean): List<ScanResult>? -

Overrides AccessPointApi.searchForAccessPoints

-

To return nearby access points that match a given regex.

-

NOTE Setting filterDuplicates to true will not return access points with a weaker signal strength (will always take the highest).

-

Parameters

-

-regexForSSID - The regex to use when iterating through nearby access points

-

-filterDuplicates - If you want to exclude access points with the same name that have a weaker signal strength

-

Return
-List of ScanResult|null - The list of matching access points or null if none match the given regex

-

See Also
-

ScanResult

-

WiseFyPrechecks.searchForAccessPointsChecks

-

WiseFySearch.findAccessPointsMatchingRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean, callbacks: SearchForAccessPointsCallbacks?): Unit -

Overrides AccessPointApi.searchForAccessPoints

-

To return nearby access points that match a given regex.

-

NOTE Setting filterDuplicates to true will not return access points with a weaker signal strength (will always take the highest).

-

Parameters

-

-regexForSSID - The regex to use when iterating through nearby access points

-

-filterDuplicates - If you want to exclude access points with the same name that have a weaker signal strength

-

-callbacks - The listener to return results to

-

See Also
-

runOnWiseFyThread

-

ScanResult

-

SearchForAccessPointsCallbacks

-

WiseFyLock

-

WiseFyPrechecks.searchForAccessPointsChecks

-

WiseFySearch.findAccessPointsMatchingRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-s-s-i-d.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-s-s-i-d.html deleted file mode 100644 index b5222a51..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-s-s-i-d.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -WiseFy.searchForSSID - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / searchForSSID
-
-

searchForSSID

- -@Sync @CallingThread @WaitsForTimeout fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int): String? -

Overrides AccessPointApi.searchForSSID

-

To search local networks and return the first one that contains a given ssid.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-timeoutInMillis - The number of milliseconds to keep searching for the SSID

-

Return
-String|null - The first SSID that contains the search ssid (if any, else null)

-

See Also
-

ScanResult.SSID

-

WiseFyPrechecks.searchForSSIDChecks

-

WiseFySearch.findAccessPointByRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread @WaitsForTimeout fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?): Unit -

Overrides AccessPointApi.searchForSSID

-

To search local networks and return the first one that contains a given ssid.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-timeoutInMillis - The number of milliseconds to keep searching for the SSID

-

-callbacks - The listener to return results to

-

See Also
-

runOnWiseFyThread

-

ScanResult.SSID

-

SearchForSSIDCallbacks

-

WiseFyLock

-

WiseFyPrechecks.searchForSSIDChecks

-

WiseFySearch.findAccessPointByRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-s-s-i-ds.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-s-s-i-ds.html deleted file mode 100644 index 2e97ffa6..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-s-s-i-ds.html +++ /dev/null @@ -1,49 +0,0 @@ - - - -WiseFy.searchForSSIDs - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / searchForSSIDs
-
-

searchForSSIDs

- -@Sync @CallingThread fun searchForSSIDs(regexForSSID: String?): List<String>? -

Overrides AccessPointApi.searchForSSIDs

-

To search local networks and return the first one that contains a given ssid.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

Return
-String|null - The first SSID that contains the search ssid (if any, else null)

-

See Also
-

WiseFyPrechecks.searchForSSIDsChecks

-

WiseFySearch.findSSIDsMatchingRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun searchForSSIDs(regexForSSID: String?, callbacks: SearchForSSIDsCallbacks?): Unit -

Overrides AccessPointApi.searchForSSIDs

-

To search local networks and return the first one that contains a given ssid.

-

Parameters

-

-regexForSSID - The regex to be used to search for the ssid

-

-callbacks - The listener to return results to

-

See Also
-

runOnWiseFyThread

-

SearchForSSIDsCallbacks

-

WiseFyLock

-

WiseFyPrechecks.searchForSSIDsChecks

-

WiseFySearch.findSSIDsMatchingRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-saved-network.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-saved-network.html deleted file mode 100644 index 35dfefcf..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-saved-network.html +++ /dev/null @@ -1,51 +0,0 @@ - - - -WiseFy.searchForSavedNetwork - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / searchForSavedNetwork
-
-

searchForSavedNetwork

- -@Sync @CallingThread fun searchForSavedNetwork(regexForSSID: String?): WifiConfiguration? -

Overrides SavedNetworkApi.searchForSavedNetwork

-

To search for and return a saved WiFiConfiguration given an SSID.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configuration

-

Return
-WifiConfiguration|null - Saved network that matches the ssid

-

See Also
-

WifiConfiguration

-

WiseFyPrechecks.searchForSavedNetworkChecks

-

WiseFySearch.findSavedNetworkByRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun searchForSavedNetwork(regexForSSID: String?, callbacks: SearchForSavedNetworkCallbacks?): Unit -

Overrides SavedNetworkApi.searchForSavedNetwork

-

To search for and return a saved WiFiConfiguration given an SSID.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configuration

-

-callbacks - The listener to return results to

-

See Also
-

SearchForSavedNetworkCallbacks

-

runOnWiseFyThread

-

WifiConfiguration

-

WiseFyLock

-

WiseFyPrechecks.searchForSavedNetworkChecks

-

WiseFySearch.findSavedNetworkByRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-saved-networks.html b/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-saved-networks.html deleted file mode 100644 index 0bf187de..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/-wise-fy/search-for-saved-networks.html +++ /dev/null @@ -1,51 +0,0 @@ - - - -WiseFy.searchForSavedNetworks - wisefy - - - -wisefy / com.isupatches.wisefy / WiseFy / searchForSavedNetworks
-
-

searchForSavedNetworks

- -@Sync @CallingThread fun searchForSavedNetworks(regexForSSID: String?): List<WifiConfiguration>? -

Overrides SavedNetworkApi.searchForSavedNetworks

-

To retrieve a list of saved networks on a user's device that match a given regex.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configurations

-

Return
-List of WifiConfigurations|null - The list of saved network configurations that match the given regex

-

See Also
-

WifiConfiguration

-

WiseFyPrechecks.searchForSavedNetworksChecks

-

WiseFySearch.findSavedNetworksMatchingRegex

-

-

Author
-Patches

-

Since
-3.0

- -@Async @WiseFyThread fun searchForSavedNetworks(regexForSSID: String?, callbacks: SearchForSavedNetworksCallbacks?): Unit -

Overrides SavedNetworkApi.searchForSavedNetworks

-

To retrieve a list of saved networks on a user's device that match a given regex.

-

Parameters

-

-regexForSSID - The ssid to use while searching for saved configurations

-

-callbacks - The listener to return results to

-

See Also
-

SearchForSavedNetworksCallbacks

-

runOnWiseFyThread

-

WifiConfiguration

-

WiseFyLock

-

WiseFyPrechecks.searchForSavedNetworksChecks

-

WiseFySearch.findSavedNetworksMatchingRegex

-

-

Author
-Patches

-

Since
-3.0

- - diff --git a/javadoc/wisefy/com.isupatches.wisefy/index.html b/javadoc/wisefy/com.isupatches.wisefy/index.html deleted file mode 100644 index 74c931b6..00000000 --- a/javadoc/wisefy/com.isupatches.wisefy/index.html +++ /dev/null @@ -1,145 +0,0 @@ - - - -com.isupatches.wisefy - wisefy - - - -wisefy / com.isupatches.wisefy
-
-

Package com.isupatches.wisefy

-

Types

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

AccessPointApi

-
-interface AccessPointApi -

An API for querying for nearby access points and related information.

-
-

AddNetworkApi

-
-interface AddNetworkApi -

An API for adding networks as saved configurations on a device.

-
-

ConnectionApi

-
-interface ConnectionApi -

An API for managing the network connection of a device.

-
-

DeviceApi

-
-interface DeviceApi -

An API for querying about the different network statuses of a device.

-
-

FrequencyApi

-
-interface FrequencyApi -

An API for querying about a network's frequency.

-
-

NetworkInfoApi

-
-interface NetworkInfoApi -

An API for querying about a device's current network information.

-
-

RemoveNetworkApi

-
-interface RemoveNetworkApi -

An API for removing a network as a saved configuration.

-
-

SavedNetworkApi

-
-interface SavedNetworkApi -

An API for querying saved network information on a device.

-
-

SecurityApi

-
-interface SecurityApi -

An API for querying about a network's security details.

-
-

SignalStrengthApi

-
-interface SignalStrengthApi -

An API for functionality relating to signal strength.

-
-

WifiApi

-
-interface WifiApi -

An API for functionality relating to Wifi.

-
-

WiseFy

-
-class WiseFy : WiseFyPublicApi -

Main class for WiseFy that provides a synchronous and asynchronous API to manipulate and query -for different parts of a device's wifi configuration and status.

-
-

WiseFyLock

-
-class WiseFyLock -

A class used to synchronize logic.

-
-

WiseFyPublicApi

-
-interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi -

The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation -of functionality.

-
- - diff --git a/javadoc/wisefy/index-outline.html b/javadoc/wisefy/index-outline.html deleted file mode 100644 index 2ea714c5..00000000 --- a/javadoc/wisefy/index-outline.html +++ /dev/null @@ -1,1363 +0,0 @@ - - - -Module Contents - - - -wisefy
- - - diff --git a/javadoc/wisefy/index.html b/javadoc/wisefy/index.html deleted file mode 100644 index ab841700..00000000 --- a/javadoc/wisefy/index.html +++ /dev/null @@ -1,46 +0,0 @@ - - - -wisefy - - - -wisefy
-
-

Packages

- - - - - - - - - - - - - - - - - - - -
-

com.isupatches.wisefy

-
-
-

com.isupatches.wisefy.callbacks

-
-
-

com.isupatches.wisefy.constants

-
-
-

com.isupatches.wisefy.threads

-
-
-

Index

-All Types - - diff --git a/javadoc/wisefy/package-list b/javadoc/wisefy/package-list deleted file mode 100644 index e0eb76c5..00000000 --- a/javadoc/wisefy/package-list +++ /dev/null @@ -1,7 +0,0 @@ -$dokka.format:html -$dokka.linkExtension:html - -com.isupatches.wisefy -com.isupatches.wisefy.callbacks -com.isupatches.wisefy.constants -com.isupatches.wisefy.threads diff --git a/settings.gradle b/settings.gradle deleted file mode 100644 index 4a68c9f5..00000000 --- a/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include ':wisefy', ':wisefysample' diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 00000000..45263d6a --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,3 @@ +rootProject.name = "android-wisefy" + +include(":app", ":wisefy") diff --git a/wisefy/build.gradle b/wisefy/build.gradle deleted file mode 100644 index 5dac85a6..00000000 --- a/wisefy/build.gradle +++ /dev/null @@ -1,107 +0,0 @@ -apply plugin: 'com.android.library' -apply plugin: 'kotlin-android' - -group = rootProject.ext.GROUP -version = rootProject.ext.VERSION_NAME - -android { - - dexOptions { - // Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false. - preDexLibraries = preDexEnabled && !travisBuild - javaMaxHeapSize "2g" - } - - adbOptions { - timeOutInMs 15 * 60 * 1000 // 15 minutes - installOptions "-d", "-t" - } - - compileSdkVersion rootProject.ext.MAX_SDK_VERSION - buildToolsVersion rootProject.ext.BUILD_TOOLS_VERSION - - defaultConfig { - minSdkVersion rootProject.ext.MIN_SDK_VERSION - targetSdkVersion rootProject.ext.MAX_SDK_VERSION - versionCode rootProject.ext.VERSION_CODE - versionName rootProject.ext.VERSION_NAME - testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' - consumerProguardFiles 'consumer-proguard-rules.pro' - } - - buildTypes { - debug { - testCoverageEnabled true - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - testProguardFile file("proguard-test-rules.pro") - } - - release { - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } - - compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - } - - lintOptions { - checkAllWarnings true - warningsAsErrors true - showAll true - explainIssues true - abortOnError true - disable 'UnusedIds' // UnusedIds is disabled for Kotlin synthetics - } - - testOptions { - unitTests { - returnDefaultValues = true - /* - * includeAndroidResources and all block were added for RoboElectric - */ - includeAndroidResources = true - all { - jacoco { - includeNoLocationClasses = true - } - } - } - } - - sourceSets { - final def commonTestDir = 'src/commonTest/java' - - test { java.srcDir commonTestDir } - - androidTest { java.srcDir commonTestDir } - - main { jni.srcDirs = [] } - } -} - -dependencies { - implementation "androidx.annotation:annotation:$androidx_support_annotations_version" - - // Kotlin - implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - - // Unit Tests - testImplementation "androidx.test:core:$androidx_core_test_version" - testImplementation "org.mockito:mockito-core:$mockito_version" - testImplementation "junit:junit:$junit_version" - - // Instrumentation Tests - androidTestImplementation "androidx.test.espresso:espresso-core:$androidx_espresso_core_version" - androidTestImplementation "androidx.test:runner:$androidx_test_runner_version" - androidTestImplementation "androidx.test:rules:$androidx_test_runner_version" - androidTestImplementation "org.mockito:mockito-core:$mockito_version" - androidTestImplementation "org.mockito:mockito-android:$mockito_version" - androidTestImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:$mockito_kotlin_version" -} - -apply from: rootProject.file("$rootProject.projectDir/gradle/gradle-bintray-install.gradle") -apply from: rootProject.file("$rootProject.projectDir/gradle/gradle-bintray-upload.gradle") diff --git a/wisefy/build.gradle.kts b/wisefy/build.gradle.kts new file mode 100644 index 00000000..444ca459 --- /dev/null +++ b/wisefy/build.gradle.kts @@ -0,0 +1,31 @@ +import com.isupatches.android.wisefy.build.BuildVersions +import com.isupatches.android.wisefy.build.Dependencies +import com.isupatches.android.wisefy.build.PublishingConstants.GROUP_ID + +plugins { + id("com.android.library") + id("com.isupatches.android.wisefy.build.plugins.BaseGradleModulePlugin") + id("com.isupatches.android.wisefy.build.plugins.DocumentationPlugin") + id("com.isupatches.android.wisefy.build.plugins.PublishingPlugin") + id("kotlin-android") + id("kotlin-kapt") +} + +group = GROUP_ID +version = BuildVersions.MODULE_VERSION_NAME + +android { + buildFeatures { + viewBinding = true + } +} + +dependencies { + // AndroidX + implementation(Dependencies.AndroidX.APPCOMPAT) + implementation(Dependencies.AndroidX.ANNOTATION) + + // Kotlin + implementation(Dependencies.Kotlin.STD_LIB) + implementation(Dependencies.Kotlin.COROUTINES) +} diff --git a/wisefy/proguard-rules.pro b/wisefy/proguard-rules.pro index a252efb7..714438cd 100644 --- a/wisefy/proguard-rules.pro +++ b/wisefy/proguard-rules.pro @@ -1,3 +1,6 @@ -verbose -dontobfuscate + +# Java lang for AGP +-dontwarn java.lang.instrument.ClassFileTransformer diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/AddOpenNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/AddOpenNetworkTests.kt deleted file mode 100644 index 4d268987..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/AddOpenNetworkTests.kt +++ /dev/null @@ -1,96 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.WiseFy.Companion.WIFI_MANAGER_FAILURE -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNotEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to add open networks. - * - * @author Patches - * @since 3.0 - */ -internal class AddOpenNetworkTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.addNetwork_failure() - assertEquals(MISSING_PARAMETER, wisefy.addOpenNetwork(OPEN_NETWORK_SSID)) - verificationUtil.didNoTryToAddNetwork() - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_failure() - assertEquals(WIFI_MANAGER_FAILURE, wisefy.addOpenNetwork(OPEN_NETWORK_SSID)) - verificationUtil.triedToAddNetwork() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_success() - assertNotEquals(WIFI_MANAGER_FAILURE, wisefy.addOpenNetwork(OPEN_NETWORK_SSID)) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.addNetwork_failure() - val mockCallbacks = mock(AddNetworkCallbacks::class.java) - wisefy.addOpenNetwork(OPEN_NETWORK_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNoTryToAddNetwork() - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.addNetwork_failure() - nullCallbackUtil.callAddOpenNetwork(OPEN_NETWORK_SSID) - verificationUtil.didNoTryToAddNetwork() - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_failure() - val mockCallbacks = mock(AddNetworkCallbacks::class.java) - wisefy.addOpenNetwork(OPEN_NETWORK_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureAddingNetwork(WIFI_MANAGER_FAILURE) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_failure() - nullCallbackUtil.callAddOpenNetwork(OPEN_NETWORK_SSID) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_success() - val mockCallbacks = mock(AddNetworkCallbacks::class.java) - wisefy.addOpenNetwork(OPEN_NETWORK_SSID, mockCallbacks) - verifyNetworkAdded(mockCallbacks) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_success() - nullCallbackUtil.callAddOpenNetwork(OPEN_NETWORK_SSID) - verificationUtil.triedToAddNetwork() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/AddWEPNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/AddWEPNetworkTests.kt deleted file mode 100644 index 7e36ae2d..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/AddWEPNetworkTests.kt +++ /dev/null @@ -1,97 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.WiseFy.Companion.WIFI_MANAGER_FAILURE -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNotEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to add WEP networks. - * - * @author Patches - * @since 3.0 - */ -@Suppress("deprecation") -internal class AddWEPNetworkTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.addNetwork_failure() - assertEquals(MISSING_PARAMETER, wisefy.addWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD)) - verificationUtil.didNoTryToAddNetwork() - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_failure() - assertEquals(WIFI_MANAGER_FAILURE, wisefy.addWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD)) - verificationUtil.triedToAddNetwork() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_success() - assertNotEquals(1, wisefy.addWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD)) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.addNetwork_failure() - val mockCallbacks = mock(AddNetworkCallbacks::class.java) - wisefy.addWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNoTryToAddNetwork() - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.addNetwork_failure() - nullCallbackUtil.callAddWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD) - verificationUtil.didNoTryToAddNetwork() - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_failure() - val mockCallbacks = mock(AddNetworkCallbacks::class.java) - wisefy.addWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureAddingNetwork(WIFI_MANAGER_FAILURE) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_failure() - nullCallbackUtil.callAddWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_success() - val mockCallbacks = mock(AddNetworkCallbacks::class.java) - wisefy.addWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD, mockCallbacks) - verifyNetworkAdded(mockCallbacks) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_success() - nullCallbackUtil.callAddWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD) - verificationUtil.triedToAddNetwork() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/AddWPA2NetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/AddWPA2NetworkTests.kt deleted file mode 100644 index a7d0dc43..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/AddWPA2NetworkTests.kt +++ /dev/null @@ -1,96 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.WiseFy.Companion.WIFI_MANAGER_FAILURE -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNotEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to add WPA2 networks. - * - * @author Patches - * @since 3.0 - */ -internal class AddWPA2NetworkTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.addNetwork_failure() - assertEquals(MISSING_PARAMETER, wisefy.addWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD)) - verificationUtil.didNoTryToAddNetwork() - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_failure() - assertEquals(WIFI_MANAGER_FAILURE, wisefy.addWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD)) - verificationUtil.triedToAddNetwork() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_success() - assertNotEquals(WIFI_MANAGER_FAILURE, wisefy.addWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD)) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.addNetwork_failure() - val mockCallbacks = mock(AddNetworkCallbacks::class.java) - wisefy.addWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNoTryToAddNetwork() - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.addNetwork_failure() - nullCallbackUtil.callAddWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD) - verificationUtil.didNoTryToAddNetwork() - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_failure() - val mockCallbacks = mock(AddNetworkCallbacks::class.java) - wisefy.addWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureAddingNetwork(WIFI_MANAGER_FAILURE) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_failure() - nullCallbackUtil.callAddWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_success() - val mockCallbacks = mock(AddNetworkCallbacks::class.java) - wisefy.addWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD, mockCallbacks) - verifyNetworkAdded(mockCallbacks) - verificationUtil.triedToAddNetwork() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.addNetwork_success() - mockNetworkUtil.addNetwork_success() - nullCallbackUtil.callAddWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD) - verificationUtil.triedToAddNetwork() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/ConnectToNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/ConnectToNetworkTests.kt deleted file mode 100644 index 2a703a58..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/ConnectToNetworkTests.kt +++ /dev/null @@ -1,127 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.ConnectToNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to connect to a network. - * - * @author Patches - * @since 3.0 - */ -internal class ConnectToNetworkTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.connectToNetwork_failure() - assertEquals(false, wisefy.connectToNetwork(TEST_SSID, TEST_TIMEOUT)) - verificationUtil.didNotTryToConnectToNetwork() - } - - @Test - fun sync_failure_noSavedNetwork() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_null() - assertEquals(false, wisefy.connectToNetwork(TEST_SSID, TEST_TIMEOUT)) - verificationUtil.didNotTryToConnectToNetwork() - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockWiseFyConnectionUtil.waitToConnectToSSID(false) - assertEquals(false, wisefy.connectToNetwork(TEST_SSID, TEST_TIMEOUT)) - verificationUtil.triedToConnectToNetwork() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockWiseFyConnectionUtil.waitToConnectToSSID(true) - assertEquals(true, wisefy.connectToNetwork(TEST_SSID, TEST_TIMEOUT)) - verificationUtil.triedToConnectToNetwork() - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.connectToNetwork_failure() - val mockCallbacks = mock(ConnectToNetworkCallbacks::class.java) - wisefy.connectToNetwork(TEST_SSID, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNotTryToConnectToNetwork() - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFyPrechecksUtil.connectToNetwork_failure() - nullCallbackUtil.callConnectToNetwork(TEST_SSID) - verificationUtil.didNotTryToConnectToNetwork() - } - - @Test - fun async_failure_noSavedNetwork() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_null() - val mockCallbacks = mock(ConnectToNetworkCallbacks::class.java) - wisefy.connectToNetwork(TEST_SSID, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).networkNotFoundToConnectTo() - verificationUtil.didNotTryToConnectToNetwork() - } - - @Test - fun async_failure_noSavedNetwork_nullCallback() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_null() - nullCallbackUtil.callConnectToNetwork(TEST_SSID) - verificationUtil.didNotTryToConnectToNetwork() - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockWiseFyConnectionUtil.waitToConnectToSSID(false) - val mockCallbacks = mock(ConnectToNetworkCallbacks::class.java) - wisefy.connectToNetwork(TEST_SSID, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureConnectingToNetwork() - verificationUtil.triedToConnectToNetwork() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockWiseFyConnectionUtil.waitToConnectToSSID(false) - nullCallbackUtil.callConnectToNetwork(TEST_SSID) - verificationUtil.triedToConnectToNetwork() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockWiseFyConnectionUtil.waitToConnectToSSID(true) - val mockCallbacks = mock(ConnectToNetworkCallbacks::class.java) - wisefy.connectToNetwork(TEST_SSID, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).connectedToNetwork() - verificationUtil.triedToConnectToNetwork() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.connectToNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockWiseFyConnectionUtil.waitToConnectToSSID(true) - nullCallbackUtil.callConnectToNetwork(TEST_SSID) - verificationUtil.triedToConnectToNetwork() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/DisableWifiTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/DisableWifiTests.kt deleted file mode 100644 index ece45cdf..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/DisableWifiTests.kt +++ /dev/null @@ -1,94 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to disable a device's wifi. - * - * @author Patches - * @since 3.0 - */ -internal class DisableWifiTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.disableWifi_failure() - assertEquals(false, wisefy.disableWifi()) - verificationUtil.didNotTryToDisableWifi() - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.disableWifi_success() - mockNetworkUtil.disableWifi_failure() - assertEquals(false, wisefy.disableWifi()) - verificationUtil.triedToDisableWifi() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.disableWifi_success() - mockNetworkUtil.disableWifi_success() - assertEquals(true, wisefy.disableWifi()) - verificationUtil.triedToDisableWifi() - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.disableWifi_failure() - val mockCallbacks = mock(DisableWifiCallbacks::class.java) - wisefy.disableWifi(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNotTryToDisableWifi() - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.disableWifi_failure() - nullCallbackUtil.callDisableWifi() - verificationUtil.didNotTryToDisableWifi() - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.disableWifi_success() - mockNetworkUtil.disableWifi_failure() - val mockCallbacks = mock(DisableWifiCallbacks::class.java) - wisefy.disableWifi(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureDisablingWifi() - verificationUtil.triedToDisableWifi() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.disableWifi_success() - mockNetworkUtil.disableWifi_failure() - nullCallbackUtil.callDisableWifi() - verificationUtil.triedToDisableWifi() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.disableWifi_success() - mockNetworkUtil.disableWifi_success() - val mockCallbacks = mock(DisableWifiCallbacks::class.java) - wisefy.disableWifi(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wifiDisabled() - verificationUtil.triedToDisableWifi() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.disableWifi_success() - mockNetworkUtil.disableWifi_success() - nullCallbackUtil.callDisableWifi() - verificationUtil.triedToDisableWifi() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/DisconnectFromCurrentNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/DisconnectFromCurrentNetworkTests.kt deleted file mode 100644 index 1636a848..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/DisconnectFromCurrentNetworkTests.kt +++ /dev/null @@ -1,94 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to disconnect a device from it's current network. - * - * @author Patches - * @since 3.0 - */ -internal class DisconnectFromCurrentNetworkTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.disconnectFromCurrentNetwork_failure() - assertEquals(false, wisefy.disconnectFromCurrentNetwork()) - verificationUtil.didNotTryToDisconnectFromCurrentNetwork() - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.disconnectFromCurrentNetwork_success() - mockNetworkUtil.disconnectFromCurrentNetwork_failure() - assertEquals(false, wisefy.disconnectFromCurrentNetwork()) - verificationUtil.triedToDisconnectFromCurrentNetwork() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.disconnectFromCurrentNetwork_success() - mockNetworkUtil.disconnectFromCurrentNetwork_success() - assertEquals(true, wisefy.disconnectFromCurrentNetwork()) - verificationUtil.triedToDisconnectFromCurrentNetwork() - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.disconnectFromCurrentNetwork_failure() - val mockCallbacks = mock(DisconnectFromCurrentNetworkCallbacks::class.java) - wisefy.disconnectFromCurrentNetwork(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNotTryToDisconnectFromCurrentNetwork() - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.disconnectFromCurrentNetwork_failure() - nullCallbackUtil.callDisconnectFromCurrentNetwork() - verificationUtil.didNotTryToDisconnectFromCurrentNetwork() - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.disconnectFromCurrentNetwork_success() - mockNetworkUtil.disconnectFromCurrentNetwork_failure() - val mockCallbacks = mock(DisconnectFromCurrentNetworkCallbacks::class.java) - wisefy.disconnectFromCurrentNetwork(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureDisconnectingFromCurrentNetwork() - verificationUtil.triedToDisconnectFromCurrentNetwork() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.disconnectFromCurrentNetwork_success() - mockNetworkUtil.disconnectFromCurrentNetwork_failure() - nullCallbackUtil.callDisconnectFromCurrentNetwork() - verificationUtil.triedToDisconnectFromCurrentNetwork() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.disconnectFromCurrentNetwork_success() - mockNetworkUtil.disconnectFromCurrentNetwork_success() - val mockCallbacks = mock(DisconnectFromCurrentNetworkCallbacks::class.java) - wisefy.disconnectFromCurrentNetwork(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).disconnectedFromCurrentNetwork() - verificationUtil.triedToDisconnectFromCurrentNetwork() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.disconnectFromCurrentNetwork_success() - mockNetworkUtil.disconnectFromCurrentNetwork_success() - nullCallbackUtil.callDisconnectFromCurrentNetwork() - verificationUtil.triedToDisconnectFromCurrentNetwork() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/EnableWifiTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/EnableWifiTests.kt deleted file mode 100644 index 5ec8fc1b..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/EnableWifiTests.kt +++ /dev/null @@ -1,94 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to enable a device's wifi. - * - * @author Patches - * @since 3.0 - */ -internal class EnableWifiTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.enableWifi_failure() - assertEquals(false, wisefy.enableWifi()) - verificationUtil.didNotTryToEnableWifi() - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.enableWifi_success() - mockNetworkUtil.enableWifi_failure() - assertEquals(false, wisefy.enableWifi()) - verificationUtil.triedToEnableWifi() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.enableWifi_success() - mockNetworkUtil.enableWifi_success() - assertEquals(true, wisefy.enableWifi()) - verificationUtil.triedToEnableWifi() - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.enableWifi_failure() - val mockCallbacks = mock(EnableWifiCallbacks::class.java) - wisefy.enableWifi(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNotTryToEnableWifi() - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.enableWifi_failure() - nullCallbackUtil.callEnableWifi() - verificationUtil.didNotTryToEnableWifi() - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.enableWifi_success() - mockNetworkUtil.enableWifi_failure() - val mockCallbacks = mock(EnableWifiCallbacks::class.java) - wisefy.enableWifi(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureEnablingWifi() - verificationUtil.triedToEnableWifi() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.enableWifi_success() - mockNetworkUtil.enableWifi_failure() - nullCallbackUtil.callEnableWifi() - verificationUtil.triedToEnableWifi() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.enableWifi_success() - mockNetworkUtil.enableWifi_success() - val mockCallbacks = mock(EnableWifiCallbacks::class.java) - wisefy.enableWifi(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wifiEnabled() - verificationUtil.triedToEnableWifi() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.enableWifi_success() - mockNetworkUtil.enableWifi_success() - nullCallbackUtil.callEnableWifi() - verificationUtil.triedToEnableWifi() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetCurrentNetworkInfoTest.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/GetCurrentNetworkInfoTest.kt deleted file mode 100644 index 5dafcb9b..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetCurrentNetworkInfoTest.kt +++ /dev/null @@ -1,101 +0,0 @@ -package com.isupatches.wisefy - -import android.net.NetworkInfo -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNotNull -import org.junit.Assert.fail -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to retrieve a device's current network information. - * - * @author Patches - * @since 3.0 - */ -internal class GetCurrentNetworkInfoTest : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.getCurrentNetworkInfo_failure() - assertEquals(null, wisefy.getCurrentNetworkInfo()) - verificationUtil.didNotTryToGetCurrentNetworkInfo() - } - - @Test - fun sync_failure_nullCurrentNetwork() { - mockWiseFyPrechecksUtil.getCurrentNetworkInfo_success() - assertEquals(null, wisefy.getCurrentNetworkInfo()) - verificationUtil.triedToGetCurrentNetworkInfo() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.getCurrentNetworkInfo_success() - mockNetworkUtil.activeNetwork() - val currentNetworkInfo = wisefy.getCurrentNetworkInfo() - if (currentNetworkInfo != null) { - assertNotNull(currentNetworkInfo) - verificationUtil.triedToGetCurrentNetworkInfo() - } else { - fail() - } - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.getCurrentNetworkInfo_failure() - val mockCallbacks = mock(GetCurrentNetworkInfoCallbacks::class.java) - wisefy.getCurrentNetworkInfo(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNotTryToGetCurrentNetworkInfo() - } - - @Test - fun async_failure_prechecks_nullCallbacks() { - mockWiseFyPrechecksUtil.getCurrentNetworkInfo_failure() - nullCallbackUtil.callGetCurrentNetworkInfo() - verificationUtil.didNotTryToGetCurrentNetworkInfo() - } - - @Test - fun async_failure_nullCurrentNetwork() { - mockWiseFyPrechecksUtil.getCurrentNetworkInfo_success() - val mockCallbacks = mock(GetCurrentNetworkInfoCallbacks::class.java) - wisefy.getCurrentNetworkInfo(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noCurrentNetworkInfo() - verificationUtil.triedToGetCurrentNetworkInfo() - } - - @Test - fun async_failure_nullCurrentNetwork_nullCallbacks() { - mockWiseFyPrechecksUtil.getCurrentNetworkInfo_success() - nullCallbackUtil.callGetCurrentNetworkInfo() - verificationUtil.triedToGetCurrentNetworkInfo() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.getCurrentNetworkInfo_success() - mockNetworkUtil.activeNetwork() - val mockCallbacks = mock(GetCurrentNetworkInfoCallbacks::class.java) - wisefy.getCurrentNetworkInfo(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedCurrentNetworkInfo( - any(NetworkInfo::class.java) - ) - verificationUtil.triedToGetCurrentNetworkInfo() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.getCurrentNetworkInfo_success() - mockNetworkUtil.activeNetwork() - nullCallbackUtil.callGetCurrentNetworkInfo() - verificationUtil.triedToGetCurrentNetworkInfo() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetCurrentNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/GetCurrentNetworkTests.kt deleted file mode 100644 index db581496..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetCurrentNetworkTests.kt +++ /dev/null @@ -1,97 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.fail -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to retrieve a device's current network. - * - * @author Patches - * @since 3.0 - */ -internal class GetCurrentNetworkTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.getCurrentNetwork_failure() - assertEquals(null, wisefy.getCurrentNetwork()) - verificationUtil.didNotTryToGetCurrentNetwork() - } - - @Test - fun sync_failure_nullCurrentNetwork() { - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - assertEquals(null, wisefy.getCurrentNetwork()) - verificationUtil.triedToGetCurrentNetwork() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.currentNetwork(TEST_SSID) - val currentNetwork = wisefy.getCurrentNetwork() - if (currentNetwork != null) { - assertEquals(TEST_SSID, currentNetwork.ssid) - verificationUtil.triedToGetCurrentNetwork() - } else { - fail() - } - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.getCurrentNetwork_failure() - val mockCallbacks = mock(GetCurrentNetworkCallbacks::class.java) - wisefy.getCurrentNetwork(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNotTryToGetCurrentNetwork() - } - - @Test - fun async_failure_prechecks_nullCallbacks() { - mockWiseFyPrechecksUtil.getCurrentNetwork_failure() - nullCallbackUtil.callGetCurrentNetwork() - verificationUtil.didNotTryToGetCurrentNetwork() - } - - @Test - fun async_failure_nullCurrentNetwork() { - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - val mockCallbacks = mock(GetCurrentNetworkCallbacks::class.java) - wisefy.getCurrentNetwork(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noCurrentNetwork() - verificationUtil.triedToGetCurrentNetwork() - } - - @Test - fun async_failure_nullCurrentNetwork_nullCallbacks() { - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - nullCallbackUtil.callGetCurrentNetwork() - verificationUtil.triedToGetCurrentNetwork() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - val currentNetwork = mockNetworkUtil.currentNetwork(TEST_SSID) - val mockCallbacks = mock(GetCurrentNetworkCallbacks::class.java) - wisefy.getCurrentNetwork(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedCurrentNetwork(currentNetwork) - verificationUtil.triedToGetCurrentNetwork() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.currentNetwork(TEST_SSID) - nullCallbackUtil.callGetCurrentNetwork() - verificationUtil.triedToGetCurrentNetwork() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetFrequencyTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/GetFrequencyTests.kt deleted file mode 100644 index d069b6f5..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetFrequencyTests.kt +++ /dev/null @@ -1,168 +0,0 @@ -package com.isupatches.wisefy - -import android.net.wifi.WifiInfo -import android.os.Build -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.fail -import org.junit.Assume -import org.junit.Before -import org.junit.Test -import org.mockito.Mockito.after -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to retrieve a network's frequency. - * - * @author Patches - * @since 3.0 - */ -internal class GetFrequencyTests : BaseInstrumentationTest() { - - @Before - fun setup() { - Assume.assumeTrue( - "Can only run on API Level 21 or newer", - Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP - ) - } - - @Test - fun sync_getFrequency_currentNetwork_failure() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.currentNetwork_null() - assertEquals(null, wisefy.getFrequency()) - verificationUtil.triedToGetCurrentNetwork() - } - - @Test - fun sync_getFrequency_currentNetwork_success() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - val wifiInfo = mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_24GHZ) - val frequency = wisefy.getFrequency() - if (frequency != null) { - assertEquals(TEST_NETWORK_FREQUENCY_24GHZ.toLong(), frequency.toLong()) - verificationUtil.triedToGetCurrentNetwork() - verify(wifiInfo, timeout(VERIFICATION_SUCCESS_TIMEOUT)).frequency - } else { - fail() - } - } - - @Test - fun sync_getFrequency_failure_prechecks() { - mockWiseFyPrechecksUtil.getFrequency_failure() - assertEquals(null, wisefy.getFrequency()) - verificationUtil.didNotTryToGetCurrentNetwork() - } - - @Test - fun async_getFrequency_currentNetwork_failure() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.currentNetwork_null() - val mockCallbacks = mock(GetFrequencyCallbacks::class.java) - wisefy.getFrequency(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureGettingFrequency() - verificationUtil.triedToGetCurrentNetwork() - } - - @Test - fun async_getFrequency_currentNetwork_failure_nullCallback() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.currentNetwork_null() - nullCallbackUtil.callGetFrequency() - verificationUtil.triedToGetCurrentNetwork() - } - - @Test - fun async_getFrequency_currentNetwork_success() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - val mockWifiInfo = mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_24GHZ) - val mockCallbacks = mock(GetFrequencyCallbacks::class.java) - wisefy.getFrequency(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedFrequency(TEST_NETWORK_FREQUENCY_24GHZ) - verificationUtil.triedToGetCurrentNetwork() - verify(mockWifiInfo, timeout(VERIFICATION_SUCCESS_TIMEOUT)).frequency - } - - @Test - fun async_getFrequency_currentNetwork_success_nullCallback() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_24GHZ) - nullCallbackUtil.callGetFrequency() - verificationUtil.triedToGetCurrentNetwork() - } - - @Test - fun async_getFrequency_failure_prechecks() { - mockWiseFyPrechecksUtil.getFrequency_failure() - val mockCallbacks = mock(GetFrequencyCallbacks::class.java) - wisefy.getFrequency(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNotTryToGetCurrentNetwork() - } - - @Test - fun async_getFrequency_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.getFrequency_failure() - nullCallbackUtil.callGetFrequency() - verificationUtil.didNotTryToGetCurrentNetwork() - } - - @Test - fun sync_getFrequency_networkProvided_failure() { - mockNetworkUtil.currentNetwork_null() - assertEquals(null, wisefy.getFrequency(null as? WifiInfo?)) - } - - @Test - fun sync_getFrequency_networkProvided_success() { - val mockWifiInfo = mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_24GHZ) - val frequency = wisefy.getFrequency(mockWifiInfo) - if (frequency != null) { - assertEquals(TEST_NETWORK_FREQUENCY_24GHZ.toLong(), frequency.toLong()) - } else { - fail() - } - } - - @Test - fun async_getFrequency_networkProvided_failure() { - mockNetworkUtil.currentNetwork_null() - val mockCallbacks = mock(GetFrequencyCallbacks::class.java) - wisefy.getFrequency(null, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_getFrequency_networkProvided_failure_nullCallback() { - mockNetworkUtil.currentNetwork_null() - nullCallbackUtil.callGetFrequency_networkProvided(null) - } - - @Test - fun async_getFrequency_networkProvided_success() { - val mockWifiInfo = mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_24GHZ) - val mockCallbacks = mock(GetFrequencyCallbacks::class.java) - wisefy.getFrequency(mockWifiInfo, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedFrequency(TEST_NETWORK_FREQUENCY_24GHZ) - verify(mockWifiInfo, timeout(VERIFICATION_SUCCESS_TIMEOUT)).frequency - } - - @Test - fun async_getFrequency_networkProvided_success_nullCallback() { - val mockWifiInfo = mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_24GHZ) - nullCallbackUtil.callGetFrequency_networkProvided(mockWifiInfo) - verify(mockWifiInfo, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).frequency - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetIPTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/GetIPTests.kt deleted file mode 100644 index 664cdb86..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetIPTests.kt +++ /dev/null @@ -1,79 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to get the IP of a device. - * - * @author Patches - * @since 3.0 - */ -internal class GetIPTests : BaseInstrumentationTest() { - - @Test - fun sync_getIP_failure_missingPrerequisites() { - mockWiseFyPrechecksUtil.getIP_failure() - assertEquals(null, wisefy.getIP()) - } - - @Test - fun sync_getIP_failure() { - mockWiseFyPrechecksUtil.getIP_success() - mockNetworkUtil.ip_failure() - assertEquals(null, wisefy.getIP()) - } - - @Test - fun sync_getIP_success() { - mockWiseFyPrechecksUtil.getIP_success() - mockNetworkUtil.ip_success() - assertEquals(TEST_IP_ADDRESS_STRING, wisefy.getIP()) - } - - @Test fun async_getIP_failure_missingPrerequisites() { - mockWiseFyPrechecksUtil.getIP_failure() - val mockCallbacks = mock(GetIPCallbacks::class.java) - wisefy.getIP(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test fun async_getIP_failure_missingPrerequisites_nullCallbacks() { - mockWiseFyPrechecksUtil.getIP_failure() - nullCallbackUtil.callGetIP() - } - - @Test fun async_getIP_failure() { - mockWiseFyPrechecksUtil.getIP_success() - mockNetworkUtil.ip_failure() - val mockCallbacks = mock(GetIPCallbacks::class.java) - wisefy.getIP(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureRetrievingIP() - } - - @Test fun async_getIP_failure_nullCallbacks() { - mockWiseFyPrechecksUtil.getIP_success() - mockNetworkUtil.ip_failure() - nullCallbackUtil.callGetIP() - } - - @Test fun async_getIP_success() { - mockWiseFyPrechecksUtil.getIP_success() - mockNetworkUtil.ip_success() - val mockCallbacks = mock(GetIPCallbacks::class.java) - wisefy.getIP(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedIP(TEST_IP_ADDRESS_STRING) - } - - @Test fun async_getIP_success_nullCallbacks() { - mockWiseFyPrechecksUtil.getIP_success() - mockNetworkUtil.ip_success() - nullCallbackUtil.callGetIP() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetNearbyAccessPointsTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/GetNearbyAccessPointsTests.kt deleted file mode 100644 index de14c5cb..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetNearbyAccessPointsTests.kt +++ /dev/null @@ -1,155 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to retrieve a list of nearby access points for a device. - * - * @author Patches - * @since 3.0 - */ -internal class GetNearbyAccessPointsTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks_filterDuplicates_false() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_failure() - assertEquals(null, wisefy.getNearbyAccessPoints(false)) - } - - @Test - fun sync_failure_prechecks_filterDuplicates_true() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_failure() - assertEquals(null, wisefy.getNearbyAccessPoints(true)) - } - - @Test - fun sync_failure_filterDuplicates_false() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - mockWiseFySearchUtil.nearbyAccessPoints_null(false) - val nearbyAccessPoints = wisefy.getNearbyAccessPoints(false) - assertEquals(null, nearbyAccessPoints) - } - - @Test - fun sync_failure_filterDuplicates_true() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - mockWiseFySearchUtil.nearbyAccessPoints_null(true) - val nearbyAccessPoints = wisefy.getNearbyAccessPoints(true) - assertEquals(null, nearbyAccessPoints) - } - - @Test - fun sync_success_filterDuplicates_false() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - val accessPoints = mockWiseFySearchUtil.nearbyAccessPoints_success(false) - val nearbyAccessPoints = wisefy.getNearbyAccessPoints(false) - assertEquals(accessPoints, nearbyAccessPoints) - } - - @Test - fun sync_success_filterDuplicates_true() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - val accessPoints = mockWiseFySearchUtil.nearbyAccessPoints_success(true) - val nearbyAccessPoints = wisefy.getNearbyAccessPoints(true) - assertEquals(accessPoints, nearbyAccessPoints) - } - - @Test - fun async_failure_prechecks_filterDuplicates_false() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_failure() - val mockCallbacks = mock(GetNearbyAccessPointsCallbacks::class.java) - wisefy.getNearbyAccessPoints(false, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_filterDuplicates_false_nullCallback() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_failure() - nullCallbackUtil.callGetNearbyAccessPoints(false) - } - - @Test - fun async_failure_prechecks_filterDuplicates_true() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_failure() - val mockCallbacks = mock(GetNearbyAccessPointsCallbacks::class.java) - wisefy.getNearbyAccessPoints(true, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_filterDuplicates_true_nullCallback() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_failure() - nullCallbackUtil.callGetNearbyAccessPoints(true) - } - - @Test - fun async_failure_filterDuplicates_false() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - mockWiseFySearchUtil.nearbyAccessPoints_null(false) - val mockCallbacks = mock(GetNearbyAccessPointsCallbacks::class.java) - wisefy.getNearbyAccessPoints(false, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noAccessPointsFound() - } - - @Test - fun async_failure_filterDuplicates_false_nullCallback() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - mockWiseFySearchUtil.nearbyAccessPoints_success(true) - nullCallbackUtil.callGetNearbyAccessPoints(false) - } - - @Test - fun async_failure_filterDuplicates_true() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - mockWiseFySearchUtil.nearbyAccessPoints_null(true) - val mockCallbacks = mock(GetNearbyAccessPointsCallbacks::class.java) - wisefy.getNearbyAccessPoints(true, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noAccessPointsFound() - } - - @Test - fun async_failure_filterDuplicates_true_nullCallback() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - mockWiseFySearchUtil.nearbyAccessPoints_null(true) - nullCallbackUtil.callGetNearbyAccessPoints(true) - } - - @Test - fun async_success_filterDuplicates_false() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - val accessPoints = mockWiseFySearchUtil.nearbyAccessPoints_success(false) - val mockCallbacks = mock(GetNearbyAccessPointsCallbacks::class.java) - wisefy.getNearbyAccessPoints(false, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedNearbyAccessPoints(accessPoints) - } - - @Test - fun async_success_filterDuplicates_false_nullCallback() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - mockWiseFySearchUtil.nearbyAccessPoints_success(true) - nullCallbackUtil.callGetNearbyAccessPoints(false) - } - - @Test - fun async_success_filterDuplicates_true() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - val accessPoints = mockWiseFySearchUtil.nearbyAccessPoints_success(true) - val mockCallbacks = mock(GetNearbyAccessPointsCallbacks::class.java) - wisefy.getNearbyAccessPoints(true, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedNearbyAccessPoints(accessPoints) - } - - @Test - fun async_success_filterDuplicates_true_nullCallback() { - mockWiseFyPrechecksUtil.getNearbyAccessPoints_success() - mockWiseFySearchUtil.nearbyAccessPoints_success(true) - nullCallbackUtil.callGetNearbyAccessPoints(true) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetRSSITests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/GetRSSITests.kt deleted file mode 100644 index 2977d411..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetRSSITests.kt +++ /dev/null @@ -1,164 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.GetRSSICallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.fail -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to retrieve the RSSI for a nearby access point. - * - * @author Patches - * @since 3.0 - */ -internal class GetRSSITests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks_takeHighest_false() { - mockWiseFyPrechecksUtil.getRSSI_failure() - assertEquals(null, wisefy.getRSSI(TEST_SSID, false, TEST_TIMEOUT)) - } - - @Test - fun sync_failure_prechecks_takeHighest_true() { - mockWiseFyPrechecksUtil.getRSSI_failure() - assertEquals(null, wisefy.getRSSI(TEST_SSID, true, TEST_TIMEOUT)) - } - - @Test - fun sync_failure_noNetworkFound_takeHighest_false() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - assertEquals(null, wisefy.getRSSI(TEST_SSID, false, TEST_TIMEOUT)) - } - - @Test - fun sync_failure_noNetworkFound_takeHighest_true() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - assertEquals(null, wisefy.getRSSI(TEST_SSID, true, TEST_TIMEOUT)) - } - - @Test - fun sync_success_takeHighest_false() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - - val rssi = wisefy.getRSSI(TEST_SSID, false, TEST_TIMEOUT) - if (rssi != null) { - assertEquals(TEST_RSSI_LEVEL.toLong(), rssi.toLong()) - } else { - fail() - } - } - - @Test - fun sync_success_takeHighest_true() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - - val rssi = wisefy.getRSSI(TEST_SSID, true, TEST_TIMEOUT) - if (rssi != null) { - assertEquals(TEST_RSSI_LEVEL.toLong(), rssi.toLong()) - } else { - fail() - } - } - - @Test - fun async_failure_prechecks_takeHighest_false() { - mockWiseFyPrechecksUtil.getRSSI_failure() - val mockCallbacks = mock(GetRSSICallbacks::class.java) - wisefy.getRSSI(TEST_SSID, false, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_takeHighest_false_nullCallback() { - mockWiseFyPrechecksUtil.getRSSI_failure() - nullCallbackUtil.callGetRSSI(false) - } - - @Test - fun async_failure_prechecks_takeHighest_true() { - mockWiseFyPrechecksUtil.getRSSI_failure() - val mockCallbacks = mock(GetRSSICallbacks::class.java) - wisefy.getRSSI(TEST_SSID, true, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_takeHighest_true_nullCallback() { - mockWiseFyPrechecksUtil.getRSSI_failure() - nullCallbackUtil.callGetRSSI(true) - } - - @Test - fun async_failure_noNetworkFound_takeHighest_false() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - val mockCallbacks = mock(GetRSSICallbacks::class.java) - wisefy.getRSSI(TEST_SSID, false, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).networkNotFoundToRetrieveRSSI() - } - - @Test - fun async_failure_noNetworkFound_takeHighest_false_nullCallback() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - nullCallbackUtil.callGetRSSI(false) - } - - @Test - fun async_failure_noNetworkFound_takeHighest_true() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - val mockCallbacks = mock(GetRSSICallbacks::class.java) - wisefy.getRSSI(TEST_SSID, true, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).networkNotFoundToRetrieveRSSI() - } - - @Test - fun async_failure_noNetworkFound_takeHighest_true_nullCallback() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - nullCallbackUtil.callGetRSSI(true) - } - - @Test - fun async_success_takeHighest_false() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - val mockCallbacks = mock(GetRSSICallbacks::class.java) - wisefy.getRSSI(TEST_SSID, false, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedRSSI(TEST_RSSI_LEVEL) - } - - @Test - fun async_success_takeHighest_false_nullCallback() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - nullCallbackUtil.callGetRSSI(false) - } - - @Test - fun async_success_takeHighest_true() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - val mockCallbacks = mock(GetRSSICallbacks::class.java) - wisefy.getRSSI(TEST_SSID, true, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedRSSI(TEST_RSSI_LEVEL) - } - - @Test - fun async_success_takeHighest_true_nullCallback() { - mockWiseFyPrechecksUtil.getRSSI_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - nullCallbackUtil.callGetRSSI(true) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetSavedNetworksTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/GetSavedNetworksTests.kt deleted file mode 100644 index c5a24db5..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/GetSavedNetworksTests.kt +++ /dev/null @@ -1,104 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to retrieve a list of saved networks on a device. - * - * @author Patches - * @since 3.0 - */ -internal class GetSavedNetworksTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.getSavedNetworks_failure() - assertEquals(null, wisefy.getSavedNetworks()) - verificationUtil.didNotTryToGetSavedNetworks() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.getSavedNetworks_success() - val savedNetworks = mockNetworkUtil.savedNetworks() - assertEquals(savedNetworks, wisefy.getSavedNetworks()) - verificationUtil.triedToGetSavedNetworks() - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.getSavedNetworks_failure() - val mockCallbacks = mock(GetSavedNetworksCallbacks::class.java) - wisefy.getSavedNetworks(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNotTryToGetSavedNetworks() - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.getSavedNetworks_failure() - nullCallbackUtil.callGetSavedNetworks() - verificationUtil.didNotTryToGetSavedNetworks() - } - - @Test - fun async_failure_nullSavedNetworks() { - mockWiseFyPrechecksUtil.getSavedNetworks_success() - mockNetworkUtil.savedNetworks_nullList() - val mockCallbacks = mock(GetSavedNetworksCallbacks::class.java) - wisefy.getSavedNetworks(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noSavedNetworksFound() - verificationUtil.triedToGetSavedNetworks() - } - - @Test - fun async_failure_nullSavedNetworks_nullCallback() { - mockWiseFyPrechecksUtil.getSavedNetworks_success() - mockNetworkUtil.savedNetworks_nullList() - nullCallbackUtil.callGetSavedNetworks() - verificationUtil.triedToGetSavedNetworks() - } - - @Test - fun async_failure_emptyConfiguredNetworks() { - mockWiseFyPrechecksUtil.getSavedNetworks_success() - mockNetworkUtil.savedNetworks_emptyList() - val mockCallbacks = mock(GetSavedNetworksCallbacks::class.java) - wisefy.getSavedNetworks(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noSavedNetworksFound() - verificationUtil.triedToGetSavedNetworks() - } - - @Test - fun async_failure_emptyConfiguredNetworks_nullCallback() { - mockWiseFyPrechecksUtil.getSavedNetworks_success() - mockNetworkUtil.savedNetworks_emptyList() - nullCallbackUtil.callGetSavedNetworks() - verificationUtil.triedToGetSavedNetworks() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.getSavedNetworks_success() - val savedNetworks = mockNetworkUtil.savedNetworks() - val mockCallbacks = mock(GetSavedNetworksCallbacks::class.java) - wisefy.getSavedNetworks(mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedSavedNetworks(savedNetworks) - verificationUtil.triedToGetSavedNetworks() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.getSavedNetworks_success() - mockNetworkUtil.savedNetworks() - nullCallbackUtil.callGetSavedNetworks() - verificationUtil.triedToGetSavedNetworks() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToMobileNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToMobileNetworkTests.kt deleted file mode 100644 index 37f94488..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToMobileNetworkTests.kt +++ /dev/null @@ -1,36 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertFalse -import org.junit.Assert.assertTrue -import org.junit.Test - -/** - * Tests the ability to determine if a device is connected to a mobile network. - * - * @author Patches - * @since 3.0 - */ -internal class IsDeviceConnectedToMobileNetworkTests : BaseInstrumentationTest() { - - @Test - fun failure_prechecks() { - mockWiseFyPrechecksUtil.isDeviceConnectedToMobileNetwork_failure() - assertFalse(wisefy.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun failure() { - mockWiseFyPrechecksUtil.isDeviceConnectedToMobileNetwork_success() - mockWiseFyConnectionUtil.isDeviceConnectedToMobileNetwork(false) - assertFalse(wisefy.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun success() { - mockWiseFyPrechecksUtil.isDeviceConnectedToMobileNetwork_success() - mockNetworkUtil.activeNetwork() - mockWiseFyConnectionUtil.isDeviceConnectedToMobileNetwork(true) - assertTrue(wisefy.isDeviceConnectedToMobileNetwork()) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToMobileOrWifiNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToMobileOrWifiNetworkTests.kt deleted file mode 100644 index 0452130d..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToMobileOrWifiNetworkTests.kt +++ /dev/null @@ -1,36 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertFalse -import org.junit.Assert.assertTrue -import org.junit.Test - -/** - * Tests the ability to determine if a device is connected to a mobile or wifi network. - * - * @author Patches - * @since 3.0 - */ -internal class IsDeviceConnectedToMobileOrWifiNetworkTests : BaseInstrumentationTest() { - - @Test - fun failure_missingPrerequisite() { - mockWiseFyPrechecksUtil.isDeviceConnectedToMobileOrWifiNetwork_failure() - assertFalse(wisefy.isDeviceConnectedToMobileOrWifiNetwork()) - } - - @Test - fun failure() { - mockWiseFyPrechecksUtil.isDeviceConnectedToMobileOrWifiNetwork_success() - mockWiseFyConnectionUtil.isNetworkConnected(false) - assertFalse(wisefy.isDeviceConnectedToMobileOrWifiNetwork()) - } - - @Test - fun success() { - mockWiseFyPrechecksUtil.isDeviceConnectedToMobileOrWifiNetwork_success() - mockNetworkUtil.activeNetwork() - mockWiseFyConnectionUtil.isNetworkConnected(true) - assertTrue(wisefy.isDeviceConnectedToMobileOrWifiNetwork()) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToSSIDTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToSSIDTests.kt deleted file mode 100644 index e2860fb8..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToSSIDTests.kt +++ /dev/null @@ -1,35 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertFalse -import org.junit.Assert.assertTrue -import org.junit.Test - -/** - * Tests the ability to determine if a device is connected to an SSID. - * - * @author Patches - * @since 3.0 - */ -internal class IsDeviceConnectedToSSIDTests : BaseInstrumentationTest() { - - @Test - fun failure_prechecks() { - mockWiseFyPrechecksUtil.isDeviceConnectedToSSIDChecks_failure() - assertFalse(wisefy.isDeviceConnectedToSSID(TEST_SSID)) - } - - @Test - fun failure() { - mockWiseFyPrechecksUtil.isDeviceConnectedToSSIDChecks_success() - mockWiseFyConnectionUtil.isCurrentNetworkConnectedToSSID(false) - assertFalse(wisefy.isDeviceConnectedToSSID(TEST_SSID)) - } - - @Test - fun success() { - mockWiseFyPrechecksUtil.isDeviceConnectedToSSIDChecks_success() - mockWiseFyConnectionUtil.isCurrentNetworkConnectedToSSID(true) - assertTrue(wisefy.isDeviceConnectedToSSID(TEST_SSID)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToWifiNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToWifiNetworkTests.kt deleted file mode 100644 index c93a2dcd..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceConnectedToWifiNetworkTests.kt +++ /dev/null @@ -1,36 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertFalse -import org.junit.Assert.assertTrue -import org.junit.Test - -/** - * Tests the ability to determine if a device is connected to a wifi network. - * - * @author Patches - * @since 3.0 - */ -internal class IsDeviceConnectedToWifiNetworkTests : BaseInstrumentationTest() { - - @Test - fun failure_missingPrerequisite() { - mockWiseFyPrechecksUtil.isDeviceConnectedToWifiNetwork_failure() - assertFalse(wisefy.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun failure() { - mockWiseFyPrechecksUtil.isDeviceConnectedToWifiNetwork_success() - mockWiseFyConnectionUtil.isDeviceConnectedToWifiNetwork(false) - assertFalse(wisefy.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun success() { - mockWiseFyPrechecksUtil.isDeviceConnectedToWifiNetwork_success() - mockNetworkUtil.activeNetwork() - mockWiseFyConnectionUtil.isDeviceConnectedToWifiNetwork(true) - assertTrue(wisefy.isDeviceConnectedToWifiNetwork()) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceRoamingTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceRoamingTests.kt deleted file mode 100644 index 59dfaa3b..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsDeviceRoamingTests.kt +++ /dev/null @@ -1,35 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertFalse -import org.junit.Assert.assertTrue -import org.junit.Test - -/** - * Tests the ability to determine if a device is roaming. - * - * @author Patches - * @since 3.0 - */ -internal class IsDeviceRoamingTests : BaseInstrumentationTest() { - - @Test - fun failure_missingPrerequisite() { - mockWiseFyPrechecksUtil.isDeviceRoaming_failure() - assertFalse(wisefy.isDeviceRoaming()) - } - - @Test - fun failure() { - mockWiseFyPrechecksUtil.isDeviceRoaming_success() - mockWiseFyConnectionUtil.isDeviceRoaming(false) - assertFalse(wisefy.isDeviceRoaming()) - } - - @Test - fun success() { - mockWiseFyPrechecksUtil.isDeviceRoaming_success() - mockWiseFyConnectionUtil.isDeviceRoaming(true) - assertTrue(wisefy.isDeviceRoaming()) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetwork5gHzTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetwork5gHzTests.kt deleted file mode 100644 index 62b4a1ca..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetwork5gHzTests.kt +++ /dev/null @@ -1,80 +0,0 @@ -package com.isupatches.wisefy - -import android.os.Build -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assume.assumeTrue -import org.junit.Before -import org.junit.Test - -/** - * Tests the ability to determine if a network is 5 gHz. - * - * @author Patches - * @since 3.0 - */ -internal class IsNetwork5gHzTests : BaseInstrumentationTest() { - - @Before - fun setUp() { - assumeTrue( - "Can only run on API Level 21 or newer", - Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP - ) - } - - @Test - fun currentNetwork_failure_above5ghz() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_ABOVE_5GHZ) - assertEquals(false, wisefy.isNetwork5gHz()) - } - - @Test - fun currentNetwork_failure_below5ghz() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_BELOW_5GHZ) - assertEquals(false, wisefy.isNetwork5gHz()) - } - - @Test - fun currentNetwork_failure_null() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.currentNetwork_null() - assertEquals(false, wisefy.isNetwork5gHz()) - } - - @Test - fun currentNetwork_success() { - mockWiseFyPrechecksUtil.getFrequency_success() - mockWiseFyPrechecksUtil.getCurrentNetwork_success() - mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_5GHZ) - assertEquals(true, wisefy.isNetwork5gHz()) - } - - @Test - fun provideWifiInfo_failure_above5ghz() { - val network = mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_ABOVE_5GHZ) - assertEquals(false, wisefy.isNetwork5gHz(network)) - } - - @Test - fun provideWifiInfo_failure_below5ghz() { - val network = mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_BELOW_5GHZ) - assertEquals(false, wisefy.isNetwork5gHz(network)) - } - - @Test - fun provideWifiInfo_failure_null() { - assertEquals(false, wisefy.isNetwork5gHz(null)) - } - - @Test - fun provideWifiInfo_success() { - val mockWifiInfo = mockNetworkUtil.networkWithFrequency(TEST_NETWORK_FREQUENCY_5GHZ) - assertEquals(true, wisefy.isNetwork5gHz(mockWifiInfo)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkEAPTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkEAPTests.kt deleted file mode 100644 index 2be17305..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkEAPTests.kt +++ /dev/null @@ -1,45 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.constants.EAP -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import com.isupatches.wisefy.internal.createMockAccessPointWithCapabilities -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Tests the ability to determine if a network has EAP security. - * - * @author Patches - * @since 3.0 - */ -internal class IsNetworkEAPTests : BaseInstrumentationTest() { - - @Test - fun failure_differentCapability() { - val scanResult = createMockAccessPointWithCapabilities("Other") - assertEquals(false, wisefy.isNetworkEAP(scanResult)) - } - - @Test - fun failure_emptyCapabilities() { - val scanResult = createMockAccessPointWithCapabilities("") - assertEquals(false, wisefy.isNetworkEAP(scanResult)) - } - - @Test - fun failure_nullCapabilities() { - val scanResult = createMockAccessPointWithCapabilities(null) - assertEquals(false, wisefy.isNetworkEAP(scanResult)) - } - - @Test - fun failure_nullScanResult() { - assertEquals(false, wisefy.isNetworkEAP(null)) - } - - @Test - fun success() { - val scanResult = createMockAccessPointWithCapabilities(EAP) - assertEquals(true, wisefy.isNetworkEAP(scanResult)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkPSKTest.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkPSKTest.kt deleted file mode 100644 index 7c8cd0fa..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkPSKTest.kt +++ /dev/null @@ -1,45 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.constants.PSK -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import com.isupatches.wisefy.internal.createMockAccessPointWithCapabilities -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Tests the ability to determine if a network has PSK security. - * - * @author Patches - * @since 3.0 - */ -internal class IsNetworkPSKTest : BaseInstrumentationTest() { - - @Test - fun failure_differentCapability() { - val scanResult = createMockAccessPointWithCapabilities("Other") - assertEquals(false, wisefy.isNetworkPSK(scanResult)) - } - - @Test - fun failure_emptyCapabilities() { - val scanResult = createMockAccessPointWithCapabilities("") - assertEquals(false, wisefy.isNetworkPSK(scanResult)) - } - - @Test - fun failure_nullCapabilities() { - val scanResult = createMockAccessPointWithCapabilities(null) - assertEquals(false, wisefy.isNetworkPSK(scanResult)) - } - - @Test - fun failure_nullScanResult() { - assertEquals(false, wisefy.isNetworkPSK(null)) - } - - @Test - fun success() { - val scanResult = createMockAccessPointWithCapabilities(PSK) - assertEquals(true, wisefy.isNetworkPSK(scanResult)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkSavedTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkSavedTests.kt deleted file mode 100644 index d63607bc..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkSavedTests.kt +++ /dev/null @@ -1,34 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Tests the ability to determine if a network is in a device's list of saved networks. - * - * @author Patches - * @since 3.0 - */ -internal class IsNetworkSavedTests : BaseInstrumentationTest() { - - @Test - fun failure_missingPrerequisite() { - mockWiseFyPrechecksUtil.isNetworkSaved_failure() - assertEquals(false, wisefy.isNetworkSaved(TEST_SSID)) - } - - @Test - fun failure() { - mockWiseFyPrechecksUtil.isNetworkSaved_success() - mockWiseFySearchUtil.isNetworkASavedConfiguration(false) - assertEquals(false, wisefy.isNetworkSaved(TEST_SSID)) - } - - @Test - fun success() { - mockWiseFyPrechecksUtil.isNetworkSaved_success() - mockWiseFySearchUtil.isNetworkASavedConfiguration(true) - assertEquals(true, wisefy.isNetworkSaved(TEST_SSID)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkSecureTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkSecureTests.kt deleted file mode 100644 index a0904d28..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkSecureTests.kt +++ /dev/null @@ -1,73 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.constants.EAP -import com.isupatches.wisefy.constants.PSK -import com.isupatches.wisefy.constants.WEP -import com.isupatches.wisefy.constants.WPA -import com.isupatches.wisefy.constants.WPA2 -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import com.isupatches.wisefy.internal.createMockAccessPointWithCapabilities -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Tests the ability to determine if a network is secure. - * - * @author Patches - * @since 3.0 - */ -internal class IsNetworkSecureTests : BaseInstrumentationTest() { - - @Test - fun failure_emptyCapabilities() { - val scanResult = createMockAccessPointWithCapabilities("") - assertEquals(false, wisefy.isNetworkSecure(scanResult)) - } - - @Test - fun failure_nullCapabilities() { - val scanResult = createMockAccessPointWithCapabilities(null) - assertEquals(false, wisefy.isNetworkSecure(scanResult)) - } - - @Test - fun failure_nullScanResult() { - assertEquals(false, wisefy.isNetworkSecure(null)) - } - - @Test - fun success_withEAP() { - val scanResult = createMockAccessPointWithCapabilities(EAP) - assertEquals(true, wisefy.isNetworkSecure(scanResult)) - } - - @Test - fun success_withPSK() { - val scanResult = createMockAccessPointWithCapabilities(PSK) - assertEquals(true, wisefy.isNetworkSecure(scanResult)) - } - - @Test - fun success_withWEP() { - val scanResult = createMockAccessPointWithCapabilities(WEP) - assertEquals(true, wisefy.isNetworkSecure(scanResult)) - } - - @Test - fun success_withWPA() { - val scanResult = createMockAccessPointWithCapabilities(WPA) - assertEquals(true, wisefy.isNetworkSecure(scanResult)) - } - - @Test - fun success_withWPA2() { - val scanResult = createMockAccessPointWithCapabilities(WPA2) - assertEquals(true, wisefy.isNetworkSecure(scanResult)) - } - - @Test - fun failure_otherCapabilities() { - val scanResult = createMockAccessPointWithCapabilities("Other") - assertEquals(false, wisefy.isNetworkSecure(scanResult)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWPA2Test.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWPA2Test.kt deleted file mode 100644 index 4a0b37c5..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWPA2Test.kt +++ /dev/null @@ -1,45 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.constants.WPA2 -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import com.isupatches.wisefy.internal.createMockAccessPointWithCapabilities -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Tests the ability to determine if a network has WPA2 security. - * - * @author Patches - * @since 3.0 - */ -internal class IsNetworkWPA2Test : BaseInstrumentationTest() { - - @Test - fun failure_differentCapability() { - val scanResult = createMockAccessPointWithCapabilities("Other") - assertEquals(false, wisefy.isNetworkWPA2(scanResult)) - } - - @Test - fun failure_emptyCapabilities() { - val scanResult = createMockAccessPointWithCapabilities("") - assertEquals(false, wisefy.isNetworkWPA2(scanResult)) - } - - @Test - fun failure_nullCapabilities() { - val scanResult = createMockAccessPointWithCapabilities(null) - assertEquals(false, wisefy.isNetworkWPA2(scanResult)) - } - - @Test - fun failure_nullScanResult() { - assertEquals(false, wisefy.isNetworkWPA2(null)) - } - - @Test - fun success() { - val scanResult = createMockAccessPointWithCapabilities(WPA2) - assertEquals(true, wisefy.isNetworkWPA2(scanResult)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWPATests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWPATests.kt deleted file mode 100644 index 7516a916..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWPATests.kt +++ /dev/null @@ -1,45 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.constants.WPA -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import com.isupatches.wisefy.internal.createMockAccessPointWithCapabilities -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Tests the ability to determine if a network has WPA security. - * - * @author Patches - * @since 3.0 - */ -internal class IsNetworkWPATests : BaseInstrumentationTest() { - - @Test - fun failure_differentCapability() { - val scanResult = createMockAccessPointWithCapabilities("Other") - assertEquals(false, wisefy.isNetworkWPA(scanResult)) - } - - @Test - fun failure_emptyCapabilities() { - val scanResult = createMockAccessPointWithCapabilities("") - assertEquals(false, wisefy.isNetworkWPA(scanResult)) - } - - @Test - fun failure_nullCapabilities() { - val scanResult = createMockAccessPointWithCapabilities(null) - assertEquals(false, wisefy.isNetworkWPA(scanResult)) - } - - @Test - fun failure_nullScanResult() { - assertEquals(false, wisefy.isNetworkWPA(null)) - } - - @Test - fun success() { - val scanResult = createMockAccessPointWithCapabilities(WPA) - assertEquals(true, wisefy.isNetworkWPA(scanResult)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWepTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWepTests.kt deleted file mode 100644 index 3837a723..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsNetworkWepTests.kt +++ /dev/null @@ -1,45 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.constants.WEP -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import com.isupatches.wisefy.internal.createMockAccessPointWithCapabilities -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Tests the ability to determine if a network has WEP security. - * - * @author Patches - * @since 3.0 - */ -internal class IsNetworkWepTests : BaseInstrumentationTest() { - - @Test - fun failure_differentCapability() { - val scanResult = createMockAccessPointWithCapabilities("Other") - assertEquals(false, wisefy.isNetworkWEP(scanResult)) - } - - @Test - fun failure_emptyCapabilities() { - val scanResult = createMockAccessPointWithCapabilities("") - assertEquals(false, wisefy.isNetworkWEP(scanResult)) - } - - @Test - fun failure_nullCapabilities() { - val scanResult = createMockAccessPointWithCapabilities(null) - assertEquals(false, wisefy.isNetworkWEP(scanResult)) - } - - @Test - fun failure_nullScanResult() { - assertEquals(false, wisefy.isNetworkWEP(null)) - } - - @Test - fun success() { - val scanResult = createMockAccessPointWithCapabilities(WEP) - assertEquals(true, wisefy.isNetworkWEP(scanResult)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsWifiEnabledTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/IsWifiEnabledTests.kt deleted file mode 100644 index c688701b..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/IsWifiEnabledTests.kt +++ /dev/null @@ -1,34 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Tests the ability to determine if wifi is enabled on a device. - * - * @author Patches - * @since 3.0 - */ -internal class IsWifiEnabledTests : BaseInstrumentationTest() { - - @Test - fun failure_prechecks() { - mockWiseFyPrechecksUtil.isWifiEnabled_failure() - assertEquals(false, wisefy.isWifiEnabled()) - } - - @Test - fun failure() { - mockWiseFyPrechecksUtil.isWifiEnabled_success() - mockNetworkUtil.isWifiEnabled(false) - assertEquals(false, wisefy.isWifiEnabled()) - } - - @Test - fun success() { - mockWiseFyPrechecksUtil.isWifiEnabled_success() - mockNetworkUtil.isWifiEnabled(true) - assertEquals(true, wisefy.isWifiEnabled()) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/RemoveNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/RemoveNetworkTests.kt deleted file mode 100644 index 422c6681..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/RemoveNetworkTests.kt +++ /dev/null @@ -1,126 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to remove a network from a device's list of saved networks. - * - * @author Patches - * @since 3.0 - */ -internal class RemoveNetworkTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.removeNetwork_failure() - assertEquals(false, wisefy.removeNetwork(TEST_SSID)) - verificationUtil.didNotTryToRemoveNetwork() - } - - @Test - fun sync_failure_noSavedNetwork() { - mockWiseFyPrechecksUtil.removeNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_null() - assertEquals(false, wisefy.removeNetwork(TEST_SSID)) - verificationUtil.didNotTryToRemoveNetwork() - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.removeNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockNetworkUtil.removeNetwork(false) - assertEquals(false, wisefy.removeNetwork(TEST_SSID)) - verificationUtil.triedToRemoveNetwork() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.removeNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockNetworkUtil.removeNetwork(true) - assertEquals(true, wisefy.removeNetwork(TEST_SSID)) - verificationUtil.triedToRemoveNetwork() - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.removeNetwork_failure() - val mockCallbacks = mock(RemoveNetworkCallbacks::class.java) - wisefy.removeNetwork(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - verificationUtil.didNotTryToRemoveNetwork() - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.removeNetwork_failure() - nullCallbackUtil.callRemoveNetwork(TEST_SSID) - verificationUtil.didNotTryToRemoveNetwork() - } - - @Test - fun async_failure_noSavedNetwork() { - mockWiseFyPrechecksUtil.removeNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_null() - val mockCallbacks = mock(RemoveNetworkCallbacks::class.java) - wisefy.removeNetwork(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).networkNotFoundToRemove() - verificationUtil.didNotTryToRemoveNetwork() - } - - @Test - fun async_failure_noSavedNetwork_nullCallback() { - mockWiseFyPrechecksUtil.removeNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_null() - nullCallbackUtil.callRemoveNetwork(TEST_SSID) - verificationUtil.didNotTryToRemoveNetwork() - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.removeNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockNetworkUtil.removeNetwork(false) - val mockCallbacks = mock(RemoveNetworkCallbacks::class.java) - wisefy.removeNetwork(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).failureRemovingNetwork() - verificationUtil.triedToRemoveNetwork() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.removeNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockNetworkUtil.removeNetwork(false) - nullCallbackUtil.callRemoveNetwork(TEST_SSID) - verificationUtil.triedToRemoveNetwork() - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.removeNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockNetworkUtil.removeNetwork(true) - val mockCallbacks = mock(RemoveNetworkCallbacks::class.java) - wisefy.removeNetwork(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).networkRemoved() - verificationUtil.triedToRemoveNetwork() - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.removeNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - mockNetworkUtil.removeNetwork(true) - nullCallbackUtil.callRemoveNetwork(TEST_SSID) - verificationUtil.triedToRemoveNetwork() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForAccessPointTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForAccessPointTests.kt deleted file mode 100644 index 33c10b8b..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForAccessPointTests.kt +++ /dev/null @@ -1,151 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Used to test the functionality to search for a set of nearby access points. - * - * @author Patches - * @since 3.0 - */ -internal class SearchForAccessPointTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoint_failure() - assertEquals(null, wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, false)) - } - - @Test - fun sync_failure_prechecks_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoint_failure() - assertEquals(null, wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, true)) - } - - @Test - fun sync_failure_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - assertEquals(null, wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, false)) - } - - @Test - fun sync_failure_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - assertEquals(null, wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, true)) - } - - @Test - fun sync_success_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - val accessPoint = mockWiseFySearchUtil.findAccessPointByRegex_success() - assertEquals(accessPoint, wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, false)) - } - - @Test - fun sync_success_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - val accessPoint = mockWiseFySearchUtil.findAccessPointByRegex_success() - assertEquals(accessPoint, wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, true)) - } - - @Test - fun async_failure_prechecks_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoint_failure() - val mockCallbacks = mock(SearchForAccessPointCallbacks::class.java) - wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, false, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_filterDuplicates_false_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoint_failure() - nullCallbackUtil.callSearchForAccessPoint(TEST_SSID, false) - } - - @Test - fun async_failure_prechecks_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoint_failure() - val mockCallbacks = mock(SearchForAccessPointCallbacks::class.java) - wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, true, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_filterDuplicates_true_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoint_failure() - nullCallbackUtil.callSearchForAccessPoint(TEST_SSID, true) - } - - @Test - fun async_failure_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - val mockCallbacks = mock(SearchForAccessPointCallbacks::class.java) - wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, false, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).accessPointNotFound() - } - - @Test - fun async_failure_filterDuplicates_false_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - nullCallbackUtil.callSearchForAccessPoint(TEST_SSID, false) - } - - @Test - fun async_failure_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - val mockCallbacks = mock(SearchForAccessPointCallbacks::class.java) - wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, true, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).accessPointNotFound() - } - - @Test - fun async_failure_filterDuplicates_true_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - nullCallbackUtil.callSearchForAccessPoint(TEST_SSID, true) - } - - @Test - fun async_success_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - val accessPoint = mockWiseFySearchUtil.findAccessPointByRegex_success() - val mockCallbacks = mock(SearchForAccessPointCallbacks::class.java) - wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, false, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).accessPointFound(accessPoint) - } - - @Test - fun async_success_filterDuplicates_false_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - nullCallbackUtil.callSearchForAccessPoint(TEST_SSID, false) - } - - @Test - fun async_success_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - val accessPoint = mockWiseFySearchUtil.findAccessPointByRegex_success() - val mockCallbacks = mock(SearchForAccessPointCallbacks::class.java) - wisefy.searchForAccessPoint(TEST_SSID, TEST_TIMEOUT, true, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).accessPointFound(accessPoint) - } - - @Test - fun async_success_filterDuplicates_true_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoint_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - nullCallbackUtil.callSearchForAccessPoint(TEST_SSID, true) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForAccessPointsTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForAccessPointsTests.kt deleted file mode 100644 index f4caab4e..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForAccessPointsTests.kt +++ /dev/null @@ -1,151 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Used to test the functionality to search for a nearby access point. - * - * @author Patches - * @since 3.0 - */ -internal class SearchForAccessPointsTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoints_failure() - assertEquals(null, wisefy.searchForAccessPoints(TEST_SSID, false)) - } - - @Test - fun sync_failure_prechecks_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoints_failure() - assertEquals(null, wisefy.searchForAccessPoints(TEST_SSID, true)) - } - - @Test - fun sync_failure_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - mockWiseFySearchUtil.findAccessPointsMatchingRegex_null() - assertEquals(null, wisefy.searchForAccessPoints(TEST_SSID, false)) - } - - @Test - fun sync_failure_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - mockWiseFySearchUtil.findAccessPointsMatchingRegex_null() - assertEquals(null, wisefy.searchForAccessPoints(TEST_SSID, true)) - } - - @Test - fun sync_success_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - val accessPoints = mockWiseFySearchUtil.findAccessPointsMatchingRegex_success() - assertEquals(accessPoints, wisefy.searchForAccessPoints(TEST_SSID, false)) - } - - @Test - fun sync_success_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - val accessPoints = mockWiseFySearchUtil.findAccessPointsMatchingRegex_success() - assertEquals(accessPoints, wisefy.searchForAccessPoints(TEST_SSID, true)) - } - - @Test - fun async_failure_prechecks_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoints_failure() - val mockCallbacks = mock(SearchForAccessPointsCallbacks::class.java) - wisefy.searchForAccessPoints(TEST_SSID, false, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_filterDuplicates_false_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoints_failure() - nullCallbackUtil.callSearchForAccessPoints(TEST_SSID, false) - } - - @Test - fun async_failure_prechecks_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoints_failure() - val mockCallbacks = mock(SearchForAccessPointsCallbacks::class.java) - wisefy.searchForAccessPoints(TEST_SSID, true, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_filterDuplicates_true_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoints_failure() - nullCallbackUtil.callSearchForAccessPoints(TEST_SSID, true) - } - - @Test - fun async_failure_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - mockWiseFySearchUtil.findAccessPointsMatchingRegex_null() - val mockCallbacks = mock(SearchForAccessPointsCallbacks::class.java) - wisefy.searchForAccessPoints(TEST_SSID, false, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noAccessPointsFound() - } - - @Test - fun async_failure_filterDuplicates_false_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - mockWiseFySearchUtil.findAccessPointsMatchingRegex_null() - nullCallbackUtil.callSearchForAccessPoints(TEST_SSID, false) - } - - @Test - fun async_failure_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - mockWiseFySearchUtil.findAccessPointsMatchingRegex_null() - val mockCallbacks = mock(SearchForAccessPointsCallbacks::class.java) - wisefy.searchForAccessPoints(TEST_SSID, true, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noAccessPointsFound() - } - - @Test - fun async_failure_filterDuplicates_true_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - mockWiseFySearchUtil.findAccessPointsMatchingRegex_null() - nullCallbackUtil.callSearchForAccessPoints(TEST_SSID, true) - } - - @Test - fun async_success_filterDuplicates_false() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - val accessPoints = mockWiseFySearchUtil.findAccessPointsMatchingRegex_success() - val mockCallbacks = mock(SearchForAccessPointsCallbacks::class.java) - wisefy.searchForAccessPoints(TEST_SSID, false, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).foundAccessPoints(accessPoints) - } - - @Test - fun async_success_filterDuplicates_false_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - mockWiseFySearchUtil.findAccessPointsMatchingRegex_success() - nullCallbackUtil.callSearchForAccessPoints(TEST_SSID, false) - } - - @Test - fun async_success_filterDuplicates_true() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - val accessPoints = mockWiseFySearchUtil.findAccessPointsMatchingRegex_success() - val mockCallbacks = mock(SearchForAccessPointsCallbacks::class.java) - wisefy.searchForAccessPoints(TEST_SSID, true, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).foundAccessPoints(accessPoints) - } - - @Test - fun async_success_filterDuplicates_true_nullCallback() { - mockWiseFyPrechecksUtil.searchForAccessPoints_success() - mockWiseFySearchUtil.findAccessPointsMatchingRegex_success() - nullCallbackUtil.callSearchForAccessPoints(TEST_SSID, true) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSSIDTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSSIDTests.kt deleted file mode 100644 index 9c22c3ea..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSSIDTests.kt +++ /dev/null @@ -1,85 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Used to test the functionality to search for SSIDs nearby. - * - * @author Patches - * @since 3.0 - */ -internal class SearchForSSIDTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_missingPrerequisite() { - mockWiseFyPrechecksUtil.searchForSSID_failure() - assertEquals(null, wisefy.searchForSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.searchForSSID_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - assertEquals(null, wisefy.searchForSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.searchForSSID_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - assertEquals(TEST_SSID, wisefy.searchForSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun async_failure_missingPrerequisite() { - mockWiseFyPrechecksUtil.searchForSSID_failure() - val mockCallbacks = mock(SearchForSSIDCallbacks::class.java) - wisefy.searchForSSID(TEST_SSID, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_missingPrerequisite_nullCallback() { - mockWiseFyPrechecksUtil.searchForSSID_failure() - nullCallbackUtil.callSearchForSSID(TEST_SSID) - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.searchForSSID_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - val mockCallbacks = mock(SearchForSSIDCallbacks::class.java) - wisefy.searchForSSID(TEST_SSID, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).ssidNotFound() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.searchForSSID_success() - mockWiseFySearchUtil.findAccessPointByRegex_null() - nullCallbackUtil.callSearchForSSID(TEST_SSID) - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.searchForSSID_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - val mockCallbacks = mock(SearchForSSIDCallbacks::class.java) - wisefy.searchForSSID(TEST_SSID, TEST_TIMEOUT, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).ssidFound(TEST_SSID) - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.searchForSSID_success() - mockWiseFySearchUtil.findAccessPointByRegex_success() - nullCallbackUtil.callSearchForSSID(TEST_SSID) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSSIDsTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSSIDsTests.kt deleted file mode 100644 index 29ce3a72..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSSIDsTests.kt +++ /dev/null @@ -1,85 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Used to test the functionality to search for SSIDs nearby. - * - * @author Patches - * @since 3.0 - */ -internal class SearchForSSIDsTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_precheck() { - mockWiseFyPrechecksUtil.searchForSSIDs_failure() - assertEquals(null, wisefy.searchForSSIDs(TEST_SSID)) - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.searchForSSIDs_success() - mockWiseFySearchUtil.findSSIDsMatchingRegex_null() - assertEquals(null, wisefy.searchForSSIDs(TEST_SSID)) - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.searchForSSIDs_success() - val ssids = mockWiseFySearchUtil.findSSIDsMatchingRegex_success() - assertEquals(ssids, wisefy.searchForSSIDs(TEST_SSID)) - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.searchForSSIDs_failure() - val mockCallbacks = mock(SearchForSSIDsCallbacks::class.java) - wisefy.searchForSSIDs(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.searchForSSIDs_failure() - nullCallbackUtil.callSearchForSSIDs(TEST_SSID) - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.searchForSSIDs_success() - mockWiseFySearchUtil.findSSIDsMatchingRegex_null() - val mockCallbacks = mock(SearchForSSIDsCallbacks::class.java) - wisefy.searchForSSIDs(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noSSIDsFound() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.searchForSSIDs_success() - mockWiseFySearchUtil.findSSIDsMatchingRegex_null() - nullCallbackUtil.callSearchForSSIDs(TEST_SSID) - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.searchForSSIDs_success() - val ssids = mockWiseFySearchUtil.findSSIDsMatchingRegex_success() - val mockCallbacks = mock(SearchForSSIDsCallbacks::class.java) - wisefy.searchForSSIDs(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedSSIDs(ssids) - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.searchForSSIDs_success() - mockWiseFySearchUtil.findSSIDsMatchingRegex_success() - nullCallbackUtil.callSearchForSSIDs(TEST_SSID) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSavedNetworkTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSavedNetworkTests.kt deleted file mode 100644 index c9006e17..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSavedNetworkTests.kt +++ /dev/null @@ -1,85 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to search for a saved network on a device. - * - * @author Patches - * @since 4.0 - */ -internal class SearchForSavedNetworkTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.searchForSavedNetwork_failure() - assertEquals(null, wisefy.searchForSavedNetwork(TEST_SSID)) - } - - @Test - fun sync_failure() { - mockWiseFyPrechecksUtil.searchForSavedNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_null() - assertEquals(null, wisefy.searchForSavedNetwork(TEST_SSID)) - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.searchForSavedNetwork_success() - val savedNetwork = mockWiseFySearchUtil.findSavedNetworkByRegex_success() - assertEquals(savedNetwork, wisefy.searchForSavedNetwork(TEST_SSID)) - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.searchForSavedNetwork_failure() - val mockCallbacks = mock(SearchForSavedNetworkCallbacks::class.java) - wisefy.searchForSavedNetwork(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.searchForSavedNetwork_failure() - nullCallbackUtil.callSearchForSavedNetwork(TEST_SSID) - } - - @Test - fun async_failure() { - mockWiseFyPrechecksUtil.searchForSavedNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_null() - val mockCallbacks = mock(SearchForSavedNetworkCallbacks::class.java) - wisefy.searchForSavedNetwork(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).savedNetworkNotFound() - } - - @Test - fun async_failure_nullCallback() { - mockWiseFyPrechecksUtil.searchForSavedNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_null() - nullCallbackUtil.callSearchForSavedNetwork(TEST_SSID) - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.searchForSavedNetwork_success() - val savedNetwork = mockWiseFySearchUtil.findSavedNetworkByRegex_success() - val mockCallbacks = mock(SearchForSavedNetworkCallbacks::class.java) - wisefy.searchForSavedNetwork(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedSavedNetwork(savedNetwork) - } - - @Test - fun async_success_nullCallback() { - mockWiseFyPrechecksUtil.searchForSavedNetwork_success() - mockWiseFySearchUtil.findSavedNetworkByRegex_success() - nullCallbackUtil.callSearchForSavedNetwork(TEST_SSID) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSavedNetworksTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSavedNetworksTests.kt deleted file mode 100644 index f554bca4..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/SearchForSavedNetworksTests.kt +++ /dev/null @@ -1,96 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * Tests the ability to search for saved networks on a device. - * - * @author Patches - * @since 4.0 - */ -internal class SearchForSavedNetworksTests : BaseInstrumentationTest() { - - @Test - fun sync_failure_prechecks() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_failure() - assertEquals(null, wisefy.searchForSavedNetworks(TEST_SSID)) - verificationUtil.didNotTryToGetSavedNetworks() - } - - @Test - fun sync_success() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_success() - val savedNetwork = mockWiseFySearchUtil.findSavedNetworksMatchingRegex_success() - assertEquals(savedNetwork, wisefy.searchForSavedNetworks(TEST_SSID)) - } - - @Test - fun async_failure_prechecks() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_failure() - val mockCallbacks = mock(SearchForSavedNetworksCallbacks::class.java) - wisefy.searchForSavedNetworks(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).wisefyFailure(MISSING_PARAMETER) - } - - @Test - fun async_failure_prechecks_nullCallback() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_failure() - nullCallbackUtil.callSearchForSavedNetworks(TEST_SSID) - wisefy.searchForSavedNetworks(TEST_SSID, null) - } - - @Test - fun async_failure_nullSavedNetworks() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_success() - mockWiseFySearchUtil.findSavedNetworksByRegex_null() - val mockCallbacks = mock(SearchForSavedNetworksCallbacks::class.java) - wisefy.searchForSavedNetworks(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noSavedNetworksFound() - } - - @Test - fun async_failure_nullSavedNetworks_nullCallback() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_success() - mockWiseFySearchUtil.findSavedNetworksByRegex_null() - nullCallbackUtil.callSearchForSavedNetworks(TEST_SSID) - } - - @Test - fun async_failure_emptyConfiguredNetworks() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_success() - mockWiseFySearchUtil.findSavedNetworksByRegex_emptyList() - val mockCallbacks = mock(SearchForSavedNetworksCallbacks::class.java) - wisefy.searchForSavedNetworks(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).noSavedNetworksFound() - } - - @Test - fun async_failure_emptyConfiguredNetworks_nullCallback() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_success() - mockWiseFySearchUtil.findSavedNetworksByRegex_emptyList() - nullCallbackUtil.callSearchForSavedNetworks(TEST_SSID) - } - - @Test - fun async_success() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_success() - val savedNetworks = mockWiseFySearchUtil.findSavedNetworksMatchingRegex_success() - val mockCallbacks = mock(SearchForSavedNetworksCallbacks::class.java) - wisefy.searchForSavedNetworks(TEST_SSID, mockCallbacks) - verify(mockCallbacks, timeout(VERIFICATION_SUCCESS_TIMEOUT)).retrievedSavedNetworks(savedNetworks) - } - - @Test - fun async_success_nullCallbacks() { - mockWiseFyPrechecksUtil.searchForSavedNetworks_success() - mockWiseFySearchUtil.findSavedNetworksMatchingRegex_success() - nullCallbackUtil.callSearchForSavedNetworks(TEST_SSID) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/WiseFyPrechecksTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/WiseFyPrechecksTests.kt deleted file mode 100644 index 4b3ec736..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/WiseFyPrechecksTests.kt +++ /dev/null @@ -1,335 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.constants.DEFAULT_PRECHECK_RETURN_CODE -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.constants.NETWORK_ALREADY_CONFIGURED -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Used to test the WiseFyPrechecks class and functionality pertaining to being able to continue - * with processing logic. - * - * @author Patches - * @since 3.0 - */ -internal class WiseFyPrechecksTests : BaseInstrumentationTest() { - - private val wisefyPrechecks: WiseFyPrechecks = WiseFyPrechecksImpl.create(mockWiseFySearch) - - @Test - fun addNetworkPrechecks_failure_nullSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.addNetworkPrechecks(null).code) - } - - @Test - fun addNetworkPrechecks_failure_emptySSID() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.addNetworkPrechecks("").code) - } - - @Test - fun addNetworkPrechecks_failure_networkAlreadySaved() { - mockWiseFySearchUtil.isNetworkASavedConfiguration(true) - assertEquals(NETWORK_ALREADY_CONFIGURED, wisefyPrechecks.addNetworkPrechecks(TEST_SSID).code) - } - - @Test - fun addNetworkPrechecks_success() { - mockWiseFySearchUtil.isNetworkASavedConfiguration(false) - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.addNetworkPrechecks(TEST_SSID).code) - } - - @Test - fun addNetworkPrechecks_withPassword_failure_nullSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.addNetworkPrechecks(null, WEP_NETWORK_PASSWORD).code) - } - - @Test - fun addNetworkPrechecks_withPassword_failure_emptySSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.addNetworkPrechecks("", WEP_NETWORK_PASSWORD).code) - } - - @Test - fun addNetworkPrechecks_withPassword_failure_nullPasswordParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.addNetworkPrechecks(WEP_NETWORK_SSID, null).code) - } - - @Test - fun addNetworkPrechecks_withPassword_failure_emptyPasswordParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.addNetworkPrechecks(WEP_NETWORK_SSID, "").code) - } - - @Test - fun addNetworkPrechecks_withPassword_failure_networkAlreadySaved() { - mockWiseFySearchUtil.isNetworkASavedConfiguration(true) - assertEquals( - NETWORK_ALREADY_CONFIGURED, - wisefyPrechecks.addNetworkPrechecks(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD).code - ) - } - - @Test - fun addNetworkPrechecks_withPassword_success() { - mockWiseFySearchUtil.isNetworkASavedConfiguration(false) - assertEquals( - DEFAULT_PRECHECK_RETURN_CODE, - wisefyPrechecks.addNetworkPrechecks(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD).code - ) - } - - @Test - fun connectToNetworkPrechecks_failure_nullParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.connectToNetworkPrechecks(null).code) - } - - @Test - fun connectToNetworkPrechecks_failure_emptyParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.connectToNetworkPrechecks("").code) - } - - @Test - fun connectToNetworkPrechecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.connectToNetworkPrechecks(TEST_SSID).code) - } - - @Test - fun disableWifiChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.disableWifiChecks().code) - } - - @Test - fun disconnectFromCurrentNetworkChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.disconnectFromCurrentNetworkChecks().code) - } - - @Test - fun enableWifiChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.enableWifiChecks().code) - } - - @Test - fun getCurrentNetworkChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.getCurrentNetworkChecks().code) - } - - @Test - fun getCurrentNetworkInfoChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.getCurrentNetworkInfoChecks().code) - } - - @Test - fun getFrequencyChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.getFrequencyChecks().code) - } - - @Test - fun getIPChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.getIPChecks().code) - } - - @Test - fun getNearbyAccessPointsChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.getNearbyAccessPointsChecks().code) - } - - @Test - fun getRSSIChecks_failure_nullRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.getRSSIChecks(null).code) - } - - @Test - fun getRSSIChecks_failure_emptyRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.getRSSIChecks("").code) - } - - @Test - fun getRSSIChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.getRSSIChecks(TEST_SSID).code) - } - - @Test - fun getSavedNetworkChecks_failure_nullRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.getSavedNetworkChecks(null).code) - } - - @Test - fun getSavedNetworkChecks_failure_emptyRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.getSavedNetworkChecks("").code) - } - - @Test - fun getSavedNetworkChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.getSavedNetworkChecks(TEST_SSID).code) - } - - @Test - fun getSavedNetworksChecks_withRegex_failure_nullRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.getSavedNetworksChecks(null).code) - } - - @Test - fun getSavedNetworksChecks_withRegex_failure_emptyRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.getSavedNetworksChecks("").code) - } - - @Test - fun getSavedNetworksChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.getSavedNetworksChecks().code) - } - - @Test - fun getSavedNetworksChecks_with_regex_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.getSavedNetworksChecks(TEST_SSID).code) - } - - @Test - fun isDeviceConnectedToMobileNetworkChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.isDeviceConnectedToMobileNetworkChecks().code) - } - - @Test - fun isDeviceConnectedToMobileOrWifiNetworkChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.isDeviceConnectedToMobileOrWifiNetworkChecks().code) - } - - @Test - fun isDeviceConnectedToSSIDChecks_failure_nullSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.isDeviceConnectedToSSIDChecks(null).code) - } - - @Test - fun isDeviceConnectedToSSIDChecks_failure_emptySSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.isDeviceConnectedToSSIDChecks("").code) - } - - @Test - fun isDeviceConnectedToSSIDChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.isDeviceConnectedToSSIDChecks(TEST_SSID).code) - } - - @Test - fun isDeviceConnectedToWifiNetworkChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.isDeviceConnectedToWifiNetworkChecks().code) - } - - @Test - fun isDeviceRoamingChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.isDeviceRoamingChecks().code) - } - - @Test - fun isNetworkSavedChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.isNetworkSavedChecks().code) - } - - @Test - fun isWifiEnabledChecks() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.isWifiEnabledChecks().code) - } - - @Test - fun removeNetworkCheck_failure_nullSSIDToRemoveParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.removeNetworkCheck(null).code) - } - - @Test - fun removeNetworkCheck_failure_emptySSIDToRemoveParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.removeNetworkCheck("").code) - } - - @Test - fun removeNetworkCheck_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.removeNetworkCheck(TEST_SSID).code) - } - - @Test - fun searchForAccessPointChecks_failure_nullRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForAccessPointChecks(null).code) - } - - @Test - fun searchForAccessPointChecks_failure_emptyRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForAccessPointChecks("").code) - } - - @Test - fun searchForAccessPointChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.searchForAccessPointChecks(TEST_SSID).code) - } - - @Test - fun searchForAccessPointsChecks_failure_nullRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForAccessPointsChecks(null).code) - } - - @Test - fun searchForAccessPointsChecks_failure_emptyRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForAccessPointsChecks("").code) - } - - @Test - fun searchForAccessPointsChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.searchForAccessPointsChecks(TEST_SSID).code) - } - - @Test - fun searchForSavedNetwork_failure_nullRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForSavedNetworkChecks(null).code) - } - - @Test - fun searchForSavedNetwork_failure_emptyRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForSavedNetworkChecks("").code) - } - - @Test - fun searchForSavedNetworkChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.searchForSavedNetworkChecks(TEST_SSID).code) - } - - @Test - fun searchForSavedNetworksChecks_failure_nullRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForSavedNetworksChecks(null).code) - } - - @Test - fun searchForSavedNetworksChecks_failure_emptyRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForSavedNetworksChecks("").code) - } - - @Test - fun searchForSavedNetworksChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.searchForSavedNetworksChecks(TEST_SSID).code) - } - - @Test - fun searchForSSIDChecks_failure_nullRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForSSIDChecks(null).code) - } - - @Test - fun searchForSSIDChecks_failure_emptyRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForSSIDChecks("").code) - } - - @Test - fun searchForSSIDChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.searchForSSIDChecks(TEST_SSID).code) - } - - @Test - fun searchForSSIDsChecks_failure_nullRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForSSIDsChecks(null).code) - } - - @Test - fun searchForSSIDsChecks_failure_emptyRegexForSSIDParam() { - assertEquals(MISSING_PARAMETER, wisefyPrechecks.searchForSSIDsChecks("").code) - } - - @Test - fun searchForSSIDsChecks_success() { - assertEquals(DEFAULT_PRECHECK_RETURN_CODE, wisefyPrechecks.searchForSSIDsChecks(TEST_SSID).code) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/WiseFyTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/WiseFyTests.kt deleted file mode 100644 index 8b6b44c3..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/WiseFyTests.kt +++ /dev/null @@ -1,37 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNotNull -import org.junit.Test - -/** - * Tests that pertain to the builder for WiseFy or general use. - * - * @author Patches - * @since 3.0 - */ -internal class WiseFyTests : BaseInstrumentationTest() { - - companion object { - private const val EXPECTED_NUMBER_OF_BARS = 4 - private const val EXPECTED_SIGNAL_RESULT = 35 - } - - @Test - fun calculateBars() { - val result = wisefy.calculateBars(TEST_RSSI_LEVEL_HIGH, TEST_NUMBER_OF_BARS) - assertEquals(EXPECTED_NUMBER_OF_BARS.toLong(), result.toLong()) - } - - @Test - fun compareSignalLevel() { - val result = wisefy.compareSignalLevel(TEST_RSSI_LEVEL_HIGH, TEST_RSSI_LEVEL_LOW) - assertEquals(EXPECTED_SIGNAL_RESULT.toLong(), result.toLong()) - } - - @Test - fun getWiseFyLock() { - assertNotNull(wisefy.getWiseFyLock()) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/connection/WiseFyConnectionLegacyTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/connection/WiseFyConnectionLegacyTests.kt deleted file mode 100644 index cbc863ef..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/connection/WiseFyConnectionLegacyTests.kt +++ /dev/null @@ -1,351 +0,0 @@ -package com.isupatches.wisefy.connection - -import com.isupatches.wisefy.TEST_SSID -import com.isupatches.wisefy.TEST_SSID2 -import com.isupatches.wisefy.TEST_TIMEOUT -import com.isupatches.wisefy.constants.MOBILE -import com.isupatches.wisefy.constants.WIFI -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.After -import org.junit.Assert.assertFalse -import org.junit.Assert.assertTrue -import org.junit.Before -import org.junit.Test - -/** - * Used to test the WiseFyConnectionLegacy class and functionality determining various connection states. - * - * @see WiseFyConnectionLegacy - * - * @author Patches - * @since 4.0 - */ -internal class WiseFyConnectionLegacyTests : BaseInstrumentationTest() { - - private val wisefyConnection = WiseFyConnectionLegacy.create( - mockConnectivityManager, - mockWifiManager - ) - - @Before - fun setUp() { - wisefyConnection.init() - } - - @After - override fun tearDown() { - super.tearDown() - wisefyConnection.destroy() - } - - /* - * isCurrentNetworkConnectedToSSID tests - */ - - @Test - fun isCurrentNetworkConnectedToSSID_failure_nullSSIDParam() { - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(null)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_emptySSIDParam() { - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID("")) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_nullConnectionInfo() { - mockNetworkUtil.currentNetwork_null() - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_nullSSID() { - mockNetworkUtil.currentNetwork(null) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = null) - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_emptySSID() { - mockNetworkUtil.currentNetwork("") - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = null) - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_differentSSID() { - mockNetworkUtil.currentNetwork(TEST_SSID2) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = null) - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_notAvailable() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = true, type = null) - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_notAvailableOrConnected() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = false, type = null) - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_notConnected() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = false, type = null) - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_success() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = null) - assertTrue(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - /* - * isNetworkConnected tests - */ - - @Test - fun isNetworkConnected_failure_nullNetworkInfoParam() { - assertFalse(wisefyConnection.isNetworkConnected()) - } - - @Test - fun isNetworkConnected_failure_notAvailable() { - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = true, type = null) - assertFalse(wisefyConnection.isNetworkConnected()) - } - - @Test - fun isNetworkConnected_failure_notAvailableOrConnected() { - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = false, type = null) - assertFalse(wisefyConnection.isNetworkConnected()) - } - - @Test - fun isNetworkConnected_failure_notConnected() { - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = false, type = null) - assertFalse(wisefyConnection.isNetworkConnected()) - } - - @Test - fun isNetworkConnected_success() { - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = null) - assertTrue(wisefyConnection.isNetworkConnected()) - } - - /* - * isDeviceConnectedToMobileNetwork tests - */ - - @Test - fun isDeviceConnectedToMobileNetwork_failure_nullNetworkInfo() { - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_notAvailableOrConnected() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = false, type = MOBILE) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_notAvailable() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = true, type = MOBILE) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_notConnected() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = false, type = MOBILE) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_nullTypeName() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = null) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_differentTypeName() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = WIFI) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_differentTypeName_differentCase() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = "wifi") - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_success() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = MOBILE) - assertTrue(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_success_differentCase() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = "mobile") - assertTrue(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - /* - * isDeviceConnectedToWifiNetwork tests - */ - - @Test - fun isDeviceConnectedToWifiNetwork_failure_nullNetworkInfo() { - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_notAvailableOrConnected() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = false, type = WIFI) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_notAvailable() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = true, type = WIFI) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_notConnected() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = false, type = WIFI) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_nullTypeName() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = null) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_differentTypeName() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = MOBILE) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_differentTypeName_differentCase() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = "mobile") - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_success() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = WIFI) - assertTrue(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_success_differentCase() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = "wifi") - assertTrue(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - /* - * isDeviceRoaming tests - */ - - @Test - fun isDeviceRoaming_failure_nullNetworkInfo() { - assertFalse(wisefyConnection.isDeviceRoaming()) - } - - @Test - fun isDeviceRoaming_failure() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.isDeviceRoaming(false) - assertFalse(wisefyConnection.isDeviceRoaming()) - } - - @Test - fun isDeviceRoaming_success() { - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.isDeviceRoaming(true) - assertTrue(wisefyConnection.isDeviceRoaming()) - } - - /* - * waitToConnectToSSID tests - */ - - @Test - fun waitToConnectToSSID_failure_nullSSIDParam() { - assertFalse(wisefyConnection.waitToConnectToSSID(null, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_nullConnectionInfo() { - mockNetworkUtil.currentNetwork_null() - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_nullSSID() { - mockNetworkUtil.currentNetwork(null) - assertFalse(wisefyConnection.waitToConnectToSSID(null, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_differentSSID() { - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = WIFI) - mockNetworkUtil.currentNetwork(TEST_SSID2) - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_notAvailable() { - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = true, type = WIFI) - mockNetworkUtil.currentNetwork(TEST_SSID) - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_notAvailableOrConnected() { - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = false, isConnected = false, type = WIFI) - mockNetworkUtil.currentNetwork(TEST_SSID) - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_notConnected() { - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = false, type = WIFI) - mockNetworkUtil.currentNetwork(TEST_SSID) - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_success() { - mockNetworkUtil.currentNetworkConnectionStatus(isAvailable = true, isConnected = true, type = WIFI) - mockNetworkUtil.currentNetwork(TEST_SSID) - assertTrue(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/connection/WisefyConnectionSDK23Tests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/connection/WisefyConnectionSDK23Tests.kt deleted file mode 100644 index b1175b09..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/connection/WisefyConnectionSDK23Tests.kt +++ /dev/null @@ -1,511 +0,0 @@ -package com.isupatches.wisefy.connection - -import android.net.Network -import android.os.Build -import com.isupatches.wisefy.TEST_SSID -import com.isupatches.wisefy.TEST_SSID2 -import com.isupatches.wisefy.TEST_TIMEOUT -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import com.isupatches.wisefy.internal.getNetworkCapabilities -import com.isupatches.wisefy.internal.setUpNetworkCapabilities -import org.junit.After -import org.junit.Assert.assertFalse -import org.junit.Assert.assertTrue -import org.junit.Assume.assumeTrue -import org.junit.Before -import org.junit.Test -import org.mockito.Mockito.mock - -/** - * Used to test the WiseFyConnectionSDK23 class and functionality determining various connection states. - * - * @see WiseFyConnectionSDK23 - * - * @author Patches - * @since 4.0 - */ -internal class WisefyConnectionSDK23Tests : BaseInstrumentationTest() { - - private val wisefyConnection by lazy { - WiseFyConnectionSDK23.create(mockConnectivityManager, mockWifiManager) - } - - @Before - fun setUp() { - assumeTrue( - "Can only run on API Level 23 or newer", - Build.VERSION.SDK_INT >= Build.VERSION_CODES.M - ) - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - wisefyConnection.init() - } - } - - @After - override fun tearDown() { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - wisefyConnection.destroy() - } - super.tearDown() - } - - /* - * isCurrentNetworkConnectedToSSID tests - */ - - @Test - fun isCurrentNetworkConnectedToSSID_failure_nullSSIDParam() { - withAvailableNetwork() - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(null)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_nullConnectionInfo() { - withAvailableNetwork() - mockNetworkUtil.currentNetwork_null() - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_nullSSID() { - withAvailableNetwork() - mockNetworkUtil.currentNetwork(null) - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_differentSSID() { - withAvailableNetwork() - mockNetworkUtil.currentNetwork(TEST_SSID2) - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_unavailable() { - mockNetworkUtil.currentNetwork(TEST_SSID) - withUnavailableNetwork() - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_lost() { - mockNetworkUtil.currentNetwork(TEST_SSID) - withLostNetwork() - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_failure_losing() { - mockNetworkUtil.currentNetwork(TEST_SSID) - withLosingNetwork() - assertFalse(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - @Test - fun isCurrentNetworkConnectedToSSID_success() { - mockNetworkUtil.currentNetwork(TEST_SSID) - withAvailableNetwork() - assertTrue(wisefyConnection.isCurrentNetworkConnectedToSSID(TEST_SSID)) - } - - /* - * isNetworkConnected tests - */ - - @Test - fun isNetworkConnected_failure_unavailable() { - withUnavailableNetwork() - assertFalse(wisefyConnection.isNetworkConnected()) - } - - @Test - fun isNetworkConnected_failure_lost() { - withLostNetwork() - assertFalse(wisefyConnection.isNetworkConnected()) - } - - @Test - fun isNetworkConnected_failure_losing() { - withLosingNetwork() - assertFalse(wisefyConnection.isNetworkConnected()) - } - - @Test - fun isNetworkConnected_success() { - withAvailableNetwork() - assertTrue(wisefyConnection.isNetworkConnected()) - } - - /* - * isDeviceConnectedToMobileNetwork tests - */ - - @Test - fun isDeviceConnectedToMobileNetwork_failure_noActiveNetwork() { - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_noCapabilities() { - withAvailableNetwork() - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_differentTransport() { - withAvailableNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_WIFI, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_noInternetCapability() { - withAvailableNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_CELLULAR - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_unavailable() { - withUnavailableNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_CELLULAR, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_lost() { - withLostNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_CELLULAR, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_failure_losing() { - withLosingNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_CELLULAR, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - @Test - fun isDeviceConnectedToMobileNetwork_success() { - withAvailableNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_CELLULAR, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertTrue(wisefyConnection.isDeviceConnectedToMobileNetwork()) - } - - /* - * isDeviceConnectedToWifiNetwork tests - */ - - @Test - fun isDeviceConnectedToWifiNetwork_failure_noActiveNetwork() { - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_noCapabilities() { - withAvailableNetwork() - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_differentTransport() { - withAvailableNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_CELLULAR, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_noInternetCapability() { - withAvailableNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_WIFI - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_unavailable() { - withUnavailableNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_WIFI, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_lost() { - withLostNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_WIFI, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_failure_losing() { - withLosingNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_WIFI, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertFalse(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_success() { - withAvailableNetwork() - val networkCapabilities = getNetworkCapabilities( - android.net.NetworkCapabilities.TRANSPORT_WIFI, - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - assertTrue(wisefyConnection.isDeviceConnectedToWifiNetwork()) - } - - /* - * isDeviceRoaming tests - */ - - @Test - fun isDeviceRoaming_failure_nullNetworkInfo() { - assumeTrue( - "Can only run on API's before Level 28", - Build.VERSION.SDK_INT < Build.VERSION_CODES.P - ) - assertFalse(wisefyConnection.isDeviceRoaming()) - } - - @Test - fun isDeviceRoaming_failure() { - assumeTrue( - "Can only run on API's before Level 28", - Build.VERSION.SDK_INT < Build.VERSION_CODES.P - ) - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.isDeviceRoaming(false) - assertFalse(wisefyConnection.isDeviceRoaming()) - } - - @Test - fun isDeviceRoaming_success() { - assumeTrue( - "Can only run on API's before Level 28", - Build.VERSION.SDK_INT < Build.VERSION_CODES.P - ) - mockNetworkUtil.currentNetwork(TEST_SSID) - mockNetworkUtil.isDeviceRoaming(true) - assertTrue(wisefyConnection.isDeviceRoaming()) - } - - @Test - fun isDeviceRoaming_sdk28_failure_nullNetwork() { - assumeTrue( - "Can only run on API Level 28 or newer", - Build.VERSION.SDK_INT >= Build.VERSION_CODES.P - ) - mockNetworkUtil.isDeviceRoaming(false) - assertTrue(wisefyConnection.isDeviceRoaming()) - } - - @Test - fun isDeviceRoaming_sdk28_failure_missingNotRoamingCapability() { - assumeTrue( - "Can only run on API Level 28 or newer", - Build.VERSION.SDK_INT >= Build.VERSION_CODES.P - ) - val networkCapabilities = android.net.NetworkCapabilities(null) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - mockNetworkUtil.isDeviceRoaming(false) - assertTrue(wisefyConnection.isDeviceRoaming()) - } - - @Test - fun isDeviceRoaming_sdk28_success() { - assumeTrue( - "Can only run on API Level 28 or newer", - Build.VERSION.SDK_INT >= Build.VERSION_CODES.P - ) - val networkCapabilities = getNetworkCapabilities( - arrayOf(android.net.NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) - ) - setUpNetworkCapabilities( - wisefyConnection as WiseFyConnectionSDK23, - mockConnectivityManager, - networkCapabilities - ) - mockNetworkUtil.isDeviceRoaming(true) - assertFalse(wisefyConnection.isDeviceRoaming()) - } - - /* - * waitToConnectToSSID tests - */ - - @Test - fun waitToConnectToSSID_failure_nullSSIDParam() { - withAvailableNetwork() - assertFalse(wisefyConnection.waitToConnectToSSID(null, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_nullConnectionInfo() { - withAvailableNetwork() - mockNetworkUtil.currentNetwork_null() - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_nullSSID() { - withAvailableNetwork() - mockNetworkUtil.currentNetwork(null) - assertFalse(wisefyConnection.waitToConnectToSSID(null, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_differentSSID() { - withAvailableNetwork() - mockNetworkUtil.currentNetwork(TEST_SSID2) - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_unavailable() { - withUnavailableNetwork() - mockNetworkUtil.currentNetwork(TEST_SSID) - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_losing() { - withLosingNetwork() - mockNetworkUtil.currentNetwork(TEST_SSID) - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_failure_lost() { - withLostNetwork() - mockNetworkUtil.currentNetwork(TEST_SSID) - assertFalse(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - @Test - fun waitToConnectToSSID_success() { - withAvailableNetwork() - mockNetworkUtil.currentNetwork(TEST_SSID) - assertTrue(wisefyConnection.waitToConnectToSSID(TEST_SSID, TEST_TIMEOUT)) - } - - /* - * Connection status helpers - */ - - private fun withAvailableNetwork() { - (wisefyConnection as WiseFyConnectionSDK23).networkChangeCallbacks.onAvailable( - mock(Network::class.java) - ) - } - - private fun withLosingNetwork() { - (wisefyConnection as WiseFyConnectionSDK23).networkChangeCallbacks.onLosing( - mock(Network::class.java), - 1 - ) - } - - private fun withLostNetwork() { - (wisefyConnection as WiseFyConnectionSDK23).networkChangeCallbacks.onLost( - mock(Network::class.java) - ) - } - - private fun withUnavailableNetwork() { - (wisefyConnection as WiseFyConnectionSDK23).networkChangeCallbacks.onUnavailable() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/GeneratorUtil.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/GeneratorUtil.kt deleted file mode 100644 index 8b236b73..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/GeneratorUtil.kt +++ /dev/null @@ -1,106 +0,0 @@ -package com.isupatches.wisefy.internal - -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import org.mockito.Mockito.mock - -/** - * Creates a mock of a nearby access point for tests with specified security capabilities. - * - * @param capabilities The security attributes you want the access point to have - * - * @return ScanResult - A mock access point with the given capabilities - * - * @see ScanResult - * - * @author Patches - * @since 3.0 - */ -internal fun createMockAccessPointWithCapabilities(capabilities: String?): ScanResult { - val scanResult = mock(ScanResult::class.java) - scanResult.capabilities = capabilities - return scanResult -} - -/** - * Mocks two nearby access points given ssids and rssi levels. - * - * @param ssid1 - SSID of access points 1 - * @param rssi1 - RSSI level of access point 1 - * @param ssid2 - SSID of access point 2 - * @param rssi2 - RSSI level of access point 2 - * - * @return List of ScanResults - The mocked access points - * - * @see ScanResult - * - * @author Patches - * @since 3.0 - */ -internal fun createMockAccessPointList( - ssid1: String, - rssi1: Int, - ssid2: String, - rssi2: Int -): List { - val accessPoints = ArrayList() - accessPoints.add(createMockAccessPointWithSSIDAndRSSI(ssid1, rssi1)) - accessPoints.add(createMockAccessPointWithSSIDAndRSSI(ssid2, rssi2)) - return accessPoints -} - -/** - * Creates a mock of a nearby access point for tests with a specified SSID. - * - * @param ssid Tne ssid for the access point - * - * @return ScanResult - A mock object representing a nearby access point - * - * @see ScanResult - * - * @author Patches - * @since 3.0 - */ -internal fun createMockAccessPointWithSSID(ssid: String?): ScanResult { - val scanResult = mock(ScanResult::class.java) - scanResult.SSID = ssid - return scanResult -} - -/** - * Creates a mock of a nearby access point. - * - * @param ssid Tne ssid for the access point - * @param rssi The rssi level for the access point - * - * @return ScanResult - A mock object representing a nearby access point - * - * @see ScanResult - * - * @author Patches - * @since 3.0 - */ -internal fun createMockAccessPointWithSSIDAndRSSI(ssid: String, rssi: Int): ScanResult { - val scanResult = mock(ScanResult::class.java) - scanResult.SSID = ssid - scanResult.level = rssi - return scanResult -} - -/** - * Creates a saved network configuration. - * - * @param ssid The ssid for the saved network - * - * @return WifiConfiguration - Saved network - * - * @see WifiConfiguration - * - * @author Patches - * @since 3.0 - */ -internal fun createSavedNetwork(ssid: String?): WifiConfiguration { - val wiFiConfiguration = WifiConfiguration() - wiFiConfiguration.SSID = ssid - return wiFiConfiguration -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/NetworkCapabilitiesUtil.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/NetworkCapabilitiesUtil.kt deleted file mode 100644 index a38147aa..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/NetworkCapabilitiesUtil.kt +++ /dev/null @@ -1,113 +0,0 @@ -package com.isupatches.wisefy.internal - -import android.net.ConnectivityManager -import android.net.Network -import android.net.NetworkCapabilities -import com.isupatches.wisefy.connection.WiseFyConnectionSDK23 -import org.mockito.Mockito.`when` -import org.mockito.Mockito.mock - -/** - * To create a NetworkCapabilities instance with a specified transport type. - * - * @param transportType The transport type for the NetworkCapabilities instance - * - * @return NetworkCapabilities - The network capabilities instance with a given transport type - * - * @see NetworkCapabilities - * - * @author Patches - * @since 3.0 - */ -internal fun getNetworkCapabilities(transportType: Int): NetworkCapabilities { - val networkCapabilities = NetworkCapabilities(null) - ReflectionHelpers.callInstanceMethod( - networkCapabilities, - "addTransportType", - ReflectionHelpers.ClassParameter.from(Int::class.java, transportType) - ) - return networkCapabilities -} - -/** - * To create a NetworkCapabilities instance with a specified set of capabilities. - * - * @param capabilities The int array of capabilities for the NetworkCapabilities instance - * - * @return NetworkCapabilities - The network capabilities instance with a given transport type - * - * @see NetworkCapabilities - * - * @author Patches - * @since 3.0 - */ -internal fun getNetworkCapabilities(capabilities: Array): NetworkCapabilities { - val networkCapabilities = NetworkCapabilities(null) - for (capability in capabilities) { - ReflectionHelpers.callInstanceMethod( - networkCapabilities, - "addCapability", - ReflectionHelpers.ClassParameter.from(Int::class.java, capability) - ) - } - return networkCapabilities -} - -/** - * To create a NetworkCapabilities instance with a specified transport type and capabilities. - * - * @param transportType The transport type for the NetworkCapabilities instance - * @param capabilities The int array of capabilities for the NetworkCapabilities instance - * - * @return NetworkCapabilities - The network capabilities instance with a given transport type and - * set of capabilities - * - * @see NetworkCapabilities - * - * @author Patches - * @since 3.0 - */ -internal fun getNetworkCapabilities(transportType: Int, capabilities: Array): NetworkCapabilities { - val networkCapabilities = NetworkCapabilities(null) - ReflectionHelpers.callInstanceMethod( - networkCapabilities, - "addTransportType", - ReflectionHelpers.ClassParameter.from(Int::class.java, transportType) - ) - for (capability in capabilities) { - ReflectionHelpers.callInstanceMethod( - networkCapabilities, - "addCapability", - ReflectionHelpers.ClassParameter.from(Int::class.java, capability) - ) - } - return networkCapabilities -} - -/** - * To setup the network capabilities for WisefyConnectionSDK23Tests. - * - * @param wisefyConnection The wisefy connection SDK instance - * @param mockConnectivityManager The mock connectivity manager instance - * @param networkCapabilities The capabilities desired for test - * - * @see ConnectivityManager.getActiveNetwork - * @see WiseFyConnectionSDK23.networkChangeCallbacks - * @see NetworkCapabilities - * - * @author Patches - * @since 4.0 - */ -internal fun setUpNetworkCapabilities( - wisefyConnection: WiseFyConnectionSDK23, - mockConnectivityManager: ConnectivityManager, - networkCapabilities: NetworkCapabilities -) { - val network = mock(Network::class.java) - `when`(mockConnectivityManager.activeNetwork).thenReturn(network) - `when`(mockConnectivityManager.getNetworkCapabilities(network)).thenReturn(networkCapabilities) - wisefyConnection.networkChangeCallbacks.onCapabilitiesChanged( - network, - networkCapabilities - ) -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/NullCallbackUtil.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/NullCallbackUtil.kt deleted file mode 100644 index 0431e51d..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/NullCallbackUtil.kt +++ /dev/null @@ -1,398 +0,0 @@ -package com.isupatches.wisefy.internal - -import android.net.wifi.WifiInfo -import com.isupatches.wisefy.TEST_SSID -import com.isupatches.wisefy.TEST_TIMEOUT -import com.isupatches.wisefy.WiseFy -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import org.junit.Assert.fail - -/** - * A helper class to call methods in WiseFy with no callbacks. - * - * @author Patches - * @since 3.0 - */ -@Suppress("TooGenericExceptionCaught") -internal class NullCallbackUtil internal constructor(private val wisefy: WiseFy) { - - /** - * To try to adding an open network with null callbacks. - * - * @param ssid The ssid to use when adding - * - * @author Patches - * @since 3.0 - */ - fun callAddOpenNetwork(ssid: String?) { - try { - wisefy.addOpenNetwork(ssid, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try adding a WEP network with null callbacks. - * - * @param ssid The ssid to use when adding - * @param password The password to use when adding - * - * @author Patches - * @since 3.0 - */ - @Suppress("deprecation") - fun callAddWEPNetwork(ssid: String?, password: String?) { - try { - wisefy.addWEPNetwork(ssid, password, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try adding a WPA2 network with null callbacks. - * - * @param ssid The ssid to use when adding - * @param password The password to use when adding - * - * @author Patches - * @since 3.0 - */ - fun callAddWPA2Network(ssid: String?, password: String?) { - try { - wisefy.addWPA2Network(ssid, password, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to connect to a network with null callbacks. - * - * @param ssid The ssid to use when connecting - * - * @see WiseFy.connectToNetwork - * - * @author Patches - * @since 3.0 - */ - fun callConnectToNetwork(ssid: String?) { - try { - wisefy.connectToNetwork(ssid, TEST_TIMEOUT, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try disable wifi with null callbacks. - * - * @see WiseFy.disableWifi - * - * @author Patches - * @since 3.0 - */ - fun callDisableWifi() { - try { - wisefy.disableWifi(null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to disconnect from the current network with null callbacks. - * - * @see WiseFy.disconnectFromCurrentNetwork - * - * @author Patches - * @since 3.0 - */ - fun callDisconnectFromCurrentNetwork() { - try { - wisefy.disconnectFromCurrentNetwork(null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to enable wifi with null callbacks. - * - * @see WiseFy.enableWifi - * - * @author Patches - * @since 3.0 - */ - fun callEnableWifi() { - try { - wisefy.enableWifi(null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to get the current network with null callbacks. - * - * @see WiseFy.getCurrentNetwork - * - * @author Patches - * @since 3.0 - */ - fun callGetCurrentNetwork() { - try { - wisefy.getCurrentNetwork(null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to get the current network info with null callbacks. - * - * @see WiseFy.getCurrentNetworkInfo - * - * @author Patches - * @since 3.0 - */ - fun callGetCurrentNetworkInfo() { - try { - wisefy.getCurrentNetworkInfo(null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try and get the frequency of a network with null callbacks. - * - * @see WiseFy.getFrequency - * - * @author Patches - * @since 3.0 - */ - fun callGetFrequency() { - try { - wisefy.getFrequency(null as GetFrequencyCallbacks?) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try and get the frequency of a network with null callbacks. - * - * @param network The network to use when trying - * - * @see WiseFy.getFrequency - * - * @author Patches - * @since 3.0 - */ - fun callGetFrequency_networkProvided(network: WifiInfo?) { - try { - wisefy.getFrequency(network, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try and get the IP of a device with null callbacks. - * - * @see WiseFy.getIP - * - * @author Patches - * @since 3.0 - */ - fun callGetIP() { - try { - wisefy.getIP(null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to get nearby access points with null callbacks. - * - * @param filterDuplicates The filterDuplicates param to use when trying. - * - * @see WiseFy.getCurrentNetwork - * - * @author Patches - * @since 3.0 - */ - fun callGetNearbyAccessPoints(filterDuplicates: Boolean) { - try { - wisefy.getNearbyAccessPoints(filterDuplicates, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to get the RSSI level of a nearby access point with null callbacks. - * - * @param takeHighest The takeHighest param to use when trying - * - * @see WiseFy.getRSSI - * - * @author Patches - * @since 3.0 - */ - fun callGetRSSI(takeHighest: Boolean) { - try { - wisefy.getRSSI(TEST_SSID, takeHighest, TEST_TIMEOUT, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try getting all nearby access points with a null callback. - * - * @see WiseFy.getSavedNetworks - * - * @author Patches - * @since 3.0 - */ - fun callGetSavedNetworks() { - try { - wisefy.getSavedNetworks(null as GetSavedNetworksCallbacks?) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to remove a network with null callbacks. - * - * @param ssid The ssid to use while trying. - * - * @see WiseFy.removeNetwork - * - * @author Patches - * @since 3.0 - */ - fun callRemoveNetwork(ssid: String?) { - try { - wisefy.removeNetwork(ssid, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try and search for a nearby access point with null callbacks. - * - * @param ssid The ssid to use when trying - * @param filterDuplicates The filter duplicate param to use when trying - * - * @see WiseFy.searchForAccessPoint - * - * @author Patches - * @since 3.0 - */ - fun callSearchForAccessPoint(ssid: String?, filterDuplicates: Boolean) { - try { - wisefy.searchForAccessPoint(ssid, TEST_TIMEOUT, filterDuplicates, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try and search for nearby access points with null callbacks. - * - * @param regexForSSID The regex to use when trying - * @param filterDuplicates The filter duplicates param to use when trying - * - * @see WiseFy.searchForAccessPoints - * - * @author Patches - * @since 3.0 - */ - fun callSearchForAccessPoints(regexForSSID: String, filterDuplicates: Boolean) { - try { - wisefy.searchForAccessPoints(regexForSSID, filterDuplicates, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to retrieve a saved network with a given regex. - * - * @param regexForSSID The regex to use while trying - * - * @see WiseFy.searchForSavedNetwork - * - * @author Patches - * @since 4.0 - */ - fun callSearchForSavedNetwork(regexForSSID: String?) { - try { - wisefy.searchForSavedNetwork(regexForSSID, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try to get all nearby access points matching a given regex with null callbacks. - * - * @param regexForSSID The ssid to use while trying - * - * @see WiseFy.searchForSavedNetworks - * - * @author Patches - * @since 4.0 - */ - fun callSearchForSavedNetworks(regexForSSID: String?) { - try { - wisefy.searchForSavedNetworks(regexForSSID, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try and search for a nearby SSID given a regex with null callbacks. - * - * @param regexForSSID The regex to use when trying - * - * @see WiseFy.searchForSSID - * - * @author Patches - * @since 3.0 - */ - fun callSearchForSSID(regexForSSID: String?) { - try { - wisefy.searchForSSID(regexForSSID, TEST_TIMEOUT, null) - } catch (npe: NullPointerException) { - fail() - } - } - - /** - * To try and search for nearby SSIDs that match a given regex with null callbacks. - * - * @param regexForSSID The regex to use when trying - * - * @see WiseFy.searchForSSIDs - * - * @author Patches - * @since 3.0 - */ - fun callSearchForSSIDs(regexForSSID: String?) { - try { - wisefy.searchForSSIDs(regexForSSID, null) - } catch (npe: NullPointerException) { - fail() - } - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/ReflectionHelpers.java b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/ReflectionHelpers.java deleted file mode 100644 index d2d50558..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/ReflectionHelpers.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * This logic/class was borrowed from Robolectric's ReflectionHelpers.java. - * - * https://github.com/robolectric/robolectric/blob/master/shadowapi/src/main/java/org/robolectric/util/ - */ -package com.isupatches.wisefy.internal; - -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; - -/** Collection of helper methods for calling methods and accessing fields reflectively. */ -@SuppressWarnings(value = {"unchecked", "TypeParameterUnusedInFormals", "NewApi"}) -public class ReflectionHelpers { - - /** - * Reflectively call an instance method on an object. - * - * @param instance Target object. - * @param methodName The method name to call. - * @param classParameters Array of parameter types and values. - * @param The return type. - * @return The return value of the method. - */ - public static R callInstanceMethod( - final Object instance, - final String methodName, - ClassParameter... classParameters - ) { - try { - final Class[] classes = ClassParameter.getClasses(classParameters); - final Object[] values = ClassParameter.getValues(classParameters); - - return traverseClassHierarchy(instance.getClass(), NoSuchMethodException.class, traversalClass -> { - Method declaredMethod = traversalClass.getDeclaredMethod(methodName, classes); - declaredMethod.setAccessible(true); - return (R) declaredMethod.invoke(instance, values); - }); - } catch (InvocationTargetException e) { - if (e.getTargetException() instanceof RuntimeException) { - throw (RuntimeException) e.getTargetException(); - } - if (e.getTargetException() instanceof Error) { - throw (Error) e.getTargetException(); - } - throw new RuntimeException(e.getTargetException()); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - - private static R traverseClassHierarchy( - Class targetClass, - Class exceptionClass, - InsideTraversal insideTraversal - ) throws Exception { - Class hierarchyTraversalClass = targetClass; - while (true) { - try { - return insideTraversal.run(hierarchyTraversalClass); - } catch (Exception e) { - if (!exceptionClass.isInstance(e)) { - throw e; - } - hierarchyTraversalClass = hierarchyTraversalClass.getSuperclass(); - if (hierarchyTraversalClass == null) { - throw new RuntimeException(e); - } - } - } - } - - private interface InsideTraversal { - R run(Class traversalClass) throws Exception; - } - - /** - * Typed parameter used with reflective method calls. - * - * @param The value of the method parameter. - */ - public static class ClassParameter { - final Class clazz; - final V val; - - ClassParameter(Class clazz, V val) { - this.clazz = clazz; - this.val = val; - } - - public static ClassParameter from(Class clazz, V val) { - return new ClassParameter<>(clazz, val); - } - - static Class[] getClasses(ClassParameter... classParameters) { - Class[] classes = new Class[classParameters.length]; - for (int i = 0; i < classParameters.length; i++) { - Class paramClass = classParameters[i].clazz; - classes[i] = paramClass; - } - return classes; - } - - static Object[] getValues(ClassParameter... classParameters) { - Object[] values = new Object[classParameters.length]; - for (int i = 0; i < classParameters.length; i++) { - Object paramValue = classParameters[i].val; - values[i] = paramValue; - } - return values; - } - } -} \ No newline at end of file diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/TestWiseFyLogger.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/TestWiseFyLogger.kt deleted file mode 100644 index b6b908e1..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/TestWiseFyLogger.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.isupatches.wisefy.internal - -import com.isupatches.wisefy.logging.WiseFyLogger - -class TestWiseFyLogger : WiseFyLogger { - - override fun i(tag: String, message: String, vararg args: Any) { - // No-op - } - - override fun v(tag: String, message: String, vararg args: Any) { - // No-op - } - - override fun d(tag: String, message: String, vararg args: Any) { - // No-op - } - - override fun w(tag: String, message: String, vararg args: Any) { - // No-op - } - - override fun e(tag: String, message: String, vararg args: Any) { - // No-op - } - - override fun e(tag: String, throwable: Throwable, message: String, vararg args: Any) { - // No-op - } - - override fun wtf(tag: String, message: String, vararg args: Any) { - // No-op - } - - override fun wtf(tag: String, throwable: Throwable, message: String, vararg args: Any) { - // No-op - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/VerificationUtil.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/VerificationUtil.kt deleted file mode 100644 index 438484a4..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/VerificationUtil.kt +++ /dev/null @@ -1,296 +0,0 @@ -package com.isupatches.wisefy.internal - -import android.net.ConnectivityManager -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiManager -import com.isupatches.wisefy.VERIFICATION_FAILURE_TIMEOUT -import com.isupatches.wisefy.VERIFICATION_SUCCESS_TIMEOUT -import org.mockito.ArgumentMatchers.any -import org.mockito.ArgumentMatchers.anyBoolean -import org.mockito.ArgumentMatchers.anyInt -import org.mockito.Mockito.after -import org.mockito.Mockito.atLeastOnce -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -/** - * A helper class with common logic to verify operations with WifiManager. - * - * @see WifiManager - * - * @author Patches - * @since 3.0 - */ -internal class VerificationUtil internal constructor( - private val mockConnectivityManager: ConnectivityManager, - private val mockWifiManager: WifiManager -) { - - /* - * Anti-methods (checking for things TO NOT happen) - */ - - /** - * To verify no attempt to add a network was made. - * - * @see WifiManager.addNetwork - * - * @author Patches - * @since 3.0 - */ - fun didNoTryToAddNetwork() { - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).addNetwork( - any(WifiConfiguration::class.java) - ) - } - - /** - * To verify no attempt attempt to connect to a network was made. - * - * @see WifiManager.enableNetwork - * @see WifiManager.reconnect - * - * @author Patches - * @since 3.0 - */ - fun didNotTryToConnectToNetwork() { - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).enableNetwork(anyInt(), anyBoolean()) - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).reconnect() - } - - /** - * To verify no attempt to disable wifi was made. - * - * @see WifiManager.setWifiEnabled - * - * @author Patches - * @since 3.0 - */ - fun didNotTryToDisableWifi() { - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).isWifiEnabled = false - } - - /** - * To verify no attempt to disconnect the device from it's current network was made. - * - * @see WifiManager.disconnect - * - * @author Patches - * @since 3.0 - */ - fun didNotTryToDisconnectFromCurrentNetwork() { - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).disconnect() - } - - /** - * To verify no attempt to enable wifi was made. - * - * @see WifiManager.setWifiEnabled - * - * @author Patches - * @since 3.0 - */ - fun didNotTryToEnableWifi() { - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).isWifiEnabled = true - } - - /** - * To verify no attempt to get the device's current network was made. - * - * @see WifiManager.getConnectionInfo - * - * @author Patches - * @since 3.0 - */ - fun didNotTryToGetCurrentNetwork() { - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).connectionInfo - } - - /** - * To verify no attempt to get the device's current network info was made. - * - * @see ConnectivityManager.getActiveNetworkInfo - * - * @author Patches - * @since 3.0 - */ - fun didNotTryToGetCurrentNetworkInfo() { - verify(mockConnectivityManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).activeNetworkInfo - } - - /** - * To verify no attempt to get saved networks was made. - * - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - fun didNotTryToGetSavedNetworks() { - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).configuredNetworks - } - - /** - * To verify no attempt to scan for nearby access points was made. - * - * @see WifiManager.startScan - * - * @author Patches - * @since 3.0 - */ - @Suppress("deprecation") - fun didNotTryToScanForAccessPoints() { - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).startScan() - } - - /** - * To verify no attempt to remove a network was made. - * - * @see WifiManager.removeNetwork - * - * @author Patches - * @since 3.0 - */ - fun didNotTryToRemoveNetwork() { - verify(mockWifiManager, after(VERIFICATION_FAILURE_TIMEOUT).times(0)).removeNetwork(anyInt()) - } - - /* - * Positive-methods (checking for things TO happen) - */ - - /** - * To verify no attempt to add a network was made. - * - * @see WifiManager.addNetwork - * - * @author Patches - * @since 3.0 - */ - fun triedToAddNetwork() { - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).addNetwork(any(WifiConfiguration::class.java)) - } - - /** - * To verify an attempt to connect to a network was made. - * - * @see WifiManager.enableNetwork - * @see WifiManager.reconnect - * - * @author Patches - * @since 3.0 - */ - fun triedToConnectToNetwork() { - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).enableNetwork(anyInt(), anyBoolean()) - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).reconnect() - } - - /** - * To verify an attempt to disable wifi was made. - * - * @see WifiManager.setWifiEnabled - * - * @author Patches - * @since 3.0 - */ - fun triedToDisableWifi() { - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).isWifiEnabled = false - } - - /** - * To verify an attempt to disconnect the device from it's current network was made. - * - * @see WifiManager.disconnect - * - * @author Patches - * @since 3.0 - */ - fun triedToDisconnectFromCurrentNetwork() { - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).disconnect() - } - - /** - * To verify an attempt to enable wifi was made. - * - * @see WifiManager.setWifiEnabled - * - * @author Patches - * @since 3.0 - */ - fun triedToEnableWifi() { - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).isWifiEnabled = true - } - - /** - * To verify an attempt to get the device's current network was made. - * - * @see WifiManager.getConnectionInfo - * - * @author Patches - * @since 3.0 - */ - fun triedToGetCurrentNetwork() { - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).connectionInfo - } - - /** - * To verify an attempt to get the device's current network info was made. - * - * @see ConnectivityManager.getActiveNetworkInfo - * - * @author Patches - * @since 3.0 - */ - fun triedToGetCurrentNetworkInfo() { - verify(mockConnectivityManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).activeNetworkInfo - } - - /** - * To verify an attempt to get nearby access points was made. - * - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - fun triedToGetNearbyAccessPoints() { - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).scanResults - } - - /** - * To verify an attempt to get saved networks was made. - * - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - fun triedToGetSavedNetworks() { - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).configuredNetworks - } - - /** - * To verify an attempt to remove a network was made. - * - * @see WifiManager.removeNetwork - * - * @author Patches - * @since 3.0 - */ - fun triedToRemoveNetwork() { - verify(mockWifiManager, timeout(VERIFICATION_SUCCESS_TIMEOUT)).removeNetwork(anyInt()) - } - - /** - * To verify an attempt to scan for nearby access points was made. - * - * @see WifiManager.removeNetwork - * - * @author Patches - * @since 3.0 - */ - @Suppress("deprecation") - fun triedToScanForAccessPoints() { - verify(mockWifiManager, atLeastOnce()).startScan() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/base/BaseInstrumentationTest.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/base/BaseInstrumentationTest.kt deleted file mode 100644 index c34c1519..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/base/BaseInstrumentationTest.kt +++ /dev/null @@ -1,89 +0,0 @@ -package com.isupatches.wisefy.internal.base - -import android.net.ConnectivityManager -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiManager -import androidx.test.platform.app.InstrumentationRegistry -import com.isupatches.wisefy.VERIFICATION_SUCCESS_TIMEOUT -import com.isupatches.wisefy.WiseFy -import com.isupatches.wisefy.WiseFyPrechecks -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefy.connection.WiseFyConnection -import com.isupatches.wisefy.internal.NullCallbackUtil -import com.isupatches.wisefy.internal.TestWiseFyLogger -import com.isupatches.wisefy.internal.VerificationUtil -import com.isupatches.wisefy.internal.mock.MockNetworkUtil -import com.isupatches.wisefy.internal.mock.MockWiseFyConnectionUtil -import com.isupatches.wisefy.internal.mock.MockWiseFyPrechecksUtil -import com.isupatches.wisefy.internal.mock.MockWiseFySearchUtil -import com.isupatches.wisefy.search.WiseFySearch -import org.junit.After -import org.mockito.ArgumentMatchers.anyInt -import org.mockito.Mockito -import org.mockito.Mockito.mock -import org.mockito.Mockito.timeout -import org.mockito.Mockito.verify - -internal abstract class BaseInstrumentationTest { - - protected val wisefy: WiseFy - protected val mockWiseFySearch: WiseFySearch - - protected val mockConnectivityManager: ConnectivityManager - protected val mockWifiManager: WifiManager - - protected val mockNetworkUtil: MockNetworkUtil - protected val mockWiseFyConnectionUtil: MockWiseFyConnectionUtil - protected val mockWiseFyPrechecksUtil: MockWiseFyPrechecksUtil - protected val mockWiseFySearchUtil: MockWiseFySearchUtil - - protected val nullCallbackUtil: NullCallbackUtil - - protected val verificationUtil: VerificationUtil - - /** - * Constructor. - */ - init { - val mockWiseFyConnection = mock(WiseFyConnection::class.java) - val mockWiseFyPrechecks = mock(WiseFyPrechecks::class.java) - mockWiseFySearch = mock(WiseFySearch::class.java) - - mockWifiManager = mock(WifiManager::class.java) - mockConnectivityManager = mock(ConnectivityManager::class.java) - - wisefy = WiseFy.Brains(InstrumentationRegistry.getInstrumentation().targetContext, TestWiseFyLogger()) - .customConnectivityManager(mockConnectivityManager) - .customWifiManager(mockWifiManager) - .customWiseFyConnection(mockWiseFyConnection) - .customWiseFyPrechecks(mockWiseFyPrechecks) - .customWiseFySearch(mockWiseFySearch) - .getSmarts() - - wisefy.setupWiseFyThread(true) - - mockNetworkUtil = MockNetworkUtil(mockConnectivityManager, mockWifiManager) - - mockWiseFyConnectionUtil = MockWiseFyConnectionUtil(mockWiseFyConnection) - mockWiseFyPrechecksUtil = MockWiseFyPrechecksUtil(mockWiseFyPrechecks) - mockWiseFySearchUtil = MockWiseFySearchUtil(mockWiseFySearch) - - nullCallbackUtil = NullCallbackUtil(wisefy) - - verificationUtil = VerificationUtil(mockConnectivityManager, mockWifiManager) - } - - @After - open fun tearDown() { - wisefy.dump() - } - - protected fun any(type: Class): T = Mockito.any(type) - - protected fun verifyNetworkAdded(mockCallbacks: AddNetworkCallbacks) { - verify( - mockCallbacks, - timeout(VERIFICATION_SUCCESS_TIMEOUT) - ).networkAdded(anyInt(), any(WifiConfiguration::class.java)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockNetworkUtil.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockNetworkUtil.kt deleted file mode 100644 index 3413229b..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockNetworkUtil.kt +++ /dev/null @@ -1,870 +0,0 @@ -package com.isupatches.wisefy.internal.mock - -import android.net.ConnectivityManager -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo -import android.net.wifi.WifiManager -import com.isupatches.wisefy.TEST_IP_ADDRESS_INT -import com.isupatches.wisefy.TEST_RSSI_LEVEL -import com.isupatches.wisefy.TEST_RSSI_LEVEL_HIGH -import com.isupatches.wisefy.TEST_RSSI_LEVEL_LOW -import com.isupatches.wisefy.TEST_SSID -import com.isupatches.wisefy.TEST_SSID2 -import com.isupatches.wisefy.TEST_SSID3 -import com.isupatches.wisefy.WiseFy.Companion.WIFI_MANAGER_FAILURE -import com.isupatches.wisefy.internal.createMockAccessPointWithSSID -import com.isupatches.wisefy.internal.createMockAccessPointWithSSIDAndRSSI -import com.isupatches.wisefy.internal.createSavedNetwork -import org.mockito.ArgumentMatchers.any -import org.mockito.ArgumentMatchers.anyInt -import org.mockito.Mockito.`when` -import org.mockito.Mockito.mock - -/** - * A class that mocks lower level returns from ConnectivityManager and WifiManager. - * - * @see ConnectivityManager - * @see WifiManager - * - * @author Patches - * @since 3.0 - */ -@Suppress("LargeClass") -internal class MockNetworkUtil internal constructor( - private val mockConnectivityManager: ConnectivityManager, - private val mockWifiManager: WifiManager -) { - - private var expectedNearbyAccessPoint: ScanResult? = null - private var expectedNearbyAccessPoints: MutableList? = null - - private var expectedSavedNetwork: WifiConfiguration? = null - private var expectedSavedNetworks: MutableList? = null - - private var expectedSSIDs: MutableList? = null - - /** - * To mock a device having active network info. - * - * @see ConnectivityManager.getActiveNetworkInfo - * - * @author Patches - * @since 3.0 - */ - internal fun activeNetwork() { - `when`(mockConnectivityManager.activeNetworkInfo).thenReturn(mock(NetworkInfo::class.java)) - } - - /** - * To mock a failure adding a network. - * - * @see WifiManager.addNetwork - * - * @author Patches - * @since 3.0 - */ - internal fun addNetwork_failure() { - `when`(mockWifiManager.addNetwork(any(WifiConfiguration::class.java))).thenReturn(WIFI_MANAGER_FAILURE) - } - - /** - * To mock a success adding a network. - * - * @see WifiManager.addNetwork - * - * @author Patches - * @since 3.0 - */ - internal fun addNetwork_success() { - `when`(mockWifiManager.addNetwork(any(WifiConfiguration::class.java))).thenReturn(0) - } - - /** - * To mock a device having an active network. - * - * @param ssid The SSID for the mocked network - * - * @return WifiInfo - The mock active network - * - * @see WifiInfo - * @see WifiManager.getConnectionInfo - * - * @author Patches - * @since 3.0 - */ - internal fun currentNetwork(ssid: String?): WifiInfo { - val mockCurrentNetwork = mock(WifiInfo::class.java) - `when`(mockCurrentNetwork.ssid).thenReturn(ssid) - `when`(mockWifiManager.connectionInfo).thenReturn(mockCurrentNetwork) - return mockCurrentNetwork - } - - /** - * To mock a current connection status. - * - * @param isAvailable Whether the network is available or not - * @param isConnected Whether the network is connected or not - * @param type The network type - * - * @see NetworkInfo.isAvailable - * @see NetworkInfo.isConnected - * @see NetworkInfo.getTypeName - * @see ConnectivityManager.getActiveNetworkInfo - * - * @author Patches - * @since 3.0 - */ - @Suppress("deprecation") - internal fun currentNetworkConnectionStatus(isAvailable: Boolean, isConnected: Boolean, type: String?) { - val networkInfo = mock(NetworkInfo::class.java) - `when`(networkInfo.isAvailable).thenReturn(isAvailable) - `when`(networkInfo.isConnected).thenReturn(isConnected) - if (type != null) { - `when`(networkInfo.typeName).thenReturn(type) - } - `when`(mockConnectivityManager.activeNetworkInfo).thenReturn(networkInfo) - } - - /** - * To mock no current network. - * - * @see WifiManager.getConnectionInfo - * - * @author Patches - * @since 4.0 - */ - internal fun currentNetwork_null() { - `when`(mockWifiManager.connectionInfo).thenReturn(null) - } - - /** - * To mock a failure disabling Wifi. - * - * @see WifiManager.setWifiEnabled - * - * @author Patches - * @since 3.0 - */ - internal fun disableWifi_failure() { - `when`(mockWifiManager.setWifiEnabled(false)).thenReturn(false) - } - - /** - * To mock a success disabling Wifi. - * - * @see WifiManager.setWifiEnabled - * - * @author Patches - * @since 3.0 - */ - internal fun disableWifi_success() { - `when`(mockWifiManager.setWifiEnabled(false)).thenReturn(true) - } - - /** - * To mock a failure disconnecting from current network. - * - * @see WifiManager.disconnect - * - * @author Patches - * @since 3.0 - */ - internal fun disconnectFromCurrentNetwork_failure() { - `when`(mockWifiManager.disconnect()).thenReturn(false) - } - - /** - * To mock a success disconnecting from current network. - * - * @see WifiManager.disconnect - * - * @author Patches - * @since 3.0 - */ - internal fun disconnectFromCurrentNetwork_success() { - `when`(mockWifiManager.disconnect()).thenReturn(true) - } - - /** - * To mock a failure enabling Wifi. - * - * @see WifiManager.setWifiEnabled - * - * @author Patches - * @since 3.0 - */ - internal fun enableWifi_failure() { - `when`(mockWifiManager.setWifiEnabled(true)).thenReturn(false) - } - - /** - * To mock a success enabling Wifi. - * - * @see WifiManager.setWifiEnabled - * - * @author Patches - * @since 3.0 - */ - internal fun enableWifi_success() { - `when`(mockWifiManager.setWifiEnabled(true)).thenReturn(true) - } - - /** - * To return the expected access point for testing. - * - * @return List of ScanResult - The expected access point for test - * - * @see ScanResult - * - * @author Patches - * @since 3.0 - */ - internal fun getExpectedNearbyAccessPoint(): ScanResult? = expectedNearbyAccessPoint - - /** - * To return the list of expected access points for testing. - * - * @return List of ScanResult - The expected access points for test - * - * @see ScanResult - * - * @author Patches - * @since 3.0 - */ - internal fun getExpectedNearbyAccessPoints(): List? = expectedNearbyAccessPoints - - /** - * To return the expected saved network for testing. - * - * @return List of Strings - The expected saved network for test - * - * @see WifiConfiguration - * - * @author Patches - * @since 3.0 - */ - internal fun getExpectedSavedNetwork(): WifiConfiguration? = expectedSavedNetwork - - /** - * To return the expected list of saved networks for testing. - * - * @return List of WifiConfiguration - The expected saved networks for test - * - * @see WifiConfiguration - * - * @author Patches - * @since 3.0 - */ - internal fun getExpectedSavedNetworks(): List? = expectedSavedNetworks - - /** - * To return the expected list of SSIDs for testing. - * - * @return List of Strings - The expected SSIDS for test - * - * @author Patches - * @since 3.0 - */ - internal fun getExpectedSSIDs(): List? = expectedSSIDs - - /** - * To mock if a device is roaming. - * - * @param roaming Whether the device is roaming or not - * - * @see NetworkInfo.isRoaming - * @see ConnectivityManager.getActiveNetworkInfo - * - * @author Patches - * @since 3.0 - */ - @Suppress("deprecation") - internal fun isDeviceRoaming(roaming: Boolean) { - val networkInfo = mock(NetworkInfo::class.java) - `when`(networkInfo.isRoaming).thenReturn(roaming) - `when`(mockConnectivityManager.activeNetworkInfo).thenReturn(networkInfo) - } - - /** - * To mock if Wifi is enabled or not. - * - * @param wifiEnabled Whether the device has Wifi enabled or not - * - * @see WifiManager.isWifiEnabled - * - * @author Patches - * @since 3.0 - */ - internal fun isWifiEnabled(wifiEnabled: Boolean) { - `when`(mockWifiManager.isWifiEnabled).thenReturn(wifiEnabled) - } - - /** - * To mock a network with a given frequency. - * - * @param frequency The frequency for the network - * - * @see WifiInfo.getFrequency - * @see WifiManager.getConnectionInfo - * - * @author Patches - * @since 3.0 - */ - internal fun networkWithFrequency(frequency: Int): WifiInfo { - val mockWifiInfo = mock(WifiInfo::class.java) - `when`(mockWifiInfo.frequency).thenReturn(frequency) - `when`(mockWifiManager.connectionInfo).thenReturn(mockWifiInfo) - return mockWifiInfo - } - - /** - * To mock a failure getting the IP of a device. - * - * @see WifiInfo.getIpAddress - * @see WifiManager.getConnectionInfo - * - * @author Patches - * @since 3.0 - */ - internal fun ip_failure() { - val wifiInfo = mock(WifiInfo::class.java) - `when`(wifiInfo.ipAddress).thenReturn(0) - `when`(mockWifiManager.connectionInfo).thenReturn(wifiInfo) - } - - /** - * To mock a success getting the IP of a device. - * - * @see WifiInfo.getIpAddress - * @see WifiManager.getConnectionInfo - * - * @author Patches - * @since 3.0 - */ - internal fun ip_success() { - val wifiInfo = mock(WifiInfo::class.java) - `when`(wifiInfo.ipAddress).thenReturn(TEST_IP_ADDRESS_INT) - `when`(mockWifiManager.connectionInfo).thenReturn(wifiInfo) - } - - /** - * To mock an empty list of access points. - * - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_emptyList() { - `when`(mockWifiManager.scanResults).thenReturn(ArrayList()) - } - - /** - * To mock a list of access points with one that has a matching SSID. - * - * @see addToExpectedNearbyAccessPoints - * @see addToExpectedSSIDs - * @see ScanResult - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_matchingSSID() { - val accessPoint = createMockAccessPointWithSSID(TEST_SSID) - - val accessPoints = ArrayList() - accessPoints.add(accessPoint) - - addToExpectedNearbyAccessPoints(accessPoint) - addToExpectedSSIDs(accessPoint) - - `when`(mockWifiManager.scanResults).thenReturn(accessPoints) - } - - /** - * To mock a list of access points with multiple access points that have the same SSID. - * Access point 1 will have the higher RSSI level. - * - * @param takeHighest If the search is going to take the access point with the highest RSSI - * - * @see createMockAccessPointWithSSIDAndRSSI - * @see ScanResult - * @see addToExpectedNearbyAccessPoints - * @see addToExpectedSSIDs - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(takeHighest: Boolean) { - val accessPoint1 = createMockAccessPointWithSSIDAndRSSI(TEST_SSID, TEST_RSSI_LEVEL_HIGH) - val accessPoint2 = createMockAccessPointWithSSIDAndRSSI(TEST_SSID, TEST_RSSI_LEVEL_LOW) - - val accessPoints = ArrayList() - accessPoints.add(accessPoint1) - accessPoints.add(accessPoint2) - - if (takeHighest) { - addToExpectedNearbyAccessPoints(accessPoint1) - } else { - addToExpectedNearbyAccessPoints(accessPoint1, accessPoint2) - } - addToExpectedSSIDs(accessPoint1) - - `when`(mockWifiManager.scanResults).thenReturn(accessPoints) - } - - /** - * To mock a list of access points with multiple access points that have the same SSID. - * Access point 2 will have the higher RSSI level. - * - * @param takeHighest If the search is going to take the access point with the highest RSSI - * - * @see createMockAccessPointWithSSIDAndRSSI - * @see ScanResult - * @see addToExpectedNearbyAccessPoints - * @see addToExpectedSSIDs - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(takeHighest: Boolean) { - val accessPoint1 = createMockAccessPointWithSSIDAndRSSI(TEST_SSID, TEST_RSSI_LEVEL_LOW) - val accessPoint2 = createMockAccessPointWithSSIDAndRSSI(TEST_SSID, TEST_RSSI_LEVEL_HIGH) - - val accessPoints = ArrayList() - accessPoints.add(accessPoint1) - accessPoints.add(accessPoint2) - - if (takeHighest) { - addToExpectedNearbyAccessPoints(accessPoint2) - } else { - addToExpectedNearbyAccessPoints(accessPoint1, accessPoint2) - } - addToExpectedSSIDs(accessPoint1) - - `when`(mockWifiManager.scanResults).thenReturn(accessPoints) - } - - /** - * To mock a list of access points with one access point that has a matching SSID and - * another one that does not a matching SSID. Both will that have the same RSSI. - * - * @param addSecondNetwork If the second network should be added to the expected network - * list for testing - * - * @see createMockAccessPointWithSSIDAndRSSI - * @see ScanResult - * @see addToExpectedNearbyAccessPoints - * @see addToExpectedSSIDs - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_multipleSSIDs_sameRSSI(addSecondNetwork: Boolean) { - val accessPoint1 = createMockAccessPointWithSSIDAndRSSI(TEST_SSID, TEST_RSSI_LEVEL) - val accessPoint2 = createMockAccessPointWithSSIDAndRSSI(TEST_SSID2, TEST_RSSI_LEVEL) - - val accessPoints = ArrayList() - accessPoints.add(accessPoint1) - accessPoints.add(accessPoint2) - - if (addSecondNetwork) { - addToExpectedNearbyAccessPoints(accessPoint1, accessPoint2) - } else { - addToExpectedNearbyAccessPoints(accessPoint1) - } - - if (addSecondNetwork) { - addToExpectedSSIDs(accessPoint1, accessPoint2) - } else { - addToExpectedSSIDs(accessPoint1) - } - - `when`(mockWifiManager.scanResults).thenReturn(accessPoints) - } - - /** - * To mock a list of access points with multiple access points that have the same SSID and - * the same RSSI level. - * - * @param addSecondNetwork If the second network should be added to the expected network - * list for testing - * - * @see createMockAccessPointWithSSIDAndRSSI - * @see ScanResult - * @see addToExpectedNearbyAccessPoints - * @see addToExpectedSSIDs - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(addSecondNetwork: Boolean) { - val accessPoint1 = createMockAccessPointWithSSIDAndRSSI(TEST_SSID, TEST_RSSI_LEVEL) - val accessPoint2 = createMockAccessPointWithSSIDAndRSSI(TEST_SSID, TEST_RSSI_LEVEL) - - val accessPoints = ArrayList() - accessPoints.add(accessPoint1) - accessPoints.add(accessPoint2) - - if (addSecondNetwork) { - addToExpectedNearbyAccessPoints(accessPoint1, accessPoint2) - } else { - addToExpectedNearbyAccessPoints(accessPoint1) - } - addToExpectedSSIDs(accessPoint1) - - `when`(mockWifiManager.scanResults).thenReturn(accessPoints) - } - - /** - * To mock a list of access points with multiple non-matching SSIDs. - * - * @see createMockAccessPointWithSSID - * @see ScanResult - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_multipleNonMatchingSSIDs() { - val accessPoint1 = createMockAccessPointWithSSID(TEST_SSID2) - val accessPoint2 = createMockAccessPointWithSSID(TEST_SSID3) - - val accessPoints = ArrayList() - accessPoints.add(accessPoint1) - accessPoints.add(accessPoint2) - - `when`(mockWifiManager.scanResults).thenReturn(accessPoints) - } - - /** - * To mock a list of access points with a non-matching SSID. - * - * @see createMockAccessPointWithSSID - * @see ScanResult - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_nonMatchingSSID() { - val accessPoint = createMockAccessPointWithSSID(TEST_SSID2) - - val accessPoints = ArrayList() - accessPoints.add(accessPoint) - - `when`(mockWifiManager.scanResults).thenReturn(accessPoints) - } - - /** - * To mock a list of access points with a null configuration. - * - * @see ScanResult - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_nullAccessPoint() { - val accessPoints = arrayListOf(null) - `when`(mockWifiManager.scanResults).thenReturn(accessPoints) - } - - /** - * To mock a null list of access points. - * - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_nullList() { - `when`(mockWifiManager.scanResults).thenReturn(null) - } - - /** - * To mock a list of access points with a configuration that has a null SSID. - * - * @see createMockAccessPointWithSSID - * @see ScanResult - * @see WifiManager.getScanResults - * - * @author Patches - * @since 3.0 - */ - internal fun nearbyAccessPoints_nullSSID() { - val accessPoint = createMockAccessPointWithSSID(null) - - val accessPoints = ArrayList() - accessPoints.add(accessPoint) - - `when`(mockWifiManager.scanResults).thenReturn(accessPoints) - } - - /** - * To mock if removing a network is successful or not. - * - * @param removed Whether or not the network was successfully removed - * - * @see WifiManager.removeNetwork - * - * @author Patches - * @since 3.0 - */ - internal fun removeNetwork(removed: Boolean) { - `when`(mockWifiManager.removeNetwork(anyInt())).thenReturn(removed) - } - - /** - * To mock a list of saved networks. - * - * @return The list of saved networks for testing - * - * @see createSavedNetwork - * @see WifiConfiguration - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks(): List { - val savedNetworks = ArrayList() - val wiFiConfiguration = createSavedNetwork(TEST_SSID) - savedNetworks.add(wiFiConfiguration) - - `when`(mockWifiManager.configuredNetworks).thenReturn(savedNetworks) - return savedNetworks - } - - /** - * To mock an empty list of saved networks. - * - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks_emptyList() { - `when`(mockWifiManager.configuredNetworks).thenReturn(ArrayList()) - } - - /** - * To mock a list of saved networks with a null configuration. - * - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks_listWithNull() { - val savedNetworks = arrayListOf(null) - `when`(mockWifiManager.configuredNetworks).thenReturn(savedNetworks) - } - - /** - * To mock a list of saved networks with a configuration that has a matching SSID. - * - * @see addToExpectedSavedNetworks - * @see createSavedNetwork - * @see WifiConfiguration - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks_matchingSSID() { - val savedNetwork = createSavedNetwork(TEST_SSID) - - val savedNetworks = ArrayList() - savedNetworks.add(savedNetwork) - - addToExpectedSavedNetworks(savedNetwork) - - `when`(mockWifiManager.configuredNetworks).thenReturn(savedNetworks) - } - - /** - * To mock a list of saved networks with multiple configurations that have a matching SSID. - * - * @see addToExpectedSavedNetworks - * @see createSavedNetwork - * @see WifiConfiguration - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks_multipleMatchingSSIDs() { - val savedNetwork1 = createSavedNetwork(TEST_SSID) - val savedNetwork2 = createSavedNetwork(TEST_SSID) - - val savedNetworks = ArrayList() - savedNetworks.add(savedNetwork1) - savedNetworks.add(savedNetwork2) - - addToExpectedSavedNetworks(savedNetwork1, savedNetwork2) - - `when`(mockWifiManager.configuredNetworks).thenReturn(savedNetworks) - } - - /** - * To mock a list of saved networks with multiple configurations that have non-matching SSIDs. - * - * @see createSavedNetwork - * @see WifiConfiguration - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks_multipleNonMatchingSSIDs() { - val savedNetwork1 = createSavedNetwork(TEST_SSID2) - val savedNetwork2 = createSavedNetwork(TEST_SSID3) - - val savedNetworks = ArrayList() - savedNetworks.add(savedNetwork1) - savedNetworks.add(savedNetwork2) - - `when`(mockWifiManager.configuredNetworks).thenReturn(savedNetworks) - } - - /** - * To mock a list of saved networks with one matching and one non-matching SSID. - * - * @param addSecondNetwork If the second network should be added to the expected network - * list for testing - * - * @see addToExpectedSavedNetworks - * @see createSavedNetwork - * @see WifiConfiguration - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks_multipleSSIDs(addSecondNetwork: Boolean) { - val savedNetwork1 = createSavedNetwork(TEST_SSID) - val savedNetwork2 = createSavedNetwork(TEST_SSID2) - - val savedNetworks = ArrayList() - savedNetworks.add(savedNetwork1) - savedNetworks.add(savedNetwork2) - - if (addSecondNetwork) { - addToExpectedSavedNetworks(savedNetwork1, savedNetwork2) - } else { - addToExpectedSavedNetworks(savedNetwork1) - } - - `when`(mockWifiManager.configuredNetworks).thenReturn(savedNetworks) - } - - /** - * To mock a list of saved networks with a configuration that has a non-matching SSID. - * - * @see createSavedNetwork - * @see WifiConfiguration - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks_nonMatchingSSID() { - val savedNetwork = createSavedNetwork(TEST_SSID2) - - val savedNetworks = ArrayList() - savedNetworks.add(savedNetwork) - - `when`(mockWifiManager.configuredNetworks).thenReturn(savedNetworks) - } - - /** - * To mock a null list of saved networks. - * - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks_nullList() { - `when`(mockWifiManager.configuredNetworks).thenReturn(null) - } - - /** - * To mock a list of saved networks with a configuration that has a null SSID. - * - * @see createSavedNetwork - * @see WifiConfiguration - * @see WifiManager.getConfiguredNetworks - * - * @author Patches - * @since 3.0 - */ - internal fun savedNetworks_nullSSID() { - val savedNetwork = createSavedNetwork(null) - - val savedNetworks = ArrayList() - savedNetworks.add(savedNetwork) - - `when`(mockWifiManager.configuredNetworks).thenReturn(savedNetworks) - } - - /* - * HELPERS - */ - - private fun addToExpectedNearbyAccessPoints(accessPoint: ScanResult) { - expectedNearbyAccessPoint = accessPoint - - val accessPoints = ArrayList() - accessPoints.add(accessPoint) - expectedNearbyAccessPoints = accessPoints - } - - private fun addToExpectedNearbyAccessPoints(accessPoint1: ScanResult, accessPoint2: ScanResult) { - expectedNearbyAccessPoint = accessPoint1 - - val accessPoints = ArrayList() - accessPoints.add(accessPoint1) - accessPoints.add(accessPoint2) - expectedNearbyAccessPoints = accessPoints - } - - private fun addToExpectedSavedNetworks(savedNetwork: WifiConfiguration) { - expectedSavedNetwork = savedNetwork - - val savedNetworks = ArrayList() - savedNetworks.add(savedNetwork) - expectedSavedNetworks = savedNetworks - } - - private fun addToExpectedSavedNetworks(savedNetwork1: WifiConfiguration, savedNetwork2: WifiConfiguration) { - expectedSavedNetwork = savedNetwork1 - - expectedSavedNetworks = ArrayList() - val savedNetworks = ArrayList() - savedNetworks.add(savedNetwork1) - savedNetworks.add(savedNetwork2) - expectedSavedNetworks = savedNetworks - } - - private fun addToExpectedSSIDs(accessPoint: ScanResult) { - val ssids = ArrayList() - ssids.add(accessPoint.SSID) - expectedSSIDs = ssids - } - - private fun addToExpectedSSIDs(accessPoint1: ScanResult, accessPoint2: ScanResult) { - val ssids = ArrayList() - ssids.add(accessPoint1.SSID) - ssids.add(accessPoint2.SSID) - expectedSSIDs = ssids - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFyConnectionUtil.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFyConnectionUtil.kt deleted file mode 100644 index 8609cf2c..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFyConnectionUtil.kt +++ /dev/null @@ -1,103 +0,0 @@ -package com.isupatches.wisefy.internal.mock - -import com.isupatches.wisefy.connection.WiseFyConnection -import org.mockito.ArgumentMatchers.anyInt -import org.mockito.ArgumentMatchers.anyString -import org.mockito.Mockito.`when` - -/** - * A class to mock returns from the WiseFyConnection class. - * - * @see WiseFyConnection - * - * @author Patches - * @since 3.0 - */ -internal class MockWiseFyConnectionUtil internal constructor( - private val mockWiseFyConnection: WiseFyConnection -) { - - /** - * Mocks if the device is connected to a specific SSID. - * - * @param connected Whether the device is connected to the specific SSID or not - * - * @see WiseFyConnection.isCurrentNetworkConnectedToSSID - * - * @author Patches - * @since 3.0 - */ - fun isCurrentNetworkConnectedToSSID(connected: Boolean) { - `when`(mockWiseFyConnection.isCurrentNetworkConnectedToSSID(anyString())).thenReturn(connected) - } - - /** - * To mock if the device is connected to a mobile network. - * - * @param connected If the device is connected to a mobile network - * - * @see WiseFyConnection.isDeviceConnectedToMobileNetwork - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToMobileNetwork(connected: Boolean) { - `when`(mockWiseFyConnection.isDeviceConnectedToMobileNetwork()).thenReturn(connected) - } - - /** - * To mock if the device is connected to a Wifi network. - * - * @param connected If the device is connected to a Wifi network - * - * @see WiseFyConnection.isDeviceConnectedToWifiNetwork - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToWifiNetwork(connected: Boolean) { - `when`(mockWiseFyConnection.isDeviceConnectedToWifiNetwork()).thenReturn(connected) - } - - /** - * To mock whether the device is roaming. - * - * @param roaming If the device is roaming - * - * @see WiseFyConnection.isDeviceRoaming - * - * @author Patches - * @since 4.0 - */ - fun isDeviceRoaming(roaming: Boolean) { - `when`(mockWiseFyConnection.isDeviceRoaming()).thenReturn(roaming) - } - - /** - * Mocks if the device is connected to a network. - * - * @param connected Whether the device is connected or not - * - * @see WiseFyConnection.isNetworkConnected - * - * @author Patches - * @since 3.0 - */ - fun isNetworkConnected(connected: Boolean) { - `when`(mockWiseFyConnection.isNetworkConnected()).thenReturn(connected) - } - - /** - * Mocks if waitToConnectToSSID is successful. - * - * @param success Whether waitToConnectToSSID succeeds or not - * - * @see WiseFyConnection.waitToConnectToSSID - * - * @author Patches - * @since 3.0 - */ - fun waitToConnectToSSID(success: Boolean) { - `when`(mockWiseFyConnection.waitToConnectToSSID(anyString(), anyInt())).thenReturn(success) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFyPrechecksUtil.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFyPrechecksUtil.kt deleted file mode 100644 index 24a219b9..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFyPrechecksUtil.kt +++ /dev/null @@ -1,678 +0,0 @@ -package com.isupatches.wisefy.internal.mock - -import com.isupatches.wisefy.DEFAULT_PRECHECK_RESULT -import com.isupatches.wisefy.PrecheckResult -import com.isupatches.wisefy.WiseFyPrechecks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import org.mockito.ArgumentMatchers.anyString -import org.mockito.Mockito.`when` - -/** - * A class to mock returns from the WiseFyPrechecks class. - * - * @see WiseFyPrechecks - * - * @author Patches - * @since 3.0 - */ -internal class MockWiseFyPrechecksUtil internal constructor(private val mockWiseFyPrechecks: WiseFyPrechecks) { - - /** - * Mocks a precheck failure adding a network. - * - * @see WiseFyPrechecks.addNetworkPrechecks - * @see WiseFyPrechecks.addNetworkPrechecks - * - * @author Patches - * @since 3.0 - */ - fun addNetwork_failure() { - `when`(mockWiseFyPrechecks.addNetworkPrechecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - `when`(mockWiseFyPrechecks.addNetworkPrechecks(anyString(), anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success adding a network. - * - * @see WiseFyPrechecks.addNetworkPrechecks - * @see WiseFyPrechecks.addNetworkPrechecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun addNetwork_success() { - `when`(mockWiseFyPrechecks.addNetworkPrechecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - `when`(mockWiseFyPrechecks.addNetworkPrechecks(anyString(), anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure connecting to a network. - * - * @see WiseFyPrechecks.connectToNetworkPrechecks - * - * @author Patches - * @since 3.0 - */ - fun connectToNetwork_failure() { - `when`(mockWiseFyPrechecks.connectToNetworkPrechecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success connecting to a network. - * - * @see WiseFyPrechecks.connectToNetworkPrechecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun connectToNetwork_success() { - `when`(mockWiseFyPrechecks.connectToNetworkPrechecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure disabling wifi. - * - * @see WiseFyPrechecks.disableWifiChecks - * - * @author Patches - * @since 3.0 - */ - fun disableWifi_failure() { - `when`(mockWiseFyPrechecks.disableWifiChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success disabling wifi. - * - * @see WiseFyPrechecks.disableWifiChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun disableWifi_success() { - `when`(mockWiseFyPrechecks.disableWifiChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure disconnecting from the current network. - * - * @see WiseFyPrechecks.disconnectFromCurrentNetworkChecks - * - * @author Patches - * @since 3.0 - */ - fun disconnectFromCurrentNetwork_failure() { - `when`(mockWiseFyPrechecks.disconnectFromCurrentNetworkChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success disconnecting from the current network. - * - * @see WiseFyPrechecks.disconnectFromCurrentNetworkChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun disconnectFromCurrentNetwork_success() { - `when`(mockWiseFyPrechecks.disconnectFromCurrentNetworkChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure enabling wifi. - * - * @see WiseFyPrechecks.enableWifiChecks - * - * @author Patches - * @since 3.0 - */ - fun enableWifi_failure() { - `when`(mockWiseFyPrechecks.enableWifiChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success enabling wifi. - * - * @see WiseFyPrechecks.enableWifiChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun enableWifi_success() { - `when`(mockWiseFyPrechecks.enableWifiChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure getting the current network. - * - * @see WiseFyPrechecks.getCurrentNetworkChecks - * - * @author Patches - * @since 3.0 - */ - fun getCurrentNetwork_failure() { - `when`(mockWiseFyPrechecks.getCurrentNetworkChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success getting the current network. - * - * @see WiseFyPrechecks.getCurrentNetworkChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun getCurrentNetwork_success() { - `when`(mockWiseFyPrechecks.getCurrentNetworkChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure getting a device's current network info. - * - * @see WiseFyPrechecks.getCurrentNetworkInfoChecks - * - * @author Patches - * @since 3.0 - */ - fun getCurrentNetworkInfo_failure() { - `when`(mockWiseFyPrechecks.getCurrentNetworkInfoChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success getting a device's current network info. - * - * @see WiseFyPrechecks.getCurrentNetworkInfoChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun getCurrentNetworkInfo_success() { - `when`(mockWiseFyPrechecks.getCurrentNetworkInfoChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure getting the current network's frequency. - * - * @see WiseFyPrechecks.getFrequencyChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 4.1 - */ - fun getFrequency_failure() { - `when`(mockWiseFyPrechecks.getFrequencyChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success getting the current network's frequency. - * - * @see WiseFyPrechecks.getFrequencyChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 4.1 - */ - fun getFrequency_success() { - `when`(mockWiseFyPrechecks.getFrequencyChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure getting the ip of the device. - * - * @see WiseFyPrechecks.getIPChecks - * - * @author Patches - * @since 3.0 - */ - fun getIP_failure() { - `when`(mockWiseFyPrechecks.getIPChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success getting the ip of the device. - * - * @see WiseFyPrechecks.getIPChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun getIP_success() { - `when`(mockWiseFyPrechecks.getIPChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure getting nearby access points. - * - * @see WiseFyPrechecks.getNearbyAccessPointsChecks - * - * @author Patches - * @since 3.0 - */ - fun getNearbyAccessPoints_failure() { - `when`(mockWiseFyPrechecks.getNearbyAccessPointsChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success getting nearby access points. - * - * @see WiseFyPrechecks.getNearbyAccessPointsChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun getNearbyAccessPoints_success() { - `when`(mockWiseFyPrechecks.getNearbyAccessPointsChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure getting the RSSI level of a network. - * - * @see WiseFyPrechecks.getRSSIChecks - * - * @author Patches - * @since 3.0 - */ - fun getRSSI_failure() { - `when`(mockWiseFyPrechecks.getRSSIChecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success getting the RSSI level of a network. - * - * @see WiseFyPrechecks.getRSSIChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun getRSSI_success() { - `when`(mockWiseFyPrechecks.getRSSIChecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure getting saved networks. - * - * @see WiseFyPrechecks.getSavedNetworksChecks - * - * @author Patches - * @since 3.0 - */ - fun getSavedNetworks_failure() { - `when`(mockWiseFyPrechecks.getSavedNetworksChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success getting saved networks. - * - * @see WiseFyPrechecks.getSavedNetworksChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun getSavedNetworks_success() { - `when`(mockWiseFyPrechecks.getSavedNetworksChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure checking if a device is connected to a mobile network. - * - * @see WiseFyPrechecks.isDeviceConnectedToMobileNetworkChecks - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToMobileNetwork_failure() { - `when`(mockWiseFyPrechecks.isDeviceConnectedToMobileNetworkChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success checking if a device is connected to a mobile network. - * - * @see WiseFyPrechecks.isDeviceConnectedToMobileNetworkChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToMobileNetwork_success() { - `when`(mockWiseFyPrechecks.isDeviceConnectedToMobileNetworkChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure checking if a device is connected to a mobile or wifi network. - * - * @see WiseFyPrechecks.isDeviceConnectedToMobileOrWifiNetworkChecks - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToMobileOrWifiNetwork_failure() { - `when`(mockWiseFyPrechecks.isDeviceConnectedToMobileOrWifiNetworkChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success checking if a device is connected to a mobile or wifi network. - * - * @see WiseFyPrechecks.isDeviceConnectedToMobileOrWifiNetworkChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToMobileOrWifiNetwork_success() { - `when`(mockWiseFyPrechecks.isDeviceConnectedToMobileOrWifiNetworkChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure checking if a device is connected to a network with a specific SSID. - * - * @see WiseFyPrechecks.isDeviceConnectedToSSIDChecks - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToSSIDChecks_failure() { - `when`(mockWiseFyPrechecks.isDeviceConnectedToSSIDChecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success checking if a device is connected to a network with a specific SSID. - * - * @see WiseFyPrechecks.isDeviceConnectedToSSIDChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToSSIDChecks_success() { - `when`(mockWiseFyPrechecks.isDeviceConnectedToSSIDChecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure checking if a device is connected to a wifi network. - * - * @see WiseFyPrechecks.isDeviceConnectedToWifiNetworkChecks - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToWifiNetwork_failure() { - `when`(mockWiseFyPrechecks.isDeviceConnectedToWifiNetworkChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success checking if a device is connected to a wifi network. - * - * @see WiseFyPrechecks.isDeviceConnectedToWifiNetworkChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToWifiNetwork_success() { - `when`(mockWiseFyPrechecks.isDeviceConnectedToWifiNetworkChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure checking if a device is roaming. - * - * @see WiseFyPrechecks.isDeviceRoamingChecks - * - * @author Patches - * @since 3.0 - */ - fun isDeviceRoaming_failure() { - `when`(mockWiseFyPrechecks.isDeviceRoamingChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success checking if a device is roaming. - * - * @see WiseFyPrechecks.isDeviceRoamingChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun isDeviceRoaming_success() { - `when`(mockWiseFyPrechecks.isDeviceRoamingChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure checking if a network is saved on a device. - * - * @see WiseFyPrechecks.isNetworkSavedChecks - * - * @author Patches - * @since 3.0 - */ - fun isNetworkSaved_failure() { - `when`(mockWiseFyPrechecks.isNetworkSavedChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success checking if a network is saved on a device. - * - * @see WiseFyPrechecks.isNetworkSavedChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun isNetworkSaved_success() { - `when`(mockWiseFyPrechecks.isNetworkSavedChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure checking if Wifi is enabled on a device. - * - * @see WiseFyPrechecks.isWifiEnabledChecks - * - * @author Patches - * @since 3.0 - */ - fun isWifiEnabled_failure() { - `when`(mockWiseFyPrechecks.isWifiEnabledChecks()).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success checking if Wifi is enabled on a device. - * - * @see WiseFyPrechecks.isWifiEnabledChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun isWifiEnabled_success() { - `when`(mockWiseFyPrechecks.isWifiEnabledChecks()).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure removing a network. - * - * @see WiseFyPrechecks.removeNetworkCheck - * - * @author Patches - * @since 3.0 - */ - fun removeNetwork_failure() { - `when`(mockWiseFyPrechecks.removeNetworkCheck(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success removing a network. - * - * @see WiseFyPrechecks.removeNetworkCheck - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun removeNetwork_success() { - `when`(mockWiseFyPrechecks.removeNetworkCheck(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure searching for a nearby access point. - * - * @see WiseFyPrechecks.searchForAccessPointsChecks - * - * @author Patches - * @since 3.0 - */ - fun searchForAccessPoints_failure() { - `when`(mockWiseFyPrechecks.searchForAccessPointsChecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success searching for a nearby access point. - * - * @see WiseFyPrechecks.searchForAccessPointsChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun searchForAccessPoints_success() { - `when`(mockWiseFyPrechecks.searchForAccessPointsChecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure searching for nearby access points. - * - * @see WiseFyPrechecks.searchForAccessPointChecks - * - * @author Patches - * @since 3.0 - */ - fun searchForAccessPoint_failure() { - `when`(mockWiseFyPrechecks.searchForAccessPointChecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success searching for nearby access points. - * - * @see WiseFyPrechecks.searchForAccessPointChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun searchForAccessPoint_success() { - `when`(mockWiseFyPrechecks.searchForAccessPointChecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure searching for a saved network. - * - * @see WiseFyPrechecks.searchForSavedNetworksChecks - * - * @author Patches - * @since 3.0 - */ - fun searchForSavedNetwork_failure() { - `when`(mockWiseFyPrechecks.searchForSavedNetworkChecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success searching for a saved network. - * - * @see WiseFyPrechecks.searchForSavedNetworksChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun searchForSavedNetwork_success() { - `when`(mockWiseFyPrechecks.searchForSavedNetworkChecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure searching for saved networks. - * - * @see WiseFyPrechecks.searchForSavedNetworksChecks - * - * @author Patches - * @since 3.0 - */ - fun searchForSavedNetworks_failure() { - `when`(mockWiseFyPrechecks.searchForSavedNetworksChecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success searching for saved networks. - * - * @see WiseFyPrechecks.searchForSavedNetworksChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun searchForSavedNetworks_success() { - `when`(mockWiseFyPrechecks.searchForSavedNetworksChecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure searching for an SSID. - * - * @see WiseFyPrechecks.searchForSSIDChecks - * - * @author Patches - * @since 3.0 - */ - fun searchForSSID_failure() { - `when`(mockWiseFyPrechecks.searchForSSIDChecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success searching for an SSID. - * - * @see WiseFyPrechecks.searchForSSIDChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun searchForSSID_success() { - `when`(mockWiseFyPrechecks.searchForSSIDChecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - /** - * Mocks a precheck failure searching for SSIDs. - * - * @see WiseFyPrechecks.searchForSSIDsChecks - * - * @author Patches - * @since 3.0 - */ - fun searchForSSIDs_failure() { - `when`(mockWiseFyPrechecks.searchForSSIDsChecks(anyString())).thenReturn(PRECHECK_RESULT_FAILURE) - } - - /** - * Mocks a precheck success searching for SSIDs. - * - * @see WiseFyPrechecks.searchForSSIDsChecks - * @see DEFAULT_PRECHECK_RESULT - * - * @author Patches - * @since 3.0 - */ - fun searchForSSIDs_success() { - `when`(mockWiseFyPrechecks.searchForSSIDsChecks(anyString())).thenReturn(DEFAULT_PRECHECK_RESULT) - } - - companion object { - private val PRECHECK_RESULT_FAILURE = PrecheckResult(MISSING_PARAMETER) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFySearchUtil.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFySearchUtil.kt deleted file mode 100644 index cddf7e1d..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/internal/mock/MockWiseFySearchUtil.kt +++ /dev/null @@ -1,254 +0,0 @@ -package com.isupatches.wisefy.internal.mock - -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import com.isupatches.wisefy.TEST_RSSI_LEVEL -import com.isupatches.wisefy.TEST_RSSI_LEVEL_HIGH -import com.isupatches.wisefy.TEST_RSSI_LEVEL_LOW -import com.isupatches.wisefy.TEST_SSID -import com.isupatches.wisefy.TEST_SSID2 -import com.isupatches.wisefy.internal.createMockAccessPointList -import com.isupatches.wisefy.internal.createMockAccessPointWithSSIDAndRSSI -import com.isupatches.wisefy.internal.createSavedNetwork -import com.isupatches.wisefy.search.WiseFySearch -import org.mockito.ArgumentMatchers.anyBoolean -import org.mockito.ArgumentMatchers.anyInt -import org.mockito.ArgumentMatchers.anyString -import org.mockito.Mockito.`when` - -/** - * A class to mock returns from the WiseFySearch class. - * - * @see WiseFySearch - * - * @author Patches - * @since 3.0 - */ -internal class MockWiseFySearchUtil internal constructor(private val mockWiseFySearch: WiseFySearch) { - - /** - * Mocks no nearby access points. - * - * @param filterDuplicates The filter duplicate param to use when trying - * - * @see WiseFySearch.getNearbyAccessPoints - * - * @author Patches - * @since 3.0 - */ - fun nearbyAccessPoints_null(filterDuplicates: Boolean) { - `when`(mockWiseFySearch.getNearbyAccessPoints(filterDuplicates)).thenReturn(null) - } - - /** - * Mocks a list of nearby access point. - * - * @param filterDuplicates The filter duplicate param to use when trying - * - * @return List of ScanResult - The mocked list of nearby access points - * - * @see WiseFySearch.getNearbyAccessPoints - * - * @author Patches - * @since 3.0 - */ - fun nearbyAccessPoints_success(filterDuplicates: Boolean): List { - val accessPoints = createMockAccessPointList(TEST_SSID, TEST_RSSI_LEVEL_HIGH, TEST_SSID2, TEST_RSSI_LEVEL_LOW) - `when`(mockWiseFySearch.getNearbyAccessPoints(filterDuplicates)).thenReturn(accessPoints) - return accessPoints - } - - /** - * Mocks no nearby access point. - * - * @see WiseFySearch.findAccessPointByRegex - * - * @author Patches - * @since 3.0 - */ - fun findAccessPointByRegex_null() { - `when`(mockWiseFySearch.findAccessPointByRegex( - anyString(), - anyInt(), - anyBoolean() - )).thenReturn(null) - } - - /** - * Mocks a nearby access point. - * - * @return ScanResult - The mocked nearby access point. - * - * @see WiseFySearch.findAccessPointByRegex - * - * @author Patches - * @since 3.0 - */ - fun findAccessPointByRegex_success(): ScanResult { - val accessPoint = createMockAccessPointWithSSIDAndRSSI(TEST_SSID, TEST_RSSI_LEVEL) - `when`(mockWiseFySearch.findAccessPointByRegex( - anyString(), - anyInt(), - anyBoolean() - )).thenReturn(accessPoint) - return accessPoint - } - - /** - * Mocks no nearby access points for search. - * - * @see WiseFySearch.findAccessPointsMatchingRegex - * - * @author Patches - * @since 3.0 - */ - fun findAccessPointsMatchingRegex_null() { - `when`>(mockWiseFySearch.findAccessPointsMatchingRegex( - anyString(), - anyBoolean() - )).thenReturn(null) - } - - /** - * Mocks nearby access point. - * - * @return List of ScanResults - The mocked access points. - * - * @see WiseFySearch.findAccessPointsMatchingRegex - * - * @author Patches - * @since 3.0 - */ - fun findAccessPointsMatchingRegex_success(): List { - val accessPoints = ArrayList() - val accessPoint = createMockAccessPointWithSSIDAndRSSI(TEST_SSID, TEST_RSSI_LEVEL) - accessPoints.add(accessPoint) - `when`>(mockWiseFySearch.findAccessPointsMatchingRegex( - anyString(), - anyBoolean()) - ).thenReturn(accessPoints) - return accessPoints - } - - /** - * Mocks no saved network. - * - * @see WiseFySearch.findSavedNetworkByRegex - * - * @author Patches - * @since 3.0 - */ - fun findSavedNetworkByRegex_null() { - `when`(mockWiseFySearch.findSavedNetworkByRegex( - anyString() - )).thenReturn(null) - } - - /** - * Mocks a saved network. - * - * @return WifiConfiguration - The mocked saved network - * - * @see WiseFySearch.findSavedNetworkByRegex - * - * @author Patches - * @since 3.0 - */ - fun findSavedNetworkByRegex_success(): WifiConfiguration { - val savedNetwork = createSavedNetwork(TEST_SSID) - `when`(mockWiseFySearch.findSavedNetworkByRegex(anyString())).thenReturn(savedNetwork) - return savedNetwork - } - - /** - * Mocks an empty saved network list. - * - * @see WiseFySearch.findSavedNetworksMatchingRegex - * - * @author Patches - * @since 3.0 - */ - fun findSavedNetworksByRegex_emptyList() { - `when`>(mockWiseFySearch.findSavedNetworksMatchingRegex( - anyString() - )).thenReturn(ArrayList()) - } - - /** - * Mocks no saved networks. - * - * @see WiseFySearch.findSavedNetworksMatchingRegex - * - * @author Patches - * @since 3.0 - */ - fun findSavedNetworksByRegex_null() { - `when`>(mockWiseFySearch.findSavedNetworksMatchingRegex( - anyString() - )).thenReturn(null) - } - - /** - * Mocks a list of saved networks. - * - * @return List of WifiConfigurations - The mocked saved network list - * - * @see WiseFySearch.findSavedNetworksMatchingRegex - * - * @author Patches - * @since 3.0 - */ - fun findSavedNetworksMatchingRegex_success(): List { - val savedNetworks = ArrayList() - val wiFiConfiguration = createSavedNetwork(TEST_SSID) - savedNetworks.add(wiFiConfiguration) - - `when`>(mockWiseFySearch.findSavedNetworksMatchingRegex( - anyString() - )).thenReturn(savedNetworks) - return savedNetworks - } - - /** - * Mocks a list of nearby SSIDs. - * - * @return List of Strings - The mocked list of SSIDs. - * - * @see WiseFySearch.findSSIDsMatchingRegex - * - * @author Patches - * @since 3.0 - */ - fun findSSIDsMatchingRegex_success(): List { - val ssids = ArrayList() - ssids.add(TEST_SSID) - `when`>(mockWiseFySearch.findSSIDsMatchingRegex(anyString())).thenReturn(ssids) - return ssids - } - - /** - * Mocks no matching SSIDs. - * - * @see WiseFySearch.findSSIDsMatchingRegex - * - * @author Patches - * @since 3.0 - */ - fun findSSIDsMatchingRegex_null() { - `when`>(mockWiseFySearch.findSSIDsMatchingRegex(anyString())).thenReturn(null) - } - - /** - * Mocks if a network is already saved. - * - * @param saved If the network is already saved - * - * @see WiseFySearch.isNetworkASavedConfiguration - * - * @author Patches - * @since 3.0 - */ - fun isNetworkASavedConfiguration(saved: Boolean) { - `when`(mockWiseFySearch.isNetworkASavedConfiguration(anyString())).thenReturn(saved) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/search/AbstractWiseFySearchTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/search/AbstractWiseFySearchTests.kt deleted file mode 100644 index ab4d9626..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/search/AbstractWiseFySearchTests.kt +++ /dev/null @@ -1,222 +0,0 @@ -package com.isupatches.wisefy.search - -import com.isupatches.wisefy.TEST_REGEX -import com.isupatches.wisefy.TEST_SSID -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Used to test the AbstractWiseFySearch class and common search functionality. - * - * @see AbstractWiseFySearch - * - * @author Patches - * @since 4.0 - */ -@Suppress("LargeClass", "TooManyFunctions") -internal class AbstractWiseFySearchTests : BaseInstrumentationTest() { - - private val wisefySearch: WiseFySearch = WiseFySearchSDK23.create(mockWifiManager) - - /* - * findSavedNetworkByRegex tests - */ - - @Test - fun findSavedNetworkByRegex_failure_nullSavedNetworkList() { - mockNetworkUtil.savedNetworks_nullList() - assertEquals(null, wisefySearch.findSavedNetworkByRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworkByRegex_failure_emptySavedNetworkList() { - mockNetworkUtil.savedNetworks_emptyList() - assertEquals(null, wisefySearch.findSavedNetworkByRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworkByRegex_failure_nullSavedNetworkInList() { - mockNetworkUtil.savedNetworks_listWithNull() - assertEquals(null, wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworkByRegex_failure_nullSSID() { - mockNetworkUtil.savedNetworks_nullSSID() - assertEquals(null, wisefySearch.findSavedNetworkByRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworkByRegex_failure_nonMatchingSSID() { - mockNetworkUtil.savedNetworks_nonMatchingSSID() - assertEquals(null, wisefySearch.findSavedNetworkByRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworkByRegex_failure_multipleNonMatchingSSIDs() { - mockNetworkUtil.savedNetworks_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findSavedNetworkByRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworkByRegex_success() { - mockNetworkUtil.savedNetworks_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedSavedNetwork(), wisefySearch.findSavedNetworkByRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworkByRegex_success_multipleMatchingSSIDs() { - mockNetworkUtil.savedNetworks_multipleMatchingSSIDs() - assertEquals(mockNetworkUtil.getExpectedSavedNetwork(), wisefySearch.findSavedNetworkByRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworkByRegex_success_multipleSSIDs_nonRegex() { - mockNetworkUtil.savedNetworks_multipleSSIDs(false) - assertEquals(mockNetworkUtil.getExpectedSavedNetwork(), wisefySearch.findSavedNetworkByRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworkByRegex_success_multipleSSIDs_regex() { - mockNetworkUtil.savedNetworks_multipleSSIDs(true) - assertEquals(mockNetworkUtil.getExpectedSavedNetwork(), wisefySearch.findSavedNetworkByRegex(TEST_REGEX)) - } - - /* - * findSavedNetworksMatchingRegex tests - */ - - @Test - fun findSavedNetworksMatchingRegex_failure_nullSavedNetworkList() { - mockNetworkUtil.savedNetworks_nullList() - assertEquals(null, wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworksMatchingRegex_failure_emptySavedNetworkList() { - mockNetworkUtil.savedNetworks_emptyList() - assertEquals(null, wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworksMatchingRegex_failure_nullSavedNetworkInList() { - mockNetworkUtil.savedNetworks_listWithNull() - assertEquals(null, wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworksMatchingRegex_failure_nullSSID() { - mockNetworkUtil.savedNetworks_nullSSID() - assertEquals(null, wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworksMatchingRegex_failure_nonMatchingSSID() { - mockNetworkUtil.savedNetworks_nonMatchingSSID() - assertEquals(null, wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworksMatchingRegex_failure_multipleNonMatchingSSIDs() { - mockNetworkUtil.savedNetworks_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworksMatchingRegex_success() { - mockNetworkUtil.savedNetworks_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedSavedNetworks(), wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworksMatchingRegex_success_multipleMatchingSSIDs() { - mockNetworkUtil.savedNetworks_multipleMatchingSSIDs() - assertEquals(mockNetworkUtil.getExpectedSavedNetworks(), wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworksMatchingRegex_success_multipleSSIDs_nonRegex() { - mockNetworkUtil.savedNetworks_multipleSSIDs(false) - assertEquals(mockNetworkUtil.getExpectedSavedNetworks(), wisefySearch.findSavedNetworksMatchingRegex(TEST_SSID)) - } - - @Test - fun findSavedNetworksMatchingRegex_success_multipleSSIDs_regex() { - mockNetworkUtil.savedNetworks_multipleSSIDs(true) - assertEquals( - mockNetworkUtil.getExpectedSavedNetworks(), - wisefySearch.findSavedNetworksMatchingRegex(TEST_REGEX) - ) - } - - /* - * isNetworkASavedConfiguration tests - */ - - @Test - fun isNetworkASavedConfiguration_failure_nullSSIDParam() { - mockNetworkUtil.savedNetworks_nullList() - assertEquals(false, wisefySearch.isNetworkASavedConfiguration(null)) - } - - @Test - fun isNetworkASavedConfiguration_failure_emptySSIDParam() { - mockNetworkUtil.savedNetworks_nullList() - assertEquals(false, wisefySearch.isNetworkASavedConfiguration("")) - } - - @Test - fun isNetworkASavedConfiguration_failure_nullSavedNetworkList() { - mockNetworkUtil.savedNetworks_nullList() - assertEquals(false, wisefySearch.isNetworkASavedConfiguration(TEST_SSID)) - } - - @Test - fun isNetworkASavedConfiguration_failure_emptySavedNetworkList() { - mockNetworkUtil.savedNetworks_emptyList() - assertEquals(false, wisefySearch.isNetworkASavedConfiguration(TEST_SSID)) - } - - @Test - fun isNetworkASavedConfiguration_failure_nullSSID() { - mockNetworkUtil.savedNetworks_nullSSID() - assertEquals(false, wisefySearch.isNetworkASavedConfiguration(TEST_SSID)) - } - - @Test - fun isNetworkASavedConfiguration_failure_nonMatchingSSID() { - mockNetworkUtil.savedNetworks_nonMatchingSSID() - assertEquals(false, wisefySearch.isNetworkASavedConfiguration(TEST_SSID)) - } - - @Test - fun isNetworkASavedConfiguration_failure_multipleNonMatchingSSIDs() { - mockNetworkUtil.savedNetworks_multipleNonMatchingSSIDs() - assertEquals(false, wisefySearch.isNetworkASavedConfiguration(TEST_SSID)) - } - - @Test - fun isNetworkASavedConfiguration_success() { - mockNetworkUtil.savedNetworks_matchingSSID() - assertEquals(true, wisefySearch.isNetworkASavedConfiguration(TEST_SSID)) - } - - @Test - fun isNetworkASavedConfiguration_success_multipleMatchingSSIDs() { - mockNetworkUtil.savedNetworks_multipleMatchingSSIDs() - assertEquals(true, wisefySearch.isNetworkASavedConfiguration(TEST_SSID)) - } - - @Test - fun isNetworkASavedConfiguration_success_multipleSSIDs_nonRegex() { - mockNetworkUtil.savedNetworks_multipleSSIDs(false) - assertEquals(true, wisefySearch.isNetworkASavedConfiguration(TEST_SSID)) - } - - @Test - fun isNetworkASavedConfiguration_success_multipleSSIDs_regex() { - mockNetworkUtil.savedNetworks_multipleSSIDs(true) - assertEquals(true, wisefySearch.isNetworkASavedConfiguration(TEST_REGEX)) - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/search/WiseFySearchLegacyTests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/search/WiseFySearchLegacyTests.kt deleted file mode 100644 index 40fa19a2..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/search/WiseFySearchLegacyTests.kt +++ /dev/null @@ -1,655 +0,0 @@ -package com.isupatches.wisefy.search - -import com.isupatches.wisefy.TEST_REGEX -import com.isupatches.wisefy.TEST_SSID -import com.isupatches.wisefy.TEST_TIMEOUT -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNull -import org.junit.Test - -/** - * Used to test the WiseFySearchLegacy class and search capabilities. - * - * @see WiseFySearchLegacy - * - * @author Patches - * @since 4.0 - */ -@Suppress("LargeClass", "TooManyFunctions") -internal class WiseFySearchLegacyTests : BaseInstrumentationTest() { - - private val wisefySearch: WiseFySearch = WiseFySearchLegacy.create(mockWifiManager) - - /* - * findAccessPointByRegex tests - */ - - @Test - fun findAccessPointByRegex_failure_nullAccessPoints_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullAccessPoints_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_emptyAccessPointList_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_emptyAccessPointList_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullAccessPoint_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullAccessPoint_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullSSID_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullSSID_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nonMatchingSSID_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nonMatchingSSID_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_multipleNonMatchingSSIDs_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_multipleNonMatchingSSIDs_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleSSIDs_sameRSSI_nonRegex_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleSSIDs_sameRSSI_nonRegex_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleSSIDs_sameRSSI_regex_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_REGEX, - TEST_TIMEOUT, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleSSIDs_sameRSSI_regex_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_REGEX, - TEST_TIMEOUT, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchingSSIDs_accessPoint1HasHigherRSSI_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchesSSIDs_accessPoint1HasHigherRSSI_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchingSSIDs_accessPoint2HasHigherRSSI_takeHighest_false() { - val takeHighest = false - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(takeHighest) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - takeHighest - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchesSSIDs_accessPoint2HasHigherRSSI_takeHighest_true() { - val takeHighest = true - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(takeHighest) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - takeHighest - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchingSSIDs_sameRSSI_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchesSSIDs_sameRSSI_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - /* - * findAccessPointsMatchingRegex tests - */ - - @Test - fun findAccessPointsMatchingRegex_failure_nullAccessPoints_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullAccessPoints_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_emptyAccessPointList_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_emptyAccessPointList_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullAccessPoint_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullAccessPoint_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullSSID_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullSSID_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nonMatchingSSID_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nonMatchingSSID_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_multipleNonMatchingSSIDs_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_multipleNonMatchingSSIDs_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleSSIDs_nonRegex_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleSSIDs_nonRegex_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleSSIDs_regex_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_REGEX, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleSSIDs_regex_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_REGEX, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_accessPoint1HasHigherRSSI_takeHighest_false() { - val takeHighest = false - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(takeHighest) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - takeHighest - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_accessPoint1HasHigherRSSI_takeHighest_true() { - val takeHighest = true - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(takeHighest) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - takeHighest - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_accessPoint2HasHigherRSSI_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_accessPoint2HasHigherRSSI_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_sameRSSI_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - false - )) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_sameRSSI_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - true - )) - verificationUtil.triedToScanForAccessPoints() - } - - /* - * findSSIDsMatchingRegex tests - */ - - @Test - fun findSSIDsMatchingRegex_failure_nullAccessPoints() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_emptySavedNetworkList() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_nullAccessPoint() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_nullSSID() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_nonMatchingSSID() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_multipleNonMatchingSSIDs() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleMatchingSSIDs_sameRSSI() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleMatchingSSIDs_accessPoint1HasHigherRSSI() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(true) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleMatchingSSIDs_accessPoint2HasHigherRSSI() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(true) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleSSIDs_nonRegex() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleSSIDs_regex() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_REGEX)) - verificationUtil.triedToScanForAccessPoints() - } - - /* - * getNearbyAccessPoints tests - */ - - @Test - fun getNearbyAccessPoints_nullAccessPointList_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_nullList() - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertNull(accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_emptyAccessPointList_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertNull(accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_differentSSIDs_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_sameSignalLevels_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(false) - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_accessPoint1Higher_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_accessPoint2Higher_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_nullAccessPointList_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_nullList() - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertNull(accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_emptyAccessPointList_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertNull(accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_differentSSIDs_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_sameSignalLevels_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_accessPoint1Higher_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(false) - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_accessPoint2Higher_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(false) - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.triedToScanForAccessPoints() - } -} diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/search/WiseFySearchSdk23Tests.kt b/wisefy/src/androidTest/java/com/isupatches/wisefy/search/WiseFySearchSdk23Tests.kt deleted file mode 100644 index 67dfccaf..00000000 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/search/WiseFySearchSdk23Tests.kt +++ /dev/null @@ -1,650 +0,0 @@ -package com.isupatches.wisefy.search - -import android.os.Build -import com.isupatches.wisefy.TEST_REGEX -import com.isupatches.wisefy.TEST_SSID -import com.isupatches.wisefy.TEST_TIMEOUT -import com.isupatches.wisefy.internal.base.BaseInstrumentationTest -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNull -import org.junit.Assume.assumeTrue -import org.junit.Before -import org.junit.Test - -/** - * Used to test the WiseFySearchSDK23 class and search capabilities. - * - * @see WiseFySearchSDK23 - * - * @author Patches - * @since 4.0 - */ -@Suppress("LargeClass", "TooManyFunctions") -internal class WiseFySearchSdk23Tests : BaseInstrumentationTest() { - - private val wisefySearch: WiseFySearch by lazy { - WiseFySearchSDK23.create(mockWifiManager) - } - - @Before - fun setUp() { - assumeTrue( - "Can only run on API Level 23 or newer", - Build.VERSION.SDK_INT >= Build.VERSION_CODES.M - ) - } - - /* - * findAccessPointByRegex tests - */ - - @Test - fun findAccessPointByRegex_failure_nullAccessPoints_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullAccessPoints_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_emptyAccessPointList_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_emptyAccessPointList_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullAccessPoint_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullAccessPoint_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullSSID_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nullSSID_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nonMatchingSSID_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_nonMatchingSSID_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_multipleNonMatchingSSIDs_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_failure_multipleNonMatchingSSIDs_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findAccessPointByRegex(TEST_SSID, TEST_TIMEOUT, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleSSIDs_sameRSSI_nonRegex_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleSSIDs_sameRSSI_nonRegex_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleSSIDs_sameRSSI_regex_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_REGEX, - TEST_TIMEOUT, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleSSIDs_sameRSSI_regex_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_REGEX, - TEST_TIMEOUT, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchingSSIDs_accessPoint1HasHigherRSSI_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchesSSIDs_accessPoint1HasHigherRSSI_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchingSSIDs_accessPoint2HasHigherRSSI_takeHighest_false() { - val takeHighest = false - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(takeHighest) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - takeHighest - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchesSSIDs_accessPoint2HasHigherRSSI_takeHighest_true() { - val takeHighest = true - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(takeHighest) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - takeHighest - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchingSSIDs_sameRSSI_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointByRegex_success_multipleMatchesSSIDs_sameRSSI_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoint(), wisefySearch.findAccessPointByRegex( - TEST_SSID, - TEST_TIMEOUT, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - /* - * findAccessPointsMatchingRegex tests - */ - - @Test - fun findAccessPointsMatchingRegex_failure_nullAccessPoints_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullAccessPoints_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_emptyAccessPointList_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_emptyAccessPointList_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullAccessPoint_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullAccessPoint_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullSSID_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nullSSID_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nonMatchingSSID_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_nonMatchingSSID_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_multipleNonMatchingSSIDs_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, false)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_failure_multipleNonMatchingSSIDs_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findAccessPointsMatchingRegex(TEST_SSID, true)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleSSIDs_nonRegex_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleSSIDs_nonRegex_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleSSIDs_regex_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_REGEX, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleSSIDs_regex_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_REGEX, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_accessPoint1HasHigherRSSI_takeHighest_false() { - val takeHighest = false - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(takeHighest) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - takeHighest - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_accessPoint1HasHigherRSSI_takeHighest_true() { - val takeHighest = true - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(takeHighest) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - takeHighest - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_accessPoint2HasHigherRSSI_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_accessPoint2HasHigherRSSI_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_sameRSSI_takeHighest_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - false - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findAccessPointsMatchingRegex_success_multipleMatchingSSIDs_sameRSSI_takeHighest_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), wisefySearch.findAccessPointsMatchingRegex( - TEST_SSID, - true - )) - verificationUtil.didNotTryToScanForAccessPoints() - } - - /* - * findSSIDsMatchingRegex tests - */ - - @Test - fun findSSIDsMatchingRegex_failure_nullAccessPoints() { - mockNetworkUtil.nearbyAccessPoints_nullList() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_emptySavedNetworkList() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_nullAccessPoint() { - mockNetworkUtil.nearbyAccessPoints_nullAccessPoint() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_nullSSID() { - mockNetworkUtil.nearbyAccessPoints_nullSSID() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_nonMatchingSSID() { - mockNetworkUtil.nearbyAccessPoints_nonMatchingSSID() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_failure_multipleNonMatchingSSIDs() { - mockNetworkUtil.nearbyAccessPoints_multipleNonMatchingSSIDs() - assertEquals(null, wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success() { - mockNetworkUtil.nearbyAccessPoints_matchingSSID() - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleMatchingSSIDs_sameRSSI() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleMatchingSSIDs_accessPoint1HasHigherRSSI() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(true) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleMatchingSSIDs_accessPoint2HasHigherRSSI() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(true) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleSSIDs_nonRegex() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(false) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_SSID)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun findSSIDsMatchingRegex_success_multipleSSIDs_regex() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - assertEquals(mockNetworkUtil.getExpectedSSIDs(), wisefySearch.findSSIDsMatchingRegex(TEST_REGEX)) - verificationUtil.didNotTryToScanForAccessPoints() - } - - /* - * getNearbyAccessPoints tests - */ - - @Test - fun getNearbyAccessPoints_differentSSIDs_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_sameSignalLevels_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(false) - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_accessPoint1Higher_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_accessPoint2Higher_filterDuplicates_true() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(true) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_nullAccessPointList_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_nullList() - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertNull(accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_emptyAccessPointList_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_emptyList() - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertNull(accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_differentSSIDs_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_multipleSSIDs_sameRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_sameSignalLevels_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_sameRSSI(true) - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_accessPoint1Higher_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint1HasHigherRSSI(false) - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } - - @Test - fun getNearbyAccessPoints_accessPoint2Higher_filterDuplicates_false() { - mockNetworkUtil.nearbyAccessPoints_multipleMatchingSSIDs_accessPoint2HasHigherRSSI(false) - val accessPoints = wisefySearch.getNearbyAccessPoints(false) - assertEquals(mockNetworkUtil.getExpectedNearbyAccessPoints(), accessPoints) - verificationUtil.triedToGetNearbyAccessPoints() - verificationUtil.didNotTryToScanForAccessPoints() - } -} diff --git a/wisefy/src/commonTest/java/com/isupatches/wisefy/TestUtils.kt b/wisefy/src/commonTest/java/com/isupatches/wisefy/TestUtils.kt deleted file mode 100644 index ba45c952..00000000 --- a/wisefy/src/commonTest/java/com/isupatches/wisefy/TestUtils.kt +++ /dev/null @@ -1,65 +0,0 @@ -package com.isupatches.wisefy - -import com.isupatches.wisefy.WiseFy.Companion.MAX_FREQUENCY_5GHZ -import com.isupatches.wisefy.WiseFy.Companion.MIN_FREQUENCY_5GHZ - -internal const val OPEN_NETWORK_SSID = "Open Network" - -internal const val WEP_NETWORK_SSID = "WEP Network" -internal const val WEP_NETWORK_PASSWORD = "12345678" - -internal const val WPA2_NETWORK_SSID = "WPA2 Network" -internal const val WPA2_NETWORK_PASSWORD = "123456" - -internal const val TEST_DELAY = 1 - -internal const val TEST_NUMBER_OF_BARS = 5 - -internal const val TEST_SSID = "Test Network" - -internal const val TEST_NETWORK_FREQUENCY_BELOW_5GHZ = MIN_FREQUENCY_5GHZ - 1 -internal const val TEST_NETWORK_FREQUENCY_ABOVE_5GHZ = MAX_FREQUENCY_5GHZ + 1 - -internal const val TEST_NETWORK_FREQUENCY_24GHZ = 2400 -internal const val TEST_NETWORK_FREQUENCY_5GHZ = 5000 - -internal const val TEST_RSSI_LEVEL = -60 -internal const val TEST_RSSI_LEVEL_LOW = -70 -internal const val TEST_RSSI_LEVEL_HIGH = -35 - -internal const val TEST_TIMEOUT = 1 - -internal const val VERIFICATION_SUCCESS_TIMEOUT = 5000L -internal const val VERIFICATION_FAILURE_TIMEOUT = 3000L - -internal const val TEST_IP_ADDRESS_STRING = "127.0.0.1" - -internal const val TEST_REGEX = ".*Test.*" - -internal const val TEST_SSID2 = "Test Network 2" -internal const val TEST_SSID3 = "Test Network 3" - -internal val TEST_IP_ADDRESS_INT = getIntVersionOfTestIPAddress() - -private const val BIT_SHIFT_VALUE = 8 - -/** - * To convert the TEST_IP_ADDRESS_STRING string into an integer value to be used for Inet and - * tests. - * - * @see #TEST_IP_ADDRESS_STRING - * - * @return int - The int value of a given IP - */ -private fun getIntVersionOfTestIPAddress(): Int { - var result = 0 - - // iterate over each octet - for (part in TEST_IP_ADDRESS_STRING.split(".")) { - // Shift the previously parsed bits over by 1 byte - result = result shl BIT_SHIFT_VALUE - // Set the low order bits to the current octet - result = result or part.toInt() - } - return result -} diff --git a/wisefy/src/debug/AndroidManifest.xml b/wisefy/src/debug/AndroidManifest.xml deleted file mode 100644 index ca5d6d7f..00000000 --- a/wisefy/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/wisefy/src/main/AndroidManifest.xml b/wisefy/src/main/AndroidManifest.xml index c5c62cb3..52798a64 100644 --- a/wisefy/src/main/AndroidManifest.xml +++ b/wisefy/src/main/AndroidManifest.xml @@ -1,12 +1 @@ - - - - - - - - - - \ No newline at end of file + diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/Wisefy.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/Wisefy.kt new file mode 100644 index 00000000..2fbc1864 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/Wisefy.kt @@ -0,0 +1,613 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@file:JvmName("WiseFy") +package com.isupatches.android.wisefy + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_NETWORK_STATE +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.content.Context +import android.net.ConnectivityManager +import android.net.Network +import android.net.wifi.ScanResult +import android.net.wifi.WifiInfo +import android.net.wifi.WifiManager +import android.os.Build +import android.os.Build.VERSION_CODES.LOLLIPOP +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import androidx.annotation.VisibleForTesting +import com.isupatches.android.wisefy.accesspoints.AccessPointsUtil +import com.isupatches.android.wisefy.accesspoints.WisefyAccessPointsUtil +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData +import com.isupatches.android.wisefy.addnetwork.AddNetworkUtil +import com.isupatches.android.wisefy.addnetwork.WisefyAddNetworkUtil +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData +import com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.ConnectToNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.DisableWifiCallbacks +import com.isupatches.android.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.EnableWifiCallbacks +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkInfoCallbacks +import com.isupatches.android.wisefy.callbacks.GetFrequencyCallbacks +import com.isupatches.android.wisefy.callbacks.GetIPCallbacks +import com.isupatches.android.wisefy.callbacks.GetNearbyAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.GetRSSICallbacks +import com.isupatches.android.wisefy.callbacks.GetSavedNetworksCallbacks +import com.isupatches.android.wisefy.callbacks.RemoveNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointsCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDsCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworksCallbacks +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.frequency.FrequencyUtil +import com.isupatches.android.wisefy.frequency.WisefyFrequencyUtil +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkconnection.NetworkConnectionUtil +import com.isupatches.android.wisefy.networkconnection.WisefyNetworkConnectionUtil +import com.isupatches.android.wisefy.networkconnection.entities.NetworkConnectionResult +import com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusUtil +import com.isupatches.android.wisefy.networkconnectionstatus.WisefyNetworkConnectionStatusUtil +import com.isupatches.android.wisefy.networkinfo.NetworkInfoUtil +import com.isupatches.android.wisefy.networkinfo.WisefyNetworkInfoUtil +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkData +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkInfoData +import com.isupatches.android.wisefy.removenetwork.RemoveNetworkUtil +import com.isupatches.android.wisefy.removenetwork.WisefyRemoveNetworkUtil +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult +import com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil +import com.isupatches.android.wisefy.savednetworks.WisefySavedNetworkUtil +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData +import com.isupatches.android.wisefy.security.SecurityUtil +import com.isupatches.android.wisefy.security.WisefySecurityUtil +import com.isupatches.android.wisefy.signal.SignalUtil +import com.isupatches.android.wisefy.signal.WisefySignalUtil +import com.isupatches.android.wisefy.util.SdkUtilImpl +import com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider +import com.isupatches.android.wisefy.wifi.WifiUtil +import com.isupatches.android.wisefy.wifi.WisefyWifiUtil + +@Suppress("SyntheticAccessor") +class Wisefy private constructor( + private val accessPointsUtil: AccessPointsUtil, + private val addNetworkUtil: AddNetworkUtil, + private val frequencyUtil: FrequencyUtil, + private val networkConnectionUtil: NetworkConnectionUtil, + private val networkConnectionStatusUtil: NetworkConnectionStatusUtil, + private val networkInfoUtil: NetworkInfoUtil, + private val removeNetworkUtil: RemoveNetworkUtil, + private val savedNetworkUtil: SavedNetworkUtil, + private val securityUtil: SecurityUtil, + private val signalUtil: SignalUtil, + private val wifiUtil: WifiUtil +) : WisefyApi { + + class Brains @JvmOverloads constructor( + context: Context, + logger: WisefyLogger? = null + ) { + + private var logger: WisefyLogger? = null + private var connectivityManager: ConnectivityManager + private var wifiManager: WifiManager + + private var accessPointsUtil: AccessPointsUtil + private var addNetworkUtil: AddNetworkUtil + private var frequencyUtil: FrequencyUtil + private var networkConnectionUtil: NetworkConnectionUtil + private var networkConnectionStatusUtil: NetworkConnectionStatusUtil + private var networkInfoUtil: NetworkInfoUtil + private var removeNetworkUtil: RemoveNetworkUtil + private var savedNetworkUtil: SavedNetworkUtil + private var securityUtil: SecurityUtil + private var signalUtil: SignalUtil + private var wifiUtil: WifiUtil + + init { + connectivityManager = context.applicationContext.getSystemService( + Context.CONNECTIVITY_SERVICE + ) as ConnectivityManager + wifiManager = context.applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager + + val sdkUtil = SdkUtilImpl() + val coroutineDispatcherProvider = CoroutineDispatcherProvider() + + // Used by other utils + savedNetworkUtil = WisefySavedNetworkUtil( + coroutineDispatcherProvider = coroutineDispatcherProvider, + logger = logger, + sdkUtil = sdkUtil, + wifiManager = wifiManager + ) + networkConnectionStatusUtil = WisefyNetworkConnectionStatusUtil( + connectivityManager = connectivityManager, + logger = logger, + sdkUtil = sdkUtil, + wifiManager = wifiManager + ) + + // Not used by other utils + accessPointsUtil = WisefyAccessPointsUtil( + coroutineDispatcherProvider = coroutineDispatcherProvider, + logger = logger, + wifiManager = wifiManager + ) + addNetworkUtil = WisefyAddNetworkUtil( + coroutineDispatcherProvider = coroutineDispatcherProvider, + logger = logger, + sdkUtil = sdkUtil, + wifiManager = wifiManager + ) + frequencyUtil = WisefyFrequencyUtil( + coroutineDispatcherProvider = coroutineDispatcherProvider, + logger = logger, + wifiManager = wifiManager + ) + networkConnectionUtil = WisefyNetworkConnectionUtil( + coroutineDispatcherProvider = coroutineDispatcherProvider, + connectivityManager = connectivityManager, + logger = logger, + networkConnectionStatusUtil = networkConnectionStatusUtil, + savedNetworkUtil = savedNetworkUtil, + sdkUtil = sdkUtil, + wifiManager = wifiManager + ) + networkInfoUtil = WisefyNetworkInfoUtil( + coroutineDispatcherProvider = coroutineDispatcherProvider, + connectivityManager = connectivityManager, + logger = logger, + wifiManager = wifiManager + ) + removeNetworkUtil = WisefyRemoveNetworkUtil( + coroutineDispatcherProvider = coroutineDispatcherProvider, + logger = logger, + savedNetworkUtil = savedNetworkUtil, + sdkUtil = sdkUtil, + wifiManager = wifiManager + ) + securityUtil = WisefySecurityUtil( + logger = logger + ) + signalUtil = WisefySignalUtil( + logger = logger, + sdkUtil = sdkUtil, + wifiManager = wifiManager + ) + wifiUtil = WisefyWifiUtil( + coroutineDispatcherProvider = coroutineDispatcherProvider, + logger = logger, + sdkUtil = sdkUtil, + wifiManager = wifiManager + ) + } + + internal fun logger(logger: WisefyLogger): Brains = apply { + this.logger = logger + } + + @VisibleForTesting + internal fun customConnectivityManager(connectivityManager: ConnectivityManager): Brains = apply { + this.connectivityManager = connectivityManager + } + + @VisibleForTesting + internal fun customWifiManager(wifiManager: WifiManager): Brains = apply { + this.wifiManager = wifiManager + } + + @VisibleForTesting + internal fun customAccessPointsUtil(accessPointsUtil: AccessPointsUtil): Brains = apply { + this.accessPointsUtil = accessPointsUtil + } + + @VisibleForTesting + internal fun customAddNetworkUtil(addNetworkUtil: AddNetworkUtil): Brains = apply { + this.addNetworkUtil = addNetworkUtil + } + + @VisibleForTesting + internal fun customFrequencyUtil(frequencyUtil: FrequencyUtil): Brains = apply { + this.frequencyUtil = frequencyUtil + } + + @VisibleForTesting + internal fun customNetworkConnectionUtil(networkConnectionUtil: NetworkConnectionUtil): Brains = apply { + this.networkConnectionUtil = networkConnectionUtil + } + + @VisibleForTesting + internal fun customNetworkConnectionStatusUtil( + networkConnectionStatusUtil: NetworkConnectionStatusUtil + ): Brains = apply { + this.networkConnectionStatusUtil = networkConnectionStatusUtil + } + + @VisibleForTesting + internal fun customNetworkInfoUtil(networkInfoUtil: NetworkInfoUtil): Brains = apply { + this.networkInfoUtil = networkInfoUtil + } + + @VisibleForTesting + internal fun customRemoveNetworkUtil(removeNetworkUtil: RemoveNetworkUtil): Brains = apply { + this.removeNetworkUtil = removeNetworkUtil + } + + @VisibleForTesting + internal fun customSavedNetworkUtil(savedNetworkUtil: SavedNetworkUtil): Brains = apply { + this.savedNetworkUtil = savedNetworkUtil + } + + @VisibleForTesting + internal fun customSecurityUtil(securityUtil: SecurityUtil): Brains = apply { + this.securityUtil = securityUtil + } + + @VisibleForTesting + internal fun customSignalUtil(signalUtil: SignalUtil): Brains = apply { + this.signalUtil = signalUtil + } + + @VisibleForTesting + internal fun customWifiUtil(wifiUtil: WifiUtil): Brains = apply { + this.wifiUtil = wifiUtil + } + + fun getSmarts(): WisefyApi { + return Wisefy( + accessPointsUtil = accessPointsUtil, + addNetworkUtil = addNetworkUtil, + frequencyUtil = frequencyUtil, + networkConnectionUtil = networkConnectionUtil, + networkConnectionStatusUtil = networkConnectionStatusUtil, + networkInfoUtil = networkInfoUtil, + removeNetworkUtil = removeNetworkUtil, + savedNetworkUtil = savedNetworkUtil, + securityUtil = securityUtil, + signalUtil = signalUtil, + wifiUtil = wifiUtil + ) + } + } + + override fun attachNetworkWatcher() { + networkConnectionStatusUtil.attachNetworkWatcher() + } + + override fun detachNetworkWatcher() { + networkConnectionStatusUtil.detachNetworkWatcher() + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork(data: OpenNetworkData): AddNetworkResult { + return addNetworkUtil.addOpenNetwork(data) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork(data: OpenNetworkData, callbacks: AddNetworkCallbacks?) { + addNetworkUtil.addOpenNetwork(data, callbacks) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network(data: WPA2NetworkData): AddNetworkResult { + return addNetworkUtil.addWPA2Network(data) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network(data: WPA2NetworkData, callbacks: AddNetworkCallbacks?) { + addNetworkUtil.addWPA2Network(data, callbacks) + } + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network(data: WPA3NetworkData): AddNetworkResult { + return addNetworkUtil.addWPA3Network(data) + } + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network(data: WPA3NetworkData, callbacks: AddNetworkCallbacks?) { + addNetworkUtil.addWPA3Network(data, callbacks) + } + + override fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int { + return signalUtil.calculateBars(rssiLevel, targetNumberOfBars) + } + + @RequiresApi(Build.VERSION_CODES.R) + override fun calculateBars(rssiLevel: Int): Int { + return signalUtil.calculateBars(rssiLevel) + } + + override fun compareSignalLevel(rssi1: Int, rssi2: Int): Int { + return signalUtil.compareSignalLevel(rssi1, rssi2) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int): NetworkConnectionResult { + return networkConnectionUtil.connectToNetwork(ssidToConnectTo, timeoutInMillis) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun connectToNetwork( + ssidToConnectTo: String, + timeoutInMillis: Int, + callbacks: ConnectToNetworkCallbacks? + ) { + networkConnectionUtil.connectToNetwork(ssidToConnectTo, timeoutInMillis, callbacks) + } + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + override fun disableWifi(): Boolean { + return wifiUtil.disableWifi() + } + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + override fun disableWifi(callbacks: DisableWifiCallbacks?) { + wifiUtil.disableWifi(callbacks) + } + + override fun disconnectFromCurrentNetwork(): NetworkConnectionResult { + return networkConnectionUtil.disconnectFromCurrentNetwork() + } + + override fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?) { + networkConnectionUtil.disconnectFromCurrentNetwork(callbacks) + } + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + override fun enableWifi(): Boolean { + return wifiUtil.enableWifi() + } + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + override fun enableWifi(callbacks: EnableWifiCallbacks?) { + wifiUtil.enableWifi(callbacks) + } + + override fun getCurrentNetwork(): CurrentNetworkData? { + return networkInfoUtil.getCurrentNetwork() + } + + override fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?) { + networkInfoUtil.getCurrentNetwork(callbacks) + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun getCurrentNetworkInfo(network: Network?): CurrentNetworkInfoData? { + return networkInfoUtil.getCurrentNetworkInfo(network) + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?, network: Network?) { + networkInfoUtil.getCurrentNetworkInfo(callbacks, network) + } + + @RequiresApi(LOLLIPOP) + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getFrequency(): Int? { + return frequencyUtil.getFrequency() + } + + @RequiresApi(LOLLIPOP) + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getFrequency(callbacks: GetFrequencyCallbacks?) { + frequencyUtil.getFrequency(callbacks) + } + + @RequiresApi(LOLLIPOP) + override fun getFrequency(network: WifiInfo): Int { + return frequencyUtil.getFrequency(network) + } + + override fun getIP(): String? { + return networkInfoUtil.getIP() + } + + override fun getIP(callbacks: GetIPCallbacks?) { + networkInfoUtil.getIP(callbacks) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getNearbyAccessPoints(filterDuplicates: Boolean): List { + return accessPointsUtil.getNearbyAccessPoints(filterDuplicates) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointCallbacks?) { + accessPointsUtil.getNearbyAccessPoints(filterDuplicates, callbacks) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getRSSI(regexForSSID: String, takeHighest: Boolean, timeoutInMillis: Int): Int? { + return accessPointsUtil.getRSSI(regexForSSID, takeHighest, timeoutInMillis) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getRSSI( + regexForSSID: String, + takeHighest: Boolean, + timeoutInMillis: Int, + callbacks: GetRSSICallbacks? + ) { + accessPointsUtil.getRSSI(regexForSSID, takeHighest, timeoutInMillis, callbacks) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun getSavedNetworks(): List { + return savedNetworkUtil.getSavedNetworks() + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?) { + savedNetworkUtil.getSavedNetworks(callbacks) + } + + override fun isDeviceConnectedToMobileNetwork(): Boolean { + return networkConnectionStatusUtil.isDeviceConnectedToMobileNetwork() + } + + override fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean { + return networkConnectionStatusUtil.isDeviceConnectedToMobileOrWifiNetwork() + } + + override fun isDeviceConnectedToSSID(ssid: String): Boolean { + return networkConnectionStatusUtil.isDeviceConnectedToSSID(ssid) + } + + override fun isDeviceConnectedToWifiNetwork(): Boolean { + return networkConnectionStatusUtil.isDeviceConnectedToWifiNetwork() + } + + override fun isDeviceRoaming(): Boolean { + return networkConnectionStatusUtil.isDeviceRoaming() + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun isNetwork5gHz(): Boolean { + return frequencyUtil.isNetwork5gHz() + } + + override fun isNetwork5gHz(network: WifiInfo): Boolean { + return frequencyUtil.isNetwork5gHz(network) + } + + override fun isNetworkEAP(scanResult: ScanResult): Boolean { + return securityUtil.isNetworkEAP(scanResult) + } + + override fun isNetworkPSK(scanResult: ScanResult): Boolean { + return securityUtil.isNetworkPSK(scanResult) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun isNetworkSaved(ssid: String): Boolean { + return savedNetworkUtil.isNetworkSaved(ssid) + } + + override fun isNetworkSecure(scanResult: ScanResult): Boolean { + return securityUtil.isNetworkSecure(scanResult) + } + + override fun isNetworkWEP(scanResult: ScanResult): Boolean { + return securityUtil.isNetworkWEP(scanResult) + } + + override fun isNetworkWPA(scanResult: ScanResult): Boolean { + return securityUtil.isNetworkWPA(scanResult) + } + + override fun isNetworkWPA2(scanResult: ScanResult): Boolean { + return securityUtil.isNetworkWPA2(scanResult) + } + + override fun isNetworkWPA3(scanResult: ScanResult): Boolean { + return securityUtil.isNetworkWPA3(scanResult) + } + + override fun isWifiEnabled(): Boolean { + return wifiUtil.isWifiEnabled() + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun removeNetwork(ssidToRemove: String): RemoveNetworkResult { + return removeNetworkUtil.removeNetwork(ssidToRemove) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun removeNetwork(ssidToRemove: String, callbacks: RemoveNetworkCallbacks?) { + removeNetworkUtil.removeNetwork(ssidToRemove, callbacks) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean + ): AccessPointData? { + return accessPointsUtil.searchForAccessPoint(regexForSSID, timeoutInMillis, filterDuplicates) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointCallbacks? + ) { + accessPointsUtil.searchForAccessPoint(regexForSSID, timeoutInMillis, filterDuplicates, callbacks) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoints(regexForSSID: String, filterDuplicates: Boolean): List { + return accessPointsUtil.searchForAccessPoints(regexForSSID, filterDuplicates) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoints( + regexForSSID: String, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointsCallbacks? + ) { + accessPointsUtil.searchForAccessPoints(regexForSSID, filterDuplicates, callbacks) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? { + return savedNetworkUtil.searchForSavedNetwork(regexForSSID) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork(regexForSSID: String, callbacks: SearchForSavedNetworkCallbacks?) { + savedNetworkUtil.searchForSavedNetwork(regexForSSID, callbacks) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks(regexForSSID: String): List { + return savedNetworkUtil.searchForSavedNetworks(regexForSSID) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks(regexForSSID: String, callbacks: SearchForSavedNetworksCallbacks?) { + savedNetworkUtil.searchForSavedNetworks(regexForSSID, callbacks) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSID(regexForSSID: String, timeoutInMillis: Int): String? { + return accessPointsUtil.searchForSSID(regexForSSID, timeoutInMillis) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSID(regexForSSID: String, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?) { + accessPointsUtil.searchForSSID(regexForSSID, timeoutInMillis, callbacks) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSIDs(regexForSSID: String): List { + return accessPointsUtil.searchForSSIDs(regexForSSID) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSIDs(regexForSSID: String, callbacks: SearchForSSIDsCallbacks?) { + accessPointsUtil.searchForSSIDs(regexForSSID, callbacks) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/WisefyApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/WisefyApi.kt new file mode 100644 index 00000000..0a0ac5c0 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/WisefyApi.kt @@ -0,0 +1,83 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy + +import com.isupatches.android.wisefy.accesspoints.AccessPointsApi +import com.isupatches.android.wisefy.accesspoints.AccessPointsApiAsync +import com.isupatches.android.wisefy.addnetwork.AddNetworkApi +import com.isupatches.android.wisefy.addnetwork.AddNetworkApiAsync +import com.isupatches.android.wisefy.frequency.FrequencyApi +import com.isupatches.android.wisefy.frequency.FrequencyApiAsync +import com.isupatches.android.wisefy.networkconnection.NetworkConnectionApi +import com.isupatches.android.wisefy.networkconnection.NetworkConnectionApiAsync +import com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusApi +import com.isupatches.android.wisefy.networkinfo.NetworkInfoApi +import com.isupatches.android.wisefy.networkinfo.NetworkInfoApiAsync +import com.isupatches.android.wisefy.removenetwork.RemoveNetworkApi +import com.isupatches.android.wisefy.removenetwork.RemoveNetworkApiAsync +import com.isupatches.android.wisefy.savednetworks.SavedNetworkApi +import com.isupatches.android.wisefy.savednetworks.SavedNetworkApiAsync +import com.isupatches.android.wisefy.security.SecurityApi +import com.isupatches.android.wisefy.signal.SignalApi +import com.isupatches.android.wisefy.wifi.WifiApi +import com.isupatches.android.wisefy.wifi.WifiApiAsync + +/** + * The culmination of APIs that create WiseFy's public interface. + * + * @see AccessPointsApi + * @see AccessPointsApiAsync + * @see AddNetworkApi + * @see AddNetworkApiAsync + * @see FrequencyApi + * @see FrequencyApiAsync + * @see NetworkConnectionApi + * @see NetworkConnectionApiAsync + * @see NetworkConnectionStatusApi + * @see NetworkInfoApi + * @see NetworkInfoApiAsync + * @see RemoveNetworkApi + * @see RemoveNetworkApiAsync + * @see SavedNetworkApi + * @see SavedNetworkApiAsync + * @see SecurityApi + * @see SignalApi + * @see WifiApi + * @see WifiApiAsync + * + * @author Patches Klinefelter + * @since 07/2021 + */ +interface WisefyApi : + AccessPointsApi, + AccessPointsApiAsync, + AddNetworkApi, + AddNetworkApiAsync, + FrequencyApi, + FrequencyApiAsync, + NetworkConnectionApi, + NetworkConnectionApiAsync, + NetworkConnectionStatusApi, + NetworkInfoApi, + NetworkInfoApiAsync, + RemoveNetworkApi, + RemoveNetworkApiAsync, + SavedNetworkApi, + SavedNetworkApiAsync, + SecurityApi, + SignalApi, + WifiApi, + WifiApiAsync diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/AccessPointsApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/AccessPointsApi.kt new file mode 100644 index 00000000..d849e707 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/AccessPointsApi.kt @@ -0,0 +1,84 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.accesspoints + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData +import com.isupatches.android.wisefy.callbacks.GetNearbyAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.GetRSSICallbacks +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointsCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDsCallbacks + +interface AccessPointsApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getNearbyAccessPoints(filterDuplicates: Boolean): List + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getRSSI(regexForSSID: String, takeHighest: Boolean, timeoutInMillis: Int): Int? + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean + ): AccessPointData? + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoints( + regexForSSID: String, + filterDuplicates: Boolean + ): List + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSID(regexForSSID: String, timeoutInMillis: Int): String? + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSIDs(regexForSSID: String): List +} + +interface AccessPointsApiAsync { + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointCallbacks?) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getRSSI(regexForSSID: String, takeHighest: Boolean, timeoutInMillis: Int, callbacks: GetRSSICallbacks?) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointCallbacks? + ) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoints( + regexForSSID: String, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointsCallbacks? + ) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSID(regexForSSID: String, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?) + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSIDs(regexForSSID: String, callbacks: SearchForSSIDsCallbacks?) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/WisefyAccessPointsUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/WisefyAccessPointsUtil.kt new file mode 100644 index 00000000..0b7c56e2 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/WisefyAccessPointsUtil.kt @@ -0,0 +1,179 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.accesspoints + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.accesspoints.delegates.LegacyAccessPointsDelegate +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData +import com.isupatches.android.wisefy.callbacks.GetNearbyAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.GetRSSICallbacks +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForAccessPointsCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSSIDsCallbacks +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider +import com.isupatches.android.wisefy.util.coroutines.createBaseCoroutineExceptionHandler +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Job +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext + +internal interface AccessPointsUtil : AccessPointsApi, AccessPointsApiAsync + +private const val LOG_TAG = "WisefyAccessPointsUtil" + +internal class WisefyAccessPointsUtil( + private val coroutineDispatcherProvider: CoroutineDispatcherProvider, + logger: WisefyLogger?, + wifiManager: WifiManager +) : AccessPointsUtil { + + private val delegate = LegacyAccessPointsDelegate(wifiManager, logger) + private val accessPointScope = CoroutineScope(Job() + coroutineDispatcherProvider.io) + + init { + logger?.d(LOG_TAG, "WisefyAccessPointsUtil delegate is: ${delegate::class.java.simpleName}") + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getNearbyAccessPoints(filterDuplicates: Boolean): List { + return delegate.getNearbyAccessPoints(filterDuplicates) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointCallbacks?) { + accessPointScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val accessPoints = delegate.getNearbyAccessPoints(filterDuplicates) + withContext(coroutineDispatcherProvider.main) { + when { + accessPoints.isNotEmpty() -> callbacks?.onNearbyAccessPointsRetrieved(accessPoints) + else -> callbacks?.onNoNearbyAccessPoints() + } + } + } + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getRSSI(regexForSSID: String, takeHighest: Boolean, timeoutInMillis: Int): Int? { + return delegate.getRSSI(regexForSSID, takeHighest, timeoutInMillis) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getRSSI( + regexForSSID: String, + takeHighest: Boolean, + timeoutInMillis: Int, + callbacks: GetRSSICallbacks? + ) { + accessPointScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val rssi = delegate.getRSSI(regexForSSID, takeHighest, timeoutInMillis) + withContext(coroutineDispatcherProvider.main) { + when { + rssi != null -> callbacks?.onRSSIRetrieved(rssi) + else -> callbacks?.onNoNetworkToRetrieveRSSI() + } + } + } + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean + ): AccessPointData? { + return delegate.searchForAccessPoint(regexForSSID, timeoutInMillis, filterDuplicates) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointCallbacks? + ) { + accessPointScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val accessPoint = delegate.searchForAccessPoint(regexForSSID, timeoutInMillis, filterDuplicates) + withContext(coroutineDispatcherProvider.main) { + when { + accessPoint != null -> callbacks?.onAccessPointFound(accessPoint) + else -> callbacks?.onNoAccessPointFound() + } + } + } + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoints(regexForSSID: String, filterDuplicates: Boolean): List { + return delegate.searchForAccessPoints(regexForSSID, filterDuplicates) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoints( + regexForSSID: String, + filterDuplicates: Boolean, + callbacks: SearchForAccessPointsCallbacks? + ) { + accessPointScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val accessPoints = delegate.searchForAccessPoints(regexForSSID, filterDuplicates) + withContext(coroutineDispatcherProvider.main) { + when { + accessPoints.isNotEmpty() -> callbacks?.onAccessPointsFound(accessPoints) + else -> callbacks?.onNoAccessPointsFound() + } + } + } + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSID(regexForSSID: String, timeoutInMillis: Int): String? { + return delegate.searchForSSID(regexForSSID, timeoutInMillis) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSID(regexForSSID: String, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?) { + accessPointScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val ssid = delegate.searchForSSID(regexForSSID, timeoutInMillis) + withContext(coroutineDispatcherProvider.main) { + when { + ssid != null -> callbacks?.onSSIDFound(ssid) + else -> callbacks?.onSSIDNotFound() + } + } + } + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSIDs(regexForSSID: String): List { + return delegate.searchForSSIDs(regexForSSID) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSIDs(regexForSSID: String, callbacks: SearchForSSIDsCallbacks?) { + accessPointScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val ssids = delegate.searchForSSIDs(regexForSSID) + withContext(coroutineDispatcherProvider.main) { + when { + ssids.isNotEmpty() -> callbacks?.onSSIDsFound(ssids) + else -> callbacks?.onNoSSIDsFound() + } + } + } + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/delegates/LegacyAccessPointsApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/delegates/LegacyAccessPointsApi.kt new file mode 100644 index 00000000..5f4009d8 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/delegates/LegacyAccessPointsApi.kt @@ -0,0 +1,247 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.accesspoints.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.net.wifi.ScanResult +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.util.rest +import java.util.Locale +import kotlin.collections.ArrayList + +internal interface LegacyAccessPointsApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getNearbyAccessPoints(filterDuplicates: Boolean): List + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun getRSSI(regexForSSID: String, takeHighest: Boolean, timeoutInMillis: Int): Int? + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean + ): AccessPointData? + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForAccessPoints( + regexForSSID: String, + filterDuplicates: Boolean + ): List + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSID(regexForSSID: String, timeoutInMillis: Int): String? + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun searchForSSIDs(regexForSSID: String): List +} + +private const val LOG_TAG = "LegacyAccessPointsApiImpl" + +internal class LegacyAccessPointsApiImpl( + private val wifiManager: WifiManager, + private val logger: WisefyLogger? +) : LegacyAccessPointsApi { + + // For SDK 23 and above, devices will be limited on ability to trigger scans and it's been + // indicated by Android Google docs that eventually apps will no longer be able to trigger a + // scan to prevent abusive apps, therefore for WiseFy we're going to just use the last + // set of scan results...the downside is this may take some time to be updated. + private val scanResultsProvider by lazy { { wifiManager.scanResults } } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getNearbyAccessPoints(filterDuplicates: Boolean): List { + val accessPointsTemp = scanResultsProvider() + if (accessPointsTemp == null || accessPointsTemp.isEmpty()) { + return emptyList() + } + + return if (filterDuplicates) { + removeEntriesWithLowerSignalStrength(accessPointsTemp) + } else { + accessPointsTemp.map { scanResult -> AccessPointData.ScanData(data = scanResult) } + } + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getRSSI(regexForSSID: String, takeHighest: Boolean, timeoutInMillis: Int): Int? { + val scanData = searchForAccessPoint(regexForSSID, timeoutInMillis, takeHighest) + return (scanData as? AccessPointData.ScanData)?.data?.level + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean + ): AccessPointData? { + var scanPass = 1 + var currentTime: Long + val endTime = System.currentTimeMillis() + timeoutInMillis + var accessPointToReturn: ScanResult? = null + do { + currentTime = System.currentTimeMillis() + + val accessPointsTemp = scanResultsProvider() + + logger?.d(LOG_TAG, "Scanning SSIDs, pass %d", scanPass) + if (accessPointsTemp != null && accessPointsTemp.isNotEmpty()) { + var found = false + for (accessPoint in accessPointsTemp) { + if (filterDuplicates) { + if (accessPointMatchesRegex(accessPoint, regexForSSID) && + hasHighestSignalStrength(accessPointsTemp, accessPoint) + ) { + accessPointToReturn = accessPoint + // Need to continue through rest of the list since + // we don't know which one will have the highest + break + } + } else { + if (accessPointMatchesRegex(accessPoint, regexForSSID)) { + accessPointToReturn = accessPoint + found = true + break + } + } + } + + if (found) { + break + } + } else { + logger?.w(LOG_TAG, "Empty access point list") + } + logger?.d(LOG_TAG, "Current time: %d, end time: %d (findAccessPointByRegex)", currentTime, endTime) + scanPass++ + rest() + } while (currentTime < endTime) + return accessPointToReturn?.let { AccessPointData.ScanData(data = it) } + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoints( + regexForSSID: String, + filterDuplicates: Boolean + ): List { + val matchingAccessPoints = ArrayList() + + val accessPointsTemp = scanResultsProvider() + + if (accessPointsTemp == null || accessPointsTemp.isEmpty()) { + return emptyList() + } + + for (accessPoint in accessPointsTemp) { + if (accessPointMatchesRegex(accessPoint, regexForSSID)) { + if (filterDuplicates) { + if (hasHighestSignalStrength(accessPointsTemp, accessPoint)) { + matchingAccessPoints.add(AccessPointData.ScanData(data = accessPoint)) + } + } else { + matchingAccessPoints.add(AccessPointData.ScanData(data = accessPoint)) + } + } + } + + return if (matchingAccessPoints.isNotEmpty()) matchingAccessPoints else emptyList() + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSID(regexForSSID: String, timeoutInMillis: Int): String? { + val scanData = searchForAccessPoint(regexForSSID, timeoutInMillis, false) + return (scanData as? AccessPointData.ScanData)?.data?.SSID + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSIDs(regexForSSID: String): List { + val matchingSSIDs = ArrayList() + val accessPointsTemp = scanResultsProvider() ?: emptyList() + for (accessPoint in accessPointsTemp) { + if (accessPointMatchesRegex(accessPoint, regexForSSID) && + !matchingSSIDs.contains(accessPoint.SSID) + ) { + matchingSSIDs.add(accessPoint.SSID) + } + } + return if (matchingSSIDs.isNotEmpty()) matchingSSIDs else emptyList() + } + + private fun accessPointMatchesRegex(accessPoint: ScanResult?, regexForSSID: String): Boolean { + logger?.d( + LOG_TAG, + "accessPoint. SSID: %s, regex for SSID: %s".format(Locale.US, accessPoint?.SSID, regexForSSID) + ) + return accessPoint?.SSID?.matches(regexForSSID.toRegex()) ?: false + } + + private fun hasHighestSignalStrength( + accessPoints: List, + currentAccessPoint: ScanResult + ): Boolean { + for (accessPoint in accessPoints) { + if (accessPoint.SSID.equals(currentAccessPoint.SSID, ignoreCase = true)) { + val comparisonResult = WifiManager.compareSignalLevel(accessPoint.level, currentAccessPoint.level) + logger?.d( + LOG_TAG, + "Current RSSI: %d\nAccess point RSSI: %d\nComparison result: %d", + currentAccessPoint.level, accessPoint.level, comparisonResult + ) + if (comparisonResult > 0) { + logger?.d(LOG_TAG, "Stronger signal strength found") + return false + } + } + } + return true + } + + private fun removeEntriesWithLowerSignalStrength(accessPoints: List): List { + val accessPointsToReturn = ArrayList() + + for (accessPoint in accessPoints) { + var found = false + for (i in accessPointsToReturn.indices) { + val accessPointData = accessPointsToReturn[i] + + logger?.d(LOG_TAG, "SSID 1: %s, SSID 2: %s", accessPoint.SSID, accessPointData.data.SSID) + if (accessPoint.SSID.equals(accessPointData.data.SSID, ignoreCase = true)) { + found = true + val comparisonResult = WifiManager.compareSignalLevel(accessPoint.level, accessPointData.data.level) + logger?.d( + LOG_TAG, + "Access point 1 RSSI: %d\nAccess point 2 RSSI: %d\nComparison result: %d", + accessPointData.data.level, accessPoint.level, comparisonResult + ) + if (comparisonResult > 0) { + logger?.d(LOG_TAG, "New result has a higher or same signal strength, swapping") + accessPointsToReturn[i] = AccessPointData.ScanData(accessPoint) + } + } + } + + if (!found) { + logger?.d(LOG_TAG, "Found new wifi network") + accessPointsToReturn.add(AccessPointData.ScanData(accessPoint)) + } + } + return accessPointsToReturn + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/delegates/LegacyAccessPointsDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/delegates/LegacyAccessPointsDelegate.kt new file mode 100644 index 00000000..09b163f2 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/delegates/LegacyAccessPointsDelegate.kt @@ -0,0 +1,64 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.accesspoints.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.accesspoints.AccessPointsApi +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData +import com.isupatches.android.wisefy.logging.WisefyLogger + +internal class LegacyAccessPointsDelegate( + wifiManager: WifiManager, + logger: WisefyLogger?, + private val impl: LegacyAccessPointsApi = LegacyAccessPointsApiImpl(wifiManager, logger) +) : AccessPointsApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getNearbyAccessPoints(filterDuplicates: Boolean): List { + return impl.getNearbyAccessPoints(filterDuplicates) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getRSSI(regexForSSID: String, takeHighest: Boolean, timeoutInMillis: Int): Int? { + return impl.getRSSI(regexForSSID, takeHighest, timeoutInMillis) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoint( + regexForSSID: String, + timeoutInMillis: Int, + filterDuplicates: Boolean + ): AccessPointData? { + return impl.searchForAccessPoint(regexForSSID, timeoutInMillis, filterDuplicates) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForAccessPoints(regexForSSID: String, filterDuplicates: Boolean): List { + return impl.searchForAccessPoints(regexForSSID, filterDuplicates) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSID(regexForSSID: String, timeoutInMillis: Int): String? { + return impl.searchForSSID(regexForSSID, timeoutInMillis) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSSIDs(regexForSSID: String): List { + return impl.searchForSSIDs(regexForSSID) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/entities/AccessPointData.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/entities/AccessPointData.kt new file mode 100644 index 00000000..e552bdf8 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/accesspoints/entities/AccessPointData.kt @@ -0,0 +1,24 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.accesspoints.entities + +import android.net.wifi.ScanResult + +sealed class AccessPointData { + data class ScanData( + val data: ScanResult + ) : AccessPointData() +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/AddNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/AddNetworkApi.kt new file mode 100644 index 00000000..9bf2db73 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/AddNetworkApi.kt @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.addnetwork + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData +import com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks + +interface AddNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addOpenNetwork(data: OpenNetworkData): AddNetworkResult + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addWPA2Network(data: WPA2NetworkData): AddNetworkResult + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addWPA3Network(data: WPA3NetworkData): AddNetworkResult +} + +interface AddNetworkApiAsync { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addOpenNetwork(data: OpenNetworkData, callbacks: AddNetworkCallbacks?) + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addWPA2Network(data: WPA2NetworkData, callbacks: AddNetworkCallbacks?) + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addWPA3Network(data: WPA3NetworkData, callbacks: AddNetworkCallbacks?) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/WisefyAddNetworkUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/WisefyAddNetworkUtil.kt new file mode 100644 index 00000000..64b653a3 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/WisefyAddNetworkUtil.kt @@ -0,0 +1,134 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.addnetwork + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.addnetwork.delegates.Android29AddNetworkDelegate +import com.isupatches.android.wisefy.addnetwork.delegates.Android30AddNetworkDelegate +import com.isupatches.android.wisefy.addnetwork.delegates.LegacyAddNetworkDelegate +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData +import com.isupatches.android.wisefy.callbacks.AddNetworkCallbacks +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.util.SdkUtil +import com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider +import com.isupatches.android.wisefy.util.coroutines.createBaseCoroutineExceptionHandler +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Job +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext + +internal interface AddNetworkUtil : AddNetworkApi, AddNetworkApiAsync + +private const val LOG_TAG = "WisefyAddNetworkUtil" + +internal class WisefyAddNetworkUtil( + private val coroutineDispatcherProvider: CoroutineDispatcherProvider, + logger: WisefyLogger?, + sdkUtil: SdkUtil, + wifiManager: WifiManager +) : AddNetworkUtil { + + private val addNetworkScope = CoroutineScope(Job() + coroutineDispatcherProvider.io) + + private val delegate = when { + sdkUtil.isAtLeastR() -> Android30AddNetworkDelegate(wifiManager) + sdkUtil.isAtLeastQ() -> Android29AddNetworkDelegate(wifiManager, logger) + else -> LegacyAddNetworkDelegate(wifiManager) + } + + init { + logger?.d(LOG_TAG, "WisefyAddNetworkUtil delegate is: ${delegate::class.java.simpleName}") + } + + /* + * Legacy API requires ACCESS_FINE_LOCATION while API 29+ requires CHANGE_WIFI_STATE + */ + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork(data: OpenNetworkData): AddNetworkResult { + return delegate.addOpenNetwork(data) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork(data: OpenNetworkData, callbacks: AddNetworkCallbacks?) { + addNetworkScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val addNetworkResult = addOpenNetwork(data) + withContext(coroutineDispatcherProvider.main) { + when { + addNetworkResult is AddNetworkResult.ResultCode && addNetworkResult.data == -1 -> { + callbacks?.onFailureAddingNetwork(addNetworkResult) + } + else -> callbacks?.onNetworkAdded(addNetworkResult) + } + } + } + } + + /* + * Legacy API requires ACCESS_FINE_LOCATION while API 29+ requires CHANGE_WIFI_STATE + */ + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network(data: WPA2NetworkData): AddNetworkResult { + return delegate.addWPA2Network(data) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network(data: WPA2NetworkData, callbacks: AddNetworkCallbacks?) { + addNetworkScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val addNetworkResult = addWPA2Network(data) + withContext(coroutineDispatcherProvider.main) { + when { + addNetworkResult is AddNetworkResult.ResultCode && addNetworkResult.data == -1 -> { + callbacks?.onFailureAddingNetwork(addNetworkResult) + } + else -> callbacks?.onNetworkAdded(addNetworkResult) + } + } + } + } + + /* + * Legacy API requires ACCESS_FINE_LOCATION while API 29+ requires CHANGE_WIFI_STATE + */ + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network(data: WPA3NetworkData): AddNetworkResult { + return delegate.addWPA3Network(data) + } + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network(data: WPA3NetworkData, callbacks: AddNetworkCallbacks?) { + addNetworkScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val addNetworkResult = addWPA3Network(data) + withContext(coroutineDispatcherProvider.main) { + when { + addNetworkResult is AddNetworkResult.ResultCode && addNetworkResult.data == -1 -> { + callbacks?.onFailureAddingNetwork(addNetworkResult) + } + else -> callbacks?.onNetworkAdded(addNetworkResult) + } + } + } + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android29AddNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android29AddNetworkApi.kt new file mode 100644 index 00000000..217ed633 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android29AddNetworkApi.kt @@ -0,0 +1,75 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.addnetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.util.createOpenNetworkSuggestion +import com.isupatches.android.wisefy.util.createWPA2NetworkSuggestion +import com.isupatches.android.wisefy.util.createWPA3NetworkSuggestion + +@RequiresApi(Build.VERSION_CODES.Q) +internal interface Android29AddNetworkApi { + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addOpenNetwork(ssid: String): AddNetworkResult + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addWPA2Network(ssid: String, passphrase: String): AddNetworkResult + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addWPA3Network(ssid: String, passphrase: String): AddNetworkResult +} + +private const val LOG_TAG = "Android29AddNetworkApiImpl" +private const val ANDROID_Q_SAVE_NETWORK_WARNING = + "There is no known way to save a network on Android Q similar to pre-Q or R+ behavior" + +@RequiresApi(Build.VERSION_CODES.Q) +internal class Android29AddNetworkApiImpl( + private val wifiManager: WifiManager, + private val logger: WisefyLogger? +) : Android29AddNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork(ssid: String): AddNetworkResult { + logger?.w(LOG_TAG, ANDROID_Q_SAVE_NETWORK_WARNING) + val suggestion = createOpenNetworkSuggestion(ssid) + val resultCode = wifiManager.addNetworkSuggestions(arrayListOf(suggestion)) + return AddNetworkResult.ResultCode(resultCode) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network(ssid: String, passphrase: String): AddNetworkResult { + logger?.w(LOG_TAG, ANDROID_Q_SAVE_NETWORK_WARNING) + val suggestion = createWPA2NetworkSuggestion(ssid, passphrase) + val resultCode = wifiManager.addNetworkSuggestions(listOf(suggestion)) + return AddNetworkResult.ResultCode(resultCode) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network(ssid: String, passphrase: String): AddNetworkResult { + logger?.w(LOG_TAG, ANDROID_Q_SAVE_NETWORK_WARNING) + val suggestion = createWPA3NetworkSuggestion(ssid, passphrase) + val resultCode = wifiManager.addNetworkSuggestions(arrayListOf(suggestion)) + return AddNetworkResult.ResultCode(resultCode) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android29AddNetworkDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android29AddNetworkDelegate.kt new file mode 100644 index 00000000..8b411507 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android29AddNetworkDelegate.kt @@ -0,0 +1,81 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.addnetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.addnetwork.AddNetworkApi +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData +import com.isupatches.android.wisefy.constants.ErrorMessages +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.util.fail + +@RequiresApi(Build.VERSION_CODES.Q) +internal class Android29AddNetworkDelegate( + wifiManager: WifiManager, + logger: WisefyLogger?, + private val impl: Android29AddNetworkApi = Android29AddNetworkApiImpl(wifiManager, logger) +) : AddNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork(data: OpenNetworkData): AddNetworkResult { + return when (data) { + is OpenNetworkData.Ssid -> { + impl.addOpenNetwork(data.ssid) + } + is OpenNetworkData.SsidAndActivityResultLauncher -> { + val message = ErrorMessages.AddNetwork.ActivityResultLauncher.USED_PRE_ANDROID_30 + fail(message) + return AddNetworkResult.WrongSDKLevelError(message) + } + } + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network(data: WPA2NetworkData): AddNetworkResult { + return when (data) { + is WPA2NetworkData.SsidAndPassphrase -> { + impl.addWPA2Network(data.ssid, data.passphrase) + } + is WPA2NetworkData.SsidPassphraseAndActivityResultLauncher -> { + val message = ErrorMessages.AddNetwork.ActivityResultLauncher.USED_PRE_ANDROID_30 + fail(message) + return AddNetworkResult.WrongSDKLevelError(message) + } + } + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network(data: WPA3NetworkData): AddNetworkResult { + return when (data) { + is WPA3NetworkData.SsidAndPassphrase -> { + impl.addWPA3Network(data.ssid, data.passphrase) + } + is WPA3NetworkData.SsidPassphraseAndActivityResultLauncher -> { + val message = ErrorMessages.AddNetwork.ActivityResultLauncher.USED_PRE_ANDROID_30 + fail(message) + return AddNetworkResult.WrongSDKLevelError(message) + } + } + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android30AddNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android30AddNetworkApi.kt new file mode 100644 index 00000000..25434cbe --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android30AddNetworkApi.kt @@ -0,0 +1,108 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.addnetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.content.Intent +import android.net.wifi.WifiManager +import android.net.wifi.WifiNetworkSuggestion +import android.os.Build +import android.os.Bundle +import android.provider.Settings +import androidx.activity.result.ActivityResultLauncher +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.util.createOpenNetworkSuggestion +import com.isupatches.android.wisefy.util.createWPA2NetworkSuggestion +import com.isupatches.android.wisefy.util.createWPA3NetworkSuggestion + +internal interface Android30AddNetworkApi { + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addOpenNetwork( + ssid: String, + activityResultLauncher: ActivityResultLauncher + ): AddNetworkResult + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addWPA2Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher + ): AddNetworkResult + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun addWPA3Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher + ): AddNetworkResult +} + +@RequiresApi(Build.VERSION_CODES.R) +internal class Android30AddNetworkApiImpl( + private val wifiManager: WifiManager +) : Android30AddNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork( + ssid: String, + activityResultLauncher: ActivityResultLauncher + ): AddNetworkResult { + val suggestion = createOpenNetworkSuggestion(ssid) + return launchIntent(suggestion, activityResultLauncher) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher + ): AddNetworkResult { + val suggestion = createWPA2NetworkSuggestion(ssid, passphrase) + return launchIntent(suggestion, activityResultLauncher) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network( + ssid: String, + passphrase: String, + activityResultLauncher: ActivityResultLauncher + ): AddNetworkResult { + val suggestion = createWPA3NetworkSuggestion(ssid, passphrase) + return launchIntent(suggestion, activityResultLauncher) + } + + @RequiresPermission(CHANGE_WIFI_STATE) + private fun launchIntent( + suggestion: WifiNetworkSuggestion, + activityResultLauncher: ActivityResultLauncher + ): AddNetworkResult { + wifiManager.addNetworkSuggestions(listOf(suggestion)) + val bundle = Bundle().apply { + putParcelableArrayList( + Settings.EXTRA_WIFI_NETWORK_LIST, + arrayListOf(suggestion) + ) + } + val intent = Intent(Settings.ACTION_WIFI_ADD_NETWORKS).apply { + putExtras(bundle) + } + activityResultLauncher.launch(intent) + return AddNetworkResult.IntentLaunched + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android30AddNetworkDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android30AddNetworkDelegate.kt new file mode 100644 index 00000000..31793bb9 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/Android30AddNetworkDelegate.kt @@ -0,0 +1,79 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.addnetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.addnetwork.AddNetworkApi +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData +import com.isupatches.android.wisefy.constants.ErrorMessages +import com.isupatches.android.wisefy.util.fail + +@RequiresApi(Build.VERSION_CODES.R) +internal class Android30AddNetworkDelegate( + wifiManager: WifiManager, + private val impl: Android30AddNetworkApi = Android30AddNetworkApiImpl(wifiManager) +) : AddNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addOpenNetwork(data: OpenNetworkData): AddNetworkResult { + return when (data) { + is OpenNetworkData.SsidAndActivityResultLauncher -> { + impl.addOpenNetwork(data.ssid, data.activityResultLauncher) + } + is OpenNetworkData.Ssid -> { + val message = ErrorMessages.AddNetwork.ActivityResultLauncher.NOT_USED_ANDROID_30 + fail(message) + return AddNetworkResult.WrongSDKLevelError(message) + } + } + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA2Network(data: WPA2NetworkData): AddNetworkResult { + return when (data) { + is WPA2NetworkData.SsidPassphraseAndActivityResultLauncher -> { + impl.addWPA2Network(data.ssid, data.passphrase, data.activityResultLauncher) + } + is WPA2NetworkData.SsidAndPassphrase -> { + val message = ErrorMessages.AddNetwork.ActivityResultLauncher.NOT_USED_ANDROID_30 + fail(message) + return AddNetworkResult.WrongSDKLevelError(message) + } + } + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun addWPA3Network(data: WPA3NetworkData): AddNetworkResult { + return when (data) { + is WPA3NetworkData.SsidPassphraseAndActivityResultLauncher -> { + impl.addWPA3Network(data.ssid, data.passphrase, data.activityResultLauncher) + } + is WPA3NetworkData.SsidAndPassphrase -> { + val message = ErrorMessages.AddNetwork.ActivityResultLauncher.NOT_USED_ANDROID_30 + fail(message) + return AddNetworkResult.WrongSDKLevelError(message) + } + } + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/LegacyAddNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/LegacyAddNetworkApi.kt new file mode 100644 index 00000000..0832af8b --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/LegacyAddNetworkApi.kt @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.addnetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.util.legacy.generateOpenNetworkConfiguration +import com.isupatches.android.wisefy.util.legacy.generateWPA2NetworkConfiguration + +internal interface LegacyAddNetworkApi { + fun addOpenNetwork(ssid: String): AddNetworkResult + fun addWPA2Network(ssid: String, passphrase: String): AddNetworkResult +} + +internal class LegacyAddNetworkApiImpl( + private val wifiManager: WifiManager +) : LegacyAddNetworkApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addOpenNetwork(ssid: String): AddNetworkResult { + val networkConfiguration = generateOpenNetworkConfiguration(ssid) + val resultCode = wifiManager.addNetwork(networkConfiguration) + return AddNetworkResult.ResultCode(resultCode) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addWPA2Network(ssid: String, passphrase: String): AddNetworkResult { + val networkConfiguration = generateWPA2NetworkConfiguration(ssid, passphrase) + val resultCode = wifiManager.addNetwork(networkConfiguration) + return AddNetworkResult.ResultCode(resultCode) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/LegacyAddNetworkDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/LegacyAddNetworkDelegate.kt new file mode 100644 index 00000000..0c31e7d5 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/delegates/LegacyAddNetworkDelegate.kt @@ -0,0 +1,68 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.addnetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.addnetwork.AddNetworkApi +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult +import com.isupatches.android.wisefy.addnetwork.entities.OpenNetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA2NetworkData +import com.isupatches.android.wisefy.addnetwork.entities.WPA3NetworkData +import com.isupatches.android.wisefy.constants.ErrorMessages +import com.isupatches.android.wisefy.util.fail + +internal class LegacyAddNetworkDelegate( + wifiManager: WifiManager, + private val impl: LegacyAddNetworkApi = LegacyAddNetworkApiImpl(wifiManager) +) : AddNetworkApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addOpenNetwork(data: OpenNetworkData): AddNetworkResult { + return when (data) { + is OpenNetworkData.Ssid -> { + impl.addOpenNetwork(data.ssid) + } + is OpenNetworkData.SsidAndActivityResultLauncher -> { + val message = ErrorMessages.AddNetwork.ActivityResultLauncher.USED_PRE_ANDROID_30 + fail(message) + return AddNetworkResult.WrongSDKLevelError(message) + } + } + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addWPA2Network(data: WPA2NetworkData): AddNetworkResult { + return when (data) { + is WPA2NetworkData.SsidAndPassphrase -> { + impl.addWPA2Network(data.ssid, data.passphrase) + } + is WPA2NetworkData.SsidPassphraseAndActivityResultLauncher -> { + val message = ErrorMessages.AddNetwork.ActivityResultLauncher.USED_PRE_ANDROID_30 + fail(message) + return AddNetworkResult.WrongSDKLevelError(message) + } + } + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun addWPA3Network(data: WPA3NetworkData): AddNetworkResult { + val message = ErrorMessages.AddNetwork.WPA3Network.PRE_ANDROID_29 + fail(message) + return AddNetworkResult.WrongSDKLevelError(message) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/entities/AddNetworkData.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/entities/AddNetworkData.kt new file mode 100644 index 00000000..195d2c4b --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/entities/AddNetworkData.kt @@ -0,0 +1,64 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.addnetwork.entities + +import android.content.Intent +import android.os.Build +import androidx.activity.result.ActivityResultLauncher +import androidx.annotation.RequiresApi + +sealed class OpenNetworkData { + data class Ssid( + val ssid: String + ) : OpenNetworkData() + + @RequiresApi(Build.VERSION_CODES.R) + data class SsidAndActivityResultLauncher( + val ssid: String, + val activityResultLauncher: ActivityResultLauncher + ) : OpenNetworkData() +} + +sealed class WPA2NetworkData { + data class SsidAndPassphrase( + val ssid: String, + val passphrase: String + ) : WPA2NetworkData() + + @RequiresApi(Build.VERSION_CODES.R) + data class SsidPassphraseAndActivityResultLauncher( + val ssid: String, + val passphrase: String, + val activityResultLauncher: ActivityResultLauncher + ) : WPA2NetworkData() +} + +@RequiresApi(Build.VERSION_CODES.Q) +sealed class WPA3NetworkData { + + @RequiresApi(Build.VERSION_CODES.Q) + data class SsidAndPassphrase( + val ssid: String, + val passphrase: String + ) : WPA3NetworkData() + + @RequiresApi(Build.VERSION_CODES.R) + data class SsidPassphraseAndActivityResultLauncher( + val ssid: String, + val passphrase: String, + val activityResultLauncher: ActivityResultLauncher + ) : WPA3NetworkData() +} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/annotations/PublicAPI.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/entities/AddNetworkResult.kt similarity index 62% rename from wisefy/src/main/java/com/isupatches/wisefy/annotations/PublicAPI.kt rename to wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/entities/AddNetworkResult.kt index e652b06a..4ce7037f 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/annotations/PublicAPI.kt +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/addnetwork/entities/AddNetworkResult.kt @@ -1,5 +1,5 @@ /* - * Copyright 2018 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefy.annotations +package com.isupatches.android.wisefy.addnetwork.entities -import java.lang.annotation.Inherited +sealed class AddNetworkResult { + data class ResultCode( + val data: Int + ) : AddNetworkResult() -/** - * Denotes that a class contains methods exposed to end users. - * - * @author Patches - * @since 3.0 - */ -@MustBeDocumented -@Inherited -@Retention(AnnotationRetention.RUNTIME) -internal annotation class PublicAPI + object IntentLaunched : AddNetworkResult() + + data class WrongSDKLevelError( + val message: String + ) : AddNetworkResult() +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/AccessPointCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/AccessPointCallbacks.kt new file mode 100644 index 00000000..cecb7fc1 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/AccessPointCallbacks.kt @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +import com.isupatches.android.wisefy.accesspoints.entities.AccessPointData + +interface GetNearbyAccessPointCallbacks : BaseWisefyCallbacks { + fun onNearbyAccessPointsRetrieved(accessPoints: List) + fun onNoNearbyAccessPoints() +} + +interface GetRSSICallbacks : BaseWisefyCallbacks { + fun onRSSIRetrieved(rssi: Int) + fun onNoNetworkToRetrieveRSSI() +} + +interface SearchForAccessPointCallbacks : BaseWisefyCallbacks { + fun onAccessPointFound(accessPoint: AccessPointData) + fun onNoAccessPointFound() +} + +interface SearchForAccessPointsCallbacks : BaseWisefyCallbacks { + fun onAccessPointsFound(accessPoints: List) + fun onNoAccessPointsFound() +} + +interface SearchForSSIDCallbacks : BaseWisefyCallbacks { + fun onSSIDFound(ssid: String) + fun onSSIDNotFound() +} + +interface SearchForSSIDsCallbacks : BaseWisefyCallbacks { + fun onSSIDsFound(ssids: List) + fun onNoSSIDsFound() +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/AddNetworkCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/AddNetworkCallbacks.kt new file mode 100644 index 00000000..6adb0d20 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/AddNetworkCallbacks.kt @@ -0,0 +1,23 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +import com.isupatches.android.wisefy.addnetwork.entities.AddNetworkResult + +interface AddNetworkCallbacks : BaseWisefyCallbacks { + fun onFailureAddingNetwork(result: AddNetworkResult) + fun onNetworkAdded(result: AddNetworkResult) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/BaseWisefyCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/BaseWisefyCallbacks.kt new file mode 100644 index 00000000..50e53f2f --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/BaseWisefyCallbacks.kt @@ -0,0 +1,20 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +interface BaseWisefyCallbacks { + fun onWisefyAsyncFailure(throwable: Throwable) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/GetFrequencyCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/GetFrequencyCallbacks.kt new file mode 100644 index 00000000..cc4fd447 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/GetFrequencyCallbacks.kt @@ -0,0 +1,21 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +interface GetFrequencyCallbacks : BaseWisefyCallbacks { + fun onFailureRetrievingFrequency() + fun onFrequencyRetrieved(frequency: Int) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/GetIPCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/GetIPCallbacks.kt new file mode 100644 index 00000000..b5e58583 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/GetIPCallbacks.kt @@ -0,0 +1,21 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +interface GetIPCallbacks : BaseWisefyCallbacks { + fun onFailureRetrievingIP() + fun onIPRetrieved(ip: String) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/NetworkConnectionCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/NetworkConnectionCallbacks.kt new file mode 100644 index 00000000..4fb04f5f --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/NetworkConnectionCallbacks.kt @@ -0,0 +1,28 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +interface ConnectToNetworkCallbacks : BaseWisefyCallbacks { + fun onConnectedToNetwork() + fun onFailureConnectingToNetwork() + fun onNetworkNotFoundToConnectTo() + fun onConnectionRequestPlaced() +} + +interface DisconnectFromCurrentNetworkCallbacks : BaseWisefyCallbacks { + fun onDisconnectedFromCurrentNetwork() + fun onFailureDisconnectingFromCurrentNetwork() +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/NetworkInfoCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/NetworkInfoCallbacks.kt new file mode 100644 index 00000000..3cdd5edb --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/NetworkInfoCallbacks.kt @@ -0,0 +1,29 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkData +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkInfoData + +interface GetCurrentNetworkCallbacks : BaseWisefyCallbacks { + fun onNoCurrentNetwork() + fun onCurrentNetworkRetrieved(currentNetwork: CurrentNetworkData) +} + +interface GetCurrentNetworkInfoCallbacks : BaseWisefyCallbacks { + fun onNoCurrentNetworkInfo() + fun onCurrentNetworkInfoRetrieved(currentNetworkInfo: CurrentNetworkInfoData) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/RemoveNetworkCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/RemoveNetworkCallbacks.kt new file mode 100644 index 00000000..ae2083d3 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/RemoveNetworkCallbacks.kt @@ -0,0 +1,24 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult + +interface RemoveNetworkCallbacks : BaseWisefyCallbacks { + fun onFailureRemovingNetwork(result: RemoveNetworkResult) + fun onNetworkNotFoundToRemove() + fun onNetworkRemoved(result: RemoveNetworkResult) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/SavedNetworkCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/SavedNetworkCallbacks.kt new file mode 100644 index 00000000..5e442bad --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/SavedNetworkCallbacks.kt @@ -0,0 +1,33 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData + +interface GetSavedNetworksCallbacks : BaseWisefyCallbacks { + fun onNoSavedNetworksFound() + fun onSavedNetworksRetrieved(savedNetworks: List) +} + +interface SearchForSavedNetworkCallbacks : BaseWisefyCallbacks { + fun onSavedNetworkNotFound() + fun onSavedNetworkRetrieved(savedNetwork: SavedNetworkData) +} + +interface SearchForSavedNetworksCallbacks : BaseWisefyCallbacks { + fun onNoSavedNetworksFound() + fun onSavedNetworksRetrieved(savedNetworks: List) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/WifiCallbacks.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/WifiCallbacks.kt new file mode 100644 index 00000000..b0ea2171 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/callbacks/WifiCallbacks.kt @@ -0,0 +1,26 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.callbacks + +interface EnableWifiCallbacks : BaseWisefyCallbacks { + fun onFailureEnablingWifi() + fun onWifiEnabled() +} + +interface DisableWifiCallbacks : BaseWisefyCallbacks { + fun onFailureDisablingWifi() + fun onWifiDisabled() +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/constants/DeprecationMessages.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/constants/DeprecationMessages.kt new file mode 100644 index 00000000..f223cd2c --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/constants/DeprecationMessages.kt @@ -0,0 +1,27 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.constants + +internal object DeprecationMessages { + + // Signal + const val CALCULATE_BARS = "Please replace calculateBars(rssiLevel: Int, targetNumberOfBars: Int) to " + + "calculateBars(rssiLevel: Int)" + + // Wifi + const val ENABLE_WIFI = "Starting with Build.VERSION_CODES#Q, applications are not allowed to enable Wi-Fi." + const val DISABLE_WIFI = "Starting with Build.VERSION_CODES#Q, applications are not allowed to disable Wi-Fi." +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/constants/ErrorMessages.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/constants/ErrorMessages.kt new file mode 100644 index 00000000..635f5bdc --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/constants/ErrorMessages.kt @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.constants + +internal object ErrorMessages { + + object AddNetwork { + object ActivityResultLauncher { + const val USED_PRE_ANDROID_30 = + "Adding a network using ActivityResultLauncher is not available until Android R" + const val NOT_USED_ANDROID_30 = + "Adding a network should be done with an ActivityResultLauncher on Android R+" + } + + object WPA3Network { + const val PRE_ANDROID_29 = "WPA3 networks are not supported until Android Q" + } + } + + // Add Network + + // Signal + const val CALCULATE_BARS_ANDROID_30 = "calculateBars(rssiLevel: Int): Int should be used for Android R" + const val CALCULATE_BARS_LEGACY = "calculateBars(rssiLevel: Int): Int is not available until Android R" +} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/constants/Symbols.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/constants/Symbols.kt similarity index 78% rename from wisefy/src/main/java/com/isupatches/wisefy/constants/Symbols.kt rename to wisefy/src/main/java/com/isupatches/android/wisefy/constants/Symbols.kt index 1a123f49..36fdaf11 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/constants/Symbols.kt +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/constants/Symbols.kt @@ -1,5 +1,5 @@ /* - * Copyright 2018 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefy.constants +package com.isupatches.android.wisefy.constants -/** - * Abstracted constant for a quote. - * - * @author Patches - * @since 3.0 - */ internal const val QUOTE = "\"" diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/FrequencyApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/FrequencyApi.kt new file mode 100644 index 00000000..0371c520 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/FrequencyApi.kt @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.frequency + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.net.wifi.WifiInfo +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.callbacks.GetFrequencyCallbacks + +const val MIN_FREQUENCY_5GHZ: Int = 4900 +const val MAX_FREQUENCY_5GHZ: Int = 5900 + +interface FrequencyApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + fun getFrequency(): Int? + + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + fun getFrequency(network: WifiInfo): Int + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + fun isNetwork5gHz(): Boolean + + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + fun isNetwork5gHz(network: WifiInfo): Boolean +} + +interface FrequencyApiAsync { + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + fun getFrequency(callbacks: GetFrequencyCallbacks?) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/WisefyFrequencyUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/WisefyFrequencyUtil.kt new file mode 100644 index 00000000..d0726bc1 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/WisefyFrequencyUtil.kt @@ -0,0 +1,92 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.frequency + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.net.wifi.WifiInfo +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.callbacks.GetFrequencyCallbacks +import com.isupatches.android.wisefy.frequency.delegates.LegacyFrequencyDelegate +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider +import com.isupatches.android.wisefy.util.coroutines.createBaseCoroutineExceptionHandler +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Job +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext + +internal interface FrequencyUtil : FrequencyApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + fun getFrequency(callbacks: GetFrequencyCallbacks?) +} + +private const val LOG_TAG = "WisefyFrequencyUtil" + +internal class WisefyFrequencyUtil( + private val coroutineDispatcherProvider: CoroutineDispatcherProvider, + logger: WisefyLogger?, + wifiManager: WifiManager +) : FrequencyUtil { + + private val delegate = LegacyFrequencyDelegate(wifiManager) + private val frequencyScope = CoroutineScope(Job() + coroutineDispatcherProvider.io) + + init { + logger?.d(LOG_TAG, "WisefyFrequencyUtil delegate is: ${delegate::class.java.simpleName}") + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun getFrequency(): Int? { + return delegate.getFrequency() + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun getFrequency(callbacks: GetFrequencyCallbacks?) { + frequencyScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val frequency = delegate.getFrequency() + withContext(coroutineDispatcherProvider.main) { + if (frequency != null) { + callbacks?.onFrequencyRetrieved(frequency) + } else { + callbacks?.onFailureRetrievingFrequency() + } + } + } + } + + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun getFrequency(network: WifiInfo): Int { + return delegate.getFrequency(network) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun isNetwork5gHz(): Boolean { + return delegate.isNetwork5gHz() + } + + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun isNetwork5gHz(network: WifiInfo): Boolean { + return delegate.isNetwork5gHz(network) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/delegates/LegacyFrequencyApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/delegates/LegacyFrequencyApi.kt new file mode 100644 index 00000000..9508d229 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/delegates/LegacyFrequencyApi.kt @@ -0,0 +1,68 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.frequency.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.net.wifi.WifiInfo +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.frequency.MAX_FREQUENCY_5GHZ +import com.isupatches.android.wisefy.frequency.MIN_FREQUENCY_5GHZ + +internal interface LegacyFrequencyApi { + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + fun getFrequency(): Int? + + fun getFrequency(network: WifiInfo): Int + + @RequiresPermission(ACCESS_FINE_LOCATION) + fun isNetwork5gHz(): Boolean + + fun isNetwork5gHz(network: WifiInfo): Boolean +} + +internal class LegacyFrequencyApiImpl( + private val wifiManager: WifiManager +) : LegacyFrequencyApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun getFrequency(): Int? { + val currentNetwork = wifiManager.connectionInfo + return currentNetwork?.frequency + } + + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun getFrequency(network: WifiInfo): Int { + return network.frequency + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun isNetwork5gHz(): Boolean { + val frequency = getFrequency() + return frequency != null && frequency > MIN_FREQUENCY_5GHZ && frequency < MAX_FREQUENCY_5GHZ + } + + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun isNetwork5gHz(network: WifiInfo): Boolean { + val frequency = getFrequency(network) + return frequency in (MIN_FREQUENCY_5GHZ + 1) until MAX_FREQUENCY_5GHZ + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/delegates/LegacyFrequencyDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/delegates/LegacyFrequencyDelegate.kt new file mode 100644 index 00000000..10b05e51 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/frequency/delegates/LegacyFrequencyDelegate.kt @@ -0,0 +1,52 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.frequency.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.net.wifi.WifiInfo +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.frequency.FrequencyApi + +internal class LegacyFrequencyDelegate( + wifiManager: WifiManager, + private val impl: LegacyFrequencyApi = LegacyFrequencyApiImpl(wifiManager) +) : FrequencyApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun getFrequency(): Int? { + return impl.getFrequency() + } + + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun getFrequency(network: WifiInfo): Int { + return impl.getFrequency(network) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun isNetwork5gHz(): Boolean { + return impl.isNetwork5gHz() + } + + @RequiresApi(Build.VERSION_CODES.LOLLIPOP) + override fun isNetwork5gHz(network: WifiInfo): Boolean { + return impl.isNetwork5gHz(network) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/logging/WisefyLogger.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/logging/WisefyLogger.kt new file mode 100644 index 00000000..8efd67b0 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/logging/WisefyLogger.kt @@ -0,0 +1,34 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.logging + +interface WisefyLogger { + fun i(tag: String, message: String, vararg args: Any): Int + + fun v(tag: String, message: String, vararg args: Any): Int + + fun d(tag: String, message: String, vararg args: Any): Int + + fun w(tag: String, message: String, vararg args: Any): Int + + fun e(tag: String, message: String, vararg args: Any): Int + + fun e(tag: String, throwable: Throwable, message: String, vararg args: Any): Int + + fun wtf(tag: String, message: String, vararg args: Any): Int + + fun wtf(tag: String, throwable: Throwable, message: String, vararg args: Any): Int +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/NetworkConnectionApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/NetworkConnectionApi.kt new file mode 100644 index 00000000..119bdc25 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/NetworkConnectionApi.kt @@ -0,0 +1,30 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnection + +import com.isupatches.android.wisefy.callbacks.ConnectToNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks +import com.isupatches.android.wisefy.networkconnection.entities.NetworkConnectionResult + +interface NetworkConnectionApi { + fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int): NetworkConnectionResult + fun disconnectFromCurrentNetwork(): NetworkConnectionResult +} + +interface NetworkConnectionApiAsync { + fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int, callbacks: ConnectToNetworkCallbacks?) + fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/WisefyNetworkConnectionUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/WisefyNetworkConnectionUtil.kt new file mode 100644 index 00000000..22821253 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/WisefyNetworkConnectionUtil.kt @@ -0,0 +1,122 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnection + +import android.net.ConnectivityManager +import android.net.wifi.WifiManager +import com.isupatches.android.wisefy.callbacks.ConnectToNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkconnection.delegates.Android29NetworkConnectionDelegate +import com.isupatches.android.wisefy.networkconnection.delegates.LegacyNetworkConnectionDelegate +import com.isupatches.android.wisefy.networkconnection.entities.NetworkConnectionResult +import com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusUtil +import com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil +import com.isupatches.android.wisefy.util.SdkUtil +import com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider +import com.isupatches.android.wisefy.util.coroutines.createBaseCoroutineExceptionHandler +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Job +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext + +internal interface NetworkConnectionUtil : NetworkConnectionApi, NetworkConnectionApiAsync + +private const val LOG_TAG = "WisefyNetworkConnectionUtil" + +internal class WisefyNetworkConnectionUtil( + private val coroutineDispatcherProvider: CoroutineDispatcherProvider, + connectivityManager: ConnectivityManager, + logger: WisefyLogger?, + networkConnectionStatusUtil: NetworkConnectionStatusUtil, + savedNetworkUtil: SavedNetworkUtil, + sdkUtil: SdkUtil, + wifiManager: WifiManager +) : NetworkConnectionUtil { + + private val networkConnectionScope = CoroutineScope(Job() + coroutineDispatcherProvider.io) + + private val delegate = when { + sdkUtil.isAtLeastQ() -> Android29NetworkConnectionDelegate(connectivityManager, logger) + else -> { + LegacyNetworkConnectionDelegate( + wifiManager, + networkConnectionStatusUtil, + savedNetworkUtil, + logger + ) + } + } + + init { + logger?.d(LOG_TAG, "WisefyNetworkConnectionUtil delegate is: ${delegate::class.java.simpleName}") + } + + override fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int): NetworkConnectionResult { + return delegate.connectToNetwork(ssidToConnectTo, timeoutInMillis) + } + + override fun connectToNetwork( + ssidToConnectTo: String, + timeoutInMillis: Int, + callbacks: ConnectToNetworkCallbacks? + ) { + networkConnectionScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val result = delegate.connectToNetwork(ssidToConnectTo, timeoutInMillis) + withContext(coroutineDispatcherProvider.main) { + when (result) { + is NetworkConnectionResult.Succeeded -> { + if (result.data) { + callbacks?.onConnectedToNetwork() + } else { + callbacks?.onFailureConnectingToNetwork() + } + } + is NetworkConnectionResult.ConnectionRequestPlaced -> { + callbacks?.onConnectionRequestPlaced() + } + is NetworkConnectionResult.NetworkNotFound -> { + callbacks?.onNetworkNotFoundToConnectTo() + } + } + } + } + } + + override fun disconnectFromCurrentNetwork(): NetworkConnectionResult { + return delegate.disconnectFromCurrentNetwork() + } + + override fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?) { + networkConnectionScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val result = delegate.disconnectFromCurrentNetwork() + withContext(coroutineDispatcherProvider.main) { + when (result) { + is NetworkConnectionResult.Succeeded -> { + if (result.data) { + callbacks?.onDisconnectedFromCurrentNetwork() + } else { + callbacks?.onFailureDisconnectingFromCurrentNetwork() + } + } + else -> { + // No-op + } + } + } + } + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/Android29NetworkConnectionApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/Android29NetworkConnectionApi.kt new file mode 100644 index 00000000..8456fd40 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/Android29NetworkConnectionApi.kt @@ -0,0 +1,74 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnection.delegates + +import android.net.ConnectivityManager +import android.net.Network +import android.net.NetworkCapabilities +import android.net.NetworkRequest +import android.net.wifi.WifiNetworkSpecifier +import android.os.Build +import androidx.annotation.RequiresApi +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkconnection.entities.NetworkConnectionResult + +internal interface Android29NetworkConnectionApi { + @RequiresApi(Build.VERSION_CODES.Q) + fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int = 0): NetworkConnectionResult + + fun disconnectFromCurrentNetwork(): NetworkConnectionResult +} + +private const val LOG_TAG = "Android29NetworkConnectionApiImpl" + +internal class Android29NetworkConnectionApiImpl( + private val connectionManager: ConnectivityManager, + private val logger: WisefyLogger? +) : Android29NetworkConnectionApi, ConnectivityManager.NetworkCallback() { + + private val networkCallback = object : ConnectivityManager.NetworkCallback() { + override fun onAvailable(network: Network) { + super.onAvailable(network) + logger?.d(LOG_TAG, "Network available") + } + + override fun onUnavailable() { + super.onUnavailable() + logger?.d(LOG_TAG, "Network unavailable") + } + } + + @RequiresApi(Build.VERSION_CODES.Q) + override fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int): NetworkConnectionResult { + val networkRequest = NetworkRequest.Builder() + .addTransportType(NetworkCapabilities.TRANSPORT_WIFI) + .removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) + .setNetworkSpecifier( + WifiNetworkSpecifier.Builder() + .setSsid(ssidToConnectTo) + .build() + ) + .build() + networkCallback + connectionManager.requestNetwork(networkRequest, networkCallback, timeoutInMillis) + return NetworkConnectionResult.ConnectionRequestPlaced + } + + override fun disconnectFromCurrentNetwork(): NetworkConnectionResult { + connectionManager.unregisterNetworkCallback(networkCallback) + return NetworkConnectionResult.UnregisterRequestSent + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/Android29NetworkConnectionDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/Android29NetworkConnectionDelegate.kt new file mode 100644 index 00000000..1d0182c1 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/Android29NetworkConnectionDelegate.kt @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnection.delegates + +import android.net.ConnectivityManager +import android.os.Build +import androidx.annotation.RequiresApi +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkconnection.NetworkConnectionApi +import com.isupatches.android.wisefy.networkconnection.entities.NetworkConnectionResult + +internal class Android29NetworkConnectionDelegate( + connectivityManager: ConnectivityManager, + logger: WisefyLogger?, + private val impl: Android29NetworkConnectionApi = Android29NetworkConnectionApiImpl(connectivityManager, logger) +) : NetworkConnectionApi { + + @RequiresApi(Build.VERSION_CODES.Q) + override fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int): NetworkConnectionResult { + return impl.connectToNetwork(ssidToConnectTo, timeoutInMillis) + } + + override fun disconnectFromCurrentNetwork(): NetworkConnectionResult { + return impl.disconnectFromCurrentNetwork() + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/LegacyNetworkConnectionApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/LegacyNetworkConnectionApi.kt new file mode 100644 index 00000000..90addcb2 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/LegacyNetworkConnectionApi.kt @@ -0,0 +1,105 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnection.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.net.ConnectivityManager +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.constants.QUOTE +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkconnection.entities.NetworkConnectionResult +import com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusUtil +import com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData +import com.isupatches.android.wisefy.util.rest + +internal interface LegacyNetworkConnectionApi { + fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int = 0): NetworkConnectionResult + fun disconnectFromCurrentNetwork(): NetworkConnectionResult +} + +private const val LOG_TAG = "LegacyNetworkConnectionApiImpl" + +internal class LegacyNetworkConnectionApiImpl( + private val wifiManager: WifiManager, + private val networkConnectionStatusUtil: NetworkConnectionStatusUtil, + private val savedNetworkUtil: SavedNetworkUtil, + private val logger: WisefyLogger? +) : LegacyNetworkConnectionApi, ConnectivityManager.NetworkCallback() { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int): NetworkConnectionResult { + when (val savedNetworkData = savedNetworkUtil.searchForSavedNetwork(ssidToConnectTo)) { + null -> return NetworkConnectionResult.NetworkNotFound + is SavedNetworkData.Configuration -> { + savedNetworkData.data.let { + wifiManager.disconnect() + wifiManager.enableNetwork(it.networkId, true) + wifiManager.reconnect() + return NetworkConnectionResult.Succeeded(waitToConnectToSSID(ssidToConnectTo, timeoutInMillis)) + } + } + } + return NetworkConnectionResult.Succeeded(false) + } + + override fun disconnectFromCurrentNetwork(): NetworkConnectionResult { + return NetworkConnectionResult.Succeeded(data = wifiManager.disconnect()) + } + + private fun waitToConnectToSSID(ssid: String?, timeoutInMillis: Int): Boolean { + logger?.d( + LOG_TAG, + "Waiting %d milliseconds to connect to network with ssid %s", + timeoutInMillis, + ssid ?: "" + ) + var currentTime: Long + val endTime = System.currentTimeMillis() + timeoutInMillis + do { + if (isCurrentNetworkConnectedToSSID(ssid)) { + return true + } + rest() + currentTime = System.currentTimeMillis() + logger?.d(LOG_TAG, "Current time: %d, End time: %d (waitToConnectToSSID)", currentTime, endTime) + } while (currentTime < endTime) + return false + } + + private fun isCurrentNetworkConnectedToSSID(ssid: String?): Boolean { + if (ssid.isNullOrEmpty()) { + return false + } + + val connectionInfo = wifiManager.connectionInfo + connectionInfo?.let { + if (!it.ssid.isNullOrEmpty()) { + val currentSSID = it.ssid.replace(QUOTE, "") + logger?.d(LOG_TAG, "Current SSID: %s, Desired SSID: %s", currentSSID, ssid) + if (currentSSID.equals(ssid, ignoreCase = true) && + networkConnectionStatusUtil.isDeviceConnectedToMobileOrWifiNetwork() + ) { + logger?.d(LOG_TAG, "Network is connected") + return true + } + } + } + return false + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/LegacyNetworkConnectionDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/LegacyNetworkConnectionDelegate.kt new file mode 100644 index 00000000..05721634 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/delegates/LegacyNetworkConnectionDelegate.kt @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnection.delegates + +import android.net.wifi.WifiManager +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkconnection.NetworkConnectionApi +import com.isupatches.android.wisefy.networkconnection.entities.NetworkConnectionResult +import com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusUtil +import com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil + +internal class LegacyNetworkConnectionDelegate( + wifiManager: WifiManager, + networkConnectionStatusUtil: NetworkConnectionStatusUtil, + savedNetworkUtil: SavedNetworkUtil, + + logger: WisefyLogger?, + private val impl: LegacyNetworkConnectionApi = LegacyNetworkConnectionApiImpl( + wifiManager, + networkConnectionStatusUtil, + savedNetworkUtil, + logger + ) +) : NetworkConnectionApi { + + override fun connectToNetwork(ssidToConnectTo: String, timeoutInMillis: Int): NetworkConnectionResult { + return impl.connectToNetwork(ssidToConnectTo, timeoutInMillis) + } + + override fun disconnectFromCurrentNetwork(): NetworkConnectionResult { + return impl.disconnectFromCurrentNetwork() + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/entities/NetworkConnectionResult.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/entities/NetworkConnectionResult.kt new file mode 100644 index 00000000..0cc409dc --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnection/entities/NetworkConnectionResult.kt @@ -0,0 +1,29 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnection.entities + +sealed class NetworkConnectionResult { + + data class Succeeded( + val data: Boolean + ) : NetworkConnectionResult() + + object ConnectionRequestPlaced : NetworkConnectionResult() + + object NetworkNotFound : NetworkConnectionResult() + + object UnregisterRequestSent : NetworkConnectionResult() +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/NetworkConnectionStatusApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/NetworkConnectionStatusApi.kt new file mode 100644 index 00000000..5be12e43 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/NetworkConnectionStatusApi.kt @@ -0,0 +1,31 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnectionstatus + +interface NetworkConnectionStatusApi { + fun attachNetworkWatcher() + fun detachNetworkWatcher() + + fun isDeviceConnectedToMobileNetwork(): Boolean + + fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean + + fun isDeviceConnectedToSSID(ssid: String): Boolean + + fun isDeviceConnectedToWifiNetwork(): Boolean + + fun isDeviceRoaming(): Boolean +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/WisefyNetworkConnectionStatusUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/WisefyNetworkConnectionStatusUtil.kt new file mode 100644 index 00000000..997da248 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/WisefyNetworkConnectionStatusUtil.kt @@ -0,0 +1,79 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnectionstatus + +import android.Manifest.permission.ACCESS_NETWORK_STATE +import android.net.ConnectivityManager +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkconnectionstatus.delegates.LegacyNetworkConnectionStatusDelegate +import com.isupatches.android.wisefy.util.SdkUtil + +internal interface NetworkConnectionStatusUtil : NetworkConnectionStatusApi + +private const val LOG_TAG = "WisefyNetworkConnectionStatusUtil" + +internal class WisefyNetworkConnectionStatusUtil( + connectivityManager: ConnectivityManager, + logger: WisefyLogger?, + sdkUtil: SdkUtil, + wifiManager: WifiManager +) : NetworkConnectionStatusUtil { + + private val delegate = LegacyNetworkConnectionStatusDelegate( + connectivityManager, + wifiManager, + sdkUtil, + logger + ) + + init { + logger?.d(LOG_TAG, "WisefyNetworkConnectionStatusUtil delegate is: ${delegate::class.java.simpleName}") + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun attachNetworkWatcher() { + delegate.attachNetworkWatcher() + } + + override fun detachNetworkWatcher() { + delegate.detachNetworkWatcher() + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun isDeviceConnectedToMobileNetwork(): Boolean { + return delegate.isDeviceConnectedToMobileNetwork() + } + + override fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean { + return delegate.isDeviceConnectedToMobileOrWifiNetwork() + } + + override fun isDeviceConnectedToSSID(ssid: String): Boolean { + return delegate.isDeviceConnectedToSSID(ssid) + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun isDeviceConnectedToWifiNetwork(): Boolean { + return delegate.isDeviceConnectedToWifiNetwork() + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun isDeviceRoaming(): Boolean { + return delegate.isDeviceRoaming() + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/delegates/LegacyNetworkConnectionStatusApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/delegates/LegacyNetworkConnectionStatusApi.kt new file mode 100644 index 00000000..85a7bd4d --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/delegates/LegacyNetworkConnectionStatusApi.kt @@ -0,0 +1,182 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnectionstatus.delegates + +import android.Manifest.permission.ACCESS_NETWORK_STATE +import android.net.ConnectivityManager +import android.net.LinkProperties +import android.net.Network +import android.net.NetworkCapabilities +import android.net.NetworkRequest +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.constants.QUOTE +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkconnectionstatus.entities.NetworkConnectionStatus +import com.isupatches.android.wisefy.util.SdkUtil + +internal interface LegacyNetworkConnectionStatusApi { + @RequiresPermission(ACCESS_NETWORK_STATE) + fun attachNetworkWatcher() + fun detachNetworkWatcher() + + @RequiresPermission(ACCESS_NETWORK_STATE) + fun isDeviceConnectedToMobileNetwork(): Boolean + + fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean + + fun isDeviceConnectedToSSID(ssid: String): Boolean + + @RequiresPermission(ACCESS_NETWORK_STATE) + fun isDeviceConnectedToWifiNetwork(): Boolean + + @RequiresPermission(ACCESS_NETWORK_STATE) + fun isDeviceRoaming(): Boolean +} + +private const val LOG_TAG = "LegacyNetworkConnectionApiImpl" + +internal class LegacyNetworkConnectionStatusApiImpl( + private val wifiManager: WifiManager, + private val connectivityManager: ConnectivityManager, + private val sdkUtil: SdkUtil, + private val logger: WisefyLogger? +) : LegacyNetworkConnectionStatusApi, ConnectivityManager.NetworkCallback() { + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun isDeviceConnectedToMobileNetwork(): Boolean { + return doesNetworkHaveTransportTypeAndInternetCapability( + transportType = NetworkCapabilities.TRANSPORT_CELLULAR + ) && isNetworkConnected() + } + + override fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean { + return isNetworkConnected() + } + + override fun isDeviceConnectedToSSID(ssid: String): Boolean { + val connectionInfo = wifiManager.connectionInfo + connectionInfo?.let { + if (!it.ssid.isNullOrEmpty()) { + val currentSSID = it.ssid.replace(QUOTE, "") + logger?.d(LOG_TAG, "Current SSID: %s, Desired SSID: %s", currentSSID, ssid) + if (currentSSID.equals(ssid, ignoreCase = true) && isNetworkConnected()) { + logger?.d(LOG_TAG, "Network is connected") + return true + } + } + } + return false + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun isDeviceConnectedToWifiNetwork(): Boolean { + return doesNetworkHaveTransportTypeAndInternetCapability( + transportType = NetworkCapabilities.TRANSPORT_WIFI + ) && isNetworkConnected() + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun isDeviceRoaming(): Boolean { + return if (sdkUtil.isAtLeastP()) { + // NET_CAPABILITY_NOT_ROAMING only available for P and above devices :'( + !doesNetworkHaveCapability(capability = NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) + } else { + val networkInfo = connectivityManager.activeNetworkInfo + networkInfo != null && networkInfo.isRoaming + } + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + private fun doesNetworkHaveCapability(capability: Int): Boolean { + return getActiveNetworkCapabilities()?.hasCapability(capability) ?: false + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + private fun doesNetworkHaveTransportTypeAndInternetCapability(transportType: Int): Boolean { + return getActiveNetworkCapabilities()?.let { + it.hasTransport(transportType) && it.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) + } ?: false + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + private fun getActiveNetworkCapabilities(): NetworkCapabilities? { + return connectivityManager.getNetworkCapabilities(connectivityManager.activeNetwork) + } + + private fun isNetworkConnected(): Boolean { + return connectionStatus == NetworkConnectionStatus.AVAILABLE + } + + private var connectionStatus: NetworkConnectionStatus? = null + + override fun onAvailable(network: Network) { + super.onAvailable(network) + logger?.d(LOG_TAG, "onAvailable, $network") + this.connectionStatus = NetworkConnectionStatus.AVAILABLE + } + + override fun onCapabilitiesChanged(network: Network, networkCapabilities: NetworkCapabilities) { + super.onCapabilitiesChanged(network, networkCapabilities) + logger?.d( + LOG_TAG, + "onCapabilitiesChanged, network: $network, networkCapabilities: $networkCapabilities" + ) + } + + override fun onLinkPropertiesChanged(network: Network, linkProperties: LinkProperties) { + super.onLinkPropertiesChanged(network, linkProperties) + logger?.d(LOG_TAG, "onLinkPropertiesChanged, network: $network, linkProperties: $linkProperties") + } + + override fun onLosing(network: Network, maxMsToLive: Int) { + super.onLosing(network, maxMsToLive) + logger?.d(LOG_TAG, "onLosing, network: $network, maxMsToLive: $maxMsToLive") + this.connectionStatus = NetworkConnectionStatus.LOSING + } + + override fun onLost(network: Network) { + super.onLost(network) + logger?.d(LOG_TAG, "onLost, network: $network") + this.connectionStatus = NetworkConnectionStatus.LOST + } + + override fun onUnavailable() { + super.onUnavailable() + logger?.d(LOG_TAG, "onUnavailable") + this.connectionStatus = NetworkConnectionStatus.UNAVAILABLE + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun attachNetworkWatcher() { + startListeningForNetworkChanges(connectivityManager) + } + + override fun detachNetworkWatcher() { + stopListeningForNetworkChanges(connectivityManager) + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + private fun startListeningForNetworkChanges(connectivityManager: ConnectivityManager) { + val request = NetworkRequest.Builder().build() + connectivityManager.registerNetworkCallback(request, this) + } + + private fun stopListeningForNetworkChanges(connectivityManager: ConnectivityManager) { + connectivityManager.unregisterNetworkCallback(this) + connectionStatus = null + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/delegates/LegacyNetworkConnectionStatusDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/delegates/LegacyNetworkConnectionStatusDelegate.kt new file mode 100644 index 00000000..3aa71172 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/delegates/LegacyNetworkConnectionStatusDelegate.kt @@ -0,0 +1,70 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkconnectionstatus.delegates + +import android.Manifest.permission.ACCESS_NETWORK_STATE +import android.net.ConnectivityManager +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkconnectionstatus.NetworkConnectionStatusApi +import com.isupatches.android.wisefy.util.SdkUtil + +internal class LegacyNetworkConnectionStatusDelegate( + connectivityManager: ConnectivityManager, + wifiManager: WifiManager, + sdkUtil: SdkUtil, + logger: WisefyLogger?, + private val impl: LegacyNetworkConnectionStatusApi = LegacyNetworkConnectionStatusApiImpl( + wifiManager, + connectivityManager, + sdkUtil, + logger + ) +) : NetworkConnectionStatusApi { + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun attachNetworkWatcher() { + impl.attachNetworkWatcher() + } + + override fun detachNetworkWatcher() { + impl.detachNetworkWatcher() + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun isDeviceConnectedToMobileNetwork(): Boolean { + return impl.isDeviceConnectedToMobileNetwork() + } + + override fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean { + return impl.isDeviceConnectedToMobileOrWifiNetwork() + } + + override fun isDeviceConnectedToSSID(ssid: String): Boolean { + return impl.isDeviceConnectedToSSID(ssid) + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun isDeviceConnectedToWifiNetwork(): Boolean { + return impl.isDeviceConnectedToWifiNetwork() + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun isDeviceRoaming(): Boolean { + return impl.isDeviceRoaming() + } +} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionStatus.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/entities/NetworkConnectionStatus.kt similarity index 69% rename from wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionStatus.kt rename to wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/entities/NetworkConnectionStatus.kt index 7de264ed..fd2bb8d1 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionStatus.kt +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkconnectionstatus/entities/NetworkConnectionStatus.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefy.connection +package com.isupatches.android.wisefy.networkconnectionstatus.entities -/** - * Constant to indicate network connection status for SDK23 and above. - * - * @see [WiseFyConnectionSDK23] - * - * @author Patches - * @since 4.0 - */ -internal enum class WiseFyConnectionStatus { +internal enum class NetworkConnectionStatus { AVAILABLE, LOSING, LOST, diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/NetworkInfoApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/NetworkInfoApi.kt new file mode 100644 index 00000000..b9727889 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/NetworkInfoApi.kt @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkinfo + +import android.Manifest.permission.ACCESS_NETWORK_STATE +import android.net.Network +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkInfoCallbacks +import com.isupatches.android.wisefy.callbacks.GetIPCallbacks +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkData +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkInfoData + +interface NetworkInfoApi { + + fun getCurrentNetwork(): CurrentNetworkData? + + @RequiresPermission(ACCESS_NETWORK_STATE) + fun getCurrentNetworkInfo(network: Network? = null): CurrentNetworkInfoData? + + fun getIP(): String? +} + +interface NetworkInfoApiAsync { + + fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?) + + @RequiresPermission(ACCESS_NETWORK_STATE) + fun getCurrentNetworkInfo( + callbacks: GetCurrentNetworkInfoCallbacks?, + network: Network? = null + ) + + fun getIP(callbacks: GetIPCallbacks?) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/WisefyNetworkInfoUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/WisefyNetworkInfoUtil.kt new file mode 100644 index 00000000..210fdf11 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/WisefyNetworkInfoUtil.kt @@ -0,0 +1,110 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkinfo + +import android.Manifest.permission.ACCESS_NETWORK_STATE +import android.net.ConnectivityManager +import android.net.Network +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.GetCurrentNetworkInfoCallbacks +import com.isupatches.android.wisefy.callbacks.GetIPCallbacks +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkinfo.delegates.LegacyNetworkInfoDelegate +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkData +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkInfoData +import com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider +import com.isupatches.android.wisefy.util.coroutines.createBaseCoroutineExceptionHandler +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Job +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext + +internal interface NetworkInfoUtil : NetworkInfoApi, NetworkInfoApiAsync + +private const val LOG_TAG = "WisefyNetworkInfoUtil" + +internal class WisefyNetworkInfoUtil( + private val coroutineDispatcherProvider: CoroutineDispatcherProvider, + connectivityManager: ConnectivityManager, + logger: WisefyLogger?, + wifiManager: WifiManager +) : NetworkInfoUtil { + + private val delegate = LegacyNetworkInfoDelegate(wifiManager, connectivityManager, logger) + private val networkInfoScope = CoroutineScope(Job() + coroutineDispatcherProvider.io) + + init { + logger?.d(LOG_TAG, "WisefyNetworkInfoUtil delegate is: ${delegate::class.java.simpleName}") + } + + override fun getCurrentNetwork(): CurrentNetworkData? { + return delegate.getCurrentNetwork() + } + + override fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?) { + networkInfoScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val currentNetwork = delegate.getCurrentNetwork() + withContext(coroutineDispatcherProvider.main) { + if (currentNetwork != null) { + callbacks?.onCurrentNetworkRetrieved(currentNetwork) + } else { + callbacks?.onNoCurrentNetwork() + } + } + } + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun getCurrentNetworkInfo(network: Network?): CurrentNetworkInfoData? { + return delegate.getCurrentNetworkInfo(network) + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun getCurrentNetworkInfo( + callbacks: GetCurrentNetworkInfoCallbacks?, + network: Network? + ) { + networkInfoScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val currentNetworkInfo = delegate.getCurrentNetworkInfo(network) + withContext(coroutineDispatcherProvider.main) { + if (currentNetworkInfo != null) { + callbacks?.onCurrentNetworkInfoRetrieved(currentNetworkInfo) + } else { + callbacks?.onNoCurrentNetworkInfo() + } + } + } + } + + override fun getIP(): String? { + return delegate.getIP() + } + + override fun getIP(callbacks: GetIPCallbacks?) { + networkInfoScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val ip = delegate.getIP() + withContext(coroutineDispatcherProvider.main) { + if (ip != null) { + callbacks?.onIPRetrieved(ip) + } else { + callbacks?.onFailureRetrievingIP() + } + } + } + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/delegates/LegacyNetworkInfoApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/delegates/LegacyNetworkInfoApi.kt new file mode 100644 index 00000000..b69f4c5c --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/delegates/LegacyNetworkInfoApi.kt @@ -0,0 +1,77 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkinfo.delegates + +import android.Manifest.permission.ACCESS_NETWORK_STATE +import android.net.ConnectivityManager +import android.net.Network +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkData +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkInfoData +import java.math.BigInteger +import java.net.InetAddress +import java.net.UnknownHostException + +internal interface LegacyNetworkInfoApi { + fun getCurrentNetwork(): CurrentNetworkData? + + fun getCurrentNetworkInfo(network: Network?): CurrentNetworkInfoData? + + fun getIP(): String? +} + +private const val LOG_TAG = "LegacyNetworkInfoApiImpl" + +internal class LegacyNetworkInfoApiImpl( + private val wifiManager: WifiManager, + private val connectivityManager: ConnectivityManager, + private val logger: WisefyLogger? +) : LegacyNetworkInfoApi { + + override fun getCurrentNetwork(): CurrentNetworkData? { + val currentNetwork = wifiManager.connectionInfo + return if (currentNetwork != null) { + CurrentNetworkData(currentNetwork) + } else { + null + } + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun getCurrentNetworkInfo(network: Network?): CurrentNetworkInfoData? { + val networkForInfo = network ?: connectivityManager.activeNetwork + return if (networkForInfo != null) { + CurrentNetworkInfoData( + capabilities = connectivityManager.getNetworkCapabilities(networkForInfo), + linkProperties = connectivityManager.getLinkProperties(networkForInfo) + ) + } else { + null + } + } + + override fun getIP(): String? { + val ipAddress = BigInteger.valueOf(wifiManager.connectionInfo.ipAddress.toLong()).toByteArray() + return try { + InetAddress.getByAddress(ipAddress).hostAddress + } catch (uhe: UnknownHostException) { + logger?.e(LOG_TAG, uhe, "UnknownHostException while gathering IP (sync)") + null + } + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/delegates/LegacyNetworkInfoDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/delegates/LegacyNetworkInfoDelegate.kt new file mode 100644 index 00000000..7475ad8a --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/delegates/LegacyNetworkInfoDelegate.kt @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkinfo.delegates + +import android.Manifest.permission.ACCESS_NETWORK_STATE +import android.net.ConnectivityManager +import android.net.Network +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.networkinfo.NetworkInfoApi +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkData +import com.isupatches.android.wisefy.networkinfo.entities.CurrentNetworkInfoData + +internal class LegacyNetworkInfoDelegate( + wifiManager: WifiManager, + connectivityManager: ConnectivityManager, + logger: WisefyLogger?, + private val impl: LegacyNetworkInfoApi = LegacyNetworkInfoApiImpl( + wifiManager, + connectivityManager, + logger + ) +) : NetworkInfoApi { + + override fun getCurrentNetwork(): CurrentNetworkData? { + return impl.getCurrentNetwork() + } + + @RequiresPermission(ACCESS_NETWORK_STATE) + override fun getCurrentNetworkInfo(network: Network?): CurrentNetworkInfoData? { + return impl.getCurrentNetworkInfo(network) + } + + override fun getIP(): String? { + return impl.getIP() + } +} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/ViewNotAttachedException.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/entities/CurrentNetworkData.kt similarity index 70% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/ViewNotAttachedException.kt rename to wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/entities/CurrentNetworkData.kt index a0e1f610..058c47de 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/ViewNotAttachedException.kt +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/entities/CurrentNetworkData.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,8 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.base +package com.isupatches.android.wisefy.networkinfo.entities -import java.lang.RuntimeException +import android.net.wifi.WifiInfo -internal class ViewNotAttachedException : RuntimeException("New view attached. Did you forget to call attachView()?") +data class CurrentNetworkData( + val data: WifiInfo +) diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/entities/CurrentNetworkInfoData.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/entities/CurrentNetworkInfoData.kt new file mode 100644 index 00000000..07773c71 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/networkinfo/entities/CurrentNetworkInfoData.kt @@ -0,0 +1,24 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.networkinfo.entities + +import android.net.LinkProperties +import android.net.NetworkCapabilities + +data class CurrentNetworkInfoData( + val capabilities: NetworkCapabilities?, + val linkProperties: LinkProperties? +) diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkModel.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/RemoveNetworkApi.kt similarity index 50% rename from wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkModel.kt rename to wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/RemoveNetworkApi.kt index e82b0c90..1053553c 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkModel.kt +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/RemoveNetworkApi.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.ui.remove +package com.isupatches.android.wisefy.removenetwork import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import javax.inject.Inject +import com.isupatches.android.wisefy.callbacks.RemoveNetworkCallbacks +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult -internal class RemoveNetworkModel @Inject constructor( - private val wiseFy: WiseFyPublicApi -) : RemoveNetworkMvp.Model { +interface RemoveNetworkApi { - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun removeNetwork(networkName: String, callbacks: RemoveNetworkCallbacks) { - wiseFy.removeNetwork(networkName, callbacks) - } + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun removeNetwork(ssidToRemove: String): RemoveNetworkResult +} + +interface RemoveNetworkApiAsync { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun removeNetwork(ssidToRemove: String, callbacks: RemoveNetworkCallbacks?) } diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/WisefyRemoveNetworkUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/WisefyRemoveNetworkUtil.kt new file mode 100644 index 00000000..48cb1ff9 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/WisefyRemoveNetworkUtil.kt @@ -0,0 +1,90 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.removenetwork + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.callbacks.RemoveNetworkCallbacks +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.removenetwork.delegates.Android29RemoveNetworkDelegate +import com.isupatches.android.wisefy.removenetwork.delegates.LegacyRemoveNetworkDelegate +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult +import com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil +import com.isupatches.android.wisefy.util.SdkUtil +import com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider +import com.isupatches.android.wisefy.util.coroutines.createBaseCoroutineExceptionHandler +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Job +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext + +internal interface RemoveNetworkUtil : RemoveNetworkApi, RemoveNetworkApiAsync + +private const val LOG_TAG = "WisefyRemoveNetworkUtil" + +internal class WisefyRemoveNetworkUtil( + private val coroutineDispatcherProvider: CoroutineDispatcherProvider, + logger: WisefyLogger?, + savedNetworkUtil: SavedNetworkUtil, + sdkUtil: SdkUtil, + wifiManager: WifiManager +) : RemoveNetworkUtil { + + private val delegate: RemoveNetworkApi = when { + sdkUtil.isAtLeastQ() -> Android29RemoveNetworkDelegate(wifiManager) + else -> LegacyRemoveNetworkDelegate(wifiManager, savedNetworkUtil) + } + private val removeNetworkScope = CoroutineScope(Job() + coroutineDispatcherProvider.io) + + init { + logger?.d(LOG_TAG, "WisefyRemoveNetworkUtil delegate is: ${delegate::class.java.simpleName}") + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun removeNetwork(ssidToRemove: String): RemoveNetworkResult { + return delegate.removeNetwork(ssidToRemove) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun removeNetwork(ssidToRemove: String, callbacks: RemoveNetworkCallbacks?) { + removeNetworkScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val result = delegate.removeNetwork(ssidToRemove) + withContext(coroutineDispatcherProvider.main) { + when (result) { + is RemoveNetworkResult.ResultCode -> { + if (result.data != -1) { + callbacks?.onNetworkRemoved(result) + } else { + callbacks?.onFailureRemovingNetwork(result) + } + } + is RemoveNetworkResult.Succeeded -> { + if (result.data) { + callbacks?.onNetworkRemoved(result) + } else { + callbacks?.onFailureRemovingNetwork(result) + } + } + is RemoveNetworkResult.NetworkNotFound -> { + callbacks?.onNetworkNotFoundToRemove() + } + } + } + } + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/Android29RemoveNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/Android29RemoveNetworkApi.kt new file mode 100644 index 00000000..bbbdd604 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/Android29RemoveNetworkApi.kt @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.removenetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult +import com.isupatches.android.wisefy.util.createOpenNetworkSuggestion + +internal interface Android29RemoveNetworkApi { + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + fun removeNetwork(ssidToRemove: String): RemoveNetworkResult +} + +internal class Android29RemoveNetworkApiImpl( + private val wifiManager: WifiManager +) : Android29RemoveNetworkApi { + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun removeNetwork(ssidToRemove: String): RemoveNetworkResult { + val suggestion = createOpenNetworkSuggestion(ssidToRemove) + val resultCode = wifiManager.removeNetworkSuggestions(listOf(suggestion)) + return RemoveNetworkResult.ResultCode(data = resultCode) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/Android29RemoveNetworkDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/Android29RemoveNetworkDelegate.kt new file mode 100644 index 00000000..81c273db --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/Android29RemoveNetworkDelegate.kt @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.removenetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.CHANGE_WIFI_STATE +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.removenetwork.RemoveNetworkApi +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult + +internal class Android29RemoveNetworkDelegate( + private val wifiManager: WifiManager, + private val impl: Android29RemoveNetworkApi = Android29RemoveNetworkApiImpl(wifiManager) +) : RemoveNetworkApi { + + @RequiresApi(Build.VERSION_CODES.Q) + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE]) + override fun removeNetwork(ssidToRemove: String): RemoveNetworkResult { + return impl.removeNetwork(ssidToRemove) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/LegacyRemoveNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/LegacyRemoveNetworkApi.kt new file mode 100644 index 00000000..a86aca3c --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/LegacyRemoveNetworkApi.kt @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.removenetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult +import com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData + +internal interface LegacyRemoveNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun removeNetwork(ssidToRemove: String): RemoveNetworkResult +} + +internal class LegacyRemoveNetworkApiImpl( + private val wifiManager: WifiManager, + private val savedNetworkUtil: SavedNetworkUtil +) : LegacyRemoveNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun removeNetwork(ssidToRemove: String): RemoveNetworkResult { + when (val savedNetwork = savedNetworkUtil.searchForSavedNetwork(ssidToRemove)) { + null -> return RemoveNetworkResult.NetworkNotFound + is SavedNetworkData.Configuration -> { + savedNetwork.data.let { + val result = wifiManager.removeNetwork(it.networkId) + return RemoveNetworkResult.Succeeded(data = result) + } + } + } + return RemoveNetworkResult.Succeeded(false) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/LegacyRemoveNetworkDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/LegacyRemoveNetworkDelegate.kt new file mode 100644 index 00000000..e1996b16 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/delegates/LegacyRemoveNetworkDelegate.kt @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.removenetwork.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.removenetwork.RemoveNetworkApi +import com.isupatches.android.wisefy.removenetwork.entities.RemoveNetworkResult +import com.isupatches.android.wisefy.savednetworks.SavedNetworkUtil + +internal class LegacyRemoveNetworkDelegate( + private val wifiManager: WifiManager, + private val savedNetworkUtil: SavedNetworkUtil, + private val impl: LegacyRemoveNetworkApi = LegacyRemoveNetworkApiImpl( + wifiManager, + savedNetworkUtil + ) +) : RemoveNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun removeNetwork(ssidToRemove: String): RemoveNetworkResult { + return impl.removeNetwork(ssidToRemove) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/entities/RemoveNetworkResult.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/entities/RemoveNetworkResult.kt new file mode 100644 index 00000000..8f911c7e --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/removenetwork/entities/RemoveNetworkResult.kt @@ -0,0 +1,28 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.removenetwork.entities + +sealed class RemoveNetworkResult { + data class ResultCode( + val data: Int + ) : RemoveNetworkResult() + + data class Succeeded( + val data: Boolean + ) : RemoveNetworkResult() + + object NetworkNotFound : RemoveNetworkResult() +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/SavedNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/SavedNetworkApi.kt new file mode 100644 index 00000000..62040ccc --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/SavedNetworkApi.kt @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.savednetworks + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.callbacks.GetSavedNetworksCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworksCallbacks +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData + +interface SavedNetworkApi { + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun getSavedNetworks(): List + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun isNetworkSaved(ssid: String): Boolean + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetworks(regexForSSID: String): List +} + +interface SavedNetworkApiAsync { + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?) + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetwork(regexForSSID: String, callbacks: SearchForSavedNetworkCallbacks?) + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetworks(regexForSSID: String, callbacks: SearchForSavedNetworksCallbacks?) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/WisefySavedNetworkUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/WisefySavedNetworkUtil.kt new file mode 100644 index 00000000..b8b9539c --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/WisefySavedNetworkUtil.kt @@ -0,0 +1,121 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.savednetworks + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.callbacks.GetSavedNetworksCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworkCallbacks +import com.isupatches.android.wisefy.callbacks.SearchForSavedNetworksCallbacks +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.savednetworks.delegates.Android29SavedNetworkDelegate +import com.isupatches.android.wisefy.savednetworks.delegates.Android30SavedNetworkDelegate +import com.isupatches.android.wisefy.savednetworks.delegates.LegacySavedNetworkDelegate +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData +import com.isupatches.android.wisefy.util.SdkUtil +import com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider +import com.isupatches.android.wisefy.util.coroutines.createBaseCoroutineExceptionHandler +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Job +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext + +internal interface SavedNetworkUtil : SavedNetworkApi, SavedNetworkApiAsync + +private const val LOG_TAG = "WisefySavedNetworkUtil" + +internal class WisefySavedNetworkUtil( + private val coroutineDispatcherProvider: CoroutineDispatcherProvider, + logger: WisefyLogger?, + sdkUtil: SdkUtil, + wifiManager: WifiManager +) : SavedNetworkUtil { + + private val delegate = when { + sdkUtil.isAtLeastR() -> Android30SavedNetworkDelegate(wifiManager) + sdkUtil.isAtLeastQ() -> Android29SavedNetworkDelegate() + else -> LegacySavedNetworkDelegate(wifiManager) + } + private val savedNetworkScope = CoroutineScope(Job() + coroutineDispatcherProvider.io) + + init { + logger?.d(LOG_TAG, "WisefySavedNetworkUtil delegate is: ${delegate::class.java.simpleName}") + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun getSavedNetworks(): List { + return delegate.getSavedNetworks() + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?) { + savedNetworkScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val savedNetworks = delegate.getSavedNetworks() + withContext(coroutineDispatcherProvider.main) { + if (savedNetworks.isNotEmpty()) { + callbacks?.onSavedNetworksRetrieved(savedNetworks) + } else { + callbacks?.onNoSavedNetworksFound() + } + } + } + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun isNetworkSaved(ssid: String): Boolean { + return delegate.isNetworkSaved(ssid) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? { + return delegate.searchForSavedNetwork(regexForSSID) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork(regexForSSID: String, callbacks: SearchForSavedNetworkCallbacks?) { + savedNetworkScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val savedNetwork = delegate.searchForSavedNetwork(regexForSSID) + withContext(coroutineDispatcherProvider.main) { + if (savedNetwork != null) { + callbacks?.onSavedNetworkRetrieved(savedNetwork) + } else { + callbacks?.onSavedNetworkNotFound() + } + } + } + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks(regexForSSID: String): List { + return delegate.searchForSavedNetworks(regexForSSID) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks(regexForSSID: String, callbacks: SearchForSavedNetworksCallbacks?) { + savedNetworkScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val savedNetworks = delegate.searchForSavedNetworks(regexForSSID) + withContext(coroutineDispatcherProvider.main) { + if (savedNetworks.isNotEmpty()) { + callbacks?.onSavedNetworksRetrieved(savedNetworks) + } else { + callbacks?.onNoSavedNetworksFound() + } + } + } + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android29SavedNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android29SavedNetworkApi.kt new file mode 100644 index 00000000..111d02c0 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android29SavedNetworkApi.kt @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.savednetworks.delegates + +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData +import com.isupatches.android.wisefy.util.fail + +internal interface Android29SavedNetworkApi { + fun getSavedNetworks(): List + + fun isNetworkSaved(ssid: String): Boolean + + fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? + + fun searchForSavedNetworks(regexForSSID: String): List +} + +private const val ANDROID_Q_SAVED_NETWORK_WARNING = + "There is no known way to see saved networks with Android Q" + +internal class Android29SavedNetworkApiImpl : Android29SavedNetworkApi { + + override fun getSavedNetworks(): List { + fail(ANDROID_Q_SAVED_NETWORK_WARNING) + return emptyList() + } + + override fun isNetworkSaved(ssid: String): Boolean { + fail(ANDROID_Q_SAVED_NETWORK_WARNING) + return false + } + + override fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? { + fail(ANDROID_Q_SAVED_NETWORK_WARNING) + return null + } + + override fun searchForSavedNetworks(regexForSSID: String): List { + fail(ANDROID_Q_SAVED_NETWORK_WARNING) + return emptyList() + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android29SavedNetworkDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android29SavedNetworkDelegate.kt new file mode 100644 index 00000000..627e0d9a --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android29SavedNetworkDelegate.kt @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.savednetworks.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.savednetworks.SavedNetworkApi +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData + +internal class Android29SavedNetworkDelegate( + private val impl: Android29SavedNetworkApiImpl = Android29SavedNetworkApiImpl() +) : SavedNetworkApi { + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun getSavedNetworks(): List { + return impl.getSavedNetworks() + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun isNetworkSaved(ssid: String): Boolean { + return impl.isNetworkSaved(ssid) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? { + return impl.searchForSavedNetwork(regexForSSID) + } + + @RequiresPermission(ACCESS_FINE_LOCATION) + override fun searchForSavedNetworks(regexForSSID: String): List { + return impl.searchForSavedNetworks(regexForSSID) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android30SavedNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android30SavedNetworkApi.kt new file mode 100644 index 00000000..d63acb7f --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android30SavedNetworkApi.kt @@ -0,0 +1,93 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.savednetworks.delegates + +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.net.wifi.WifiManager +import android.net.wifi.WifiNetworkSuggestion +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.constants.QUOTE +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData + +internal interface Android30SavedNetworkApi { + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_WIFI_STATE) + fun getSavedNetworks(): List + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_WIFI_STATE) + fun isNetworkSaved(ssid: String): Boolean + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_WIFI_STATE) + fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(ACCESS_WIFI_STATE) + fun searchForSavedNetworks(regexForSSID: String): List +} + +internal class Android30SavedNetworkApiImpl( + private val wifiManager: WifiManager +) : Android30SavedNetworkApi { + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(allOf = [ACCESS_WIFI_STATE]) + override fun getSavedNetworks(): List { + return wifiManager.networkSuggestions.map { + SavedNetworkData.Suggestion(data = it) + } + } + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(allOf = [ACCESS_WIFI_STATE]) + override fun isNetworkSaved(ssid: String): Boolean { + return wifiManager.networkSuggestions.any { + it.ssid.equals(ssid) + } + } + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(allOf = [ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? { + val savedNetwork = wifiManager.networkSuggestions.firstOrNull { + matchesRegexForSSID(it, regexForSSID) + } + return if (savedNetwork != null) { + SavedNetworkData.Suggestion(data = savedNetwork) + } else { + null + } + } + + @RequiresApi(Build.VERSION_CODES.R) + @RequiresPermission(allOf = [ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks(regexForSSID: String): List { + return wifiManager.networkSuggestions.filter { + matchesRegexForSSID(it, regexForSSID) + }.map { savedNetwork -> + SavedNetworkData.Suggestion(data = savedNetwork) + } + } + + @RequiresApi(Build.VERSION_CODES.R) + private fun matchesRegexForSSID(suggestion: WifiNetworkSuggestion, regexForSSID: String): Boolean { + return suggestion.ssid?.replace(QUOTE, "")?.matches(regexForSSID.toRegex()) == true || + suggestion.ssid?.matches(regexForSSID.toRegex()) == true + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android30SavedNetworkDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android30SavedNetworkDelegate.kt new file mode 100644 index 00000000..5f0e19c4 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/Android30SavedNetworkDelegate.kt @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.savednetworks.delegates + +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.savednetworks.SavedNetworkApi +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData + +@RequiresApi(Build.VERSION_CODES.R) +internal class Android30SavedNetworkDelegate( + wifiManager: WifiManager, + private val impl: Android30SavedNetworkApiImpl = Android30SavedNetworkApiImpl(wifiManager) +) : SavedNetworkApi { + + @RequiresPermission(allOf = [ACCESS_WIFI_STATE]) + override fun getSavedNetworks(): List { + return impl.getSavedNetworks() + } + + @RequiresPermission(allOf = [ACCESS_WIFI_STATE]) + override fun isNetworkSaved(ssid: String): Boolean { + return impl.isNetworkSaved(ssid) + } + + @RequiresPermission(allOf = [ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? { + return impl.searchForSavedNetwork(regexForSSID) + } + + @RequiresPermission(allOf = [ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks(regexForSSID: String): List { + return impl.searchForSavedNetworks(regexForSSID) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/LegacySavedNetworkApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/LegacySavedNetworkApi.kt new file mode 100644 index 00000000..f307a795 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/LegacySavedNetworkApi.kt @@ -0,0 +1,83 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.savednetworks.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.net.wifi.WifiConfiguration +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.constants.QUOTE +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData + +internal interface LegacySavedNetworkApi { + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun getSavedNetworks(): List + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun isNetworkSaved(ssid: String): Boolean + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + fun searchForSavedNetworks(regexForSSID: String): List +} + +internal class LegacySavedNetworkApiImpl( + private val wifiManager: WifiManager +) : LegacySavedNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun getSavedNetworks(): List { + return wifiManager.configuredNetworks.map { + SavedNetworkData.Configuration(data = it) + } + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun isNetworkSaved(ssid: String): Boolean { + return wifiManager.configuredNetworks.any { + it.SSID.equals(ssid) + } + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? { + val savedNetwork = wifiManager.configuredNetworks.firstOrNull { + matchesRegexForSSID(it, regexForSSID) + } + return if (savedNetwork != null) { + SavedNetworkData.Configuration(data = savedNetwork) + } else { + null + } + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks(regexForSSID: String): List { + return wifiManager.configuredNetworks.filter { + matchesRegexForSSID(it, regexForSSID) + }.map { savedNetwork -> + SavedNetworkData.Configuration(data = savedNetwork) + } + } + + private fun matchesRegexForSSID(configuration: WifiConfiguration, regexForSSID: String): Boolean { + return configuration.SSID.replace(QUOTE, "").matches(regexForSSID.toRegex()) || + configuration.SSID.matches(regexForSSID.toRegex()) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/LegacySavedNetworkDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/LegacySavedNetworkDelegate.kt new file mode 100644 index 00000000..a89a3eba --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/delegates/LegacySavedNetworkDelegate.kt @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.savednetworks.delegates + +import android.Manifest.permission.ACCESS_FINE_LOCATION +import android.Manifest.permission.ACCESS_WIFI_STATE +import android.net.wifi.WifiManager +import androidx.annotation.RequiresPermission +import com.isupatches.android.wisefy.savednetworks.SavedNetworkApi +import com.isupatches.android.wisefy.savednetworks.entities.SavedNetworkData + +internal class LegacySavedNetworkDelegate( + wifiManager: WifiManager, + private val impl: LegacySavedNetworkApi = LegacySavedNetworkApiImpl(wifiManager) +) : SavedNetworkApi { + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun getSavedNetworks(): List { + return impl.getSavedNetworks() + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun isNetworkSaved(ssid: String): Boolean { + return impl.isNetworkSaved(ssid) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetwork(regexForSSID: String): SavedNetworkData? { + return impl.searchForSavedNetwork(regexForSSID) + } + + @RequiresPermission(allOf = [ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE]) + override fun searchForSavedNetworks(regexForSSID: String): List { + return impl.searchForSavedNetworks(regexForSSID) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/entities/SavedNetworkData.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/entities/SavedNetworkData.kt new file mode 100644 index 00000000..9fad497e --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/savednetworks/entities/SavedNetworkData.kt @@ -0,0 +1,30 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.savednetworks.entities + +import android.net.wifi.WifiConfiguration +import android.net.wifi.WifiNetworkSuggestion + +sealed class SavedNetworkData { + + data class Configuration( + val data: WifiConfiguration + ) : SavedNetworkData() + + data class Suggestion( + val data: WifiNetworkSuggestion + ) : SavedNetworkData() +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/security/SecurityApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/security/SecurityApi.kt new file mode 100644 index 00000000..71560b4f --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/security/SecurityApi.kt @@ -0,0 +1,28 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.security + +import android.net.wifi.ScanResult + +interface SecurityApi { + fun isNetworkEAP(scanResult: ScanResult): Boolean + fun isNetworkPSK(scanResult: ScanResult): Boolean + fun isNetworkSecure(scanResult: ScanResult): Boolean + fun isNetworkWEP(scanResult: ScanResult): Boolean + fun isNetworkWPA(scanResult: ScanResult): Boolean + fun isNetworkWPA2(scanResult: ScanResult): Boolean + fun isNetworkWPA3(scanResult: ScanResult): Boolean +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/security/WisefySecurityUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/security/WisefySecurityUtil.kt new file mode 100644 index 00000000..f01868b8 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/security/WisefySecurityUtil.kt @@ -0,0 +1,63 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.security + +import android.net.wifi.ScanResult +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.security.delegates.LegacySecurityDelegate + +internal interface SecurityUtil : SecurityApi + +private const val LOG_TAG = "WisefySecurityUtil" + +internal class WisefySecurityUtil( + logger: WisefyLogger? +) : SecurityUtil { + + private val delegate = LegacySecurityDelegate() + + init { + logger?.d(LOG_TAG, "WisefySecurityUtil delegate is: ${delegate::class.java.simpleName}") + } + + override fun isNetworkEAP(scanResult: ScanResult): Boolean { + return delegate.isNetworkEAP(scanResult) + } + + override fun isNetworkPSK(scanResult: ScanResult): Boolean { + return delegate.isNetworkPSK(scanResult) + } + + override fun isNetworkSecure(scanResult: ScanResult): Boolean { + return delegate.isNetworkSecure(scanResult) + } + + override fun isNetworkWEP(scanResult: ScanResult): Boolean { + return delegate.isNetworkWEP(scanResult) + } + + override fun isNetworkWPA(scanResult: ScanResult): Boolean { + return delegate.isNetworkWPA(scanResult) + } + + override fun isNetworkWPA2(scanResult: ScanResult): Boolean { + return delegate.isNetworkWPA2(scanResult) + } + + override fun isNetworkWPA3(scanResult: ScanResult): Boolean { + return delegate.isNetworkWPA3(scanResult) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/security/delegates/LegacySecurityApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/security/delegates/LegacySecurityApi.kt new file mode 100644 index 00000000..0f90d690 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/security/delegates/LegacySecurityApi.kt @@ -0,0 +1,82 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.security.delegates + +import android.net.wifi.ScanResult +import com.isupatches.android.wisefy.security.entities.Capability +import com.isupatches.android.wisefy.security.entities.EAP +import com.isupatches.android.wisefy.security.entities.PSK +import com.isupatches.android.wisefy.security.entities.WEP +import com.isupatches.android.wisefy.security.entities.WPA +import com.isupatches.android.wisefy.security.entities.WPA2 +import com.isupatches.android.wisefy.security.entities.WPA3 + +internal interface LegacySecurityApi { + fun isNetworkEAP(scanResult: ScanResult): Boolean + fun isNetworkPSK(scanResult: ScanResult): Boolean + fun isNetworkSecure(scanResult: ScanResult): Boolean + fun isNetworkWEP(scanResult: ScanResult): Boolean + fun isNetworkWPA(scanResult: ScanResult): Boolean + fun isNetworkWPA2(scanResult: ScanResult): Boolean + fun isNetworkWPA3(scanResult: ScanResult): Boolean +} + +internal class LegacySecurityApiImpl : LegacySecurityApi { + + override fun isNetworkEAP(scanResult: ScanResult): Boolean { + return containsCapability(scanResult, EAP) + } + + override fun isNetworkPSK(scanResult: ScanResult): Boolean { + return containsCapability(scanResult, PSK) + } + + override fun isNetworkSecure(scanResult: ScanResult): Boolean { + val networkCapabilities: String = scanResult.capabilities + networkCapabilities.let { capabilities -> + val securityModes = arrayOf(EAP, PSK, WEP, WPA, WPA2, WPA3) + for (securityMode in securityModes) { + if (capabilities.contains(securityMode)) { + return true + } + } + } + return false + } + + override fun isNetworkWEP(scanResult: ScanResult): Boolean { + return containsCapability(scanResult, WEP) + } + + override fun isNetworkWPA(scanResult: ScanResult): Boolean { + return containsCapability(scanResult, WPA) + } + + override fun isNetworkWPA2(scanResult: ScanResult): Boolean { + return containsCapability(scanResult, WPA2) + } + + override fun isNetworkWPA3(scanResult: ScanResult): Boolean { + return containsCapability(scanResult, WPA3) + } + + private fun containsCapability( + scanResult: ScanResult?, + @Capability capability: String + ): Boolean { + return scanResult?.capabilities != null && scanResult.capabilities.contains(capability) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/security/delegates/LegacySecurityDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/security/delegates/LegacySecurityDelegate.kt new file mode 100644 index 00000000..2d21fca2 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/security/delegates/LegacySecurityDelegate.kt @@ -0,0 +1,52 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.security.delegates + +import android.net.wifi.ScanResult +import com.isupatches.android.wisefy.security.SecurityApi + +internal class LegacySecurityDelegate( + private val impl: LegacySecurityApi = LegacySecurityApiImpl() +) : SecurityApi { + + override fun isNetworkEAP(scanResult: ScanResult): Boolean { + return impl.isNetworkEAP(scanResult) + } + + override fun isNetworkPSK(scanResult: ScanResult): Boolean { + return impl.isNetworkPSK(scanResult) + } + + override fun isNetworkSecure(scanResult: ScanResult): Boolean { + return impl.isNetworkSecure(scanResult) + } + + override fun isNetworkWEP(scanResult: ScanResult): Boolean { + return impl.isNetworkWEP(scanResult) + } + + override fun isNetworkWPA(scanResult: ScanResult): Boolean { + return impl.isNetworkWPA(scanResult) + } + + override fun isNetworkWPA2(scanResult: ScanResult): Boolean { + return impl.isNetworkWPA2(scanResult) + } + + override fun isNetworkWPA3(scanResult: ScanResult): Boolean { + return impl.isNetworkWPA3(scanResult) + } +} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/constants/NetworkTypes.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/security/entities/Capabilities.kt similarity index 56% rename from wisefy/src/main/java/com/isupatches/wisefy/constants/NetworkTypes.kt rename to wisefy/src/main/java/com/isupatches/android/wisefy/security/entities/Capabilities.kt index 37b8c99a..06de237c 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/constants/NetworkTypes.kt +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/security/entities/Capabilities.kt @@ -1,5 +1,5 @@ /* - * Copyright 2018 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,34 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@file:JvmName("NetworkTypes") - -package com.isupatches.wisefy.constants +@file:JvmName("Capabilities") +package com.isupatches.android.wisefy.security.entities import androidx.annotation.StringDef -/** - * Constant for a mobile network. - * - * @author Patches - * @since 3.0 - */ -const val MOBILE: String = "MOBILE" +const val EAP: String = "EAP" -/** - * Constant for a Wifi network. - * - * @author Patches - * @since 3.0 - */ -const val WIFI: String = "WIFI" +const val PSK: String = "PSK" + +const val WEP: String = "WEP" + +const val WPA: String = "WPA" + +const val WPA2: String = "WPA2" + +const val WPA3: String = "WPA3" -/** - * Annotation to help avoid crazy strings when handling network types. - * - * @author Patches - * @since 3.0 - */ @Retention(AnnotationRetention.SOURCE) -@StringDef(MOBILE, WIFI) -annotation class NetworkType +@StringDef(EAP, PSK, WEP, WPA, WPA2, WPA3) +annotation class Capability diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/signal/SignalApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/SignalApi.kt new file mode 100644 index 00000000..8a5799e6 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/SignalApi.kt @@ -0,0 +1,34 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.signal + +import android.os.Build +import androidx.annotation.RequiresApi +import com.isupatches.android.wisefy.constants.DeprecationMessages + +interface SignalApi { + + @RequiresApi(Build.VERSION_CODES.R) + fun calculateBars(rssiLevel: Int): Int + + @Deprecated( + message = DeprecationMessages.CALCULATE_BARS, + replaceWith = ReplaceWith("this.calculateBars(rssiLevel)") + ) + fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int + + fun compareSignalLevel(rssi1: Int, rssi2: Int): Int +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/signal/WisefySignalUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/WisefySignalUtil.kt new file mode 100644 index 00000000..bbcd76bc --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/WisefySignalUtil.kt @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.signal + +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.signal.delegates.Android30SignalDelegate +import com.isupatches.android.wisefy.signal.delegates.LegacySignalDelegate +import com.isupatches.android.wisefy.util.SdkUtil + +internal interface SignalUtil : SignalApi + +private const val LOG_TAG = "WisefySignalUtil" + +internal class WisefySignalUtil( + logger: WisefyLogger?, + sdkUtil: SdkUtil, + wifiManager: WifiManager +) : SignalUtil { + + private val delegate = when { + sdkUtil.isAtLeastR() -> Android30SignalDelegate(wifiManager) + else -> LegacySignalDelegate() + } + + init { + logger?.d(LOG_TAG, "WisefySignalUtil delegate is: ${delegate::class.java.simpleName}") + } + + @RequiresApi(Build.VERSION_CODES.R) + override fun calculateBars(rssiLevel: Int): Int { + return delegate.calculateBars(rssiLevel) + } + + @Deprecated(DeprecationMessages.CALCULATE_BARS) + override fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int { + return delegate.calculateBars(rssiLevel, targetNumberOfBars) + } + + override fun compareSignalLevel(rssi1: Int, rssi2: Int): Int { + return delegate.compareSignalLevel(rssi1, rssi2) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/Android30SignalApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/Android30SignalApi.kt new file mode 100644 index 00000000..bbf301af --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/Android30SignalApi.kt @@ -0,0 +1,56 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.signal.delegates + +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.constants.ErrorMessages +import com.isupatches.android.wisefy.util.fail + +internal interface Android30SignalApi { + @RequiresApi(Build.VERSION_CODES.R) + fun calculateBars(rssiLevel: Int): Int + + @Deprecated(DeprecationMessages.CALCULATE_BARS) + fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int + + fun compareSignalLevel(rssi1: Int, rssi2: Int): Int +} + +internal class Android30SignalApiImpl( + private val wifiManager: WifiManager +) : Android30SignalApi { + + @RequiresApi(Build.VERSION_CODES.R) + override fun calculateBars(rssiLevel: Int): Int { + return wifiManager.calculateSignalLevel(rssiLevel) + } + + @Deprecated( + message = DeprecationMessages.CALCULATE_BARS, + replaceWith = ReplaceWith("this.calculateBars(rssiLevel)") + ) + override fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int { + fail(ErrorMessages.CALCULATE_BARS_ANDROID_30) + return -1 + } + + override fun compareSignalLevel(rssi1: Int, rssi2: Int): Int { + return WifiManager.compareSignalLevel(rssi1, rssi2) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/Android30SignalDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/Android30SignalDelegate.kt new file mode 100644 index 00000000..c9a7fd3f --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/Android30SignalDelegate.kt @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.signal.delegates + +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.signal.SignalApi + +internal class Android30SignalDelegate( + wifiManager: WifiManager, + private val impl: Android30SignalApi = Android30SignalApiImpl(wifiManager) +) : SignalApi { + + @RequiresApi(Build.VERSION_CODES.R) + override fun calculateBars(rssiLevel: Int): Int { + return impl.calculateBars(rssiLevel) + } + + @Deprecated( + message = DeprecationMessages.CALCULATE_BARS, + replaceWith = ReplaceWith("this.calculateBars(rssiLevel)") + ) + override fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int { + return impl.calculateBars(rssiLevel, targetNumberOfBars) + } + + override fun compareSignalLevel(rssi1: Int, rssi2: Int): Int { + return impl.compareSignalLevel(rssi1, rssi2) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/LegacySignalApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/LegacySignalApi.kt new file mode 100644 index 00000000..b3190e64 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/LegacySignalApi.kt @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.signal.delegates + +import android.net.wifi.WifiManager +import android.os.Build +import androidx.annotation.RequiresApi +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.constants.ErrorMessages +import com.isupatches.android.wisefy.util.fail + +internal interface LegacySignalApi { + @RequiresApi(Build.VERSION_CODES.R) + fun calculateBars(rssiLevel: Int): Int + + @Deprecated(DeprecationMessages.CALCULATE_BARS) + fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int + + fun compareSignalLevel(rssi1: Int, rssi2: Int): Int +} + +internal class LegacySignalApiImpl : LegacySignalApi { + + @RequiresApi(Build.VERSION_CODES.R) + override fun calculateBars(rssiLevel: Int): Int { + fail(ErrorMessages.CALCULATE_BARS_LEGACY) + return -1 + } + + @Deprecated( + message = DeprecationMessages.CALCULATE_BARS, + replaceWith = ReplaceWith("this.calculateBars(rssiLevel)") + ) + override fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int { + return WifiManager.calculateSignalLevel(rssiLevel, targetNumberOfBars) + } + + override fun compareSignalLevel(rssi1: Int, rssi2: Int): Int { + return WifiManager.compareSignalLevel(rssi1, rssi2) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/LegacySignalDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/LegacySignalDelegate.kt new file mode 100644 index 00000000..a44554d7 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/signal/delegates/LegacySignalDelegate.kt @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.signal.delegates + +import android.os.Build +import androidx.annotation.RequiresApi +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.signal.SignalApi + +internal class LegacySignalDelegate( + private val impl: LegacySignalApi = LegacySignalApiImpl() +) : SignalApi { + + @RequiresApi(Build.VERSION_CODES.R) + override fun calculateBars(rssiLevel: Int): Int { + return impl.calculateBars(rssiLevel) + } + + @Deprecated( + message = DeprecationMessages.CALCULATE_BARS, + replaceWith = ReplaceWith("this.calculateBars(rssiLevel)") + ) + override fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int { + return impl.calculateBars(rssiLevel, targetNumberOfBars) + } + + override fun compareSignalLevel(rssi1: Int, rssi2: Int): Int { + return impl.compareSignalLevel(rssi1, rssi2) + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/util/Assertions.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/util/Assertions.kt new file mode 100644 index 00000000..5d87e206 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/util/Assertions.kt @@ -0,0 +1,24 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.util + +import com.isupatches.android.wisefy.BuildConfig + +fun fail(message: String) { + if (BuildConfig.DEBUG) { + error(message) + } +} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SharedPreferences.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/util/SdkUtil.kt similarity index 52% rename from wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SharedPreferences.kt rename to wisefy/src/main/java/com/isupatches/android/wisefy/util/SdkUtil.kt index 329f767c..ed32dd4a 100644 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/preferences/SharedPreferences.kt +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/util/SdkUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefysample.internal.preferences +package com.isupatches.android.wisefy.util -import android.content.SharedPreferences -import androidx.core.content.edit +import android.os.Build -internal fun SharedPreferences.getLastUsedRegex() = getNonNullString(PREF_LAST_USED_REGEX) - -internal fun SharedPreferences.setLastUsedRegex(lastUsedRegex: String) { - edit { - putString(PREF_LAST_USED_REGEX, lastUsedRegex) - } +internal interface SdkUtil { + fun isAtLeastP(): Boolean + fun isAtLeastQ(): Boolean + fun isAtLeastR(): Boolean } -internal fun SharedPreferences.getNonNullString(key: String) = getString(key, "") ?: "" +internal class SdkUtilImpl : SdkUtil { + override fun isAtLeastP() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.P + override fun isAtLeastQ() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q + override fun isAtLeastR() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.R +} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/annotations/Sync.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/util/SleepUtil.kt similarity index 62% rename from wisefy/src/main/java/com/isupatches/wisefy/annotations/Sync.kt rename to wisefy/src/main/java/com/isupatches/android/wisefy/util/SleepUtil.kt index bd699d44..bda6b274 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/annotations/Sync.kt +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/util/SleepUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2018 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefy.annotations +package com.isupatches.android.wisefy.util -import java.lang.annotation.Inherited +private const val BASE_DELAY = 1000L -/** - * Denotes that a method is synchronous. - * - * @author Patches - * @since 3.0 - */ -@MustBeDocumented -@Target(AnnotationTarget.FUNCTION) -@Inherited -@Retention(AnnotationRetention.RUNTIME) -internal annotation class Sync +internal fun rest() { + sleep() +} + +private fun sleep(timeToSleepInMillis: Long = BASE_DELAY) { + try { + Thread.sleep(timeToSleepInMillis) + } catch (ie: InterruptedException) { + // Do nothing + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/util/WifiSuggestionUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/util/WifiSuggestionUtil.kt new file mode 100644 index 00000000..b3eb3ec9 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/util/WifiSuggestionUtil.kt @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.util + +import android.net.wifi.WifiNetworkSuggestion +import android.os.Build +import androidx.annotation.RequiresApi + +@RequiresApi(Build.VERSION_CODES.Q) +internal fun createOpenNetworkSuggestion(ssid: String): WifiNetworkSuggestion { + return WifiNetworkSuggestion.Builder() + .setSsid(ssid) + .build() +} + +@RequiresApi(Build.VERSION_CODES.Q) +internal fun createWPA2NetworkSuggestion( + ssid: String, + passphrase: String +): WifiNetworkSuggestion { + return WifiNetworkSuggestion.Builder() + .setSsid(ssid) + .setWpa2Passphrase(passphrase) + .build() +} + +@RequiresApi(Build.VERSION_CODES.Q) +internal fun createWPA3NetworkSuggestion( + ssid: String, + passphrase: String +): WifiNetworkSuggestion { + return WifiNetworkSuggestion.Builder() + .setSsid(ssid) + .setWpa3Passphrase(passphrase) + .build() +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/util/coroutines/CoroutineDispatcherProvider.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/util/coroutines/CoroutineDispatcherProvider.kt new file mode 100644 index 00000000..e4307ed9 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/util/coroutines/CoroutineDispatcherProvider.kt @@ -0,0 +1,24 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.util.coroutines + +import kotlinx.coroutines.CoroutineDispatcher +import kotlinx.coroutines.Dispatchers + +internal class CoroutineDispatcherProvider { + val io: CoroutineDispatcher = Dispatchers.IO + val main: CoroutineDispatcher = Dispatchers.Main +} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/threads/WiseFyHandlerThread.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/util/coroutines/CoroutineExceptionHandler.kt similarity index 56% rename from wisefy/src/main/java/com/isupatches/wisefy/threads/WiseFyHandlerThread.kt rename to wisefy/src/main/java/com/isupatches/android/wisefy/util/coroutines/CoroutineExceptionHandler.kt index bef9aad8..3ad7f151 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/threads/WiseFyHandlerThread.kt +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/util/coroutines/CoroutineExceptionHandler.kt @@ -1,5 +1,5 @@ /* - * Copyright 2018 Patches Klinefelter + * Copyright 2021 Patches Klinefelter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.isupatches.wisefy.threads +package com.isupatches.android.wisefy.util.coroutines -import android.os.HandlerThread +import com.isupatches.android.wisefy.callbacks.BaseWisefyCallbacks +import kotlinx.coroutines.CoroutineExceptionHandler -/** - * A Thread to use for all WiseFy background processing. - * - * *NOTE* Must be cleaned!! [com.isupatches.wisefy.WiseFy.dump] - * - * @author Patches - * @since 3.0 - */ -class WiseFyHandlerThread(name: String) : HandlerThread(name) { - - companion object { - internal val TAG = WiseFyHandlerThread::class.java.simpleName +internal fun createBaseCoroutineExceptionHandler(callbacks: BaseWisefyCallbacks?): CoroutineExceptionHandler { + return CoroutineExceptionHandler { _, throwable -> + callbacks?.onWisefyAsyncFailure(throwable) } } diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/util/legacy/WifiConfigurationUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/util/legacy/WifiConfigurationUtil.kt new file mode 100644 index 00000000..7a35ecfc --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/util/legacy/WifiConfigurationUtil.kt @@ -0,0 +1,61 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.util.legacy + +import android.net.wifi.WifiConfiguration +import com.isupatches.android.wisefy.constants.QUOTE +import java.util.Locale + +internal fun generateOpenNetworkConfiguration(ssid: String): WifiConfiguration { + return WifiConfiguration().apply { + SSID = convertSSIDForConfig(ssid) + allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE) + + // Allowed auth algorithms + allowedAuthAlgorithms.clear() + + // Allowed protocols + allowedProtocols.set(WifiConfiguration.Protocol.RSN) + + // Allowed Group Ciphers + allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP) + allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP) + + // Allowed Pairwise Ciphers + allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP) + } +} + +internal fun generateWPA2NetworkConfiguration(ssid: String, password: String): WifiConfiguration { + return WifiConfiguration().apply { + SSID = convertSSIDForConfig(ssid) + preSharedKey = QUOTE + password + QUOTE + allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK) + status = WifiConfiguration.Status.ENABLED + + // Allowed protocols + allowedProtocols.set(WifiConfiguration.Protocol.RSN) + + // Allowed Group Ciphers + allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP) + allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP) + + // Allowed Pairwise Ciphers + allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP) + } +} + +private fun convertSSIDForConfig(ssid: String): String = "%s%s%s".format(Locale.US, QUOTE, ssid, QUOTE) diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/WifiApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/WifiApi.kt new file mode 100644 index 00000000..dd87cf31 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/WifiApi.kt @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.wifi + +import com.isupatches.android.wisefy.callbacks.DisableWifiCallbacks +import com.isupatches.android.wisefy.callbacks.EnableWifiCallbacks +import com.isupatches.android.wisefy.constants.DeprecationMessages + +interface WifiApi { + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + fun disableWifi(): Boolean + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + fun enableWifi(): Boolean + + fun isWifiEnabled(): Boolean +} + +interface WifiApiAsync { + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + fun disableWifi(callbacks: DisableWifiCallbacks?) + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + fun enableWifi(callbacks: EnableWifiCallbacks?) +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/WisefyWifiUtil.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/WisefyWifiUtil.kt new file mode 100644 index 00000000..e7650255 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/WisefyWifiUtil.kt @@ -0,0 +1,95 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.wifi + +import android.net.wifi.WifiManager +import com.isupatches.android.wisefy.callbacks.DisableWifiCallbacks +import com.isupatches.android.wisefy.callbacks.EnableWifiCallbacks +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.logging.WisefyLogger +import com.isupatches.android.wisefy.util.SdkUtil +import com.isupatches.android.wisefy.util.coroutines.CoroutineDispatcherProvider +import com.isupatches.android.wisefy.util.coroutines.createBaseCoroutineExceptionHandler +import com.isupatches.android.wisefy.wifi.delegates.Android29WifiDelegate +import com.isupatches.android.wisefy.wifi.delegates.LegacyWifiDelegate +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Job +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext + +internal interface WifiUtil : WifiApi, WifiApiAsync + +private const val LOG_TAG = "WisefyWifiUtil" + +internal class WisefyWifiUtil( + private val coroutineDispatcherProvider: CoroutineDispatcherProvider, + logger: WisefyLogger?, + sdkUtil: SdkUtil, + wifiManager: WifiManager +) : WifiUtil { + + private val delegate = when { + sdkUtil.isAtLeastQ() -> Android29WifiDelegate(wifiManager) + else -> LegacyWifiDelegate(wifiManager) + } + private val wifiScope = CoroutineScope(Job() + coroutineDispatcherProvider.io) + + init { + logger?.d(LOG_TAG, "WisefyWifiUtil delegate is: ${delegate::class.java.simpleName}") + } + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + override fun disableWifi(): Boolean { + return delegate.disableWifi() + } + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + override fun disableWifi(callbacks: DisableWifiCallbacks?) { + wifiScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val result = delegate.disableWifi() + withContext(coroutineDispatcherProvider.main) { + if (result) { + callbacks?.onWifiDisabled() + } else { + callbacks?.onFailureDisablingWifi() + } + } + } + } + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + override fun enableWifi(): Boolean { + return delegate.enableWifi() + } + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + override fun enableWifi(callbacks: EnableWifiCallbacks?) { + wifiScope.launch(createBaseCoroutineExceptionHandler(callbacks)) { + val result = delegate.enableWifi() + withContext(coroutineDispatcherProvider.main) { + if (result) { + callbacks?.onWifiEnabled() + } else { + callbacks?.onFailureEnablingWifi() + } + } + } + } + + override fun isWifiEnabled(): Boolean { + return delegate.isWifiEnabled() + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/Android29WifiApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/Android29WifiApi.kt new file mode 100644 index 00000000..e0c32ce5 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/Android29WifiApi.kt @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.wifi.delegates + +import android.net.wifi.WifiManager +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.util.fail + +internal interface Android29WifiApi { + + fun disableWifi(): Boolean + + fun enableWifi(): Boolean + + fun isWifiEnabled(): Boolean +} + +internal class Android29WifiApiImpl( + private val wifiManager: WifiManager +) : Android29WifiApi { + + override fun disableWifi(): Boolean { + fail(DeprecationMessages.DISABLE_WIFI) + return false + } + + override fun enableWifi(): Boolean { + fail(DeprecationMessages.ENABLE_WIFI) + return false + } + + override fun isWifiEnabled(): Boolean { + return wifiManager.isWifiEnabled + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/Android29WifiDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/Android29WifiDelegate.kt new file mode 100644 index 00000000..a3d01adb --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/Android29WifiDelegate.kt @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.wifi.delegates + +import android.net.wifi.WifiManager +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.wifi.WifiApi + +internal class Android29WifiDelegate( + wifiManager: WifiManager, + private val impl: Android29WifiApi = Android29WifiApiImpl(wifiManager) +) : WifiApi { + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + override fun disableWifi(): Boolean { + return impl.disableWifi() + } + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + override fun enableWifi(): Boolean { + return impl.enableWifi() + } + + override fun isWifiEnabled(): Boolean { + return impl.isWifiEnabled() + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/LegacyWifiApi.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/LegacyWifiApi.kt new file mode 100644 index 00000000..8021a154 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/LegacyWifiApi.kt @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.wifi.delegates + +import android.net.wifi.WifiManager +import com.isupatches.android.wisefy.constants.DeprecationMessages + +internal interface LegacyWifiApi { + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + fun disableWifi(): Boolean + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + fun enableWifi(): Boolean + + fun isWifiEnabled(): Boolean +} + +internal class LegacyWifiApiImpl( + private val wifiManager: WifiManager +) : LegacyWifiApi { + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + override fun disableWifi(): Boolean { + return wifiManager.setWifiEnabled(false) + } + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + override fun enableWifi(): Boolean { + return wifiManager.setWifiEnabled(true) + } + + override fun isWifiEnabled(): Boolean { + return wifiManager.isWifiEnabled + } +} diff --git a/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/LegacyWifiDelegate.kt b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/LegacyWifiDelegate.kt new file mode 100644 index 00000000..02d89271 --- /dev/null +++ b/wisefy/src/main/java/com/isupatches/android/wisefy/wifi/delegates/LegacyWifiDelegate.kt @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Patches Klinefelter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.isupatches.android.wisefy.wifi.delegates + +import android.net.wifi.WifiManager +import com.isupatches.android.wisefy.constants.DeprecationMessages +import com.isupatches.android.wisefy.wifi.WifiApi + +internal class LegacyWifiDelegate( + wifiManager: WifiManager, + private val impl: LegacyWifiApi = LegacyWifiApiImpl(wifiManager) +) : WifiApi { + + @Deprecated(DeprecationMessages.DISABLE_WIFI) + override fun disableWifi(): Boolean { + return impl.disableWifi() + } + + @Deprecated(DeprecationMessages.ENABLE_WIFI) + override fun enableWifi(): Boolean { + return impl.enableWifi() + } + + override fun isWifiEnabled(): Boolean { + return impl.isWifiEnabled() + } +} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.kt b/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.kt deleted file mode 100644 index 0e3b5eec..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.kt +++ /dev/null @@ -1,2297 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:JvmName("WiseFy") - -package com.isupatches.wisefy - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.content.Context -import android.net.ConnectivityManager -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo -import android.net.wifi.WifiManager -import android.os.Build -import android.os.Handler -import android.os.Looper -import androidx.annotation.RequiresApi -import androidx.annotation.RequiresPermission -import androidx.annotation.VisibleForTesting -import com.isupatches.wisefy.annotations.Async -import com.isupatches.wisefy.annotations.CallingThread -import com.isupatches.wisefy.annotations.PublicAPI -import com.isupatches.wisefy.annotations.Sync -import com.isupatches.wisefy.annotations.WaitsForTimeout -import com.isupatches.wisefy.annotations.WiseFyThread -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefy.callbacks.ConnectToNetworkCallbacks -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.GetRSSICallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -import com.isupatches.wisefy.connection.WiseFyConnection -import com.isupatches.wisefy.connection.WiseFyConnectionLegacy -import com.isupatches.wisefy.connection.WiseFyConnectionSDK23 -import com.isupatches.wisefy.constants.Capability -import com.isupatches.wisefy.constants.EAP -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.constants.PSK -import com.isupatches.wisefy.constants.WEP -import com.isupatches.wisefy.constants.WPA -import com.isupatches.wisefy.constants.WPA2 -import com.isupatches.wisefy.logging.WiseFyLogger -import com.isupatches.wisefy.search.WiseFySearch -import com.isupatches.wisefy.search.WiseFySearchLegacy -import com.isupatches.wisefy.search.WiseFySearchSDK23 -import com.isupatches.wisefy.threads.WiseFyHandlerThread -import com.isupatches.wisefy.utils.generateOpenNetworkConfiguration -import com.isupatches.wisefy.utils.generateWEPNetworkConfiguration -import com.isupatches.wisefy.utils.generateWPA2NetworkConfiguration -import java.math.BigInteger -import java.net.InetAddress -import java.net.UnknownHostException - -/** - * Main class for WiseFy that provides a synchronous and asynchronous API to manipulate and query - * for different parts of a device's wifi configuration and status. - * - *

Uses the builder pattern for creation - {@link [Brains]}

- * - * @author Patches - * @since 3.0 - */ -@PublicAPI -@Suppress("LargeClass", "SyntheticAccessor") -class WiseFy private constructor( - private val connectivityManager: ConnectivityManager, - private val wifiManager: WifiManager, - private val wisefyConnection: WiseFyConnection, - private val wisefyPrechecks: WiseFyPrechecks, - private val wisefySearch: WiseFySearch, - private val logger: WiseFyLogger? -) : WiseFyPublicApi { - - companion object { - private val TAG = WiseFy::class.java.simpleName - - /** - * The default error return from [WifiManager] - * - * @see [WifiManager] - * - * @author Patches - * @since 3.0 - */ - const val WIFI_MANAGER_FAILURE: Int = -1 - - /** - * The minimum value possible for a 5gHz network. - * - * @author Patches - * @since 3.0 - */ - const val MIN_FREQUENCY_5GHZ: Int = 4900 - - /** - * The max value possible for a 5gHz network. - * - * @author Patches - * @since 3.0 - */ - const val MAX_FREQUENCY_5GHZ: Int = 5900 - } - - private val wisefyLock = WiseFyLock() - - private var wisefyHandlerThread: WiseFyHandlerThread? = null - private var wisefyHandler: Handler? = null - - /** - * The Builder class for WiseFy. - * - * Updates - * - 05/12/2019 - * * Branched wisefyConnection based off of if device is pre or post SDK23 - * * Branched wisefySearch based off of if device is pre or post SDK23 - * * Added useLegacyConnection - * * Added useLegacySearch - * - * @author Patches - * @since 3.0 - */ - class Brains @JvmOverloads constructor( - context: Context, - logger: WiseFyLogger? = null, - useLegacyConnection: Boolean = false, - useLegacySearch: Boolean = false - ) { - - private var logger: WiseFyLogger? = null - private var connectivityManager: ConnectivityManager - private var wifiManager: WifiManager - private var wisefyConnection: WiseFyConnection - private var wisefyPrechecks: WiseFyPrechecks - private var wisefySearch: WiseFySearch - - init { - connectivityManager = context.applicationContext.getSystemService( - Context.CONNECTIVITY_SERVICE - ) as ConnectivityManager - wifiManager = context.applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager - - // We'll use SDK 23 logic for WiseFyConnection if client is on at least an SDK 23 device - // and "useLegacyConnection" option is not enabled - - wisefyConnection = if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || useLegacyConnection) { - WiseFyConnectionLegacy.create(connectivityManager, wifiManager, logger) - } else { - WiseFyConnectionSDK23.create(connectivityManager, wifiManager, logger) - } - // We'll use SDK 23 logic for WiseFySearch if client is on at least an SDK 23 device - // and "useLegacySearch" option is not enabled - wisefySearch = if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || useLegacySearch) { - WiseFySearchLegacy.create(wifiManager, logger) - } else { - WiseFySearchSDK23.create(wifiManager, logger) - } - - wisefyPrechecks = WiseFyPrechecksImpl.create(wisefySearch) - } - - /** - * Used internally to set ConnectivityManager in tests. - * - * @param connectivityManager The custom ConnectivityManager to use (can be a mock) - * - * @see [ConnectivityManager] - * - * @author Patches - * @since 3.0 - */ - internal fun customConnectivityManager(connectivityManager: ConnectivityManager): Brains = apply { - this.connectivityManager = connectivityManager - } - - /** - * Used internally to set WifiManager in tests. - * - * @param wifiManager The custom WifiManager to use (can be a mock) - * - * @see [WifiManager] - * - * @author Patches - * @since 3.0 - */ - internal fun customWifiManager(wifiManager: WifiManager): Brains = apply { - this.wifiManager = wifiManager - } - - /** - * Used internally to set WiseFyConnection in tests. - * - * @param wisefyConnection The custom WiseFyConnection to use (can be a mock or custom interface implementation) - * - * @see [WiseFyConnection] - * - * @author Patches - * @since 3.0 - */ - internal fun customWiseFyConnection(wisefyConnection: WiseFyConnection): Brains = apply { - this.wisefyConnection = wisefyConnection - } - - /** - * Used internally to set WiseFyPrechecks in tests. - * - * @param wisefyPrechecks The custom WiseFyPrechecks to use (can be a mock or custom interface implementation) - * - * @see [WiseFyPrechecks] - * - * @author Patches - * @since 3.0 - */ - internal fun customWiseFyPrechecks(wisefyPrechecks: WiseFyPrechecks): Brains = apply { - this.wisefyPrechecks = wisefyPrechecks - } - - /** - * Used internally to set WiseFySearch in tests. - * - * @param wisefySearch The custom WisefySearch to use (can be a mock or custom interface implementation) - * - * @see [WiseFySearch] - * - * @author Patches - * @since 3.0 - */ - internal fun customWiseFySearch(wisefySearch: WiseFySearch): Brains = apply { - this.wisefySearch = wisefySearch - } - - /** - * Uses a private constructor and returns a WiseFy instance. - * - * @see [WiseFyConnection.init] - * - * Updates - * - 05/12/2019: Added new call to [WiseFyConnection.init] - * - 01/07/2019: Added logger - * - * @author Patches - * @since 3.0 - */ - fun getSmarts(): WiseFy { - wisefyConnection.init() - return WiseFy( - connectivityManager = connectivityManager, - wifiManager = wifiManager, - wisefyConnection = wisefyConnection, - wisefyPrechecks = wisefyPrechecks, - wisefySearch = wisefySearch, - logger = logger - ) - } - } - - /** - * To add an open network to the user's configured network list. - * - * @param ssid The ssid of the open network you want to add - * - * @return int - The return code from WifiManager for network creation (-1 for failure) - * - * @see [addNetworkConfiguration] - * @see [generateOpenNetworkConfiguration] - * @see [WiseFyPrechecks.addNetworkPrechecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addOpenNetwork(ssid: String?): Int { - val precheck = wisefyPrechecks.addNetworkPrechecks(ssid) - return if (precheck.failed()) { - precheck.code - } else addNetworkConfiguration(generateOpenNetworkConfiguration(ssid!!)) - } - - /** - * To add an open network to the user's configured network list. - * - * @param ssid The ssid of the open network you want to add - * @param callbacks The listener to return results to - * - * @see [addNetworkConfiguration] - * @see [AddNetworkCallbacks] - * @see [generateOpenNetworkConfiguration] - * @see [runOnWiseFyThread] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.addNetworkPrechecks] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addOpenNetwork(ssid: String?, callbacks: AddNetworkCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.addNetworkPrechecks(ssid) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val openNetworkConfiguration = generateOpenNetworkConfiguration(ssid!!) - val result = addNetworkConfiguration(openNetworkConfiguration) - if (result != WIFI_MANAGER_FAILURE) { - callbacks?.networkAdded(result, openNetworkConfiguration) - } else { - callbacks?.failureAddingNetwork(result) - } - } - }) - } - - /** - * To add a WEP network to the user's configured network list. - * - * @param ssid The ssid of the WEP network you want to add - * @param password The password for the WEP network being added - * - * @return int - The return code from WifiManager for network creation (-1 for failure) - * - * @see [addNetworkConfiguration] - * @see [generateWEPNetworkConfiguration] - * @see [WiseFyPrechecks.addNetworkPrechecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - @Deprecated("Due to security and performance limitations, WEP networks are discouraged") - override fun addWEPNetwork(ssid: String?, password: String?): Int { - val precheck = wisefyPrechecks.addNetworkPrechecks(ssid, password) - @Suppress("deprecation") - return if (precheck.failed()) { - precheck.code - } else addNetworkConfiguration(generateWEPNetworkConfiguration(ssid!!, password!!)) - } - - /** - * To add a WEP network to the user's configured network list. - * - * @param ssid The ssid of the WEP network you want to add - * @param password The password for the WEP network being added - * @param callbacks The listener to return results to - * - * @see [addNetworkWithPasswordAsync] - * @see [AddNetworkCallbacks] - * @see [generateWEPNetworkConfiguration] - * @see [runOnWiseFyThread] - * @see [WiseFyLock] - * - * Updates - * - 05/12/2019: Abstracted logic for adding network into addNetworkWithPasswordAsync - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - @Deprecated("Due to security and performance limitations, WEP networks are discouraged") - override fun addWEPNetwork(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - addNetworkWithPasswordAsync( - ssid = ssid, - password = password, - wifiConfigurationProvider = { - @Suppress("deprecation") - generateWEPNetworkConfiguration(ssid!!, password!!) - }, - callbacks = callbacks - ) - } - }) - } - - /** - * To add a WPA2 network to the user's configured network list. - * - * @param ssid The ssid of the WPA2 network you want to add - * @param password The password for the WPA2 network being added - * - * @return int - The return code from WifiManager for network creation (-1 for failure) - * - * @see [addNetworkConfiguration] - * @see [generateWPA2NetworkConfiguration] - * @see [WiseFyPrechecks.addNetworkPrechecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addWPA2Network(ssid: String?, password: String?): Int { - val precheck = wisefyPrechecks.addNetworkPrechecks(ssid, password) - return if (precheck.failed()) { - precheck.code - } else addNetworkConfiguration(generateWPA2NetworkConfiguration(ssid!!, password!!)) - } - - /** - * To add a WPA2 network to the user's configured network list. - * - * @param ssid The ssid of the WPA2 network you want to add - * @param password The password for the WPA2 network being added - * @param callbacks The listener to return results to - * - * @see [addNetworkWithPasswordAsync] - * @see [AddNetworkCallbacks] - * @see [generateWPA2NetworkConfiguration] - * @see [runOnWiseFyThread] - * @see [WiseFyLock] - * - * Updates - * - 05/12/2019: Abstracted logic for adding network into addNetworkWithPasswordAsync - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addWPA2Network(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - addNetworkWithPasswordAsync( - ssid = ssid, - password = password, - wifiConfigurationProvider = { generateWPA2NetworkConfiguration(ssid!!, password!!) }, - callbacks = callbacks - ) - } - }) - } - - /** - * To convert an RSSI level for a network to a number of bars. - * - * @param rssiLevel The signal strength of the network - * @param targetNumberOfBars How many bars or levels there will be total - * - * @return int - The number of bars for the given RSSI value - * - * @see [WifiManager.calculateSignalLevel] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int = - WifiManager.calculateSignalLevel(rssiLevel, targetNumberOfBars) - - /** - * To compare the signal strength of two networks. - * - * This method will return: - * - Negative value if the first signal is weaker than the second signal - * - 0 if the two signals have the same strength - * - Positive value if the first signal is stronger than the second signal - * - * @param rssi1 The signal strength of network 1 - * @param rssi2 The signal strength of network 2 - * - * @return int - The result of the comparison - * - * @see [WifiManager.compareSignalLevel] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun compareSignalLevel(rssi1: Int, rssi2: Int): Int = WifiManager.compareSignalLevel(rssi1, rssi2) - - /** - * Used to connect to a network. - * - * - * *NOTE* Gets a list of saved networks, connects to the given ssid if found, and verifies connectivity. - * - * @param ssidToConnectTo The ssid to connect/reconnect to - * @param timeoutInMillis The number of milliseconds to continue waiting for the device to connect to the given SSID - * - * @return boolean - If the network was successfully reconnected - * - * @see [connectToNetworkWithId] - * @see [WiseFyConnection.waitToConnectToSSID] - * @see [WiseFyPrechecks.connectToNetworkPrechecks] - * @see [WiseFySearch.findSavedNetworkByRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @WaitsForTimeout - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int): Boolean { - if (wisefyPrechecks.connectToNetworkPrechecks(ssidToConnectTo).failed()) { - return false - } - - val wifiConfiguration = wisefySearch.findSavedNetworkByRegex(ssidToConnectTo!!) - if (wifiConfiguration != null) { - connectToNetworkWithId(wifiConfiguration.networkId) - return wisefyConnection.waitToConnectToSSID(ssidToConnectTo, timeoutInMillis) - } - - return false - } - - /** - * Used to connect to a network. - * - * Gets a list of saved networks, connects to the given ssid if found, and verifies connectivity. - * - * @param ssidToConnectTo The ssid to connect/reconnect to - * @param timeoutInMillis The number of milliseconds to continue waiting for the device to connect to the given SSID - * @param callbacks The listener to return results to - * - * @see [connectToNetworkWithId] - * @see [ConnectToNetworkCallbacks] - * @see [runOnWiseFyThread] - * @see [WiseFyConnection.waitToConnectToSSID] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.connectToNetworkPrechecks] - * @see [WiseFySearch.findSavedNetworkByRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @WaitsForTimeout - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun connectToNetwork( - ssidToConnectTo: String?, - timeoutInMillis: Int, - callbacks: ConnectToNetworkCallbacks? - ) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.connectToNetworkPrechecks(ssidToConnectTo) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val wifiConfiguration = wisefySearch.findSavedNetworkByRegex(ssidToConnectTo!!) - if (wifiConfiguration != null) { - connectToNetworkWithId(wifiConfiguration.networkId) - val connected = wisefyConnection.waitToConnectToSSID(ssidToConnectTo, timeoutInMillis) - if (connected) { - callbacks?.connectedToNetwork() - } else { - callbacks?.failureConnectingToNetwork() - } - } else { - callbacks?.networkNotFoundToConnectTo() - } - } - }) - } - - /** - * To disable Wifi on a user's device. - * - * @return boolean - True if the command succeeded in disabling wifi - * - * @see [WifiManager.setWifiEnabled] - * @see [WiseFyPrechecks.disableWifiChecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun disableWifi(): Boolean = - wisefyPrechecks.disableWifiChecks().passed() && wifiManager.setWifiEnabled(false) - - /** - * To disable Wifi on a user's device. - * - * @param callbacks The listener to return results to - * - * @see [DisableWifiCallbacks] - * @see [runOnWiseFyThread] - * @see [WifiManager.setWifiEnabled] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.disableWifiChecks] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - override fun disableWifi(callbacks: DisableWifiCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.disableWifiChecks() - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - if (wifiManager.setWifiEnabled(false)) { - callbacks?.wifiDisabled() - } else { - callbacks?.failureDisablingWifi() - } - } - }) - } - - /** - * To disconnect the user from their current network. - * - * @return boolean - If the command succeeded in disconnecting the device from the current network - * - * @see [WifiManager.disconnect] - * @see [WiseFyPrechecks.disconnectFromCurrentNetworkChecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun disconnectFromCurrentNetwork(): Boolean = - wisefyPrechecks.disconnectFromCurrentNetworkChecks().passed() && wifiManager.disconnect() - - /** - * To disconnect the user from their current network. - * - * @param callbacks The listener to return results to - * - * @see [DisconnectFromCurrentNetworkCallbacks] - * @see [runOnWiseFyThread] - * @see [WifiManager.disconnect] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.disconnectFromCurrentNetworkChecks] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - override fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.disconnectFromCurrentNetworkChecks() - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - if (wifiManager.disconnect()) { - callbacks?.disconnectedFromCurrentNetwork() - } else { - callbacks?.failureDisconnectingFromCurrentNetwork() - } - } - }) - } - - /** - * Used to cleanup the thread started by WiseFy. - * - * @see [WiseFyConnection.destroy] - * @see [WiseFyHandlerThread] - * @see [WiseFyLock] - * - * Updates - * - 05/12/2019: Added new call to [WiseFyConnection.destroy] - * - * @author Patches - * @since 3.0 - */ - override fun dump() { - wisefyHandlerThread?.let { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { - it.quitSafely() - } else { - it.quit() - } - if (it.isAlive) { - logger?.w( - TAG, - "WiseFy Thread is still alive. Current status: isAlive(): %b, getState(): %s", - it.isAlive, - it.state - ) - it.interrupt() - } - logger?.d( - TAG, - "WiseFy Thread isAlive(): %b, getState(): %s", - it.isAlive, - it.state - ) - wisefyHandlerThread = null - } - wisefyHandler = null - wisefyConnection.destroy() - logger?.d(TAG, "Cleaned up WiseFy Thread") - } - - /** - * To enable Wifi on a user's device. - * - * @return boolean - If the command succeeded in enabling wifi - * - * @see [WifiManager.setWifiEnabled] - * @see [WiseFyPrechecks.enableWifiChecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun enableWifi(): Boolean = - wisefyPrechecks.enableWifiChecks().passed() && wifiManager.setWifiEnabled(true) - - /** - * To enable Wifi on a user's device. - * - * @param callbacks The listener to return results to - * - * @see [EnableWifiCallbacks] - * @see [runOnWiseFyThread] - * @see [WifiManager.setWifiEnabled] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.enableWifiChecks] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - override fun enableWifi(callbacks: EnableWifiCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.enableWifiChecks() - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - if (wifiManager.setWifiEnabled(true)) { - callbacks?.wifiEnabled() - } else { - callbacks?.failureEnablingWifi() - } - } - }) - } - - /** - * To retrieve the user's current network. - * - * @return WifiInfo|null - The user's current network information - * - * @see [WifiInfo] - * @see [WifiManager.getConnectionInfo] - * @see [WiseFyPrechecks.getCurrentNetworkChecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun getCurrentNetwork(): WifiInfo? { - return if (wisefyPrechecks.getCurrentNetworkChecks().passed()) { - wifiManager.connectionInfo - } else null - } - - /** - * To retrieve the user's current network. - * - * @param callbacks The listener to return results to - * - * @see [GetCurrentNetworkCallbacks] - * @see [runOnWiseFyThread] - * @see [WifiInfo] - * @see [WifiManager.getConnectionInfo] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.getCurrentNetworkChecks] - * - * Updates - * - 05/12/2019: Added noCurrentNetwork callback - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - override fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.getCurrentNetworkChecks() - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val currentNetwork: WifiInfo? = wifiManager.connectionInfo - if (currentNetwork != null) { - callbacks?.retrievedCurrentNetwork(currentNetwork) - } else { - callbacks?.noCurrentNetwork() - } - } - }) - } - - /** - * To retrieve the details of the phones active network. - * - * @return NetworkInfo - * - * @see [ConnectivityManager.getActiveNetworkInfo] - * @see [NetworkInfo] - * @see [WiseFyPrechecks.getCurrentNetworkInfoChecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun getCurrentNetworkInfo(): NetworkInfo? { - return if (wisefyPrechecks.getCurrentNetworkInfoChecks().passed()) { - connectivityManager.activeNetworkInfo - } else null - } - - /** - * To retrieve the details of the phones active network. - * - * @param callbacks The listener to return results to - * - * @see [ConnectivityManager.getActiveNetworkInfo] - * @see [GetCurrentNetworkInfoCallbacks] - * @see [NetworkInfo] - * @see [runOnWiseFyThread] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.getCurrentNetworkInfoChecks] - * - * Updates - * - 05/12/2019: Added noCurrentNetworkInfo callback - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - override fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.getCurrentNetworkInfoChecks() - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val currentNetworkInfo: NetworkInfo? = connectivityManager.activeNetworkInfo - if (currentNetworkInfo != null) { - callbacks?.retrievedCurrentNetworkInfo(currentNetworkInfo) - } else { - callbacks?.noCurrentNetworkInfo() - } - } - }) - } - - /** - * To retrieve the frequency of the device's current network. - * - * @return Integer - The frequency of the devices current network or null if no network - * - * @see [getCurrentNetwork] - * @see [WifiInfo.getFrequency] - * @see [WiseFyPrechecks.getFrequencyChecks] - * - * Updates - * - 01/04/2020: Added getFrequencyChecks call - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getFrequency(): Int? { - return if (wisefyPrechecks.getFrequencyChecks().passed()) { - val currentNetwork = getCurrentNetwork() - currentNetwork?.frequency - } else null - } - - /** - * To retrieve the frequency of the device's current network. - * - * @param callbacks The listener to return results to - * - * @see [getCurrentNetwork] - * @see [GetFrequencyCallbacks] - * @see [runOnWiseFyThread] - * @see [WifiInfo.getFrequency] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.getFrequencyChecks] - * - * Updates - * - 01/04/2020: Added getFrequencyChecks call - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getFrequency(callbacks: GetFrequencyCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.getFrequencyChecks() - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val currentNetwork = getCurrentNetwork() - if (currentNetwork != null) { - callbacks?.retrievedFrequency(currentNetwork.frequency) - } else { - callbacks?.failureGettingFrequency() - } - } - }) - } - - /** - * To retrieve the frequency of a network. - * - * @param network The network to return the frequency of - * - * @return Integer - The frequency of the devices current network or null if no network - * - * @see [WifiInfo.getFrequency] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - override fun getFrequency(network: WifiInfo?): Int? = network?.frequency - - /** - * To retrieve the frequency of a network. - * - * @param network The network to return the frequency of - * @param callbacks The listener to return results to - * - * @see [GetFrequencyCallbacks] - * @see [runOnWiseFyThread] - * @see [WifiInfo.getFrequency] - * @see [WiseFyLock] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - override fun getFrequency(network: WifiInfo?, callbacks: GetFrequencyCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - if (network != null) { - callbacks?.retrievedFrequency(network.frequency) - } else { - callbacks?.wisefyFailure(MISSING_PARAMETER) - } - } - }) - } - - /** - * To retrieve the IPv4 or IPv6 of a device. - * - * @return String - The IPv4 or IPv6 address - * - * @see [InetAddress.getHostAddress] - * @see [WifiInfo.getIpAddress] - * @see [WifiManager.getConnectionInfo] - * @see [WiseFyPrechecks.getIPChecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun getIP(): String? { - if (wisefyPrechecks.getIPChecks().failed()) { - return null - } - - val ipAddress = BigInteger.valueOf(wifiManager.connectionInfo.ipAddress.toLong()).toByteArray() - try { - return InetAddress.getByAddress(ipAddress).hostAddress - } catch (uhe: UnknownHostException) { - logger?.e(TAG, uhe, "UnknownHostException while gathering IP (sync)") - } - return null - } - - /** - * To retrieve the IPv4 or IPv6 of a device. - * - * @param callbacks The listener to return results to - * - * @see [GetIPCallbacks] - * @see [InetAddress.getHostAddress] - * @see [runOnWiseFyThread] - * @see [WifiInfo.getIpAddress] - * @see [WifiManager.getConnectionInfo] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.getIPChecks] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getIP(callbacks: GetIPCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.getIPChecks() - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val ipAddress = BigInteger.valueOf(wifiManager.connectionInfo.ipAddress.toLong()).toByteArray() - try { - callbacks?.retrievedIP(InetAddress.getByAddress(ipAddress).hostAddress) - } catch (uhe: UnknownHostException) { - logger?.e(TAG, uhe, "UnknownHostException while gathering IP (async)") - callbacks?.failureRetrievingIP() - } - } - }) - } - - /** - * To retrieve a list of nearby access points. - * - * *NOTE* Setting filterDuplicates to true will exclude access points for an SSID that have a weaker RSSI - * (will always take the highest signal strength). - * - * @param filterDuplicates If you want to exclude SSIDs with that same name that have a weaker signal strength - * - * @return List of ScanResults|null - List of nearby access points - * - * @see [ScanResult] - * @see [WiseFySearch.getNearbyAccessPoints] - * @see [WiseFyPrechecks.getNearbyAccessPointsChecks] - * - * Updates - * - 05/12/2019: Added call to new getNearbyAccessPoints - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getNearbyAccessPoints(filterDuplicates: Boolean): List? { - if (wisefyPrechecks.getNearbyAccessPointsChecks().failed()) { - return null - } - - return wisefySearch.getNearbyAccessPoints(filterDuplicates) - } - - /** - * To retrieve a list of nearby access points. - * - * *NOTE* Setting filterDuplicates to true will not return SSIDs with a weaker signal strength - * (will always take the highest). - * - * @param filterDuplicates If you want to exclude SSIDs with that same name that have a weaker signal strength - * @param callbacks The listener to return results to - * - * @see [GetNearbyAccessPointsCallbacks] - * @see [runOnWiseFyThread] - * @see [WiseFySearch.getNearbyAccessPoints] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.getNearbyAccessPointsChecks] - * - * Updates - * - 05/12/2019 - * * Added call to new getNearbyAccessPoints - * * Added noAccessPointsFound callback - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointsCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.getNearbyAccessPointsChecks() - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val nearbyAccessPoints = wisefySearch.getNearbyAccessPoints(filterDuplicates) - if (nearbyAccessPoints != null) { - callbacks?.retrievedNearbyAccessPoints(nearbyAccessPoints) - } else { - callbacks?.noAccessPointsFound() - } - } - }) - } - - /** - * To retrieve the RSSI of the first network matching a given regex. - * - * *NOTE* Setting takeHighest to true will return the access point with the highest RSSI for the given SSID. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param takeHighest Whether to return the access point with the highest RSSI for the given SSID - * @param timeoutInMillis The amount of time to search for a matching SSID - * - * @return Integer - The RSSI value for the found SSID or null if no matching network found - * - * @see [ScanResult.level] - * @see [WiseFyPrechecks.getRSSIChecks] - * @see [WiseFySearch.findAccessPointByRegex] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @WaitsForTimeout - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int): Int? { - if (wisefyPrechecks.getRSSIChecks(regexForSSID).failed()) { - return null - } - return wisefySearch.findAccessPointByRegex(regexForSSID!!, timeoutInMillis, takeHighest)?.level - } - - /** - * To retrieve the RSSI of the first network matching a given regex. - * - * *NOTE* Setting takeHighest to true will return the access point with the highest RSSI for the given SSID. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param takeHighest Whether to return the access point with the highest RSSI for the given SSID - * @param timeoutInMillis The amount of time to search for a matching SSID - * @param callbacks The listener to return results to - * - * @see [GetRSSICallbacks] - * @see [runOnWiseFyThread] - * @see [ScanResult.level] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.getRSSIChecks] - * @see [WiseFySearch.findAccessPointByRegex] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @WaitsForTimeout - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getRSSI( - regexForSSID: String?, - takeHighest: Boolean, - timeoutInMillis: Int, - callbacks: GetRSSICallbacks? - ) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.getRSSIChecks(regexForSSID) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val accessPoint = wisefySearch.findAccessPointByRegex(regexForSSID!!, timeoutInMillis, takeHighest) - if (accessPoint != null) { - callbacks?.retrievedRSSI(accessPoint.level) - } else { - callbacks?.networkNotFoundToRetrieveRSSI() - } - } - }) - } - - /** - * To retrieve a list of saved networks on a user's device. - * - * @return List of WifiConfiguration|null - List of saved networks on a users device - * - * @see [WifiConfiguration] - * @see [WiseFyPrechecks.getSavedNetworksChecks] - * @see [WiseFySearch.findSavedNetworksMatchingRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getSavedNetworks(): List? { - return if (wisefyPrechecks.getSavedNetworksChecks().passed()) { - wifiManager.configuredNetworks - } else null - } - - /** - * To retrieve a list of saved networks on a user's device. - * - * @param callbacks The listener to return results to - * - * @see [GetSavedNetworksCallbacks] - * @see [runOnWiseFyThread] - * @see [WifiConfiguration] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.getSavedNetworksChecks] - * @see [WiseFySearch.findSavedNetworksMatchingRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.getSavedNetworksChecks() - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val savedNetworks = wifiManager.configuredNetworks - if (savedNetworks != null && savedNetworks.isNotEmpty()) { - callbacks?.retrievedSavedNetworks(savedNetworks) - } else { - callbacks?.noSavedNetworksFound() - } - } - }) - } - - /** - * To retrieve the lock in use by WiseFy for synchronization. - * - * @return WiseFyLock - The instance of the lock in-use by WiseFy - * - * @see WiseFyLock - * - * @author Patches - * @since 3.0 - */ - override fun getWiseFyLock(): WiseFyLock = wisefyLock - - /** - * To check if the device is connected to a mobile network. - * - * @return bool - If the device is currently connected to a mobile network - * - * @see [WiseFyConnection.isDeviceConnectedToMobileNetwork] - * @see [WiseFyPrechecks.isDeviceConnectedToMobileNetworkChecks] - * - * Updates - * - 05/12/2019: Started using isDeviceConnectedToMobileNetwork - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isDeviceConnectedToMobileNetwork(): Boolean = - wisefyPrechecks.isDeviceConnectedToMobileNetworkChecks().passed() && - wisefyConnection.isDeviceConnectedToMobileNetwork() - - /** - * To check if the device is connected to a mobile or wifi network. - * - * @return bool - If the device is currently connected to a mobile or wifi network - * - * @see [WiseFyConnection.isNetworkConnected] - * @see [WiseFyPrechecks.isDeviceConnectedToMobileOrWifiNetworkChecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean = - wisefyPrechecks.isDeviceConnectedToMobileOrWifiNetworkChecks().passed() && - wisefyConnection.isNetworkConnected() - - /** - * To check if the device is connected to a given SSID. - * - * @param ssid The SSID to check if the device is attached to - * - * @return bool - If the device is currently attached to the given SSID - * - * @see [WiseFyConnection.isCurrentNetworkConnectedToSSID] - * @see [WiseFyPrechecks.isDeviceConnectedToSSIDChecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isDeviceConnectedToSSID(ssid: String?): Boolean = - wisefyPrechecks.isDeviceConnectedToSSIDChecks(ssid).passed() && - wisefyConnection.isCurrentNetworkConnectedToSSID(ssid) - - /** - * To check if the device is connected to a wifi network. - * - * @return bool - If the device is currently connected to a wifi network - * - * @see [ConnectivityManager.getActiveNetworkInfo] - * @see [WiseFyConnection.isDeviceConnectedToWifiNetwork] - * @see [WiseFyPrechecks.isDeviceConnectedToWifiNetworkChecks] - * - * Updates - * - 05/12/2019: Started using isDeviceConnectedToWifiNetwork - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isDeviceConnectedToWifiNetwork(): Boolean = - wisefyPrechecks.isDeviceConnectedToWifiNetworkChecks().passed() && - wisefyConnection.isDeviceConnectedToWifiNetwork() - - /** - * To query if the device is roaming. - * - * @return boolean - If the current network is roaming - * - * @see [WiseFyConnection.isDeviceRoaming] - * @see [WiseFyPrechecks.isDeviceRoamingChecks] - * - * Updates - * - 05/12/2019: Started using isDeviceRoaming - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isDeviceRoaming(): Boolean { - if (wisefyPrechecks.isDeviceRoamingChecks().failed()) { - return false - } - return wisefyConnection.isDeviceRoaming() - } - - /** - * To check if the device's current network is 5gHz. - * - * @return boolean - If the network is 5gHz - * - * @see [getFrequency] - * @see [MAX_FREQUENCY_5GHZ] - * @see [MIN_FREQUENCY_5GHZ] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun isNetwork5gHz(): Boolean { - val frequency = getFrequency() - return frequency != null && frequency > MIN_FREQUENCY_5GHZ && frequency < MAX_FREQUENCY_5GHZ - } - - /** - * To check if a given network is 5gHz. - * - * @param network The network to check if it's 5gHz - * - * @return boolean - If the network is 5gHz - * - * @see [getFrequency] - * @see [MAX_FREQUENCY_5GHZ] - * @see [MIN_FREQUENCY_5GHZ] - * @see [WifiInfo] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - override fun isNetwork5gHz(network: WifiInfo?): Boolean { - val frequency = getFrequency(network) - return frequency != null && frequency > MIN_FREQUENCY_5GHZ && frequency < MAX_FREQUENCY_5GHZ - } - - /** - * To check and return if a network is a EAP network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has EAP capabilities listed - * - * @see [containsCapability] - * @see [ScanResult] - * @see [EAP] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isNetworkEAP(scanResult: ScanResult?): Boolean = containsCapability(scanResult, EAP) - - /** - * To check and return if a network is a PSK network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has PSK capabilities listed - * - * @see [containsCapability] - * @see [ScanResult] - * @see [PSK] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isNetworkPSK(scanResult: ScanResult?): Boolean = containsCapability(scanResult, PSK) - - /** - * To check if an SSID is in the list of configured networks. - * - * @param ssid The SSID to check and see if it's in the list of configured networks - * - * @return boolean - If the SSID is in the list of configured networks - * - * @see [WiseFyPrechecks.isNetworkSavedChecks] - * @see [WiseFySearch.isNetworkASavedConfiguration] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun isNetworkSaved(ssid: String?): Boolean = - wisefyPrechecks.isNetworkSavedChecks().passed() && wisefySearch.isNetworkASavedConfiguration(ssid) - - /** - * To check and return if a network is secure (contains EAP/PSK/WEP/WPA/WPA2 capabilities). - * - * @param scanResult The network to see if it is secure - * - * @return boolean - Whether the network is secure - * - * @see [ScanResult.capabilities] - * @see [EAP] - * @see [PSK] - * @see [WEP] - * @see [WPA] - * @see [WPA2] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isNetworkSecure(scanResult: ScanResult?): Boolean { - scanResult?.let { - val networkCapabilities: String? = it.capabilities - networkCapabilities?.let { capabilities -> - val securityModes = arrayOf(EAP, PSK, WEP, WPA, WPA2) - for (securityMode in securityModes) { - if (capabilities.contains(securityMode)) { - return true - } - } - } - } - return false - } - - /** - * To check and return if a network is a WEP network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has WEP capabilities listed - * - * @see [containsCapability] - * @see [ScanResult] - * @see [WEP] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isNetworkWEP(scanResult: ScanResult?): Boolean = containsCapability(scanResult, WEP) - - /** - * To check and return if a network is a WPA network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has WPA capabilities listed - * - * @see [containsCapability] - * @see [ScanResult] - * @see [WPA] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isNetworkWPA(scanResult: ScanResult?): Boolean = containsCapability(scanResult, WPA) - - /** - * To check and return if a network is a WPA2 network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has WPA2 capabilities listed - * - * @see [containsCapability] - * @see [ScanResult] - * @see [WPA2] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isNetworkWPA2(scanResult: ScanResult?): Boolean = containsCapability(scanResult, WPA2) - - /** - * To check if Wifi is enabled on the device or not. - * - * @return boolean - if Wifi is enabled on device - * - * @see [WifiManager.isWifiEnabled] - * @see [WiseFyPrechecks.isWifiEnabledChecks] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - override fun isWifiEnabled(): Boolean = wisefyPrechecks.isWifiEnabledChecks().passed() && wifiManager.isWifiEnabled - - /** - * To remove a configured network. - * - * @param ssidToRemove The ssid of the network you want to remove from the configured network list - * - * @return boolean - If the command succeeded in removing the network - * - * @see [removeNetworkConfiguration] - * @see [WifiConfiguration] - * @see [WiseFyPrechecks.removeNetworkCheck] - * @sse [WiseFySearch.findSavedNetworkByRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun removeNetwork(ssidToRemove: String?): Boolean { - if (wisefyPrechecks.removeNetworkCheck(ssidToRemove).failed()) { - return false - } - - val wifiConfiguration = wisefySearch.findSavedNetworkByRegex(ssidToRemove!!) - if (wifiConfiguration != null) { - return removeNetworkConfiguration(wifiConfiguration) - } else { - logger?.w(TAG, "SSID to remove: %s was not found in list to remove network", ssidToRemove) - } - return false - } - - /** - * To remove a configured network. - * - * @param ssidToRemove The ssid of the network you want to remove from the configured network list - * @param callbacks The listener to return results to - * - * @see [RemoveNetworkCallbacks] - * @see [removeNetworkConfiguration] - * @see [runOnWiseFyThread] - * @see [WifiConfiguration] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.removeNetworkCheck] - * @sse [WiseFySearch.findSavedNetworkByRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun removeNetwork(ssidToRemove: String?, callbacks: RemoveNetworkCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.removeNetworkCheck(ssidToRemove) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val wifiConfiguration = wisefySearch.findSavedNetworkByRegex(ssidToRemove!!) - if (wifiConfiguration != null) { - if (removeNetworkConfiguration(wifiConfiguration)) { - callbacks?.networkRemoved() - } else { - callbacks?.failureRemovingNetwork() - } - } else { - callbacks?.networkNotFoundToRemove() - } - } - }) - } - - /** - * To return the first access point that matches a given regex. - * - * *NOTE* Setting filterDuplicates to true will not return an access point with a weaker signal strength. - * It will always take the highest. - * - * @param regexForSSID The regex to use when iterating through nearby access points - * @param timeoutInMillis The amount of time (in milliseconds) to wait for a matching access point - * @param filterDuplicates If you want to exclude access points with the same name that have a weaker signal - * strength - * - * @return ScanResult|null - The first access point or access point with the highest signal strength matching the - * regex - * - * @see [ScanResult] - * @see [WiseFyPrechecks.searchForAccessPointChecks] - * @see [WiseFySearch.findAccessPointByRegex] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForAccessPoint( - regexForSSID: String?, - timeoutInMillis: Int, - filterDuplicates: Boolean - ): ScanResult? { - return if (wisefyPrechecks.searchForAccessPointChecks(regexForSSID).passed()) { - wisefySearch.findAccessPointByRegex(regexForSSID!!, timeoutInMillis, filterDuplicates) - } else null - } - - /** - * To return the first access point that matches a given regex. - * - * *NOTE* Setting filterDuplicates to true will not return an access point with a weaker signal strength. - * It will always take the highest. - * - * @param regexForSSID The regex to use when iterating through nearby access points - * @param timeoutInMillis The amount of time (in milliseconds) to wait for a matching access point - * @param filterDuplicates If you want to exclude access points with the same name that have a weaker signal - * strength - * @param callbacks The listener to return results to - * - * @see [runOnWiseFyThread] - * @see [ScanResult] - * @see [SearchForAccessPointCallbacks] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.searchForAccessPointChecks] - * @see [WiseFySearch.findAccessPointByRegex] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForAccessPoint( - regexForSSID: String?, - timeoutInMillis: Int, - filterDuplicates: Boolean, - callbacks: SearchForAccessPointCallbacks? - ) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.searchForAccessPointChecks(regexForSSID) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val scanResult = wisefySearch.findAccessPointByRegex(regexForSSID!!, timeoutInMillis, filterDuplicates) - if (scanResult != null) { - callbacks?.accessPointFound(scanResult) - } else { - callbacks?.accessPointNotFound() - } - } - }) - } - - /** - * To return nearby access points that match a given regex. - * - * *NOTE* Setting filterDuplicates to true will not return access points with a weaker signal strength. - * It will always take the highest. - * - * @param regexForSSID The regex to use when iterating through nearby access points - * @param filterDuplicates If you want to exclude access points with the same name that have a weaker signal - * strength - * - * @return List of ScanResult|null - The list of matching access points or null if none match the given regex - * - * @see [ScanResult] - * @see [WiseFyPrechecks.searchForAccessPointsChecks] - * @see [WiseFySearch.findAccessPointsMatchingRegex] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean): List? { - return if (wisefyPrechecks.searchForAccessPointsChecks(regexForSSID).passed()) { - wisefySearch.findAccessPointsMatchingRegex(regexForSSID!!, filterDuplicates) - } else null - } - - /** - * To return nearby access points that match a given regex. - * - * *NOTE* Setting filterDuplicates to true will not return access points with a weaker signal strength. - * It will always take the highest. - * - * @param regexForSSID The regex to use when iterating through nearby access points - * @param filterDuplicates If you want to exclude access points with the same name that have a weaker signal - * strength - * @param callbacks The listener to return results to - * - * @see [runOnWiseFyThread] - * @see [ScanResult] - * @see [SearchForAccessPointsCallbacks] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.searchForAccessPointsChecks] - * @see [WiseFySearch.findAccessPointsMatchingRegex] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForAccessPoints( - regexForSSID: String?, - filterDuplicates: Boolean, - callbacks: SearchForAccessPointsCallbacks? - ) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.searchForAccessPointsChecks(regexForSSID) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val networks = wisefySearch.findAccessPointsMatchingRegex(regexForSSID!!, filterDuplicates) - if (networks != null) { - callbacks?.foundAccessPoints(networks) - } else { - callbacks?.noAccessPointsFound() - } - } - }) - } - - /** - * To search for and return a saved WiFiConfiguration given an SSID. - * - * @param regexForSSID The ssid to use while searching for saved configuration - * - * @return WifiConfiguration|null - Saved network that matches the ssid - * - * @see [WifiConfiguration] - * @see [WiseFyPrechecks.searchForSavedNetworkChecks] - * @see [WiseFySearch.findSavedNetworkByRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSavedNetwork(regexForSSID: String?): WifiConfiguration? { - return if (wisefyPrechecks.searchForSavedNetworkChecks(regexForSSID).passed()) { - wisefySearch.findSavedNetworkByRegex(regexForSSID!!) - } else null - } - - /** - * To search for and return a saved WiFiConfiguration given an SSID. - * - * @param regexForSSID The ssid to use while searching for saved configuration - * @param callbacks The listener to return results to - * - * @see [SearchForSavedNetworkCallbacks] - * @see [runOnWiseFyThread] - * @see [WifiConfiguration] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.searchForSavedNetworkChecks] - * @see [WiseFySearch.findSavedNetworkByRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSavedNetwork(regexForSSID: String?, callbacks: SearchForSavedNetworkCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.searchForSavedNetworkChecks(regexForSSID) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val savedNetwork = wisefySearch.findSavedNetworkByRegex(regexForSSID!!) - if (savedNetwork != null) { - callbacks?.retrievedSavedNetwork(savedNetwork) - } else { - callbacks?.savedNetworkNotFound() - } - } - }) - } - - /** - * To retrieve a list of saved networks on a user's device that match a given regex. - * - * @param regexForSSID The ssid to use while searching for saved configurations - * - * @return List of WifiConfigurations|null - The list of saved network configurations that match the given regex - * - * @see [WifiConfiguration] - * @see [WiseFyPrechecks.searchForSavedNetworksChecks] - * @see [WiseFySearch.findSavedNetworksMatchingRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSavedNetworks(regexForSSID: String?): List? { - return if (wisefyPrechecks.searchForSavedNetworksChecks(regexForSSID).passed()) { - wisefySearch.findSavedNetworksMatchingRegex(regexForSSID!!) - } else null - } - - /** - * To retrieve a list of saved networks on a user's device that match a given regex. - * - * @param regexForSSID The ssid to use while searching for saved configurations - * @param callbacks The listener to return results to - * - * @see [SearchForSavedNetworksCallbacks] - * @see [runOnWiseFyThread] - * @see [WifiConfiguration] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.searchForSavedNetworksChecks] - * @see [WiseFySearch.findSavedNetworksMatchingRegex] - * - * Updates - * - 12/19/2019: Added ACCESS_FINE_LOCATION requirement - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSavedNetworks(regexForSSID: String?, callbacks: SearchForSavedNetworksCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.searchForSavedNetworksChecks(regexForSSID) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val savedNetworks = wisefySearch.findSavedNetworksMatchingRegex(regexForSSID!!) - if (savedNetworks != null && savedNetworks.isNotEmpty()) { - callbacks?.retrievedSavedNetworks(savedNetworks) - } else { - callbacks?.noSavedNetworksFound() - } - } - }) - } - - /** - * To search local networks and return the first one that contains a given ssid. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param timeoutInMillis The number of milliseconds to keep searching for the SSID - * - * @return String|null - The first SSID that contains the search ssid (if any, else null) - * - * @see [ScanResult.SSID] - * @see [WiseFyPrechecks.searchForSSIDChecks] - * @see [WiseFySearch.findAccessPointByRegex] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @WaitsForTimeout - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int): String? { - if (wisefyPrechecks.searchForSSIDChecks(regexForSSID).failed()) { - return null - } - - val scanResult = wisefySearch.findAccessPointByRegex(regexForSSID!!, timeoutInMillis, false) - return scanResult?.SSID - } - - /** - * To search local networks and return the first one that contains a given ssid. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param timeoutInMillis The number of milliseconds to keep searching for the SSID - * @param callbacks The listener to return results to - * - * @see [runOnWiseFyThread] - * @see [ScanResult.SSID] - * @see [SearchForSSIDCallbacks] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.searchForSSIDChecks] - * @see [WiseFySearch.findAccessPointByRegex] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @WaitsForTimeout - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.searchForSSIDChecks(regexForSSID) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val scanResult = wisefySearch.findAccessPointByRegex(regexForSSID!!, timeoutInMillis, false) - if (scanResult != null) { - callbacks?.ssidFound(scanResult.SSID) - } else { - callbacks?.ssidNotFound() - } - } - }) - } - - /** - * To search local networks and return the first one that contains a given ssid. - * - * @param regexForSSID The regex to be used to search for the ssid - * - * @return String|null - The first SSID that contains the search ssid (if any, else null) - * - * @see [WiseFyPrechecks.searchForSSIDsChecks] - * @see [WiseFySearch.findSSIDsMatchingRegex] - * - * @author Patches - * @since 3.0 - */ - @Sync - @CallingThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSSIDs(regexForSSID: String?): List? { - return if (wisefyPrechecks.searchForSSIDsChecks(regexForSSID).passed()) { - wisefySearch.findSSIDsMatchingRegex(regexForSSID!!) - } else null - } - - /** - * To search local networks and return the first one that contains a given ssid. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param callbacks The listener to return results to - * - * @see [runOnWiseFyThread] - * @see [SearchForSSIDsCallbacks] - * @see [WiseFyLock] - * @see [WiseFyPrechecks.searchForSSIDsChecks] - * @see [WiseFySearch.findSSIDsMatchingRegex] - * - * @author Patches - * @since 3.0 - */ - @Async - @WiseFyThread - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSSIDs(regexForSSID: String?, callbacks: SearchForSSIDsCallbacks?) { - runOnWiseFyThread(Runnable { - synchronized(wisefyLock) { - val precheck = wisefyPrechecks.searchForSSIDsChecks(regexForSSID) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return@Runnable - } - - val ssids = wisefySearch.findSSIDsMatchingRegex(regexForSSID!!) - if (ssids != null) { - callbacks?.retrievedSSIDs(ssids) - } else { - callbacks?.noSSIDsFound() - } - } - }) - } - - /* - * HELPERS - */ - - /** - * Used internally to add a network with password from async API. - * - * *NOTES* NOT to be used with sync APIs. - * - * @param ssid The ssid of the network to add - * @param password The password for the network to add - * @param wifiConfigurationProvider The configuration of the network to add (as a provider) - * @param callbacks The callbacks for adding the network - * - * @see [addNetworkConfiguration] - * @see [WiseFyPrechecks.addNetworkPrechecks] - * @see [WIFI_MANAGER_FAILURE] - * @see [WifiConfiguration] - * - * @author Patches - * @since 4.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - private fun addNetworkWithPasswordAsync( - ssid: String?, - password: String?, - wifiConfigurationProvider: () -> WifiConfiguration, - callbacks: AddNetworkCallbacks? - ) { - val precheck = wisefyPrechecks.addNetworkPrechecks(ssid, password) - if (precheck.failed()) { - callbacks?.wisefyFailure(precheck.code) - return - } - - val wifiConfiguration = wifiConfigurationProvider() - - val result = addNetworkConfiguration(wifiConfiguration) - if (result != WIFI_MANAGER_FAILURE) { - callbacks?.networkAdded(result, wifiConfiguration) - } else { - callbacks?.failureAddingNetwork(result) - } - } - - /** - * Used internally to add and save a new wifi configuration. - * - * @param wifiConfiguration The network configuration to add - * - * @return boolean - If the network was successfully added - * - * @see [WifiConfiguration.SSID] - * @see [WifiManager.addNetwork] - * - * @author Patches - * @since 3.0 - */ - private fun addNetworkConfiguration(wifiConfiguration: WifiConfiguration): Int { - val result = wifiManager.addNetwork(wifiConfiguration) - logger?.d(TAG, "Adding network with SSID: %s had result: %d", wifiConfiguration.SSID, result) - if (result == WIFI_MANAGER_FAILURE) { - logger?.e(TAG, "Error adding network configuration.") - } - return result - } - - /** - * Used internally to check if a network has a given capability. - * - * @param scanResult The network to check - * @param capability The capability to check for - * - * @return boolean - True if the network contains the capability - * - * @see [Capability] - * @see [ScanResult.capabilities] - * - * @author Patches - * @since 3.0 - */ - private fun containsCapability(scanResult: ScanResult?, @Capability capability: String): Boolean = - scanResult?.capabilities != null && scanResult.capabilities.contains(capability) - - /** - * Used internally to connect to a network given it's id. - * - * @param networkId The network id to enable - * - * @see [WifiManager.disconnect] - * @see [WifiManager.enableNetwork] - * @see [WifiManager.reconnect] - * - * @author Patches - * @since 3.0 - */ - private fun connectToNetworkWithId(networkId: Int) { - wifiManager.disconnect() - wifiManager.enableNetwork(networkId, true) - wifiManager.reconnect() - } - - /** - * A method to execute logic on a background thread. - * - * @param runnable The block of code to execute in the background - * - * @see [setupWiseFyThread] - * - * @author Patches - * @since 3.0 - */ - private fun runOnWiseFyThread(runnable: Runnable) { - if (wisefyHandler == null) { - setupWiseFyThread() - } - wisefyHandler?.post(runnable) - } - - /** - * Used internally to remove a network. - * - * @param wifiConfiguration The network to remove - * - * @return bool - true if the network was successfully removed - * - * @see [WifiConfiguration.networkId] - * @see [WifiConfiguration.SSID] - * @see [WifiManager.disconnect] - * @see [WifiManager.removeNetwork] - * @see [WifiManager.reconnect] - * - * @author Patches - * @since 3.0 - */ - private fun removeNetworkConfiguration(wifiConfiguration: WifiConfiguration): Boolean { - wifiManager.disconnect() - val result = wifiManager.removeNetwork(wifiConfiguration.networkId) - logger?.d(TAG, "Removing network with SSID: %s had result: %b", wifiConfiguration.SSID, result) - wifiManager.reconnect() - return result - } - - /** - * Used internally to setup a WiseFyThread to run background operations. - * - * @param useMainLooper Only to be set to true for testing. It's a hacky param to allow RoboElectric - * to complete runnables posted to the [WiseFyHandlerThread] :( I feel bad about this. - * - * @see [runOnWiseFyThread] - * @see [WiseFyHandlerThread] - * - * Updates - * - 05/12/2019: Marks as visible for testing and added useMainLooper param - * - * @author Patches - * @since 3.0 - */ - @VisibleForTesting - internal fun setupWiseFyThread(useMainLooper: Boolean = false) { - wisefyHandlerThread = WiseFyHandlerThread(WiseFyHandlerThread.TAG) - wisefyHandlerThread?.let { - it.start() - val looper = if (useMainLooper) Looper.getMainLooper() else it.looper - wisefyHandler = Handler(looper) - } - } -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/WiseFyPrechecks.kt b/wisefy/src/main/java/com/isupatches/wisefy/WiseFyPrechecks.kt deleted file mode 100644 index df64a4d3..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/WiseFyPrechecks.kt +++ /dev/null @@ -1,675 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.constants.DEFAULT_PRECHECK_RETURN_CODE -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefy.constants.NETWORK_ALREADY_CONFIGURED -import com.isupatches.wisefy.constants.WiseFyCode -import com.isupatches.wisefy.search.WiseFySearch - -/** - * A helper class with methods to determine if the necessary requirements are met to preform operations. - * - * @see [WiseFyPrechecks] - * @see [WiseFySearch] - * - * @author Patches - * @since 3.0 - */ -internal class WiseFyPrechecksImpl private constructor( - private val wisefySearch: WiseFySearch -) : WiseFyPrechecks { - - /** - * Used internally to make sure perquisites for adding a network as a saved configuration are met. - * - * @param ssid The ssid param from [com.isupatches.wisefy.WiseFy.addOpenNetwork] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkAddNetworkPrerequisites] - * @see [com.isupatches.wisefy.WiseFy.addOpenNetwork] - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addNetworkPrechecks(ssid: String?): PrecheckResult = - checkAddNetworkPrerequisites(ssid) - - /** - * Used internally to make sure perquisites for adding a network as a saved configuration are met. - * - * @param ssid The ssid param from [com.isupatches.wisefy.WiseFy.addWEPNetwork] or - * [com.isupatches.wisefy.WiseFy.addWPA2Network] - * @param password The password from [com.isupatches.wisefy.WiseFy.addWEPNetwork] or - * [com.isupatches.wisefy.WiseFy.addWPA2Network] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkAddNetworkPrerequisites] - * @see [com.isupatches.wisefy.WiseFy.addWEPNetwork] - * @see [com.isupatches.wisefy.WiseFy.addWPA2Network] - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addNetworkPrechecks(ssid: String?, password: String?): PrecheckResult = - checkAddNetworkPrerequisites(ssid, password) - - /** - * Used internally to make sure perquisites for connecting to a network are met. - * - * @param ssidToConnectTo The ssidToConnectTo param from [com.isupatches.wisefy.WiseFy.connectToNetwork] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.connectToNetwork] - * - * @author Patches - * @since 3.0 - */ - override fun connectToNetworkPrechecks(ssidToConnectTo: String?): PrecheckResult = - checkForParam(ssidToConnectTo) - - /** - * Used internally to make sure perquisites for disabling wifi on the device are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.disableWifi] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun disableWifiChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for disconnecting a device from it's current network are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.disconnectFromCurrentNetwork] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun disconnectFromCurrentNetworkChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for enabling wifi on the device are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.enableWifi] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun enableWifiChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for getting the device's current network are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.getCurrentNetworkInfo] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun getCurrentNetworkChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for getting the device's current network info are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.getCurrentNetworkInfo] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun getCurrentNetworkInfoChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for getting the frequency of the current network are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.getFrequency] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 4.1 - */ - override fun getFrequencyChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for getting the ip of the device are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.getIP] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun getIPChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for getting nearby access points are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.getNearbyAccessPoints] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun getNearbyAccessPointsChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for getting the RSSI of a network matching a given regex are met. - * - * @param regexForSSID The regexForSSID param from [com.isupatches.wisefy.WiseFy.getRSSI] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.getRSSI] - * - * @author Patches - * @since 3.0 - */ - override fun getRSSIChecks(regexForSSID: String?): PrecheckResult = - checkForParam(regexForSSID) - - /** - * Used internally to make sure perquisites for searching for a saved network on a device are met. - * - * @param regexForSSID The regexForSSID param from [com.isupatches.wisefy.WiseFy.searchForSavedNetwork] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.searchForSavedNetwork] - * - * @author Patches - * @since 3.0 - */ - override fun getSavedNetworkChecks(regexForSSID: String?): PrecheckResult = - checkForParam(regexForSSID) - - /** - * Used internally to make sure perquisites for getting a saved network on a device are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.getSavedNetworks] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun getSavedNetworksChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for getting the saved networks on a device are met. - * - * @param regexForSSID The regexForSSID param from [com.isupatches.wisefy.WiseFy.getSavedNetworks] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.getSavedNetworks] - * - * @author Patches - * @since 3.0 - */ - override fun getSavedNetworksChecks(regexForSSID: String?): PrecheckResult = - checkForParam(regexForSSID) - - /** - * Used internally to make sure perquisites for checking if the device is connected to - * a mobile network are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.isDeviceConnectedToMobileNetwork] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun isDeviceConnectedToMobileNetworkChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for checking if the device is connected to - * a mobile or wifi network are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.isDeviceConnectedToMobileOrWifiNetwork] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun isDeviceConnectedToMobileOrWifiNetworkChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure perquisites for checking if the device is connected to - * a specific SSID are met. - * - * @param ssid The ssid param from [com.isupatches.wisefy.WiseFy.isDeviceConnectedToSSID] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.isDeviceConnectedToSSID] - * - * @author Patches - * @since 3.0 - */ - override fun isDeviceConnectedToSSIDChecks(ssid: String?): PrecheckResult = - checkForParam(ssid) - - /** - * Used internally to make sure perquisites for checking if the device is connected to - * a wifi network are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.isDeviceConnectedToWifiNetwork] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun isDeviceConnectedToWifiNetworkChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure prerequisites for seeing if a device is roaming are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.isDeviceRoaming] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun isDeviceRoamingChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure prerequisites for seeing if a network is a saved configuration - * are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.isNetworkSaved] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun isNetworkSavedChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure prerequisites for enabling wifi are met. - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] - * - * @see [com.isupatches.wisefy.WiseFy.isWifiEnabled] - * @see [DEFAULT_PRECHECK_RESULT] - * - * @author Patches - * @since 3.0 - */ - override fun isWifiEnabledChecks() = DEFAULT_PRECHECK_RESULT - - /** - * Used internally to make sure prerequisites for removing a network are met. - * - * @param ssidToRemove The regexForSsid param from [com.isupatches.wisefy.WiseFy.removeNetwork] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.removeNetwork] - * - * @author Patches - * @since 3.0 - */ - override fun removeNetworkCheck(ssidToRemove: String?): PrecheckResult = - checkForParam(ssidToRemove) - - /** - * Used internally to make sure prerequisites for searching for an individual access point - * are met. - * - * @param regexForSSID The regexForSsid param from [com.isupatches.wisefy.WiseFy.searchForAccessPoint] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.searchForAccessPoint] - * - * @author Patches - * @since 3.0 - */ - override fun searchForAccessPointChecks(regexForSSID: String?): PrecheckResult = - checkForParam(regexForSSID) - - /** - * Used internally to make sure prerequisites for searching for access points are met. - * - * @param regexForSSID The regexForSsid param from [com.isupatches.wisefy.WiseFy.searchForAccessPoints] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.searchForAccessPoints] - * - * @author Patches - * @since 3.0 - */ - override fun searchForAccessPointsChecks(regexForSSID: String?): PrecheckResult = - checkForParam(regexForSSID) - - /** - * Used internally to make sure prerequisites for searching for an individual saved network - * are met. - * - * @param regexForSSID The regexForSsid param from [com.isupatches.wisefy.WiseFy.searchForSavedNetwork] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.searchForSavedNetwork] - * - * @author Patches - * @since 4.0 - */ - override fun searchForSavedNetworkChecks(regexForSSID: String?): PrecheckResult = - checkForParam(regexForSSID) - - /** - * Used internally to make sure prerequisites for searching for saved networks are met. - * - * @param regexForSSID The regexForSsid param from [com.isupatches.wisefy.WiseFy.searchForSavedNetworks] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.searchForSavedNetworks] - * - * @author Patches - * @since 4.0 - */ - override fun searchForSavedNetworksChecks(regexForSSID: String?): PrecheckResult = - checkForParam(regexForSSID) - - /** - * Used internally to make sure prerequisites for searching for an individual SSID are met. - * - * @param regexForSSID The regexForSsid param from [com.isupatches.wisefy.WiseFy.searchForSSID] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.searchForSSID] - * - * @author Patches - * @since 3.0 - */ - override fun searchForSSIDChecks(regexForSSID: String?): PrecheckResult = - checkForParam(regexForSSID) - - /** - * Used internally to make sure prerequisites for searching for SSIDs are met. - * - * @param regexForSSID The regexForSsid param from [com.isupatches.wisefy.WiseFy.searchForSSIDs] - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [checkForParam] - * @see [com.isupatches.wisefy.WiseFy.searchForSSIDs] - * - * @author Patches - * @since 3.0 - */ - override fun searchForSSIDsChecks(regexForSSID: String?): PrecheckResult = - checkForParam(regexForSSID) - - /* - * HELPERS - */ - - /** - * Used internally as an abstracted layer that check if a necessary param is not empty. - * - * @param param The param to check if it's empty - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [DEFAULT_PRECHECK_RESULT] - * @see [MISSING_PARAMETER] - * @see [PrecheckResult] - * - * @author Patches - * @since 3.0 - */ - private fun checkForParam(param: String?): PrecheckResult = - if (param.isNullOrEmpty()) { - PrecheckResult(code = MISSING_PARAMETER) - } else { - DEFAULT_PRECHECK_RESULT - } - - /** - * Used internally as an abstracted layer that checks if all of the prerequisites for adding - * a network are met. f.e. ssid is not null or empty, network is not already saved, etc. - * - * @param ssid The ssid of the network to add - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [DEFAULT_PRECHECK_RESULT] - * @see [MISSING_PARAMETER] - * @see [NETWORK_ALREADY_CONFIGURED] - * @see [PrecheckResult] - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - private fun checkAddNetworkPrerequisites(ssid: String?): PrecheckResult = - when { - ssid.isNullOrEmpty() -> PrecheckResult(code = MISSING_PARAMETER) - wisefySearch.isNetworkASavedConfiguration(ssid) -> { - PrecheckResult(code = NETWORK_ALREADY_CONFIGURED) - } - else -> DEFAULT_PRECHECK_RESULT - } - - /** - * Used internally as an abstracted layer that checks if all of the prerequisites for adding - * a network are met. f.e. ssid and password are not null or empty, network is not already saved, etc. - * - * @param ssid The ssid of the network to add - * @param password The password of the network to add - * - * @return PrecheckResult - [DEFAULT_PRECHECK_RESULT] or a [PrecheckResult] with an error code. - * - * @see [DEFAULT_PRECHECK_RESULT] - * @see [MISSING_PARAMETER] - * @see [NETWORK_ALREADY_CONFIGURED] - * @see [PrecheckResult] - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - private fun checkAddNetworkPrerequisites(ssid: String?, password: String?): PrecheckResult = - when { - ssid.isNullOrEmpty() || password.isNullOrEmpty() -> { - PrecheckResult(code = MISSING_PARAMETER) - } - wisefySearch.isNetworkASavedConfiguration(ssid) -> { - PrecheckResult(code = NETWORK_ALREADY_CONFIGURED) - } - else -> DEFAULT_PRECHECK_RESULT - } - - internal companion object { - fun create(wisefySearch: WiseFySearch): WiseFyPrechecks = WiseFyPrechecksImpl(wisefySearch) - } -} - -/** - * An interface with methods that relate to checking that prerequisites are met before - * continuing with a WiseFy operation. - * - * @see [WiseFyPrechecksImpl] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ -internal interface WiseFyPrechecks { - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addNetworkPrechecks(ssid: String?): PrecheckResult - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addNetworkPrechecks(ssid: String?, password: String?): PrecheckResult - - fun connectToNetworkPrechecks(ssidToConnectTo: String?): PrecheckResult - - fun disableWifiChecks(): PrecheckResult - - fun disconnectFromCurrentNetworkChecks(): PrecheckResult - - fun enableWifiChecks(): PrecheckResult - - fun getCurrentNetworkChecks(): PrecheckResult - - fun getCurrentNetworkInfoChecks(): PrecheckResult - - fun getFrequencyChecks(): PrecheckResult - - fun getIPChecks(): PrecheckResult - - fun getNearbyAccessPointsChecks(): PrecheckResult - - fun getRSSIChecks(regexForSSID: String?): PrecheckResult - - fun getSavedNetworkChecks(regexForSSID: String?): PrecheckResult - - fun getSavedNetworksChecks(regexForSSID: String?): PrecheckResult - - fun getSavedNetworksChecks(): PrecheckResult - - fun isDeviceConnectedToMobileNetworkChecks(): PrecheckResult - - fun isDeviceConnectedToMobileOrWifiNetworkChecks(): PrecheckResult - - fun isDeviceConnectedToSSIDChecks(ssid: String?): PrecheckResult - - fun isDeviceConnectedToWifiNetworkChecks(): PrecheckResult - - fun isDeviceRoamingChecks(): PrecheckResult - - fun isNetworkSavedChecks(): PrecheckResult - - fun isWifiEnabledChecks(): PrecheckResult - - fun removeNetworkCheck(ssidToRemove: String?): PrecheckResult - - fun searchForAccessPointChecks(regexForSSID: String?): PrecheckResult - - fun searchForAccessPointsChecks(regexForSSID: String?): PrecheckResult - - fun searchForSavedNetworkChecks(regexForSSID: String?): PrecheckResult - - fun searchForSavedNetworksChecks(regexForSSID: String?): PrecheckResult - - fun searchForSSIDChecks(regexForSSID: String?): PrecheckResult - - fun searchForSSIDsChecks(regexForSSID: String?): PrecheckResult -} - -/** - * A return from WiseFyPrechecks that includes a relevant detail code. - * - * @param code The return code from prechecks (f.e. [DEFAULT_PRECHECK_RETURN_CODE] or - * an error code such as [MISSING_PARAMETER]. This code will also be used by the extension - * functions [passed] and [failed]. - * - * @see [failed] - * @see [passed] - * @see [WiseFyCode] - * - * @author Patches - * @since 3.0 - */ -internal data class PrecheckResult(@WiseFyCode val code: Int) - -/** - * An extension function to determine if prerequisites for an operation are NOT met. - * - * @see [PrecheckResult] - * - * @author Patches - * @since 3.0 - */ -internal fun PrecheckResult.failed(): Boolean = code < DEFAULT_PRECHECK_RETURN_CODE - -/** - * An extension function to determine if prerequisites for an operation ARE met. - * - * @see [PrecheckResult] - * - * @author Patches - * @since 3.0 - */ -internal fun PrecheckResult.passed(): Boolean = code >= DEFAULT_PRECHECK_RETURN_CODE - -/** - * A default result to return that denotes a success and that prerequisites for an operation are met. - * - * @see [PrecheckResult] - * - * @author Patches - * @since 3.0 - */ -internal val DEFAULT_PRECHECK_RESULT = PrecheckResult(code = DEFAULT_PRECHECK_RETURN_CODE) diff --git a/wisefy/src/main/java/com/isupatches/wisefy/WisePublicApi.kt b/wisefy/src/main/java/com/isupatches/wisefy/WisePublicApi.kt deleted file mode 100644 index 2954403e..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/WisePublicApi.kt +++ /dev/null @@ -1,1248 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo -import android.os.Build -import androidx.annotation.RequiresApi -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefy.callbacks.ConnectToNetworkCallbacks -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.GetRSSICallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks - -/** - * The interface that is the public facing API for WiseFy. It is composed of various other sub-apis for separation - * of functionality. - * - * @see [AccessPointApi] - * @see [AddNetworkApi] - * @see [ConnectionApi] - * @see [DeviceApi] - * @see [FrequencyApi] - * @see [NetworkInfoApi] - * @see [RemoveNetworkApi] - * @see [SavedNetworkApi] - * @see [SecurityApi] - * @see [SignalStrengthApi] - * @see [WiseFy] - * - * Updates - * - 01/07/2020: Removed isLoggingEnabled - * - * @author Patches - * @since 3.0 - */ -interface WiseFyPublicApi : AccessPointApi, AddNetworkApi, ConnectionApi, DeviceApi, FrequencyApi, - NetworkInfoApi, RemoveNetworkApi, SavedNetworkApi, SecurityApi, SignalStrengthApi, WifiApi { - - /** - * Used to cleanup the thread started by WiseFy. - * - * @see [WiseFy.dump] - * - * @author Patches - * @since 3.0 - */ - fun dump() - - /** - * To retrieve the lock in use by WiseFy for synchronization. - * - * @return WiseFyLock - The instance of the lock in-use by WiseFy - * - * @see [WiseFy.getWiseFyLock] - * @see [WiseFyLock] - * - * @author Patches - * @since 3.0 - */ - fun getWiseFyLock(): WiseFyLock -} - -/** - * An API for querying for nearby access points and related information. - * - * @author Patches - * @since 3.0 - */ -interface AccessPointApi { - - /** - * To retrieve a list of nearby access points. - * - * *NOTE* Setting filterDuplicates to true will exclude access points for an SSID that have a weaker RSSI. - * It will always take the highest signal strength. - * - * @param filterDuplicates If you want to exclude SSIDs with that same name that have a weaker signal strength - * - * @return List of ScanResults|null - List of nearby access points - * - * @see [WiseFy.getNearbyAccessPoints] - * @see [ScanResult] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getNearbyAccessPoints(filterDuplicates: Boolean): List? - - /** - * To retrieve a list of nearby access points. - * - * *NOTE* Setting filterDuplicates to true will not return SSIDs with a weaker signal strength. - * It will always take the highest. - * - * @param filterDuplicates If you want to exclude SSIDs with that same name that have a weaker signal strength - * @param callbacks The listener to return results to - * - * @see [WiseFy.getNearbyAccessPoints] - * @see [GetNearbyAccessPointsCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getNearbyAccessPoints(filterDuplicates: Boolean, callbacks: GetNearbyAccessPointsCallbacks?) - - /** - * To retrieve the RSSI of the first network matching a given regex. - * - * *NOTE* Setting takeHighest to true will return the access point with the highest RSSI for the given SSID. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param takeHighest Whether to return the access point with the highest RSSI for the given SSID - * @param timeoutInMillis The amount of time to search for a matching SSID - * - * @return Integer - The RSSI value for the found SSID or null if no matching network found - * - * @see [WiseFy.getRSSI] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getRSSI(regexForSSID: String?, takeHighest: Boolean, timeoutInMillis: Int): Int? - - /** - * To retrieve the RSSI of the first network matching a given regex. - * - * *NOTE* Setting takeHighest to true will return the access point with the highest RSSI for the given SSID. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param takeHighest Whether to return the access point with the highest RSSI for the given SSID - * @param timeoutInMillis The amount of time to search for a matching SSID - * @param callbacks The listener to return results to - * - * @see [WiseFy.getRSSI] - * @see [GetRSSICallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getRSSI( - regexForSSID: String?, - takeHighest: Boolean, - timeoutInMillis: Int, - callbacks: GetRSSICallbacks? - ) - - /** - * To return the first access point that matches a given regex. - * - * *NOTE* Setting filterDuplicates to true will not return an access point with a weaker signal strength. - * It will always take the highest. - * - * @param regexForSSID The regex to use when iterating through nearby access points - * @param timeoutInMillis The amount of time (in milliseconds) to wait for a matching access point - * @param filterDuplicates If you want to exclude access points with the same name that have a weaker signal - * strength - * - * @return ScanResult|null - The first access point or access point with the highest signal strength matching the - * regex - * - * @see [WiseFy.searchForAccessPoint] - * @see [ScanResult] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForAccessPoint( - regexForSSID: String?, - timeoutInMillis: Int, - filterDuplicates: Boolean - ): ScanResult? - - /** - * To return the first access point that matches a given regex. - * - * *NOTE* Setting filterDuplicates to true will not return an access point with a weaker signal strength. - * It will always take the highest. - * - * @param regexForSSID The regex to use when iterating through nearby access points - * @param timeoutInMillis The amount of time (in milliseconds) to wait for a matching access point - * @param filterDuplicates If you want to exclude access points with the same name that have a weaker signal - * strength - * @param callbacks The listener to return results to - * - * @see [WiseFy.searchForAccessPoint] - * @see [SearchForAccessPointCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForAccessPoint( - regexForSSID: String?, - timeoutInMillis: Int, - filterDuplicates: Boolean, - callbacks: SearchForAccessPointCallbacks? - ) - - /** - * To return nearby access points that match a given regex. - * - * *NOTE* Setting filterDuplicates to true will not return access points with a weaker signal strength. - * It will always take the highest. - * - * @param regexForSSID The regex to use when iterating through nearby access points - * @param filterDuplicates If you want to exclude access points with the same name that have a weaker signal - * strength - * - * @return List of ScanResult|null - The list of matching access points or null if none match the given regex - * - * @see [WiseFy.searchForAccessPoints] - * @see [ScanResult] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForAccessPoints(regexForSSID: String?, filterDuplicates: Boolean): List? - - /** - * To return nearby access points that match a given regex. - * - * *NOTE* Setting filterDuplicates to true will not return access points with a weaker signal strength. - * It will always take the highest. - * - * @param regexForSSID The regex to use when iterating through nearby access points - * @param filterDuplicates If you want to exclude access points with the same name that have a weaker signal - * strength - * @param callbacks The listener to return results to - * - * @see [WiseFy.searchForAccessPoints] - * @see [SearchForAccessPointsCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForAccessPoints( - regexForSSID: String?, - filterDuplicates: Boolean, - callbacks: SearchForAccessPointsCallbacks? - ) - - /** - * To search local networks and return the first one that contains a given ssid. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param timeoutInMillis The number of milliseconds to keep searching for the SSID - * - * @return String|null - The first SSID that contains the search ssid (if any, else null) - * - * @see [WiseFy.searchForSSID] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int): String? - - /** - * To search local networks and return the first one that contains a given ssid. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param timeoutInMillis The number of milliseconds to keep searching for the SSID - * @param callbacks The listener to return results to - * - * @see [WiseFy.searchForSSID] - * @see [SearchForSSIDCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSSID(regexForSSID: String?, timeoutInMillis: Int, callbacks: SearchForSSIDCallbacks?) - - /** - * To search local networks and return the first one that contains a given ssid. - * - * @param regexForSSID The regex to be used to search for the ssid - * - * @return String|null - The first SSID that contains the search ssid (if any, else null) - * - * @see [WiseFy.searchForSSIDs] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSSIDs(regexForSSID: String?): List? - - /** - * To search local networks and return the first one that contains a given ssid. - * - * @param regexForSSID The regex to be used to search for the ssid - * @param callbacks The listener to return results to - * - * @see [WiseFy.searchForSSIDs] - * @see [SearchForSSIDsCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSSIDs(regexForSSID: String?, callbacks: SearchForSSIDsCallbacks?) -} - -/** - * An API for adding networks as saved configurations on a device. - * - * @author Patches - * @since 3.0 - */ -interface AddNetworkApi { - - /** - * To add an open network to the user's configured network list. - * - * @param ssid The ssid of the open network you want to add - * - * @return int - The return code from WifiManager for network creation (-1 for failure) - * - * @see [WiseFy.addOpenNetwork] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addOpenNetwork(ssid: String?): Int - - /** - * To add an open network to the user's configured network list. - * - * @param ssid The ssid of the open network you want to add - * @param callbacks The listener to return results to - * - * @see [WiseFy.addOpenNetwork] - * @see [AddNetworkCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addOpenNetwork(ssid: String?, callbacks: AddNetworkCallbacks?) - - /** - * To add a WEP network to the user's configured network list. - * - * @param ssid The ssid of the WEP network you want to add - * @param password The password for the WEP network being added - * - * @return int - The return code from WifiManager for network creation (-1 for failure) - * - * @see [WiseFy.addWEPNetwork] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - @Deprecated("Due to security and performance limitations, WEP networks are discouraged") - fun addWEPNetwork(ssid: String?, password: String?): Int - - /** - * To add a WEP network to the user's configured network list. - * - * @param ssid The ssid of the WEP network you want to add - * @param password The password for the WEP network being added - * @param callbacks The listener to return results to - * - * @see [WiseFy.addWEPNetwork] - * @see [AddNetworkCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - @Deprecated("Due to security and performance limitations, WEP networks are discouraged") - fun addWEPNetwork(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?) - - /** - * To add a WPA2 network to the user's configured network list. - * - * @param ssid The ssid of the WPA2 network you want to add - * @param password The password for the WPA2 network being added - * - * @return int - The return code from WifiManager for network creation (-1 for failure) - * - * @see [WiseFy.addWPA2Network] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addWPA2Network(ssid: String?, password: String?): Int - - /** - * To add a WPA2 network to the user's configured network list. - * - * @param ssid The ssid of the WPA2 network you want to add - * @param password The password for the WPA2 network being added - * @param callbacks The listener to return results to - * - * @see [WiseFy.addWPA2Network] - * @see [AddNetworkCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addWPA2Network(ssid: String?, password: String?, callbacks: AddNetworkCallbacks?) -} - -/** - * An API for managing the network connection of a device. - * - * @author Patches - * @since 3.0 - */ -interface ConnectionApi { - - /** - * Used to connect to a network. - * - * @param ssidToConnectTo The ssid to connect/reconnect to - * @param timeoutInMillis The number of milliseconds to continue waiting for the device to connect to the given SSID - * - * @return boolean - If the network was successfully reconnected - * - * @see [WiseFy.connectToNetwork] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun connectToNetwork(ssidToConnectTo: String?, timeoutInMillis: Int): Boolean - - /** - * Used to connect to a network. - * - * @param ssidToConnectTo The ssid to connect/reconnect to - * @param timeoutInMillis The number of milliseconds to continue waiting for the device to connect to the given SSID - * @param callbacks The listener to return results to - * - * @see [WiseFy.connectToNetwork] - * @see [ConnectToNetworkCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun connectToNetwork( - ssidToConnectTo: String?, - timeoutInMillis: Int, - callbacks: ConnectToNetworkCallbacks? - ) - - /** - * To disconnect the user from their current network. - * - * @return boolean - If the command succeeded in disconnecting the device from the current network - * - * @see [WiseFy.disconnectFromCurrentNetwork] - * - * @author Patches - * @since 3.0 - */ - fun disconnectFromCurrentNetwork(): Boolean - - /** - * To disconnect the user from their current network. - * - * @param callbacks The listener to return results to - * - * @see [WiseFy.disconnectFromCurrentNetwork] - * @see [DisconnectFromCurrentNetworkCallbacks] - * - * @author Patches - * @since 3.0 - */ - fun disconnectFromCurrentNetwork(callbacks: DisconnectFromCurrentNetworkCallbacks?) -} - -/** - * An API for querying about the different network statuses of a device. - * - * @author Patches - * @since 3.0 - */ -interface DeviceApi { - - /** - * To check if the device is connected to a mobile network. - * - * @return bool - If the device is currently connected to a mobile network - * - * @see [WiseFy.isDeviceConnectedToMobileNetwork] - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToMobileNetwork(): Boolean - - /** - * To check if the device is connected to a mobile or wifi network. - * - * @return bool - If the device is currently connected to a mobile or wifi network - * - * @see [WiseFy.isDeviceConnectedToMobileOrWifiNetwork] - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToMobileOrWifiNetwork(): Boolean - - /** - * To check if the device is connected to a given SSID. - * - * @param ssid The SSID to check if the device is attached to - * - * @return bool - If the device is currently attached to the given SSID - * - * @see [WiseFy.isDeviceConnectedToSSID] - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToSSID(ssid: String?): Boolean - - /** - * To check if the device is connected to a wifi network. - * - * @return bool - If the device is currently connected to a wifi network - * - * @see [WiseFy.isDeviceConnectedToWifiNetwork] - * - * @author Patches - * @since 3.0 - */ - fun isDeviceConnectedToWifiNetwork(): Boolean - - /** - * To query if the device is roaming. - * - * @return boolean - If the current network is roaming - * - * @see [WiseFy.isDeviceRoaming] - * - * @author Patches - * @since 3.0 - */ - fun isDeviceRoaming(): Boolean -} - -/** - * An API for querying about a network's frequency. - * - * @author Patches - * @since 3.0 - */ -interface FrequencyApi { - - /** - * To retrieve the frequency of the device's current network. - * - * @return Integer - The frequency of the devices current network or null if no network - * - * @see [WiseFy.getFrequency] - * - * Updates - * - 01/04/2020: Added API requirement - * - * @author Patches - * @since 3.0 - */ - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - fun getFrequency(): Int? - - /** - * To retrieve the frequency of the device's current network. - * - * @param callbacks The listener to return results to - * - * @see [WiseFy.getFrequency] - * @see [GetFrequencyCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions and added API requirement - * - * @author Patches - * @since 3.0 - */ - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getFrequency(callbacks: GetFrequencyCallbacks?) - - /** - * To retrieve the frequency of a network. - * - * @param network The network to return the frequency of - * - * @return Integer - The frequency of the devices current network or null if no network - * - * @see [WiseFy.getFrequency] - * @see [WifiInfo] - * - * Updates - * - 01/04/2020: Added API requirement - * - * @author Patches - * @since 3.0 - */ - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - fun getFrequency(network: WifiInfo?): Int? - - /** - * To retrieve the frequency of a network. - * - * @param network The network to return the frequency of - * @param callbacks The listener to return results to - * - * @see [WiseFy.getFrequency] - * @see [GetFrequencyCallbacks] - * @see [WifiInfo] - * - * Updates - * - 01/04/2020: Added API requirement - * - * @author Patches - * @since 3.0 - */ - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - fun getFrequency(network: WifiInfo?, callbacks: GetFrequencyCallbacks?) - - /** - * To check if the device's current network is 5gHz. - * - * @return boolean - If the network is 5gHz - * - * @see [WiseFy.isNetwork5gHz] - * @see [getFrequency] - * - * Updates - * - 01/04/2020: Refined permissions and added API requirement - * - * @author Patches - * @since 3.0 - */ - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - @RequiresPermission(ACCESS_FINE_LOCATION) - fun isNetwork5gHz(): Boolean - - /** - * To check if a given network is 5gHz. - * - * @param network The network to check if it's 5gHz - * - * @return boolean - If the network is 5gHz - * - * @see [WiseFy.isNetwork5gHz] - * @see [WifiInfo] - * - * Updates - * - 01/04/2020: Added API requirement - * - * @author Patches - * @since 3.0 - */ - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - fun isNetwork5gHz(network: WifiInfo?): Boolean -} - -/** - * An API for querying about a device's current network information. - * - * @author Patches - * @since 3.0 - */ -interface NetworkInfoApi { - - /** - * To retrieve the user's current network. - * - * @return WifiInfo|null - The user's current network information - * - * @see [WiseFy.getCurrentNetwork] - * @see [WifiInfo] - * - * @author Patches - * @since 3.0 - */ - fun getCurrentNetwork(): WifiInfo? - - /** - * To retrieve the user's current network. - * - * @param callbacks The listener to return results to - * - * @see [WiseFy.getCurrentNetwork] - * @see [GetCurrentNetworkCallbacks] - * - * @author Patches - * @since 3.0 - */ - fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks?) - - /** - * To retrieve the details of the phones active network. - * - * @return NetworkInfo - * - * @see [WiseFy.getCurrentNetworkInfo] - * @see [NetworkInfo] - * - * @author Patches - * @since 3.0 - */ - fun getCurrentNetworkInfo(): NetworkInfo? - - /** - * To retrieve the details of the phones active network. - * - * @param callbacks The listener to return results to - * - * @see [WiseFy.getCurrentNetworkInfo] - * @see [GetCurrentNetworkInfoCallbacks] - * - * @author Patches - * @since 3.0 - */ - fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks?) - - /** - * To retrieve the IPv4 or IPv6 of a device. - * - * @return String - The IPv4 or IPv6 address - * - * @see [WiseFy.getIP] - * - * @author Patches - * @since 3.0 - */ - fun getIP(): String? - - /** - * To retrieve the IPv4 or IPv6 of a device. - * - * @param callbacks The listener to return results to - * - * @see [WiseFy.getIP] - * @see [GetIPCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getIP(callbacks: GetIPCallbacks?) -} - -/** - * An API for removing a network as a saved configuration. - * - * @author Patches - * @since 3.0 - */ -interface RemoveNetworkApi { - - /** - * To remove a configured network. - * - * @param ssidToRemove The ssid of the network you want to remove from the configured network list - * - * @return boolean - If the command succeeded in removing the network - * - * @see [WiseFy.removeNetwork] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun removeNetwork(ssidToRemove: String?): Boolean - - /** - * To remove a configured network. - * - * @param ssidToRemove The ssid of the network you want to remove from the configured network list - * @param callbacks The listener to return results to - * - * @see [WiseFy.removeNetwork] - * @see [RemoveNetworkCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun removeNetwork(ssidToRemove: String?, callbacks: RemoveNetworkCallbacks?) -} - -/** - * An API for querying saved network information on a device. - * - * @author Patches - * @since 3.0 - */ -interface SavedNetworkApi { - - /** - * To retrieve a list of saved networks on a user's device. - * - * @return List of WifiConfiguration|null - List of saved networks on a users device - * - * @see [WiseFy.getSavedNetworks] - * @see [WifiConfiguration] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getSavedNetworks(): List? - - /** - * To retrieve a list of saved networks on a user's device. - * - * @param callbacks The listener to return results to - * - * @see [WiseFy.getSavedNetworks] - * @see [GetSavedNetworksCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks?) - - /** - * To check if an SSID is in the list of configured networks. - * - * @param ssid The SSID to check and see if it's in the list of configured networks - * - * @return boolean - If the SSID is in the list of configured networks - * - * @see [WiseFy.isNetworkSaved] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun isNetworkSaved(ssid: String?): Boolean - - /** - * To search for and return a saved WiFiConfiguration given an SSID. - * - * @param regexForSSID The ssid to use while searching for saved configuration - * - * @return WifiConfiguration|null - Saved network that matches the ssid - * - * @see [WiseFy.searchForSavedNetwork] - * @see [WifiConfiguration] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSavedNetwork(regexForSSID: String?): WifiConfiguration? - - /** - * To search for and return a saved WiFiConfiguration given an SSID. - * - * @param regexForSSID The ssid to use while searching for saved configuration - * @param callbacks The listener to return results to - * - * @see [WiseFy.searchForSavedNetwork] - * @see [SearchForSavedNetworkCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSavedNetwork(regexForSSID: String?, callbacks: SearchForSavedNetworkCallbacks?) - - /** - * To retrieve a list of saved networks on a user's device that match a given regex. - * - * @param regexForSSID The ssid to use while searching for saved configurations - * - * @return List of WifiConfigurations|null - The list of saved network configurations that match the given regex - * - * @see [WiseFy.searchForSavedNetworks] - * @see [WifiConfiguration] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSavedNetworks(regexForSSID: String?): List? - - /** - * To retrieve a list of saved networks on a user's device that match a given regex. - * - * @param regexForSSID The ssid to use while searching for saved configurations - * @param callbacks The listener to return results to - * - * @see [WiseFy.searchForSavedNetworks] - * @see [SearchForSavedNetworksCallbacks] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSavedNetworks(regexForSSID: String?, callbacks: SearchForSavedNetworksCallbacks?) -} - -/** - * An API for querying about a network's security details. - * - * @author Patches - * @since 3.0 - */ -interface SecurityApi { - - /** - * To check and return if a network is a EAP network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has EAP capabilities listed - * - * @see [WiseFy.isNetworkEAP] - * @see [ScanResult] - * - * @author Patches - * @since 3.0 - */ - fun isNetworkEAP(scanResult: ScanResult?): Boolean - - /** - * To check and return if a network is a PSK network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has PSK capabilities listed - * - * @see [WiseFy.isNetworkPSK] - * @see [ScanResult] - * - * @author Patches - * @since 3.0 - */ - fun isNetworkPSK(scanResult: ScanResult?): Boolean - - /** - * To check and return if a network is secure (contains EAP/PSK/WEP/WPA/WPA2 capabilities). - * - * @param scanResult The network to see if it is secure - * - * @return boolean - Whether the network is secure - * - * @see [WiseFy.isNetworkSecure] - * @see [ScanResult] - * - * @author Patches - * @since 3.0 - */ - fun isNetworkSecure(scanResult: ScanResult?): Boolean - - /** - * To check and return if a network is a WEP network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has WEP capabilities listed - * - * @see [WiseFy.isNetworkWEP] - * @see [ScanResult] - * - * @author Patches - * @since 3.0 - */ - fun isNetworkWEP(scanResult: ScanResult?): Boolean - - /** - * To check and return if a network is a WPA network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has WPA capabilities listed - * - * @see [WiseFy.isNetworkWPA] - * @see [ScanResult] - * - * @author Patches - * @since 3.0 - */ - fun isNetworkWPA(scanResult: ScanResult?): Boolean - - /** - * To check and return if a network is a WPA2 network. - * - * @param scanResult The network to check - * - * @return boolean - Whether the network has WPA2 capabilities listed - * - * @see [WiseFy.isNetworkWPA2] - * @see [ScanResult]] - * - * @author Patches - * @since 3.0 - */ - fun isNetworkWPA2(scanResult: ScanResult?): Boolean -} - -/** - * An API for functionality relating to signal strength. - * - * @author Patches - * @since 3.0 - */ -interface SignalStrengthApi { - - /** - * To convert an RSSI level for a network to a number of bars. - * - * @param rssiLevel The signal strength of the network - * @param targetNumberOfBars How many bars or levels there will be total - * - * @return int - The number of bars for the given RSSI value - * - * @see [WiseFy.calculateBars] - * - * @author Patches - * @since 3.0 - */ - fun calculateBars(rssiLevel: Int, targetNumberOfBars: Int): Int - - /** - * To compare the signal strength of two networks. - * - * This method will return: - * - Negative value if the first signal is weaker than the second signal - * - 0 if the two signals have the same strength - * - Positive value if the first signal is stronger than the second signal - * - * @param rssi1 The signal strength of network 1 - * @param rssi2 The signal strength of network 2 - * - * @return int - The result of the comparison - * - * @see [WiseFy.compareSignalLevel] - * - * @author Patches - * @since 3.0 - */ - fun compareSignalLevel(rssi1: Int, rssi2: Int): Int -} - -/** - * An API for functionality relating to Wifi. - * - * @author Patches - * @since 3.0 - */ -interface WifiApi { - - /** - * To disable Wifi on a user's device. - * - * @return boolean - True if the command succeeded in disabling wifi - * - * @see [WiseFy.disableWifi] - * - * @author Patches - * @since 3.0 - */ - fun disableWifi(): Boolean - - /** - * To disable Wifi on a user's device. - * - * @see [WiseFy.disableWifi] - * @see [DisableWifiCallbacks] - * - * @author Patches - * @since 3.0 - */ - fun disableWifi(callbacks: DisableWifiCallbacks?) - - /** - * To enable Wifi on a user's device. - * - * @return boolean - If the command succeeded in enabling wifi - * - * @see [WiseFy.enableWifi] - * - * @author Patches - * @since 3.0 - */ - fun enableWifi(): Boolean - - /** - * To enable Wifi on a user's device. - * - * @param callbacks The listener to return results to - * - * @see [WiseFy.enableWifi] - * @see [EnableWifiCallbacks] - * - * @author Patches - * @since 3.0 - */ - fun enableWifi(callbacks: EnableWifiCallbacks?) - - /** - * To check if Wifi is enabled on the device or not. - * - * @return boolean - if Wifi is enabled on device - * - * @see [WiseFy.isWifiEnabled] - * - * @author Patches - * @since 3.0 - */ - fun isWifiEnabled(): Boolean -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/annotations/WaitsForTimeout.kt b/wisefy/src/main/java/com/isupatches/wisefy/annotations/WaitsForTimeout.kt deleted file mode 100644 index 5e92f98e..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/annotations/WaitsForTimeout.kt +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.annotations - -import java.lang.annotation.Inherited - -/** - * Denotes that a method has logic to wait for a long term operation to complete. - * - * @author Patches - * @since 3.0 - */ -@MustBeDocumented -@Target(AnnotationTarget.FUNCTION) -@Inherited -@Retention(AnnotationRetention.RUNTIME) -internal annotation class WaitsForTimeout diff --git a/wisefy/src/main/java/com/isupatches/wisefy/annotations/WiseFyThread.kt b/wisefy/src/main/java/com/isupatches/wisefy/annotations/WiseFyThread.kt deleted file mode 100644 index 63a1052f..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/annotations/WiseFyThread.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.annotations - -import java.lang.annotation.Inherited - -/** - * Denotes that a method is executed on the WiseFyHandler thread. - * - * @see [com.isupatches.wisefy.threads.WiseFyHandlerThread] - * - * @author Patches - * @since 3.0 - */ -@MustBeDocumented -@Target(AnnotationTarget.FUNCTION) -@Inherited -@Retention(AnnotationRetention.RUNTIME) -internal annotation class WiseFyThread diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/AddNetworkCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/AddNetworkCallbacks.kt deleted file mode 100644 index 702594f5..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/AddNetworkCallbacks.kt +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import android.net.wifi.WifiConfiguration - -/** - * Callbacks for adding a network as a saved configuration on a device. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.addOpenNetwork] - * @see [com.isupatches.wisefy.WiseFy.addWEPNetwork] - * @see [com.isupatches.wisefy.WiseFy.addWPA2Network] - * - * @author Patches - * @since 3.0 - */ -interface AddNetworkCallbacks : BaseCallback { - - /** - * Called when [android.net.wifi.WifiManager] encounters an error adding a network. - * - * @param wifiManagerReturn The return code from WifiManager when failing to add a network - * - * @see [android.net.wifi.WifiManager] - * @see [com.isupatches.wisefy.WiseFy.WIFI_MANAGER_FAILURE] - * - * @author Patches - * @since 3.0 - */ - fun failureAddingNetwork(wifiManagerReturn: Int) - - /** - * Called upon successfully adding a network. - * - * @param newNetworkId The id of the network that was added - * @param networkConfig The configuration of the network that was added - * - * @see [android.net.wifi.WifiConfiguration] - * - * @author Patches - * @since 3.0 - */ - fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/BaseCallback.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/BaseCallback.kt deleted file mode 100644 index ad2a896e..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/BaseCallback.kt +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import com.isupatches.wisefy.constants.WiseFyCode - -/** - * Callbacks that are applicable to all Async WiseFy operations. - * All Async interfaces should extend this class. - * - * @author Patches - * @since 3.0 - */ -interface BaseCallback { - - /** - * Called when [com.isupatches.wisefy.WiseFyPrechecks] determines that there - * is an issue and an operation cannot be completed. - * - * Example: A null or empty ssid is passed in but is a required parameter. - * - * @param wisefyFailureCode The failure code defined by the WiseFy library - * - * @see [com.isupatches.wisefy.WiseFyPrechecks] - * @see [com.isupatches.wisefy.constants.WiseFyCode] - * - * @author Patches - * @since 3.0 - */ - fun wisefyFailure(@WiseFyCode wisefyFailureCode: Int) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/ConnectToNetworkCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/ConnectToNetworkCallbacks.kt deleted file mode 100644 index 962217b1..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/ConnectToNetworkCallbacks.kt +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for attempting to connect to a network. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.connectToNetwork] - * - * @author Patches - * @since 3.0 - */ -interface ConnectToNetworkCallbacks : BaseCallback { - - /** - * Called when WiseFy has successfully connected to a network. - * - * @author Patches - * @since 3.0 - */ - fun connectedToNetwork() - - /** - * Called when the network was found, but there was an issue attempting to connect to - * it with [android.net.wifi.WifiManager]. - * - * @see [android.net.wifi.WifiManager] - * - * @author Patches - * @since 3.0 - */ - fun failureConnectingToNetwork() - - /** - * Called when the SSID of the network to connect to cannot be found by [android.net.wifi.WifiManager] - * and WiseFy. - * - * @see [android.net.wifi.WifiManager] - * - * @author Patches - * @since 3.0 - */ - fun networkNotFoundToConnectTo() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/DisableWifiCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/DisableWifiCallbacks.kt deleted file mode 100644 index 2a361d01..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/DisableWifiCallbacks.kt +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for disabling a device's wifi. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.disableWifi] - * - * @author Patches - * @since 3.0 - */ -interface DisableWifiCallbacks : BaseCallback { - - /** - * Called when there is an issue disabling Wifi on the device. - * - * @author Patches - * @since 3.0 - */ - fun failureDisablingWifi() - - /** - * Called when WiseFy has successfully disabled Wifi on the device. - * - * @author Patches - * @since 3.0 - */ - fun wifiDisabled() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/DisconnectFromCurrentNetworkCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/DisconnectFromCurrentNetworkCallbacks.kt deleted file mode 100644 index b09e6130..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/DisconnectFromCurrentNetworkCallbacks.kt +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for disconnecting a device from it's current network. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.disconnectFromCurrentNetwork] - * - * @author Patches - * @since 3.0 - */ -interface DisconnectFromCurrentNetworkCallbacks : BaseCallback { - - /** - * Called when WiseFy has successfully disconnected from the device's current network. - * - * @author Patches - * @since 3.0 - */ - fun disconnectedFromCurrentNetwork() - - /** - * Called when there is an issue disconnecting the device from it's current network. - * - * @author Patches - * @since 3.0 - */ - fun failureDisconnectingFromCurrentNetwork() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/EnableWifiCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/EnableWifiCallbacks.kt deleted file mode 100644 index 578629d1..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/EnableWifiCallbacks.kt +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for enabling a device's wifi. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.enableWifi] - * - * @author Patches - * @since 3.0 - */ -interface EnableWifiCallbacks : BaseCallback { - - /** - * Called when there is an issue enabling wifi on the device. - * - * @author Patches - * @since 3.0 - */ - fun failureEnablingWifi() - - /** - * Called when WiseFy has successfully enabled wifi on the device. - * - * @author Patches - * @since 3.0 - */ - fun wifiEnabled() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetCurrentNetworkCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetCurrentNetworkCallbacks.kt deleted file mode 100644 index dd90e28d..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetCurrentNetworkCallbacks.kt +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import android.net.wifi.WifiInfo - -/** - * Callbacks for retrieving a device's current network. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.getCurrentNetwork] - * - * Updates - * - 05/12/2019: Added noCurrentNetwork callback - * - * @author Patches - * @since 3.0 - */ -interface GetCurrentNetworkCallbacks : BaseCallback { - - /** - * Called when the Android OS returns no current network. - * - * @author Patches - * @since 4.0 - */ - fun noCurrentNetwork() - - /** - * Called when WiseFy has successfully retrieved the device's current network. - * - * @param currentNetwork The device's current network - * - * @see [WifiInfo] - * - * @author Patches - * @since 3.0 - */ - fun retrievedCurrentNetwork(currentNetwork: WifiInfo) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetCurrentNetworkInfoCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetCurrentNetworkInfoCallbacks.kt deleted file mode 100644 index eae26fe0..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetCurrentNetworkInfoCallbacks.kt +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import android.net.NetworkInfo - -/** - * Callbacks for retrieving a device's current network. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.getCurrentNetworkInfo] - * - * Updates - * - 05/12/2019: Added noCurrentNetworkInfo callback - * - * @author Patches - * @since 3.0 - */ -interface GetCurrentNetworkInfoCallbacks : BaseCallback { - - /** - * Called when the Android OS returns no current network info. - * - * @author Patches - * @since 4.0 - */ - fun noCurrentNetworkInfo() - - /** - * Called when WiseFy has successfully retrieved the device's current network info. - * - * @param currentNetworkInfo The information about the device's current network - * - * @see [NetworkInfo] - * - * @author Patches - * @since 3.0 - */ - fun retrievedCurrentNetworkInfo(currentNetworkInfo: NetworkInfo) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetFrequencyCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetFrequencyCallbacks.kt deleted file mode 100644 index 6c3239b2..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetFrequencyCallbacks.kt +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for retrieving the frequency of a network. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.getFrequency] - * - * @author Patches - * @since 3.0 - */ -interface GetFrequencyCallbacks : BaseCallback { - - /** - * Called when there is an issue retrieving the frequency of a network. - * - * f.e. Unable to retrieve current network or no current network - * - * @author Patches - * @since 3.0 - */ - fun failureGettingFrequency() - - /** - * Called when WiseFy has successfully retrieved the frequency of a network. - * - * @param frequency The frequency of the network (either the current one or one that is passed in) - * - * @author Patches - * @since 3.0 - */ - fun retrievedFrequency(frequency: Int) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetIPCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetIPCallbacks.kt deleted file mode 100644 index aa8c4ac7..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetIPCallbacks.kt +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for retrieving a device's IP. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.getIP] - * - * @author Patches - * @since 3.0 - */ -interface GetIPCallbacks : BaseCallback { - - /** - * Called when there is an issue retrieving the IP of a device. - * - * f.e. No current IP for the device, bad formatting, etc. - * - * @author Patches - * @since 3.0 - */ - fun failureRetrievingIP() - - /** - * Called when WiseFy has successfully retrieved the IP of a device. - * - * @param ip The ip of the device - * - * @author Patches - * @since 3.0 - */ - fun retrievedIP(ip: String) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetNearbyAccessPointsCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetNearbyAccessPointsCallbacks.kt deleted file mode 100644 index f6b3e845..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetNearbyAccessPointsCallbacks.kt +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import android.net.wifi.ScanResult - -/** - * Callbacks for retrieving a list of nearby access points. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.getNearbyAccessPoints] - * - * Updates - * - 05/12/2019: Added noCurrentNetwork callback - * - * @author Patches - * @since 3.0 - */ -interface GetNearbyAccessPointsCallbacks : BaseCallback { - - /** - * Called when WiseFy has successfully retrieved a list of nearby access points. - * - * @param nearbyAccessPoints The list of nearby access points - * - * @see [ScanResult] - * - * @author Patches - * @since 3.0 - */ - fun retrievedNearbyAccessPoints(nearbyAccessPoints: List<@JvmSuppressWildcards ScanResult>) - - /** - * Called when the Android OS returns no access points. - * - * @author Patches - * @since 4.0 - */ - fun noAccessPointsFound() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetRSSICallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetRSSICallbacks.kt deleted file mode 100644 index 68360cb9..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetRSSICallbacks.kt +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for retrieving RSSI level of a nearby access point. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.getRSSI] - * - * @author Patches - * @since 3.0 - */ -interface GetRSSICallbacks : BaseCallback { - - /** - * Called when WiseFy has successfully retrieved the RSSI level of a network. - * - * @param rssi The RSSI of the network (either the current one or one that is passed in) - * - * @author Patches - * @since 3.0 - */ - fun retrievedRSSI(rssi: Int) - - /** - * Called when the network to retrieve the RSSI level of is not found - * in the list of nearby access points. - * - * @author Patches - * @since 3.0 - */ - fun networkNotFoundToRetrieveRSSI() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetSavedNetworksCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetSavedNetworksCallbacks.kt deleted file mode 100644 index 23bb61c2..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/GetSavedNetworksCallbacks.kt +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import android.net.wifi.WifiConfiguration - -/** - * Callbacks for retrieving a list of saved networks on a device. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.getSavedNetworks] - * - * @author Patches - * @since 3.0 - */ -interface GetSavedNetworksCallbacks : BaseCallback { - - /** - * Called when there are no saved network configuration on the device. - * - * @author Patches - * @since 3.0 - */ - fun noSavedNetworksFound() - - /** - * Called when WiseFy has successfully retrieved a list of saved networks. - * - * @param savedNetworks The list of saved networks found - * - * @see [WifiConfiguration] - * - * @author Patches - * @since 3.0 - */ - fun retrievedSavedNetworks(savedNetworks: List<@JvmSuppressWildcards WifiConfiguration>) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/RemoveNetworkCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/RemoveNetworkCallbacks.kt deleted file mode 100644 index 118f14f5..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/RemoveNetworkCallbacks.kt +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for removing a saved network on a device. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.removeNetwork] - * - * @author Patches - * @since 3.0 - */ -interface RemoveNetworkCallbacks : BaseCallback { - - /** - * Called when there is an issue removing a saved network configuration with WifiManager. - * - * @author Patches - * @since 3.0 - */ - fun failureRemovingNetwork() - - /** - * Called when the network is not found in the save network configuration list. - * - * This is not necessarily an error as it may have never been stored, - * removed manually, or various other scenarios. - * - * @author Patches - * @since 3.0 - */ - fun networkNotFoundToRemove() - - /** - * Called when WiseFy has successfully removed a network from the - * list of saved network configurations. - * - * @author Patches - * @since 3.0 - */ - fun networkRemoved() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForAccessPointCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForAccessPointCallbacks.kt deleted file mode 100644 index 0eef0513..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForAccessPointCallbacks.kt +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import android.net.wifi.ScanResult - -/** - * Callbacks for finding a nearby access point on a device. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.searchForAccessPoint] - * - * @author Patches - * @since 3.0 - */ -interface SearchForAccessPointCallbacks : BaseCallback { - - /** - * Called when WiseFy has successfully found a matching access point. - * - * @param accessPoint The found access point - * - * @see [ScanResult] - * - * @author Patches - * @since 3.0 - */ - fun accessPointFound(accessPoint: ScanResult) - - /** - * Called when WiseFy times out trying to find a matching access point. - * - * @author Patches - * @since 3.0 - */ - fun accessPointNotFound() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForAccessPointsCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForAccessPointsCallbacks.kt deleted file mode 100644 index 7f90f064..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForAccessPointsCallbacks.kt +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import android.net.wifi.ScanResult - -/** - * Callbacks for finding a list of nearby access points on a device. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.searchForAccessPoints] - * - * @author Patches - * @see 3.0 - */ -interface SearchForAccessPointsCallbacks : BaseCallback { - - /** - * Called when WiseFy has successfully found matching access points. - * - * @param accessPoints The list of found access points - * - * @see ScanResult - * - * @author Patches - * @since 3.0 - */ - fun foundAccessPoints(accessPoints: List<@JvmSuppressWildcards ScanResult>) - - /** - * Called when WiseFy times out trying to find a matching access points. - * - * @author Patches - * @since 3.0 - */ - fun noAccessPointsFound() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSSIDCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSSIDCallbacks.kt deleted file mode 100644 index f56af22b..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSSIDCallbacks.kt +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for finding a nearby SSID on a device. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.searchForSSID] - * - * @author Patches - * @since 3.0 - */ -interface SearchForSSIDCallbacks : BaseCallback { - - /** - * Called when WiseFy has successfully found an access point with a matching SSID. - * - * @param ssid The found SSID - * - * @author Patches - * @since 3.0 - */ - fun ssidFound(ssid: String) - - /** - * Called when WiseFy times out trying to find an access point with a matching SSID. - * - * @author Patches - * @since 3.0 - */ - fun ssidNotFound() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSSIDsCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSSIDsCallbacks.kt deleted file mode 100644 index 141d2bd6..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSSIDsCallbacks.kt +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -/** - * Callbacks for finding a list of nearby SSIDs on a device. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.searchForSSIDs] - * - * @author Patches - * @since 3.0 - */ -interface SearchForSSIDsCallbacks : BaseCallback { - - /** - * Called when WiseFy has successfully found access points with a matching SSID. - * - * @param ssids The list of found SSIDs - * - * @author Patches - * @since 3.0 - */ - fun retrievedSSIDs(ssids: List) - - /** - * Called when WiseFy times out trying to find access points with a matching SSID. - * - * @author Patches - * @since 3.0 - */ - fun noSSIDsFound() -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSavedNetworkCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSavedNetworkCallbacks.kt deleted file mode 100644 index 933b2be9..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSavedNetworkCallbacks.kt +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import android.net.wifi.WifiConfiguration - -/** - * Callbacks for retrieving a saved network on a device. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.searchForSavedNetwork] - * - * @author Patches - * @see 4.0 - */ -interface SearchForSavedNetworkCallbacks : BaseCallback { - - /** - * Called when there are no saved network configurations matching search criteria. - * - * @author Patches - * @since 4.0 - */ - fun savedNetworkNotFound() - - /** - * Called when WiseFy has successfully retrieved a matching saved network configuration. - * - * @param savedNetwork The found saved network - * - * @see [WifiConfiguration] - * - * @author Patches - * @since 4.0 - */ - fun retrievedSavedNetwork(savedNetwork: WifiConfiguration) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSavedNetworksCallbacks.kt b/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSavedNetworksCallbacks.kt deleted file mode 100644 index 76ad698c..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/callbacks/SearchForSavedNetworksCallbacks.kt +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.callbacks - -import android.net.wifi.WifiConfiguration - -/** - * Callbacks for retrieving a list of saved networks on a device. - * - * @see [BaseCallback] - * @see [com.isupatches.wisefy.WiseFy.searchForSavedNetworks] - * - * @author Patches - * @since 4.0 - */ -interface SearchForSavedNetworksCallbacks : BaseCallback { - - /** - * Called when there are no saved network configuration on the device matching the - * given search criteria. - * - * @author Patches - * @since 4.0 - */ - fun noSavedNetworksFound() - - /** - * Called when WiseFy has successfully retrieved a list of saved networks matching - * the given search criteria. - * - * @param savedNetworks The list of found saved networks - * - * @see [WifiConfiguration] - * - * @author Patches - * @since 3.0 - */ - fun retrievedSavedNetworks(savedNetworks: List<@JvmSuppressWildcards WifiConfiguration>) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/connection/AbstractWiseFyConnection.kt b/wisefy/src/main/java/com/isupatches/wisefy/connection/AbstractWiseFyConnection.kt deleted file mode 100644 index 63746a8b..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/connection/AbstractWiseFyConnection.kt +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.connection - -import android.net.wifi.WifiManager -import com.isupatches.wisefy.annotations.WaitsForTimeout -import com.isupatches.wisefy.constants.QUOTE -import com.isupatches.wisefy.logging.WiseFyLogger -import com.isupatches.wisefy.utils.rest - -/** - * A class used internally to house shared connectivity logic between all SDK versions of Android. - * - * @see [WifiManager] - * @see [WiseFyConnection] - * - * Updates - * - 01/07/2020: Added WiseFyLogger - * - * @author Patches - * @since 4.0 - */ -internal abstract class AbstractWiseFyConnection( - private val wifiManager: WifiManager, - private val logger: WiseFyLogger? -) : WiseFyConnection { - - internal companion object { - private val TAG = AbstractWiseFyConnection::class.java.simpleName - } - - /** - * Used internally to see if the current network is connected to and matches a given ssid. - * - * *NOTE* Case insensitive - * - * @param ssid The ssid to check if the device is connected to - * - * @return boolean - True if the device is connected to a network - * - * @see [isNetworkConnected] - * @see [WifiManager.getConnectionInfo] - * - * Updates - * - 05/12/2019: Moved here from previous WiseFyConnectionImpl class - * - * @author Patches - * @since 3.0 - */ - override fun isCurrentNetworkConnectedToSSID(ssid: String?): Boolean { - if (ssid.isNullOrEmpty()) { - return false - } - - val connectionInfo = wifiManager.connectionInfo - connectionInfo?.let { - if (!it.ssid.isNullOrEmpty()) { - val currentSSID = it.ssid.replace(QUOTE, "") - logger?.d(TAG, "Current SSID: %s, Desired SSID: %s", currentSSID, ssid) - if (currentSSID.equals(ssid, ignoreCase = true) && isNetworkConnected()) { - logger?.d(TAG, "Network is connected") - return true - } - } - } - return false - } - - /** - * Used internally to check if the device connects to a given SSID within a specified time. - * - * @param ssid The ssid to wait for the device to connect to - * @param timeoutInMillis The number of milliseconds to wait - * - * @return boolean - True if the device is connected to the ssid within the given time - * - * @see [isCurrentNetworkConnectedToSSID] - * - * Updates - * - 05/12/2019: Moved here from previous WiseFyConnectionImpl class - * - 01/04/2020: Formatting update - * - * @author Patches - * @since 3.0 - */ - @WaitsForTimeout - override fun waitToConnectToSSID(ssid: String?, timeoutInMillis: Int): Boolean { - logger?.d( - TAG, - "Waiting %d milliseconds to connect to network with ssid %s", - timeoutInMillis, - ssid ?: "" - ) - var currentTime: Long - val endTime = System.currentTimeMillis() + timeoutInMillis - do { - if (isCurrentNetworkConnectedToSSID(ssid)) { - return true - } - rest() - currentTime = System.currentTimeMillis() - logger?.d(TAG, "Current time: %d, End time: %d (waitToConnectToSSID)", currentTime, endTime) - } while (currentTime < endTime) - return false - } -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnection.kt b/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnection.kt deleted file mode 100644 index 85bb701c..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnection.kt +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.connection - -/** - * An interface with methods that relate to checking device connectivity. - * - * @see [WiseFyConnectionLegacy] - * @see [WiseFyConnectionSDK23] - * - * Updates - * - 05/12/2019 - * * Made more generic for pre and post SDK 23 classes - * * Added init and destroy signatures - * * Split isNetworkConnectedAndMatchesType into isDeviceConnectedToWifiNetwork - * and isDeviceConnectedToMobileNetwork - * * Added isDeviceRoaming - * - * @author Patches - * @since 3.0 - */ -internal interface WiseFyConnection { - - fun init() - - fun destroy() - - fun isCurrentNetworkConnectedToSSID(ssid: String?): Boolean - - fun isDeviceConnectedToWifiNetwork(): Boolean - - fun isDeviceConnectedToMobileNetwork(): Boolean - - fun isDeviceRoaming(): Boolean - - fun isNetworkConnected(): Boolean - - fun waitToConnectToSSID(ssid: String?, timeoutInMillis: Int): Boolean -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionLegacy.kt b/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionLegacy.kt deleted file mode 100644 index 53d45ad9..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionLegacy.kt +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.connection - -import android.net.ConnectivityManager -import android.net.NetworkInfo -import android.net.wifi.WifiManager -import com.isupatches.wisefy.constants.MOBILE -import com.isupatches.wisefy.constants.NetworkType -import com.isupatches.wisefy.constants.WIFI -import com.isupatches.wisefy.logging.WiseFyLogger - -/** - * A class used internally to query and determine different parts of the connection state for a - * device when WiseFy is set to use the legacy connectivity class or is on a pre-SDK23 device. - * - * @see [ConnectivityManager] - * @see [WifiManager] - * @see [AbstractWiseFyConnection] - * - * Updates - * - 01/07/2020: Added WiseFyLogger - * - * @author Patches - * @since 3.0 - */ -@Suppress("deprecation") -internal class WiseFyConnectionLegacy private constructor( - private val connectivityManager: ConnectivityManager, - wifiManager: WifiManager, - private val logger: WiseFyLogger? -) : AbstractWiseFyConnection(wifiManager, logger) { - - internal companion object { - private val TAG = WiseFyConnectionLegacy::class.java.simpleName - - /** - * Used internally to create an instance of a legacy WiseFyConnection. - * - * @param connectivityManager The instance of ConnectivityManager to use - * @param wifiManager The instance of WifiManager to use - * - * @return WiseFyConnectionLegacy - * - * @see [WiseFyConnection] - * - * Updates - * - 01/04/2020: Formatting update - * - 01/07/2020: Added WiseFyLogger - * - * @author Patches - * @since 4.0 - */ - fun create( - connectivityManager: ConnectivityManager, - wifiManager: WifiManager, - logger: WiseFyLogger? = null - ): WiseFyConnection { - return WiseFyConnectionLegacy(connectivityManager, wifiManager, logger) - } - } - - /** - * Used internally for any initialization of [WiseFyConnectionLegacy] class. - * - * @author Patches - * @since 4.0 - */ - override fun init() { - // No-op - } - - /** - * Used internally for any tear down of [WiseFyConnectionLegacy] class. - * - * @author Patches - * @since 4.0 - */ - override fun destroy() { - // No-op - } - - /** - * Used internally to check if a network is connected to a mobile network (f.e. non-Wifi) - * - * @return boolean - True if the device is using a mobile network, false otherwise - * - * @see [ConnectivityManager.getActiveNetworkInfo] - * @see [isNetworkConnectedAndMatchesType] - * @see [MOBILE] - * - * @author Patches - * @since 4.0 - */ - override fun isDeviceConnectedToMobileNetwork(): Boolean { - return isNetworkConnectedAndMatchesType(connectivityManager.activeNetworkInfo, MOBILE) - } - - /** - * Used internally to check if a network is connected to a wifi network (f.e. not using - * mobile data) - * - * @return boolean - True if the device is using a wifi network, false otherwise - * - * @see [ConnectivityManager.getActiveNetworkInfo] - * @see [isNetworkConnectedAndMatchesType] - * @see [WIFI] - * - * Updates - * - 01/04/2020: Formatting update - * - * @author Patches - * @since 4.0 - */ - override fun isDeviceConnectedToWifiNetwork(): Boolean { - return isNetworkConnectedAndMatchesType(connectivityManager.activeNetworkInfo, WIFI) - } - - /** - * Used internally to check if a network is in a roaming state. - * - * @return boolean - True if the device is roaming, false otherwise - * - * @see [ConnectivityManager.getActiveNetworkInfo] - * @see [NetworkInfo.isRoaming] - * - * @author Patches - * @since 4.0 - */ - override fun isDeviceRoaming(): Boolean { - val networkInfo = connectivityManager.activeNetworkInfo - return networkInfo != null && networkInfo.isRoaming - } - - /** - * Used internally to check if a network is connected. - * - * @return boolean - True if the network is both available and connected - * - * @see [NetworkInfo] - * @see [isConnectedAndAvailable] - * - * Updates - * - 05/12/2019: Switched to using [isConnectedAndAvailable] - * - * @author Patches - * @since 3.0 - */ - override fun isNetworkConnected(): Boolean { - val networkInfo = connectivityManager.activeNetworkInfo - logger?.d(TAG, "networkInfo: %s", networkInfo ?: "") - return networkInfo?.isConnectedAndAvailable() ?: false - } - - /** - * Used internally to check to see if a given network matches a specified type (i.error. Mobile or Wifi) - * - * *NOTE* Case insensitive - * - * @param networkInfo The network to check - * @param type The type of network (f.e. Mobile or Wifi) - * - * @return boolean - True if the network matches the given type - * - * @see [NetworkInfo] - * @see [NetworkType] - * - * Updates - * - 05/12/2019: Made networkInfo expectation non-null - * - 01/04/2020: Formatting update - * - * @author Patches - * @since 3.0 - */ - private fun doesNetworkMatchType(networkInfo: NetworkInfo, @NetworkType type: String): Boolean { - return type.equals(networkInfo.typeName, ignoreCase = true) - } - - /** - * Used internally to check if a given network matches a given type and is connected. - * - * @param networkInfo The network to check - * @param type The type of network (f.e. Mobile or Wifi) - * - * @return boolean - True if the network is both connected and matches the given type of network - * - * @see [doesNetworkMatchType] - * @see [isConnectedAndAvailable] - * @see [NetworkInfo] - * - * Updates - * - 05/12/2019: Switched to using [isConnectedAndAvailable] over [isNetworkConnected] - * - 01/04/2020: Formatting update - * - * @author Patches - * @since 3.0 - */ - private fun isNetworkConnectedAndMatchesType(networkInfo: NetworkInfo?, @NetworkType type: String): Boolean { - return networkInfo?.let { doesNetworkMatchType(it, type) && it.isConnectedAndAvailable() } ?: false - } - - /** - * Used within legacy class to determine if a given network is in a connected state. - * - * @return boolean - Whether the given NetworkInfo is both connected and available. - * - * @see [NetworkInfo.isConnected] - * @see [NetworkInfo.isAvailable] - * - * @author Patches - * @since 4.0 - */ - private fun NetworkInfo.isConnectedAndAvailable() = isConnected && isAvailable -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionSDK23.kt b/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionSDK23.kt deleted file mode 100644 index fe25fb0a..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/connection/WiseFyConnectionSDK23.kt +++ /dev/null @@ -1,329 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.connection - -import android.net.ConnectivityManager -import android.net.LinkProperties -import android.net.Network -import android.net.NetworkCapabilities -import android.net.NetworkInfo -import android.net.NetworkRequest -import android.net.wifi.WifiManager -import android.os.Build -import androidx.annotation.RequiresApi -import androidx.annotation.VisibleForTesting -import com.isupatches.wisefy.logging.WiseFyLogger - -/** - * A class used internally to query and determine different parts of the connection state for a - * device when WiseFy is on a device with at least SDK23 and is not configured to use the legacy - * connection class. - * - * @see [ConnectivityManager] - * @see [WifiManager] - * @see [AbstractWiseFyConnection] - * - * Updates - * - 01/07/2020: Added WiseFyLogger - * - * @author Patches - * @since 4.0 - */ -@RequiresApi(Build.VERSION_CODES.M) -internal class WiseFyConnectionSDK23 private constructor( - private val connectivityManager: ConnectivityManager, - wifiManager: WifiManager, - private val logger: WiseFyLogger? -) : AbstractWiseFyConnection(wifiManager, logger) { - - internal companion object { - // Internal to avoid SyntheticAccessor error within networkChangeCallback - internal val TAG = WiseFyConnectionSDK23::class.java.simpleName - - /** - * Used internally to create an instance of a WiseFyConnection for SDK 23. - * - * @param connectivityManager The instance of ConnectivityManager to use - * @param wifiManager The instance of WifiManager to use - * - * @return WiseFyConnectionSDK23 - * - * @see [WiseFyConnection] - * - * Updates - * - 01/04/2020: Formatting update - * - 01/07/2020: Added WiseFyLogger - * - * @author Patches - * @since 4.0 - */ - fun create( - connectivityManager: ConnectivityManager, - wifiManager: WifiManager, - logger: WiseFyLogger? = null - ): WiseFyConnection { - return WiseFyConnectionSDK23(connectivityManager, wifiManager, logger) - } - } - - // Internal to avoid SyntheticAccessor error within networkChangeCallback - internal var connectionStatus: WiseFyConnectionStatus? = null - - @VisibleForTesting - internal val networkChangeCallbacks by lazy { - object : ConnectivityManager.NetworkCallback() { - override fun onAvailable(network: Network?) { - super.onAvailable(network) - logger?.d(TAG, "onAvailable, $network") - this@WiseFyConnectionSDK23.connectionStatus = WiseFyConnectionStatus.AVAILABLE - } - - override fun onCapabilitiesChanged(network: Network?, networkCapabilities: NetworkCapabilities?) { - super.onCapabilitiesChanged(network, networkCapabilities) - logger?.d( - TAG, - "onCapabilitiesChanged, network: $network, networkCapabilities: $networkCapabilities" - ) - } - - override fun onLinkPropertiesChanged(network: Network?, linkProperties: LinkProperties?) { - super.onLinkPropertiesChanged(network, linkProperties) - logger?.d(TAG, "onLinkPropertiesChanged, network: $network, linkProperties: $linkProperties") - } - - override fun onLosing(network: Network?, maxMsToLive: Int) { - super.onLosing(network, maxMsToLive) - logger?.d(TAG, "onLosing, network: $network, maxMsToLive: $maxMsToLive") - this@WiseFyConnectionSDK23.connectionStatus = WiseFyConnectionStatus.LOSING - } - - override fun onLost(network: Network?) { - super.onLost(network) - logger?.d(TAG, "onLost, network: $network") - this@WiseFyConnectionSDK23.connectionStatus = WiseFyConnectionStatus.LOST - } - - override fun onUnavailable() { - super.onUnavailable() - logger?.d(TAG, "onUnavailable") - this@WiseFyConnectionSDK23.connectionStatus = WiseFyConnectionStatus.UNAVAILABLE - } - } - } - - /** - * Used internally for any initialization of [WiseFyConnectionLegacy] class. - * - * @see [startListeningForNetworkChanges] - * - * @author Patches - * @since 4.0 - */ - override fun init() { - startListeningForNetworkChanges(connectivityManager) - } - - /** - * Used internally for any tear down of [WiseFyConnectionLegacy] class. - * - * @see [stopListeningForNetworkChanges] - * - * @author Patches - * @since 4.0 - */ - override fun destroy() { - stopListeningForNetworkChanges(connectivityManager) - } - - /** - * Used internally to check if a network is connected to a mobile network (f.e. non-Wifi) - * - * @return boolean - True if the device is using a mobile network, false otherwise - * - * @see [doesNetworkHaveTransportTypeAndInternetCapability] - * @see [isNetworkConnected] - * @see [NetworkCapabilities.TRANSPORT_CELLULAR] - * - * Updates - * - 01/05/2020: Formatting update - * - * @author Patches - * @since 4.0 - */ - override fun isDeviceConnectedToMobileNetwork(): Boolean { - return doesNetworkHaveTransportTypeAndInternetCapability( - transportType = NetworkCapabilities.TRANSPORT_CELLULAR - ) && isNetworkConnected() - } - - /** - * Used internally to check if a network is connected to a wifi network (f.e. not using - * mobile data) - * - * @return boolean - True if the device is using a wifi network, false otherwise - * - * @see [doesNetworkHaveTransportTypeAndInternetCapability] - * @see [isNetworkConnected] - * @see [NetworkCapabilities.TRANSPORT_WIFI] - * - * Updates - * - 01/05/2020: Formatting update - * - * @author Patches - * @since 4.0 - */ - override fun isDeviceConnectedToWifiNetwork(): Boolean { - return doesNetworkHaveTransportTypeAndInternetCapability( - transportType = NetworkCapabilities.TRANSPORT_WIFI - ) && isNetworkConnected() - } - - /** - * Used internally to check if a network is in a roaming state. - * - * *NOTE* Determines roaming differently on P and above devices. - * - * @return boolean - True if the device is roaming, false otherwise - * - * @see [doesNetworkHaveCapability] - * @see [ConnectivityManager.getActiveNetworkInfo] - * @see [NetworkInfo.isRoaming] - * - * Updates - * - 01/05/2020: Formatting update - * - * @author Patches - * @since 4.0 - */ - override fun isDeviceRoaming(): Boolean { - return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { - // NET_CAPABILITY_NOT_ROAMING only available for P and above devices :'( - !doesNetworkHaveCapability(capability = NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) - } else { - val networkInfo = connectivityManager.activeNetworkInfo - @Suppress("deprecation") - networkInfo != null && networkInfo.isRoaming - } - } - - /** - * Used internally to check if a network is connected. - * - * @return boolean - True if the network is available - * - * @see [connectionStatus] - * @see [networkChangeCallbacks] - * @see [WiseFyConnectionStatus] - * - * @author Patches - * @since 4.0 - */ - override fun isNetworkConnected(): Boolean = connectionStatus == WiseFyConnectionStatus.AVAILABLE - - /** - * Used internally to check if the active network has a certain transport type as well as - * internet capability. - * - * @param transportType The transport capability to check and see if the current network has - * - * @see [getActiveNetworkCapabilities] - * @see [NetworkCapabilities.hasTransport] - * @see [NetworkCapabilities.hasCapability] - * @see [NetworkCapabilities.NET_CAPABILITY_INTERNET] - * - * Updates - * - 01/05/2020: Formatting update - * - * @author Patches - * @since 4.0 - */ - private fun doesNetworkHaveTransportTypeAndInternetCapability(transportType: Int): Boolean { - return getActiveNetworkCapabilities()?.let { - it.hasTransport(transportType) && it.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) - } ?: false - } - - /** - * Used internally to check if the active network has a certain capability (f.e. to check if the - * device has [NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING] capability listed) - * - * @param capability The capability to check and see if the current network has - * - * @see [getActiveNetworkCapabilities] - * @see [NetworkCapabilities.hasCapability] - * @see NetworkCapabilities - * - * Updates - * - 01/04/2020: Formatting update - * - * @author Patches - * @since 4.0 - */ - private fun doesNetworkHaveCapability(capability: Int): Boolean { - return getActiveNetworkCapabilities()?.hasCapability(capability) ?: false - } - - /** - * Used internally to return the capabilities of the active network. - * - * @see [NetworkCapabilities] - * @see [ConnectivityManager.getNetworkCapabilities] - * @see [ConnectivityManager.getActiveNetwork] - * - * Updates - * - 01/04/2020: Formatting update - * - * @author Patches - * @since 4.0 - */ - private fun getActiveNetworkCapabilities(): NetworkCapabilities? { - return connectivityManager.getNetworkCapabilities(connectivityManager.activeNetwork) - } - - /** - * Used internally to start listening for network changes - * - * @param connectivityManager The connectivity manager instance to use to listen for network - * callbacks - * - * @see [ConnectivityManager.registerNetworkCallback] - * @see [NetworkRequest.Builder] - * @see [networkChangeCallbacks] - * - * @author Patches - * @since 4.0 - */ - private fun startListeningForNetworkChanges(connectivityManager: ConnectivityManager) { - val request = NetworkRequest.Builder().build() - connectivityManager.registerNetworkCallback(request, networkChangeCallbacks) - } - - /** - * Used internally to stop listening for network changes - * - * @param connectivityManager The connectivity manager instance to use to stop - * listening for networ callbacks - * - * @see [ConnectivityManager.unregisterNetworkCallback] - * @see [networkChangeCallbacks] - * - * @author Patches - * @since 4.0 - */ - private fun stopListeningForNetworkChanges(connectivityManager: ConnectivityManager) { - connectivityManager.unregisterNetworkCallback(networkChangeCallbacks) - } -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/constants/Capabilities.kt b/wisefy/src/main/java/com/isupatches/wisefy/constants/Capabilities.kt deleted file mode 100644 index 9b9785ac..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/constants/Capabilities.kt +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:JvmName("Capabilities") - -package com.isupatches.wisefy.constants - -import androidx.annotation.StringDef - -/** - * Constant for EAP security capabilities. - * - * @author Patches - * @since 3.0 - */ -const val EAP: String = "EAP" - -/** - * Constant for PSK security capabilities. - * - * @author Patches - * @since 3.0 - */ -const val PSK: String = "PSK" - -/** - * Constant for WEP security capabilities. - * - * @author Patches - * @since 3.0 - */ -const val WEP: String = "WEP" - -/** - * Constant for WPA security capabilities. - * - * @author Patches - * @since 3.0 - */ -const val WPA: String = "WPA" - -/** - * Constant for WPA2 security capabilities. - * - * @author Patches - * @since 3.0 - */ -const val WPA2: String = "WPA2" - -/** - * Annotation to help avoid crazy strings when working with network security capabilities. - * - * @author Patches - * @since 3.0 - */ -@Retention(AnnotationRetention.SOURCE) -@StringDef(EAP, PSK, WEP, WPA, WPA2) -annotation class Capability diff --git a/wisefy/src/main/java/com/isupatches/wisefy/constants/WiseFyCodes.kt b/wisefy/src/main/java/com/isupatches/wisefy/constants/WiseFyCodes.kt deleted file mode 100644 index 438829d6..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/constants/WiseFyCodes.kt +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:JvmName("WiseFyCodes") - -package com.isupatches.wisefy.constants - -import androidx.annotation.IntDef - -/** - * A constant that denotes a successful operation within WiseFy. - * - * @author Patches - * @since 3.0 - */ -const val DEFAULT_PRECHECK_RETURN_CODE: Int = 0 - -/** - * A constant that denotes a parameter was null or empty ("")/ length 0. - * - * @author Patches - * @since 3.0 - */ -const val MISSING_PARAMETER: Int = -1000 - -/** - * A constant that denotes that a network is already a saved configuration. - * - * @author Patches - * @since 3.0 - */ -const val NETWORK_ALREADY_CONFIGURED: Int = -1002 - -/** - * Interface to avoid magic numbers when handling internal WiseFy codes. - * - * @author Patches - * @since 3.0 - */ -@Retention(AnnotationRetention.SOURCE) -@IntDef( - DEFAULT_PRECHECK_RETURN_CODE, - MISSING_PARAMETER, - NETWORK_ALREADY_CONFIGURED -) -annotation class WiseFyCode diff --git a/wisefy/src/main/java/com/isupatches/wisefy/logging/WiseFyLogger.kt b/wisefy/src/main/java/com/isupatches/wisefy/logging/WiseFyLogger.kt deleted file mode 100644 index c2e8aa07..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/logging/WiseFyLogger.kt +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2020 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.logging - -/** - * Interface for clients for logging - * - * @author Patches - * @since 5.0 - */ -interface WiseFyLogger { - - /** - * Logs an info message - * - * @param tag The tag for the log message - * @param message The message to log (can include placeholders) - * @param args The formatting arguments for the log message - * - * @author Patches - * @since 5.0 - */ - fun i(tag: String, message: String, vararg args: Any) - - /** - * Logs an verbose message - * - * @param tag The tag for the log message - * @param message The message to log (can include placeholders) - * @param args The formatting arguments for the log message - * - * @author Patches - * @since 5.0 - */ - fun v(tag: String, message: String, vararg args: Any) - - /** - * Logs a debug message - * - * @param tag The tag for the log message - * @param message The message to log (can include placeholders) - * @param args The formatting arguments for the log message - * - * @author Patches - * @since 5.0 - */ - fun d(tag: String, message: String, vararg args: Any) - - /** - * Logs a warning message - * - * @param tag The tag for the log message - * @param message The message to log (can include placeholders) - * @param args The formatting arguments for the log message - * - * @author Patches - * @since 5.0 - */ - fun w(tag: String, message: String, vararg args: Any) - - /** - * Logs an error message - * - * @param tag The tag for the log message - * @param message The message to log (can include placeholders) - * @param args The formatting arguments for the log message - * - * @author Patches - * @since 5.0 - */ - fun e(tag: String, message: String, vararg args: Any) - - /** - * Logs an error message with throwable - * - * @param tag The tag for the log message - * @param throwable A throwable to log with the message - * @param message The message to log (can include placeholders) - * @param args The formatting arguments for the log message - * - * @author Patches - * @since 5.0 - */ - fun e(tag: String, throwable: Throwable, message: String, vararg args: Any) - - /** - * Logs a terrible failure message - * - * @param tag The tag for the log message - * @param message The message to log (can include placeholders) - * @param args The formatting arguments for the log message - * - * @author Patches - * @since 5.0 - */ - fun wtf(tag: String, message: String, vararg args: Any) - - /** - * Logs a terrible failure message with throwable - * - * @param tag The tag for the log message - * @param throwable A throwable to log with the message - * @param message The message to log (can include placeholders) - * @param args The formatting arguments for the log message - * - * @author Patches - * @since 5.0 - */ - fun wtf(tag: String, throwable: Throwable, message: String, vararg args: Any) -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/search/AbstractWiseFySearch.kt b/wisefy/src/main/java/com/isupatches/wisefy/search/AbstractWiseFySearch.kt deleted file mode 100644 index de06d214..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/search/AbstractWiseFySearch.kt +++ /dev/null @@ -1,493 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.search - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiManager -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.constants.QUOTE -import com.isupatches.wisefy.logging.WiseFyLogger -import com.isupatches.wisefy.utils.rest -import java.util.Locale - -/** - * A class used internally to house shared search logic between all SDK versions of Android. - * - * @see [WifiManager] - * @see [WiseFySearch] - * - * Updates - * - 01/07/2020: Added WiseFyLogger - * - * @author Patches - * @since 4.0 - */ -@Suppress("LargeClass") -internal abstract class AbstractWiseFySearch( - private val wifiManager: WifiManager, - private val logger: WiseFyLogger? -) : WiseFySearch { - - companion object { - private val TAG = AbstractWiseFySearch::class.java.simpleName - } - - /** - * An abstracted provider for various SDK level support the provides a way to retrieve a list - * of nearby access points - */ - abstract val scanResultsProvider: () -> List? - - /** - * Used internally to return the first configuration of s saved networks matching a given regex. - * - * @param regexForSSID The regex for the SSID to find in the configured network list - * - * @return WiFiConfiguration|null - The first saved configuration matching the given regex or null if none found - * - * @see [savedNetworkMatchesRegex] - * @see [WifiConfiguration] - * @see [WifiManager.getConfiguredNetworks] - * - * Updates - * - 05/12/2019: Moved here from previous WiseFySearchImpl class - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun findSavedNetworkByRegex(regexForSSID: String): WifiConfiguration? { - val savedNetworks = wifiManager.configuredNetworks - if (savedNetworks == null || savedNetworks.isEmpty()) { - return null - } - - for (savedNetwork in savedNetworks) { - if (savedNetworkMatchesRegex(savedNetwork, regexForSSID)) { - return savedNetwork - } - } - return null - } - - /** - * Used internally to return a list of saved networks matching a given regex. - * - * @param regexForSSID The regex for the SSIDs to find in the configured network list - * - * @return List of WifiConfigurations|null - Saved network configurations matching the given regex or null if ' - * none found - * - * @see [savedNetworkMatchesRegex] - * @see [WifiConfiguration] - * @see [WifiManager.getConfiguredNetworks] - * - * Updates - * - 05/12/2019: Moved here from previous WiseFySearchImpl class - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun findSavedNetworksMatchingRegex(regexForSSID: String): List? { - val savedNetworks = wifiManager.configuredNetworks - val matchingSavedNetworks = ArrayList() - - if (savedNetworks == null || savedNetworks.isEmpty()) { - return null - } - - for (savedNetwork in savedNetworks) { - if (savedNetworkMatchesRegex(savedNetwork, regexForSSID)) { - matchingSavedNetworks.add(savedNetwork) - } - } - - return if (matchingSavedNetworks.isNotEmpty()) matchingSavedNetworks else null - } - - /** - * Used internally to determine if a network exists as a saved network configuration. - * - * @param ssid The ssid to check for in the configured network list - * - * @return boolean - True if the ssid was found in the configuration list - * - * @see [findSavedNetworkByRegex] - * - * Updates - * - 05/12/2019: Moved here from previous WiseFySearchImpl class - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun isNetworkASavedConfiguration(ssid: String?): Boolean = - !ssid.isNullOrEmpty() && findSavedNetworkByRegex(ssid) != null - - /** - * Used internally to wait for a given time and return the first ScanResult whose SSID matches a given regex. - * - * Returns either: - * - The first network whose SSID matches a given regex - * - A network matching the given regex and has the highest RSSI - * - * @param regexForSSID The regex to check the SSID of the network against - * @param timeoutInMillis The amount of time to wait for a match - * @param takeHighest If the method should iterate through and return only the access point with the highest RSSI - * - * @return ScanResult|null - Matching network or null if none found - * - * @see [accessPointMatchesRegex] - * @see [hasHighestSignalStrength] - * @see [rest] - * @see [ScanResult] - * @see [scanResultsProvider] - * - * Updates - * - 05/12/2019 - * * Moved here from previous WiseFySearchImpl class - * * Fixed bad behavior with empty access point list - * * Started using scanResultsProvider for various SDK level support - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun findAccessPointByRegex( - regexForSSID: String, - timeoutInMillis: Int, - takeHighest: Boolean - ): ScanResult? { - var scanPass = 1 - var currentTime: Long - val endTime = System.currentTimeMillis() + timeoutInMillis - var accessPointToReturn: ScanResult? = null - do { - currentTime = System.currentTimeMillis() - - val accessPointsTemp = scanResultsProvider() - - logger?.d(TAG, "Scanning SSIDs, pass %d", scanPass) - if (accessPointsTemp != null && accessPointsTemp.isNotEmpty()) { - var found = false - for (accessPoint in accessPointsTemp) { - if (takeHighest) { - if (accessPointMatchesRegex(accessPoint, regexForSSID) && - hasHighestSignalStrength(accessPointsTemp, accessPoint) - ) { - accessPointToReturn = accessPoint - // Need to continue through rest of the list since - // we don't know which one will have the highest - break - } - } else { - if (accessPointMatchesRegex(accessPoint, regexForSSID)) { - accessPointToReturn = accessPoint - found = true - break - } - } - } - - if (found) { - break - } - } else { - logger?.w(TAG, "Empty access point list") - } - logger?.d(TAG, "Current time: %d, end time: %d (findAccessPointByRegex)", currentTime, endTime) - scanPass++ - rest() - } while (currentTime < endTime) - return accessPointToReturn - } - - /** - * Used internally to return a list of networks whose SSID match the given regex. - * - * @param regexForSSID The regex to check the SSID of the network against - * @param takeHighest If the method should iterate through and return only the access point with the highest RSSI - * - * @return List of ScanResults|null - The list of networks that have an SSID that matches the given regex - * - * @see [accessPointMatchesRegex] - * @see [hasHighestSignalStrength] - * @see [ScanResult] - * @see [scanResultsProvider] - * - * Updates - * - 05/12/2019 - * * Moved here from previous WiseFySearchImpl class - * * Started using scanResultsProvider for various SDK level support - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun findAccessPointsMatchingRegex( - regexForSSID: String, - takeHighest: Boolean - ): List? { - val matchingAccessPoints = ArrayList() - - val accessPointsTemp = scanResultsProvider() - - if (accessPointsTemp == null || accessPointsTemp.isEmpty()) { - return null - } - - for (accessPoint in accessPointsTemp) { - if (accessPointMatchesRegex(accessPoint, regexForSSID)) { - if (takeHighest) { - if (hasHighestSignalStrength(accessPointsTemp, accessPoint)) { - matchingAccessPoints.add(accessPoint) - } - } else { - matchingAccessPoints.add(accessPoint) - } - } - } - - return if (matchingAccessPoints.isNotEmpty()) matchingAccessPoints else null - } - - /** - * Used internally to return a list of SSIDs from saved networks matching a given regex. - * - * @param regexForSSID The regex for the SSIDs to find in the configured network list - * - * @return List of Strings|null - SSIDs of saved network configurations matching the - * given regex or null if none found - * - * @see [accessPointMatchesRegex] - * @see [scanResultsProvider] - * - * Updates - * - 05/12/2019 - * * Moved here from previous WiseFySearchImpl class - * * Started using scanResultsProvider for various SDK level support - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun findSSIDsMatchingRegex( - regexForSSID: String - ): List? { - val matchingSSIDs = ArrayList() - val accessPointsTemp = scanResultsProvider() - if (accessPointsTemp != null && accessPointsTemp.isNotEmpty()) { - for (accessPoint in accessPointsTemp) { - if (accessPointMatchesRegex(accessPoint, regexForSSID) && !matchingSSIDs.contains(accessPoint.SSID)) { - matchingSSIDs.add(accessPoint.SSID) - } - } - } - - return if (matchingSSIDs.isNotEmpty()) matchingSSIDs else null - } - - /** - * Used internally to return a list of nearby access points. - * - * @param filterDuplicates If you want to exclude SSIDs with that same name that have a weaker signal strength - * - * @return List of ScanResult|null - A list of nearby access points or null if there are none - * - * @see [scanResultsProvider] - * @see [ScanResult] - * @see [removeEntriesWithLowerSignalStrength] - * - * Updates - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 4.0 - */ - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getNearbyAccessPoints( - filterDuplicates: Boolean - ): List? { - val accessPointsTemp = scanResultsProvider() - - if (accessPointsTemp == null || accessPointsTemp.isEmpty()) { - return null - } - - return if (filterDuplicates) { - removeEntriesWithLowerSignalStrength(accessPointsTemp) - } else { - accessPointsTemp - } - } - - /* - * Helpers - */ - - /** - * Used internally to check if a an access point has an SSID that matches a given regex. - * - * @param accessPoint The access point for comparison - * @param regexForSSID The regex for comparison - * - * @return boolean - True if the access point's SSID matches the given regex - * - * @see [ScanResult] - * - * Updates - * - 05/12/2019: Moved here from previous WiseFySearchImpl class - * - * @author Patches - * @since 3.0 - */ - private fun accessPointMatchesRegex(accessPoint: ScanResult?, regexForSSID: String): Boolean { - logger?.d( - TAG, - "accessPoint. SSID: %s, regex for SSID: %s".format(Locale.US, accessPoint?.SSID, regexForSSID) - ) - return accessPoint?.SSID?.matches(regexForSSID.toRegex()) ?: false - } - - /** - * Used internally to determine if the current access point has the highest signal strength - * compared to others that have the same SSID. - * - * *NOTE* Case insensitive - * - * @param accessPoints A list of access points to compare the current access point to - * @param currentAccessPoint The access point to see if it has the highest signal strength - * - * @return boolean - True if the current access point has the highest signal strength - * - * @see [ScanResult] - * @see [WifiManager.compareSignalLevel] - * - * Updates - * - 05/12/2019: Moved here from previous WiseFySearchImpl class - * - * @author Patches - * @since 3.0 - */ - private fun hasHighestSignalStrength(accessPoints: List, currentAccessPoint: ScanResult): Boolean { - for (accessPoint in accessPoints) { - if (accessPoint.SSID.equals(currentAccessPoint.SSID, ignoreCase = true)) { - logger?.d(TAG, "RSSI level of current access point: %d", currentAccessPoint.level) - logger?.d(TAG, "RSSI level of access point in list: %d", accessPoint.level) - logger?.d( - TAG, - "comparison result: %d (hasHighestSignalStrength)", - WifiManager.compareSignalLevel(accessPoint.level, currentAccessPoint.level) - ) - if (WifiManager.compareSignalLevel(accessPoint.level, currentAccessPoint.level) > 0) { - logger?.d(TAG, "Stronger signal strength found") - return false - } - } - } - return true - } - - /** - * Used internally to build a list of ScanResults (removes duplicates by taking access point with higher RSSI). - * - * *NOTE* Case insensitive - * - * @param accessPoints The list of access points to remove entries with lower signal strength from - * - * @return List of ScanResults - The filtered list of networks - * - * @see [ScanResult] - * @see [WifiManager.compareSignalLevel] - * - * Updates - * - 05/12/2019 - * * Moved here from previous WiseFySearchImpl class - * * Made private - * - * @author Patches - * @since 3.0 - */ - private fun removeEntriesWithLowerSignalStrength(accessPoints: List): List { - val accessPointsToReturn = ArrayList() - - for (accessPoint in accessPoints) { - var found = false - for (i in accessPointsToReturn.indices) { - val scanResult = accessPointsToReturn[i] - logger?.d(TAG, "SSID 1: %s, SSID 2: %s", accessPoint.SSID, scanResult.SSID) - if (accessPoint.SSID.equals(scanResult.SSID, ignoreCase = true)) { - found = true - logger?.d(TAG, "RSSI level of access point 1: %d", scanResult.level) - logger?.d(TAG, "RSSI level of access point 2: %d", accessPoint.level) - logger?.d( - TAG, - "comparison result: %d (removeEntriesWithLowerSignalStrength)", - WifiManager.compareSignalLevel(accessPoint.level, scanResult.level) - ) - if (WifiManager.compareSignalLevel(accessPoint.level, scanResult.level) > 0) { - logger?.d(TAG, "New result has a higher or same signal strength, swapping") - accessPointsToReturn[i] = accessPoint - } - } - } - - if (!found) { - logger?.d(TAG, "Found new wifi network") - accessPointsToReturn.add(accessPoint) - } - } - return accessPointsToReturn - } - - /** - * Used internally to check if a saved network has an SSID that matches a given regex. - * - * @param savedNetwork The saved network for comparison - * @param regexForSSID The regex for comparison - * - * @return boolean - True if the saved network's SSID matches the given regex - * - * @see [WifiConfiguration] - * - * Updates - * - 05/12/2019 - * * Moved here from previous WiseFySearchImpl class - * * Started to use ?.let for nullness check - * - * @author Patches - * @since 3.0 - */ - private fun savedNetworkMatchesRegex(savedNetwork: WifiConfiguration?, regexForSSID: String): Boolean { - return savedNetwork?.let { - return if (it.SSID != null) { - val ssidInList = it.SSID.replace(QUOTE, "") - ssidInList.matches(regexForSSID.toRegex()) - } else { - false - } - } ?: false - } -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearch.kt b/wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearch.kt deleted file mode 100644 index 796f6ecd..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearch.kt +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.search - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import androidx.annotation.RequiresPermission - -/** - * An interface that helps with searching. - * - * @see [WiseFySearchLegacy] - * @see [WiseFySearchSDK23] - * - * Updates - * - 05/12/2019 - * * Made more generic for pre and post SDK 23 classes - * * Added getNearbyAccessPoints - * * Removed removeEntriesWithLowerSignalStrength - * - 01/04/2020: Refined permissions - * - * @author Patches - * @since 3.0 - */ -internal interface WiseFySearch { - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun findAccessPointByRegex(regexForSSID: String, timeoutInMillis: Int, takeHighest: Boolean): ScanResult? - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun findAccessPointsMatchingRegex(regexForSSID: String, takeHighest: Boolean): List? - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun findSavedNetworkByRegex(regexForSSID: String): WifiConfiguration? - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun findSavedNetworksMatchingRegex(regexForSSID: String): List? - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun findSSIDsMatchingRegex(regexForSSID: String): List? - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getNearbyAccessPoints(filterDuplicates: Boolean): List? - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun isNetworkASavedConfiguration(ssid: String?): Boolean -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearchLegacy.kt b/wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearchLegacy.kt deleted file mode 100644 index eb37e6f3..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearchLegacy.kt +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.search - -import android.net.wifi.WifiManager -import com.isupatches.wisefy.logging.WiseFyLogger - -/** - * A class used internally for the purposes of shared query logic. This handles saved networks and - * nearby access points. There is also filtering by regex functionality and some RSSI logic that - * are tied into these queries. - * - * @see [WifiManager] - * @see [AbstractWiseFySearch] - * - * Updates - * - 01/04/2020: Formatting update - * - 01/07/2020: Added WiseFyLogger - * - * @author Patches - * @since 3.0 - */ -@Suppress("deprecation") -internal class WiseFySearchLegacy private constructor( - wifiManager: WifiManager, - logger: WiseFyLogger? -) : AbstractWiseFySearch(wifiManager, logger) { - - internal companion object { - fun create( - wifiManager: WifiManager, - logger: WiseFyLogger? = null - ): WiseFySearch = WiseFySearchLegacy(wifiManager, logger) - } - - // For SDK 23 and below, devices are still allowed to trigger a scan for nearby access points, - // so we'll continue to do that to preserve previous behavior. - override val scanResultsProvider by lazy { - { - wifiManager.startScan() - wifiManager.scanResults - } - } -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearchSDK23.kt b/wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearchSDK23.kt deleted file mode 100644 index aa093d70..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/search/WiseFySearchSDK23.kt +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.search - -import android.net.wifi.WifiManager -import android.os.Build -import androidx.annotation.RequiresApi -import com.isupatches.wisefy.logging.WiseFyLogger - -/** - * A class used internally to query and determine different parts of the connection state for a - * device when WiseFy is on a device with at least SDK23 and is not configured to use the legacy - * connection class. - * - * @see [AbstractWiseFySearch] - * @see [WifiManager] - * - * Updates - * - 01/07/2020: Added WiseFyLogger - * - * @author Patches - * @since 4.0 - */ -@RequiresApi(Build.VERSION_CODES.M) -internal class WiseFySearchSDK23 private constructor( - private val wifiManager: WifiManager, - logger: WiseFyLogger? -) : AbstractWiseFySearch(wifiManager, logger) { - - internal companion object { - fun create( - wifiManager: WifiManager, - logger: WiseFyLogger? = null - ): WiseFySearch = WiseFySearchSDK23(wifiManager, logger) - } - - // For SDK 23 and above, devices will be limited on ability to trigger scans and it's been - // indicated by Android Google docs that eventually apps will no longer be able to trigger a - // scan to prevent abusive apps, therefore for WiseFy we're going to just use the last - // set of scan results...the downside is this may take some time to be updated. - override val scanResultsProvider by lazy { { wifiManager.scanResults } } -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/utils/SleepUtil.kt b/wisefy/src/main/java/com/isupatches/wisefy/utils/SleepUtil.kt deleted file mode 100644 index 3a2d92b1..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/utils/SleepUtil.kt +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.utils - -private const val BASE_DELAY = 1000 - -/** - * To sleep the calling thread for a set amount of time. - * - * @see [BASE_DELAY] - * @see [sleep] - * - * @author Patches - * @since 3.0 - */ -internal fun rest() { - sleep(BASE_DELAY.toLong()) -} - -/** - * Used to wait for a given amount of time (in milliseconds). - * - * @param timeToSleepInMillis The number of milliseconds to sleep - * - * @author Patches - * @since 3.0 - */ -@Suppress("SwallowedException") -private fun sleep(timeToSleepInMillis: Long) { - try { - Thread.sleep(timeToSleepInMillis) - } catch (ie: InterruptedException) { - // Do nothing - } -} diff --git a/wisefy/src/main/java/com/isupatches/wisefy/utils/StringUtil.kt b/wisefy/src/main/java/com/isupatches/wisefy/utils/StringUtil.kt deleted file mode 100644 index 40fde76c..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/utils/StringUtil.kt +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2018 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.utils - -import com.isupatches.wisefy.constants.QUOTE -import java.util.Locale - -/** - * Used internally to convert an SSID into an acceptable format to create a WifiConfiguration. - * - * @param ssid The SSID to format - * - * @return String - The formatted SSID value - * - * @author Patches - * @since 3.0 - */ -internal fun convertSSIDForConfig(ssid: String): String = "%s%s%s".format(Locale.US, QUOTE, ssid, QUOTE) diff --git a/wisefy/src/main/java/com/isupatches/wisefy/utils/WifiConfigurationUtil.kt b/wisefy/src/main/java/com/isupatches/wisefy/utils/WifiConfigurationUtil.kt deleted file mode 100644 index 740c61be..00000000 --- a/wisefy/src/main/java/com/isupatches/wisefy/utils/WifiConfigurationUtil.kt +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefy.utils - -import android.net.wifi.WifiConfiguration -import com.isupatches.wisefy.constants.QUOTE - -/** - * To generate a configuration for an open network. - * - * @param ssid The ssid for the open network's configuration - * - * @return WifiConfiguration - The open network configuration - * - * @see [com.isupatches.wisefy.WiseFy.addOpenNetwork] - * @see [WifiConfiguration] - * - * Updates - * - 05/12/2019: General cleanup and removing deprecated values - * - * @author Patches - * @since 3.0 - */ -internal fun generateOpenNetworkConfiguration(ssid: String): WifiConfiguration { - val wifiConfiguration = WifiConfiguration() - wifiConfiguration.SSID = convertSSIDForConfig(ssid) - wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE) - - // Allowed auth algorithms - wifiConfiguration.allowedAuthAlgorithms.clear() - - // Allowed protocols - wifiConfiguration.allowedProtocols.set(WifiConfiguration.Protocol.RSN) - - // Allowed Group Ciphers - wifiConfiguration.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP) - wifiConfiguration.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP) - - // Allowed Pairwise Ciphers - wifiConfiguration.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP) - return wifiConfiguration -} - -/** - * To generate a configuration for a WEP network. - * - * @param ssid The ssid for the WEP network's configuration - * @param password The password for the WEP network's configuration - * - * @return WifiConfiguration - The WEP network configuration - * - * @see [com.isupatches.wisefy.WiseFy.addWEPNetwork] - * @see [WifiConfiguration] - * - * Updates - * - 05/12/2019: General cleanup and removing deprecated values - * - * @author Patches - * @since 3.0 - */ -@Deprecated("Due to security and performance limitations, WEP networks are discouraged") -@Suppress("deprecation") -internal fun generateWEPNetworkConfiguration(ssid: String, password: String): WifiConfiguration { - val wifiConfiguration = WifiConfiguration() - wifiConfiguration.SSID = convertSSIDForConfig(ssid) - wifiConfiguration.wepKeys[0] = QUOTE + password + QUOTE - wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE) - - // Deprecated due to security issues with WPA networks, should use WPA2 instead - wifiConfiguration.allowedProtocols.set(WifiConfiguration.Protocol.WPA) // WPA network protocol - - /* - * Allowed Auth Algorithms - */ - - wifiConfiguration.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN) - // Deprecated due to shared key authentication requiring static WEP keys - wifiConfiguration.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.SHARED) - - /* - * Allowed Protocols - */ - wifiConfiguration.allowedProtocols.set(WifiConfiguration.Protocol.RSN) - - /* - * Allowed Group Ciphers - */ - - // Deprecated because of WEP - wifiConfiguration.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40) - wifiConfiguration.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP104) - - /* - * Allowed Pairwise Ciphers - */ - - wifiConfiguration.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP) - // Deprecated WPA algorithm, RSN and WPA2 should be used instead - wifiConfiguration.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP) - - return wifiConfiguration -} - -/** - * To generate a configuration for a WPA2 network. - * - * @param ssid The ssid for the WPA2 network's configuration - * @param password The password for the WPA2 network's configuration - * - * @return WifiConfiguration - The WPA2 network configuration - * - * @see [com.isupatches.wisefy.WiseFy.addWPA2Network] - * @see [WifiConfiguration] - * - * Updates - * - 05/12/2019: General cleanup and removing deprecated values - * - * @author Patches - * @since 3.0 - */ -internal fun generateWPA2NetworkConfiguration(ssid: String, password: String): WifiConfiguration { - val wifiConfiguration = WifiConfiguration() - wifiConfiguration.SSID = convertSSIDForConfig(ssid) - wifiConfiguration.preSharedKey = QUOTE + password + QUOTE - wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK) - wifiConfiguration.status = WifiConfiguration.Status.ENABLED - - // Allowed protocols - wifiConfiguration.allowedProtocols.set(WifiConfiguration.Protocol.RSN) - - // Allowed Group Ciphers - wifiConfiguration.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP) - wifiConfiguration.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP) - - // Allowed Pairwise Ciphers - wifiConfiguration.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP) - return wifiConfiguration -} diff --git a/wisefy/src/test/java/com/isupatches/wisefy/main/PublicApiVisibilityTests.kt b/wisefy/src/test/java/com/isupatches/wisefy/main/PublicApiVisibilityTests.kt deleted file mode 100644 index 597c2b38..00000000 --- a/wisefy/src/test/java/com/isupatches/wisefy/main/PublicApiVisibilityTests.kt +++ /dev/null @@ -1,574 +0,0 @@ -package com.isupatches.wisefy.main - -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo -import com.isupatches.wisefy.OPEN_NETWORK_SSID -import com.isupatches.wisefy.TEST_DELAY -import com.isupatches.wisefy.TEST_NUMBER_OF_BARS -import com.isupatches.wisefy.TEST_RSSI_LEVEL -import com.isupatches.wisefy.TEST_RSSI_LEVEL_HIGH -import com.isupatches.wisefy.TEST_RSSI_LEVEL_LOW -import com.isupatches.wisefy.TEST_SSID -import com.isupatches.wisefy.WEP_NETWORK_PASSWORD -import com.isupatches.wisefy.WEP_NETWORK_SSID -import com.isupatches.wisefy.WPA2_NETWORK_PASSWORD -import com.isupatches.wisefy.WPA2_NETWORK_SSID -import com.isupatches.wisefy.WiseFy.Companion.WIFI_MANAGER_FAILURE -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefy.callbacks.ConnectToNetworkCallbacks -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.callbacks.DisconnectFromCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.GetRSSICallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -import org.junit.Assert.assertEquals -import org.junit.Test -import org.mockito.ArgumentMatchers.any -import org.mockito.ArgumentMatchers.anyBoolean -import org.mockito.ArgumentMatchers.anyInt -import org.mockito.ArgumentMatchers.anyString -import org.mockito.Mockito.mock -import org.mockito.Mockito.verify - -/** - * Used to test the visibility of the public API. - * - * @author Patches - */ -@Suppress("LargeClass") -internal class PublicApiVisibilityTests { - - private val wisefy = mock(WiseFyPublicApi::class.java) - - @Test - fun addOpenNetwork_apis() { - wisefy.addOpenNetwork(OPEN_NETWORK_SSID) - verify(wisefy).addOpenNetwork(anyString()) - wisefy.addOpenNetwork(OPEN_NETWORK_SSID, object : AddNetworkCallbacks { - override fun failureAddingNetwork(wifiManagerReturn: Int) { - } - - override fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).addOpenNetwork(anyString(), any(AddNetworkCallbacks::class.java)) - } - - @Suppress("deprecation") - @Test - fun addWEPNetwork_apis() { - wisefy.addWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD) - verify(wisefy).addWEPNetwork(anyString(), anyString()) - wisefy.addWEPNetwork(WEP_NETWORK_SSID, WEP_NETWORK_PASSWORD, object : AddNetworkCallbacks { - override fun failureAddingNetwork(wifiManagerReturn: Int) { - } - - override fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).addWEPNetwork(anyString(), anyString(), any(AddNetworkCallbacks::class.java)) - } - - @Test - fun addWPA2Network_apis() { - wisefy.addWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD) - verify(wisefy).addWPA2Network(anyString(), anyString()) - wisefy.addWPA2Network(WPA2_NETWORK_SSID, WPA2_NETWORK_PASSWORD, object : AddNetworkCallbacks { - override fun failureAddingNetwork(wifiManagerReturn: Int) { - } - - override fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).addWPA2Network(anyString(), anyString(), any(AddNetworkCallbacks::class.java)) - } - - @Test - fun compareSignalLevel_api() { - wisefy.compareSignalLevel(TEST_RSSI_LEVEL_LOW, TEST_RSSI_LEVEL_HIGH) - verify(wisefy).compareSignalLevel(anyInt(), anyInt()) - } - - @Test - fun calculateBars_api() { - wisefy.calculateBars(TEST_RSSI_LEVEL, TEST_NUMBER_OF_BARS) - verify(wisefy).calculateBars(anyInt(), anyInt()) - } - - @Test - fun connectToNetwork_apis() { - wisefy.connectToNetwork(TEST_SSID, TEST_DELAY) - verify(wisefy).connectToNetwork(anyString(), anyInt()) - wisefy.connectToNetwork(TEST_SSID, TEST_DELAY, object : ConnectToNetworkCallbacks { - override fun connectedToNetwork() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun failureConnectingToNetwork() { - } - - override fun networkNotFoundToConnectTo() { - } - }) - verify(wisefy).connectToNetwork( - anyString(), - anyInt(), - any(ConnectToNetworkCallbacks::class.java) - ) - } - - @Test - fun disableWifi_apis() { - wisefy.disableWifi() - verify(wisefy).disableWifi() - wisefy.disableWifi(object : DisableWifiCallbacks { - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun failureDisablingWifi() { - } - - override fun wifiDisabled() { - } - }) - verify(wisefy).disableWifi(any(DisableWifiCallbacks::class.java)) - } - - @Test - fun disconnectFromCurrentNetwork_apis() { - wisefy.disconnectFromCurrentNetwork() - verify(wisefy).disconnectFromCurrentNetwork() - wisefy.disconnectFromCurrentNetwork(object : DisconnectFromCurrentNetworkCallbacks { - override fun disconnectedFromCurrentNetwork() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun failureDisconnectingFromCurrentNetwork() { - } - }) - verify(wisefy).disconnectFromCurrentNetwork( - any(DisconnectFromCurrentNetworkCallbacks::class.java) - ) - } - - @Test - fun enableWifi_apis() { - wisefy.enableWifi() - verify(wisefy).enableWifi() - wisefy.enableWifi(object : EnableWifiCallbacks { - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun failureEnablingWifi() { - } - - override fun wifiEnabled() { - } - }) - verify(wisefy).enableWifi(any(EnableWifiCallbacks::class.java)) - } - - @Test - fun getCurrentNetwork_apis() { - wisefy.getCurrentNetwork() - verify(wisefy).getCurrentNetwork() - wisefy.getCurrentNetwork(object : GetCurrentNetworkCallbacks { - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun noCurrentNetwork() { - } - - override fun retrievedCurrentNetwork(currentNetwork: WifiInfo) { - } - }) - verify(wisefy).getCurrentNetwork(any(GetCurrentNetworkCallbacks::class.java)) - } - - @Test - fun getCurrentNetworkInfo_apis() { - wisefy.getCurrentNetworkInfo() - verify(wisefy).getCurrentNetworkInfo() - wisefy.getCurrentNetworkInfo(object : GetCurrentNetworkInfoCallbacks { - override fun noCurrentNetworkInfo() { - } - - override fun retrievedCurrentNetworkInfo(currentNetworkInfo: NetworkInfo) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).getCurrentNetworkInfo(any(GetCurrentNetworkInfoCallbacks::class.java)) - } - - @Test - fun getFrequency_apis() { - wisefy.getFrequency() - verify(wisefy).getFrequency() - wisefy.getFrequency(object : GetFrequencyCallbacks { - override fun failureGettingFrequency() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun retrievedFrequency(frequency: Int) { - } - }) - verify(wisefy).getFrequency(any(GetFrequencyCallbacks::class.java)) - - wisefy.getFrequency(mock(WifiInfo::class.java)) - verify(wisefy).getFrequency(any(WifiInfo::class.java)) - wisefy.getFrequency(mock(WifiInfo::class.java), object : GetFrequencyCallbacks { - override fun failureGettingFrequency() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun retrievedFrequency(frequency: Int) { - } - }) - verify(wisefy).getFrequency(any(WifiInfo::class.java), any(GetFrequencyCallbacks::class.java)) - } - - @Test - fun getIP_apis() { - wisefy.getIP() - verify(wisefy).getIP() - wisefy.getIP(object : GetIPCallbacks { - override fun failureRetrievingIP() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun retrievedIP(ip: String) { - } - }) - verify(wisefy).getIP(any(GetIPCallbacks::class.java)) - } - - @Test - fun getNearbyAccessPoints_apis() { - wisefy.getNearbyAccessPoints(true) - verify(wisefy).getNearbyAccessPoints(anyBoolean()) - wisefy.getNearbyAccessPoints(true, object : GetNearbyAccessPointsCallbacks { - override fun retrievedNearbyAccessPoints(nearbyAccessPoints: List) { - } - - override fun noAccessPointsFound() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).getNearbyAccessPoints( - anyBoolean(), - any(GetNearbyAccessPointsCallbacks::class.java) - ) - } - - @Test - fun getRSSI_apis() { - wisefy.getRSSI(TEST_SSID, true, TEST_DELAY) - verify(wisefy).getRSSI(anyString(), anyBoolean(), anyInt()) - wisefy.getRSSI(TEST_SSID, true, TEST_DELAY, object : GetRSSICallbacks { - override fun retrievedRSSI(rssi: Int) { - } - - override fun networkNotFoundToRetrieveRSSI() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).getRSSI(anyString(), anyBoolean(), anyInt(), any(GetRSSICallbacks::class.java)) - } - - @Test - fun getSavedNetworks_apis() { - wisefy.getSavedNetworks() - verify(wisefy).getSavedNetworks() - wisefy.getSavedNetworks(object : GetSavedNetworksCallbacks { - override fun noSavedNetworksFound() { - } - - override fun retrievedSavedNetworks(savedNetworks: List) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).getSavedNetworks(any(GetSavedNetworksCallbacks::class.java)) - } - - @Test - fun getWiseFyLock_api() { - wisefy.getWiseFyLock() - verify(wisefy).getWiseFyLock() - } - - @Test - fun isDeviceConnectedToMobileNetwork_apis() { - wisefy.isDeviceConnectedToMobileNetwork() - verify(wisefy).isDeviceConnectedToMobileNetwork() - } - - @Test - fun isDeviceConnectedToMobileOrWifiNetwork_apis() { - wisefy.isDeviceConnectedToMobileOrWifiNetwork() - verify(wisefy).isDeviceConnectedToMobileOrWifiNetwork() - } - - @Test - fun isDeviceConnectedToSSID_apis() { - wisefy.isDeviceConnectedToSSID(TEST_SSID) - verify(wisefy).isDeviceConnectedToSSID(anyString()) - } - - @Test - fun isDeviceConnectedToWifiNetwork_apis() { - wisefy.isDeviceConnectedToWifiNetwork() - verify(wisefy).isDeviceConnectedToWifiNetwork() - } - - @Test - fun isDeviceRoaming_apis() { - wisefy.isDeviceRoaming() - verify(wisefy).isDeviceRoaming() - } - - @Test - fun isNetwork5gHz_apis() { - wisefy.isNetwork5gHz() - verify(wisefy).isNetwork5gHz() - - wisefy.isNetwork5gHz(mock(WifiInfo::class.java)) - verify(wisefy).isNetwork5gHz(any(WifiInfo::class.java)) - } - - @Test - fun isNetworkEAP_api() { - wisefy.isNetworkEAP(mock(ScanResult::class.java)) - verify(wisefy).isNetworkEAP(any(ScanResult::class.java)) - } - - @Test - fun isNetworkPSK_api() { - wisefy.isNetworkPSK(mock(ScanResult::class.java)) - verify(wisefy).isNetworkPSK(any(ScanResult::class.java)) - } - - @Test - fun isNetworkSaved_api() { - wisefy.isNetworkSaved(TEST_SSID) - verify(wisefy).isNetworkSaved(anyString()) - } - - @Test - fun isNetworkSecure_api() { - wisefy.isNetworkSecure(mock(ScanResult::class.java)) - verify(wisefy).isNetworkSecure(any(ScanResult::class.java)) - } - - @Test - fun isNetworkWEP_api() { - wisefy.isNetworkWEP(mock(ScanResult::class.java)) - verify(wisefy).isNetworkWEP(any(ScanResult::class.java)) - } - - @Test - fun isNetworkWPA_api() { - wisefy.isNetworkWPA(mock(ScanResult::class.java)) - verify(wisefy).isNetworkWPA(any(ScanResult::class.java)) - } - - @Test - fun isNetworkWPA2_api() { - wisefy.isNetworkWPA2(mock(ScanResult::class.java)) - verify(wisefy).isNetworkWPA2(any(ScanResult::class.java)) - } - - @Test - fun isWifiEnabled_api() { - wisefy.isWifiEnabled() - verify(wisefy).isWifiEnabled() - } - - @Test - fun removeNetwork_api() { - wisefy.removeNetwork(TEST_SSID) - verify(wisefy).removeNetwork(anyString()) - - wisefy.removeNetwork(TEST_SSID, object : RemoveNetworkCallbacks { - override fun failureRemovingNetwork() { - } - - override fun networkNotFoundToRemove() { - } - - override fun networkRemoved() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).removeNetwork(anyString(), any(RemoveNetworkCallbacks::class.java)) - } - - @Test - fun searchForAccessPoint_api() { - wisefy.searchForAccessPoint(TEST_SSID, TEST_DELAY, true) - verify(wisefy).searchForAccessPoint(anyString(), anyInt(), anyBoolean()) - - wisefy.searchForAccessPoint(TEST_SSID, TEST_DELAY, true, object : SearchForAccessPointCallbacks { - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun accessPointFound(accessPoint: ScanResult) { - } - - override fun accessPointNotFound() { - } - }) - verify(wisefy).searchForAccessPoint( - anyString(), - anyInt(), - anyBoolean(), - any(SearchForAccessPointCallbacks::class.java) - ) - } - - @Test - fun searchForAccessPoints_api() { - wisefy.searchForAccessPoints(TEST_SSID, true) - verify(wisefy).searchForAccessPoints(anyString(), anyBoolean()) - - wisefy.searchForAccessPoints(TEST_SSID, true, object : SearchForAccessPointsCallbacks { - override fun foundAccessPoints(accessPoints: List) { - } - - override fun noAccessPointsFound() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).searchForAccessPoints( - anyString(), - anyBoolean(), - any(SearchForAccessPointsCallbacks::class.java) - ) - } - - @Test - fun searchForSavedNetwork_apis() { - wisefy.searchForSavedNetwork(TEST_SSID) - verify(wisefy).searchForSavedNetwork(anyString()) - wisefy.searchForSavedNetwork(TEST_SSID, object : SearchForSavedNetworkCallbacks { - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun savedNetworkNotFound() { - } - - override fun retrievedSavedNetwork(savedNetwork: WifiConfiguration) { - } - }) - verify(wisefy).searchForSavedNetwork( - anyString(), - any(SearchForSavedNetworkCallbacks::class.java) - ) - } - - @Test - fun searchForSavedNetworks_apis() { - wisefy.searchForSavedNetworks(TEST_SSID) - verify(wisefy).searchForSavedNetworks(anyString()) - wisefy.searchForSavedNetworks(TEST_SSID, object : SearchForSavedNetworksCallbacks { - override fun noSavedNetworksFound() { - } - - override fun retrievedSavedNetworks(savedNetworks: List) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - verify(wisefy).searchForSavedNetworks( - anyString(), - any(SearchForSavedNetworksCallbacks::class.java) - ) - } - - @Test - fun searchForSSID_api() { - wisefy.searchForSSID(TEST_SSID, TEST_DELAY) - verify(wisefy).searchForSSID(anyString(), anyInt()) - - wisefy.searchForSSID(TEST_SSID, TEST_DELAY, object : SearchForSSIDCallbacks { - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun ssidFound(ssid: String) { - } - - override fun ssidNotFound() { - } - }) - verify(wisefy).searchForSSID(anyString(), anyInt(), any(SearchForSSIDCallbacks::class.java)) - } - - @Test - fun searchForSSIDs_api() { - wisefy.searchForSSIDs(TEST_SSID) - verify(wisefy).searchForSSIDs(anyString()) - - wisefy.searchForSSIDs(TEST_SSID, object : SearchForSSIDsCallbacks { - override fun wisefyFailure(wisefyFailureCode: Int) { - } - - override fun retrievedSSIDs(ssids: List) { - } - - override fun noSSIDsFound() { - } - }) - verify(wisefy).searchForSSIDs(anyString(), any(SearchForSSIDsCallbacks::class.java)) - } - - @Test - fun wifiManagerFailure_value() { - assertEquals(WIFI_MANAGER_FAILURE.toLong(), -1) - } -} diff --git a/wisefysample/build.gradle b/wisefysample/build.gradle deleted file mode 100644 index e21305fc..00000000 --- a/wisefysample/build.gradle +++ /dev/null @@ -1,102 +0,0 @@ -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply plugin: 'kotlin-android-extensions' -apply plugin: "kotlin-kapt" - -android { - - compileSdkVersion rootProject.ext.MAX_SDK_VERSION - buildToolsVersion rootProject.ext.BUILD_TOOLS_VERSION - - defaultConfig { - applicationId "com.isupatches.wisefysample" - minSdkVersion rootProject.ext.MIN_SDK_VERSION - targetSdkVersion rootProject.ext.MAX_SDK_VERSION - versionCode 1 - versionName '1.0' - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - } - - buildTypes { - debug { - testCoverageEnabled true - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-debug.pro' - testProguardFile file("proguard-test-rules.pro.pro") - } - - release { - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-release.pro' - } - } - - testOptions { - unitTests.returnDefaultValues = true - } - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - sourceSets { - final def commonTestDir = 'src/commonTest/java' - - test { java.srcDir commonTestDir } - - androidTest { java.srcDir commonTestDir } - - main { jni.srcDirs = [] } - } - - lintOptions { - checkAllWarnings true - warningsAsErrors true - showAll true - explainIssues true - abortOnError true - disable 'UnusedIds' // UnusedIds is disabled for Kotlin synthetics - } -} - -dependencies { - implementation project(':wisefy') - - implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - - // Android X - implementation "androidx.appcompat:appcompat:$androidx_appcompat_version" - implementation "androidx.constraintlayout:constraintlayout:$androidx_constraintlayout_version" - implementation "androidx.core:core-ktx:$androidx_core_ktx_version" - - // Google Material - implementation "com.google.android.material:material:$google_android_material_version" - - // Dependency Injection - implementation "com.google.dagger:dagger:$dagger_version" - kapt "com.google.dagger:dagger-compiler:$dagger_version" - implementation "com.google.dagger:dagger-android-support:$dagger_version" - kapt "com.google.dagger:dagger-android-processor:$dagger_version" - - // Rx - implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version" - implementation "io.reactivex.rxjava2:rxjava:$rxjava_version" - - // Unit test dependencies - testImplementation "androidx.test:core:$androidx_core_test_version" - testImplementation "org.mockito:mockito-core:$mockito_version" - testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:$mockito_kotlin_version" - testImplementation "junit:junit:$junit_version" - - // Instrumentation test dependencies - androidTestImplementation "androidx.test.espresso:espresso-core:$androidx_espresso_core_version" - androidTestImplementation "androidx.test.espresso:espresso-intents:$androidx_espresso_core_version" - androidTestImplementation "androidx.test:runner:$androidx_test_runner_version" - androidTestImplementation "androidx.test:rules:$androidx_test_runner_version" - androidTestImplementation "org.mockito:mockito-core:$mockito_version" - androidTestImplementation "org.mockito:mockito-android:$mockito_version" - androidTestImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:$mockito_kotlin_version" - kaptAndroidTest "com.google.dagger:dagger-compiler:$dagger_version" - kaptAndroidTest "com.google.dagger:dagger-android-processor:$dagger_version" -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/base/AbstractEspressoTestClass.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/base/AbstractEspressoTestClass.kt deleted file mode 100644 index cea8085a..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/base/AbstractEspressoTestClass.kt +++ /dev/null @@ -1,76 +0,0 @@ -package com.isupatches.wisefysample.internal.base - -import androidx.test.platform.app.InstrumentationRegistry -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefysample.DebugMainApplication -import com.isupatches.wisefysample.TestRxSchedulersProvider -import com.isupatches.wisefysample.internal.di.DaggerTestMainApplicationComponent -import com.isupatches.wisefysample.internal.di.addCommonComponents -import com.isupatches.wisefysample.internal.preferences.InMemoryAddNetworkStore -import com.isupatches.wisefysample.internal.preferences.InMemoryRemoveNetworkStore -import com.isupatches.wisefysample.internal.preferences.InMemorySearchStore -import com.isupatches.wisefysample.internal.util.PermissionUtil -import com.isupatches.wisefysample.internal.util.SdkUtil -import com.isupatches.wisefysample.ui.add.AddNetworkModel -import com.isupatches.wisefysample.ui.add.AddNetworkMvp -import com.isupatches.wisefysample.ui.add.AddNetworkPresenter -import com.isupatches.wisefysample.ui.misc.MiscModel -import com.isupatches.wisefysample.ui.misc.MiscMvp -import com.isupatches.wisefysample.ui.misc.MiscPresenter -import com.isupatches.wisefysample.ui.remove.RemoveNetworkModel -import com.isupatches.wisefysample.ui.remove.RemoveNetworkMvp -import com.isupatches.wisefysample.ui.remove.RemoveNetworkPresenter -import com.isupatches.wisefysample.ui.search.SearchModel -import com.isupatches.wisefysample.ui.search.SearchMvp -import com.isupatches.wisefysample.ui.search.SearchPresenter -import com.nhaarman.mockitokotlin2.mock - -internal abstract class AbstractEspressoTestClass { - - protected val wiseFy: WiseFyPublicApi = mock() - protected val permissionUtil: PermissionUtil = mock() - protected val sdkUtil: SdkUtil = mock() - - private val addNetworkPresenter: AddNetworkMvp.Presenter = AddNetworkPresenter( - model = AddNetworkModel(wiseFy = wiseFy), - rxSchedulersProvider = TestRxSchedulersProvider() - ) - protected val addNetworkStore = InMemoryAddNetworkStore() - - private val removeNetworkPresenter: RemoveNetworkMvp.Presenter = RemoveNetworkPresenter( - model = RemoveNetworkModel(wiseFy = wiseFy), - rxSchedulersProvider = TestRxSchedulersProvider() - ) - protected val removeNetworkStore = InMemoryRemoveNetworkStore() - - private val miscPresenter: MiscMvp.Presenter = MiscPresenter( - model = MiscModel(wiseFy = wiseFy), - rxSchedulersProvider = TestRxSchedulersProvider() - ) - private val searchPresenter: SearchMvp.Presenter = SearchPresenter( - model = SearchModel(wiseFy = wiseFy), - rxSchedulersProvider = TestRxSchedulersProvider() - ) - protected val searchStore = InMemorySearchStore() - - open fun setUp() { - @SuppressWarnings("UnsafeCast") - val app = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext as DebugMainApplication - val mainComponent = DaggerTestMainApplicationComponent.builder() - .addCommonComponents( - app = app, - wiseFy = wiseFy, - permissionUtil = permissionUtil, - addNetworkPresenter = addNetworkPresenter, - addNetworkStore = addNetworkStore, - removeNetworkPresenter = removeNetworkPresenter, - removeNetworkStore = removeNetworkStore, - miscPresenter = miscPresenter, - searchPresenter = searchPresenter, - searchStore = searchStore, - sdkUtil = sdkUtil - ) - .build() - app.setTestComponent(mainComponent) - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/base/BaseRobot.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/base/BaseRobot.kt deleted file mode 100644 index 8a9ff462..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/base/BaseRobot.kt +++ /dev/null @@ -1,81 +0,0 @@ -package com.isupatches.wisefysample.internal.base - -import androidx.test.espresso.Espresso.onView -import androidx.test.espresso.matcher.ViewMatchers.withId -import androidx.test.espresso.matcher.ViewMatchers.withText -import androidx.test.rule.ActivityTestRule -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.RANDO_PERMISSION_REQUEST_CODE -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.internal.espresso.checkIsDisplayed -import com.isupatches.wisefysample.internal.espresso.getString -import com.isupatches.wisefysample.internal.espresso.performClick -import com.isupatches.wisefysample.internal.espresso.performScrollToAndCheckIsDisplayed -import com.isupatches.wisefysample.internal.util.PermissionUtil -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.eq -import org.hamcrest.CoreMatchers.allOf -import org.hamcrest.CoreMatchers.containsString -import org.mockito.Mockito.`when` - -internal abstract class BaseRobot( - private val activityTestRule: ActivityTestRule<*>, - private val permissionUtil: PermissionUtil -) { - - fun dismissResultsDialog() { - onView(withText(R.string.ok)).performClick() - } - - fun dismissErrorDialog() { - onView(withText(R.string.ok)).performClick() - } - - fun withPermission(permission: String) { - `when`(permissionUtil.isPermissionGranted(any(), eq(permission))) - .thenReturn(true) - } - - fun withPermissionDeniedOnce(permission: String) { - `when`(permissionUtil.isPermissionGranted(any(), eq(permission))) - .thenReturn(false) - .thenReturn(true) - } - - fun verifyNetworkNameIsPopulated() { - onView(allOf(withId(R.id.networkNameEdt), withText(TEST_SSID_1))).performScrollToAndCheckIsDisplayed() - } - - fun verifyPermissionErrorShown() { - onView(withText( - activityTestRule.getString( - R.string.permission_error_unhandled_request_code_args, - RANDO_PERMISSION_REQUEST_CODE - ) - )).checkIsDisplayed() - } - - fun verifyWiseFyFailureIsDisplayed() { - onView(withText(R.string.wisefy_error)).checkIsDisplayed() - onView(withText( - activityTestRule.getString(R.string.wisefy_error_descriptions_args, MISSING_PARAMETER) - )).checkIsDisplayed() - } - - fun verifyAccessPointsAreDisplayed() { - onView(withText(containsString("Access points"))).checkIsDisplayed() - } - - fun verifyNoAccessPointsFoundIsDisplayed() { - onView(withText(R.string.no_access_points_found)).checkIsDisplayed() - } - - fun verifySavedNetworksAreDisplayed() { - onView(withText(containsString("Saved networks"))).checkIsDisplayed() - } - - fun verifyNoSavedNetworksFoundIsDisplayed() { - onView(withText(R.string.no_saved_networks_found)).checkIsDisplayed() - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestCommonModule.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestCommonModule.kt deleted file mode 100644 index 6f4358ed..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestCommonModule.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.isupatches.wisefysample.internal.di - -import dagger.Module -import dagger.android.support.AndroidSupportInjectionModule - -@Module(includes = [ - AndroidSupportInjectionModule::class, - TestRxModule::class -]) interface TestCommonModule diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestMainApplicationComponent.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestMainApplicationComponent.kt deleted file mode 100644 index 802bfe5f..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestMainApplicationComponent.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.isupatches.wisefysample.internal.di - -import com.isupatches.wisefysample.MainApplication -import dagger.Component -import javax.inject.Singleton - -@Suppress("unused") -@Singleton -@Component(modules = [ - TestCommonModule::class, - TestScreenBindingsModule::class -]) -internal interface TestMainApplicationComponent : MainApplication.MainApplicationComponent { - - @Component.Builder interface Builder : TestMainApplicationComponentBuilder { - fun build(): TestMainApplicationComponent - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestMainApplicationComponentBuilder.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestMainApplicationComponentBuilder.kt deleted file mode 100644 index 472ffdcb..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestMainApplicationComponentBuilder.kt +++ /dev/null @@ -1,63 +0,0 @@ -package com.isupatches.wisefysample.internal.di - -import android.content.Context -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefysample.DebugMainApplication -import com.isupatches.wisefysample.MainApplication -import com.isupatches.wisefysample.TestRxSchedulersProvider -import com.isupatches.wisefysample.internal.preferences.AddNetworkStore -import com.isupatches.wisefysample.internal.preferences.RemoveNetworkStore -import com.isupatches.wisefysample.internal.preferences.SearchStore -import com.isupatches.wisefysample.internal.util.PermissionUtil -import com.isupatches.wisefysample.internal.util.RxSchedulersProvider -import com.isupatches.wisefysample.internal.util.SdkUtil -import com.isupatches.wisefysample.ui.add.AddNetworkMvp -import com.isupatches.wisefysample.ui.misc.MiscMvp -import com.isupatches.wisefysample.ui.remove.RemoveNetworkMvp -import com.isupatches.wisefysample.ui.search.SearchMvp -import dagger.BindsInstance - -internal interface TestMainApplicationComponentBuilder> { - @BindsInstance fun application(app: MainApplication): THIS - @BindsInstance fun context(context: Context): THIS - @BindsInstance fun wiseFy(wiseFy: WiseFyPublicApi): THIS - @BindsInstance fun permissionUtil(permissionUtil: PermissionUtil): THIS - @BindsInstance fun addNetworkPresenter(impl: AddNetworkMvp.Presenter): THIS - @BindsInstance fun addNetworkStore(impl: AddNetworkStore): THIS - @BindsInstance fun removeNetworkPresenter(impl: RemoveNetworkMvp.Presenter): THIS - @BindsInstance fun removeNetworkStore(impl: RemoveNetworkStore): THIS - @BindsInstance fun miscPresenter(impl: MiscMvp.Presenter): THIS - @BindsInstance fun searchPresenter(impl: SearchMvp.Presenter): THIS - @BindsInstance fun searchStore(impl: SearchStore): THIS - @BindsInstance fun sdkUtil(impl: SdkUtil): THIS - @BindsInstance fun rxSchedulersProv(prov: RxSchedulersProvider): THIS -} - -internal fun > T.addCommonComponents( - app: DebugMainApplication, - wiseFy: WiseFyPublicApi, - permissionUtil: PermissionUtil, - addNetworkPresenter: AddNetworkMvp.Presenter, - addNetworkStore: AddNetworkStore, - removeNetworkPresenter: RemoveNetworkMvp.Presenter, - removeNetworkStore: RemoveNetworkStore, - miscPresenter: MiscMvp.Presenter, - searchPresenter: SearchMvp.Presenter, - searchStore: SearchStore, - sdkUtil: SdkUtil, - rxSchedulersProvider: RxSchedulersProvider = TestRxSchedulersProvider() -): T = apply { - application(app) - context(app) - wiseFy(wiseFy) - permissionUtil(permissionUtil) - addNetworkPresenter(addNetworkPresenter) - addNetworkStore(addNetworkStore) - removeNetworkPresenter(removeNetworkPresenter) - removeNetworkStore(removeNetworkStore) - miscPresenter(miscPresenter) - searchPresenter(searchPresenter) - searchStore(searchStore) - sdkUtil(sdkUtil) - rxSchedulersProv(rxSchedulersProvider) -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestRxModule.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestRxModule.kt deleted file mode 100644 index 73444fab..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestRxModule.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.isupatches.wisefysample.internal.di - -import com.isupatches.wisefysample.TestRxSchedulersProvider -import com.isupatches.wisefysample.internal.util.RxSchedulersProvider -import dagger.Module -import dagger.Provides - -@Suppress("unused") -@Module object TestRxModule { - @Provides @JvmStatic fun rxSchedulersProvider(): RxSchedulersProvider = TestRxSchedulersProvider() -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestScreenBindingsModule.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestScreenBindingsModule.kt deleted file mode 100644 index 0137fdd6..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/di/TestScreenBindingsModule.kt +++ /dev/null @@ -1,20 +0,0 @@ -package com.isupatches.wisefysample.internal.di - -import com.isupatches.wisefysample.ui.add.AddNetworkFragment -import com.isupatches.wisefysample.ui.main.MainActivity -import com.isupatches.wisefysample.ui.main.MainFragment -import com.isupatches.wisefysample.ui.misc.MiscFragment -import com.isupatches.wisefysample.ui.remove.RemoveNetworkFragment -import com.isupatches.wisefysample.ui.search.SearchFragment -import dagger.Module -import dagger.android.ContributesAndroidInjector - -@Suppress("unused") -@Module internal interface TestScreenBindingsModule { - @ContributesAndroidInjector fun mainActivity(): MainActivity - @ContributesAndroidInjector fun addNetworkFragment(): AddNetworkFragment - @ContributesAndroidInjector fun removeNetworkFragment(): RemoveNetworkFragment - @ContributesAndroidInjector fun mainFragment(): MainFragment - @ContributesAndroidInjector fun miscFragment(): MiscFragment - @ContributesAndroidInjector fun searchFragment(): SearchFragment -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/ActivityTestRule.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/ActivityTestRule.kt deleted file mode 100644 index 33baf5f7..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/ActivityTestRule.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.isupatches.wisefysample.internal.espresso - -import androidx.annotation.StringRes -import androidx.test.rule.ActivityTestRule - -fun ActivityTestRule<*>.getString(@StringRes stringRes: Int): String = activity.getString(stringRes) - -fun ActivityTestRule<*>.getString( - @StringRes stringRes: Int, - varargs: Any -): String = activity.getString(stringRes, varargs) diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/SetProgress.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/SetProgress.kt deleted file mode 100644 index c16cbbfd..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/SetProgress.kt +++ /dev/null @@ -1,26 +0,0 @@ -package com.isupatches.wisefysample.internal.espresso - -import android.view.View -import android.widget.SeekBar -import androidx.test.espresso.UiController -import androidx.test.espresso.ViewAction -import androidx.test.espresso.matcher.ViewMatchers -import org.hamcrest.Matcher - -fun setProgress(progress: Int): ViewAction { - return object : ViewAction { - - override fun perform(uiController: UiController, view: View) { - val seekBar = view as SeekBar - seekBar.progress = progress - } - - override fun getDescription(): String { - return "Set progress value on a SeekBar" - } - - override fun getConstraints(): Matcher { - return ViewMatchers.isAssignableFrom(SeekBar::class.java) - } - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/ViewInteractions.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/ViewInteractions.kt deleted file mode 100644 index fa1b2112..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/ViewInteractions.kt +++ /dev/null @@ -1,41 +0,0 @@ -package com.isupatches.wisefysample.internal.espresso - -import androidx.test.espresso.ViewInteraction -import androidx.test.espresso.action.ViewActions.click -import androidx.test.espresso.action.ViewActions.replaceText -import androidx.test.espresso.action.ViewActions.scrollTo -import androidx.test.espresso.assertion.ViewAssertions.matches -import androidx.test.espresso.matcher.ViewMatchers -import androidx.test.espresso.matcher.ViewMatchers.isChecked -import androidx.test.espresso.matcher.ViewMatchers.isDisplayed -import androidx.test.espresso.matcher.ViewMatchers.isNotChecked -import androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility - -fun ViewInteraction.checkIsDisplayed(): ViewInteraction = - check(matches(isDisplayed())) - -fun ViewInteraction.performScrollToAndCheckIsDisplayed(): ViewInteraction = perform(scrollTo()) - .check(matches(isDisplayed())) - -fun ViewInteraction.checkIsVisible(): ViewInteraction = - check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))) - -fun ViewInteraction.checkIsInvisible(): ViewInteraction = - check(matches(withEffectiveVisibility(ViewMatchers.Visibility.INVISIBLE))) - -fun ViewInteraction.checkIsChecked(): ViewInteraction = - check(matches(isChecked())) - -fun ViewInteraction.checkIsNotChecked(): ViewInteraction = - check(matches(isNotChecked())) - -fun ViewInteraction.performClick(): ViewInteraction = checkIsDisplayed() - .perform(click()) - -fun ViewInteraction.performScrollToAndClick(): ViewInteraction = perform(scrollTo()) - .checkIsDisplayed() - .perform(click()) - -fun ViewInteraction.performScrollToAndReplaceText(text: String): ViewInteraction = perform(scrollTo()) - .checkIsDisplayed() - .perform(replaceText(text)) diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemoryAddNetworkStore.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemoryAddNetworkStore.kt deleted file mode 100644 index 4a9c0d7c..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemoryAddNetworkStore.kt +++ /dev/null @@ -1,43 +0,0 @@ -package com.isupatches.wisefysample.internal.preferences - -import com.isupatches.wisefysample.internal.models.NetworkType - -internal class InMemoryAddNetworkStore : AddNetworkStore { - - private var networkType: NetworkType? = null - private var lastUsedNetworkName: String = "" - private var lastUsedNetworkPassword: String = "" - - override fun clear() { - networkType = null - lastUsedNetworkName = "" - lastUsedNetworkPassword = "" - } - - /* - * Network Type - */ - - override fun getNetworkType(): NetworkType = networkType ?: NetworkType.WPA2 - override fun setNetworkType(networkType: NetworkType) { - this.networkType = networkType - } - - /* - * Last Used Network Name - */ - - override fun getLastUsedNetworkName() = lastUsedNetworkName - override fun setLastUsedNetworkName(lastUsedNetworkName: String) { - this.lastUsedNetworkName = lastUsedNetworkName - } - - /* - * Last Used Network Password - */ - - override fun getLastUsedNetworkPassword() = lastUsedNetworkPassword - override fun setLastUsedNetworkPassword(lastUsedNetworkPassword: String) { - this.lastUsedNetworkPassword = lastUsedNetworkPassword - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemoryRemoveNetworkStore.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemoryRemoveNetworkStore.kt deleted file mode 100644 index 6398e62e..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemoryRemoveNetworkStore.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.isupatches.wisefysample.internal.preferences - -internal class InMemoryRemoveNetworkStore : RemoveNetworkStore { - - private var lastUsedRegex: String = "" - - override fun clear() { - lastUsedRegex = "" - } - - override fun getLastUsedRegex() = lastUsedRegex - override fun setLastUsedRegex(lastUsedRegex: String) { - this.lastUsedRegex = lastUsedRegex - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemorySearchStore.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemorySearchStore.kt deleted file mode 100644 index 87ec95ce..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/preferences/InMemorySearchStore.kt +++ /dev/null @@ -1,65 +0,0 @@ -package com.isupatches.wisefysample.internal.preferences - -import com.isupatches.wisefysample.internal.models.SearchType - -internal class InMemorySearchStore : SearchStore { - - private var lastUsedRegex: String = "" - private var searchType: SearchType = SearchType.ACCESS_POINT - private var returnFullList: Boolean = true - private var filterDuplicates: Boolean = true - private var timeout: Int = 1 - - override fun clear() { - lastUsedRegex = "" - searchType = SearchType.ACCESS_POINT - returnFullList = true - filterDuplicates = true - timeout = 1 - } - - /* - * Last Used Regex - */ - - override fun getLastUsedRegex() = lastUsedRegex - override fun setLastUsedRegex(lastUsedRegex: String) { - this.lastUsedRegex = lastUsedRegex - } - - /* - * Search Type - */ - - override fun getSearchType() = searchType - override fun setSearchType(searchType: SearchType) { - this.searchType = searchType - } - - /* - * Return Full List - */ - - override fun shouldReturnFullList() = returnFullList - override fun setReturnFullList(returnFullList: Boolean) { - this.returnFullList = returnFullList - } - - /* - * Filter Duplicates - */ - - override fun shouldFilterDuplicates() = filterDuplicates - override fun setFilterDuplicates(filterDuplicates: Boolean) { - this.filterDuplicates = filterDuplicates - } - - /* - * Timeout - */ - - override fun getTimeout() = timeout - override fun setTimeout(timeout: Int) { - this.timeout = timeout - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/add/AddNetworkFragmentTest.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/add/AddNetworkFragmentTest.kt deleted file mode 100644 index eb1ca20b..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/add/AddNetworkFragmentTest.kt +++ /dev/null @@ -1,559 +0,0 @@ -package com.isupatches.wisefysample.ui.add - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.content.pm.PackageManager -import androidx.test.espresso.intent.rule.IntentsTestRule -import androidx.test.rule.GrantPermissionRule -import com.isupatches.wisefysample.RANDO_PERMISSION_REQUEST_CODE -import com.isupatches.wisefysample.internal.base.AbstractEspressoTestClass -import com.isupatches.wisefysample.ui.main.MainActivity -import org.junit.Before -import org.junit.Rule -import org.junit.Test - -internal class AddNetworkFragmentTest : AbstractEspressoTestClass() { - - @get:Rule - val activityTestRule = IntentsTestRule(MainActivity::class.java, false, false) - - @get:Rule - val grantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(ACCESS_FINE_LOCATION) - - private lateinit var addNetworkRobot: AddNetworkRobot - - @Before - override fun setUp() { - super.setUp() - addNetworkRobot = AddNetworkRobot( - activityTestRule, - wiseFy, - addNetworkStore, - permissionUtil - ) - } - - @Test - fun networkTypeSelector() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // Then - checkOpenNetwork() - verifyOpenNetworkIsChecked() - verifyOnlyNetworkNameIsVisible() - - // And - checkWEPNetwork() - verifyWEPNetworkIsChecked() - verifyNetworkNameAndPasswordAreBothVisible() - - // And - checkWPA2Network() - verifyWPA2NetworkIsChecked() - verifyNetworkNameAndPasswordAreBothVisible() - - // And - checkOpenNetwork() - verifyOpenNetworkIsChecked() - verifyOnlyNetworkNameIsVisible() - } - } - - @Test - fun loadsOpenNetworkFromStore() { - with(addNetworkRobot) { - // Given - withOpenNetworkInStore() - - // When - launchAddNetworkScreen() - - // Then - verifyOpenNetworkIsChecked() - verifyNetworkNameIsPopulated() - } - } - - @Test - fun loadsWEPNetworkFromStore() { - with(addNetworkRobot) { - // Given - withWEPNetworkInStore() - - // When - launchAddNetworkScreen() - - // Then - verifyWEPNetworkIsChecked() - verifyNetworkNameAndPasswordIsPopulated() - } - } - - @Test - fun loadsWPA2NetworkFromStore() { - with(addNetworkRobot) { - // Given - withWPA2NetworkInStore() - - // When - launchAddNetworkScreen() - - // Then - verifyWPA2NetworkIsChecked() - verifyNetworkNameAndPasswordIsPopulated() - } - } - - @Test - fun addOpenNetwork_permissionErrorDialog() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggered( - AddNetworkFragment.WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun addOpenNetwork_permissionError_once() { - with(addNetworkRobot) { - // Given - withSuccessAddingOpenNetwork() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchAddNetworkScreen() - - // When - addOpenNetwork() - - // Then - verifyTriedToAddOpenNetwork() - verifyNewNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addOpenNetwork_permissionError_emptyList() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - AddNetworkFragment.WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun addOpenNetwork_permissionError_permissionDenied() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggered( - AddNetworkFragment.WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun addOpenNetwork_success_afterPermissionGranted() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessAddingOpenNetwork() - launchAddNetworkScreen() - enterOpenNetworkDetails() - - // When - permissionCallbackTriggered( - AddNetworkFragment.WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifyTriedToAddOpenNetwork() - verifyNewNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addOpenNetwork_success() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessAddingOpenNetwork() - launchAddNetworkScreen() - - // When - addOpenNetwork() - - // Then - verifyTriedToAddOpenNetwork() - verifyNewNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addOpenNetwork_wifiManagerFailure() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWifiManagerFailureAddingOpenNetwork() - launchAddNetworkScreen() - - // When - addOpenNetwork() - - // Then - verifyTriedToAddOpenNetwork() - verifyFailureAddingNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addOpenNetwork_wiseFyFailure() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureAddingOpenNetwork() - launchAddNetworkScreen() - - // When - addOpenNetwork() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToAddOpenNetwork() - - // And - dismissErrorDialog() - } - } - - @Test - fun addWEPNetwork_permissionErrorDialog() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggered( - AddNetworkFragment.WISEFY_ADD_WEP_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun addWEPNetwork_permissionError_once() { - with(addNetworkRobot) { - // Given - withSuccessAddingWEPNetwork() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchAddNetworkScreen() - - // When - addWEPNetwork() - - // Then - verifyTriedToAddWEPNetwork() - verifyNewNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addWEPNetwork_permissionError_emptyList() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - AddNetworkFragment.WISEFY_ADD_WEP_NETWORK_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun addWEPNetwork_permissionError_permissionDenied() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggered( - AddNetworkFragment.WISEFY_ADD_WEP_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun addWEPNetwork_success_afterPermissionGranted() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessAddingWEPNetwork() - launchAddNetworkScreen() - enterWEPNetworkDetails() - - // When - permissionCallbackTriggered( - AddNetworkFragment.WISEFY_ADD_WEP_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifyTriedToAddWEPNetwork() - verifyNewNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addWEPNetwork_success() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessAddingWEPNetwork() - launchAddNetworkScreen() - - // When - addWEPNetwork() - - // Then - verifyTriedToAddWEPNetwork() - verifyNewNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addWEPNetwork_wifiManagerFailure() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWifiManagerFailureAddingWEPNetwork() - launchAddNetworkScreen() - - // When - addWEPNetwork() - - // Then - verifyTriedToAddWEPNetwork() - verifyFailureAddingNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addWEPNetwork_wiseFyFailure() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureAddingWEPNetwork() - launchAddNetworkScreen() - - // When - addWEPNetwork() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToAddWEPNetwork() - - // And - dismissErrorDialog() - } - } - - @Test - fun addWPA2Network_permissionErrorDialog() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggered( - AddNetworkFragment.WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun addWPA2Network_permissionError_once() { - with(addNetworkRobot) { - // Given - withSuccessAddingWPA2Network() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchAddNetworkScreen() - - // When - addWPA2Network() - - // Then - verifyTriedToAddWPA2Network() - verifyNewNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addWPA2Network_permissionError_emptyList() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - AddNetworkFragment.WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun addWPA2Network_permissionError_permissionDenied() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggered( - AddNetworkFragment.WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun addWPA2Network_success_afterPermissionGranted() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessAddingWPA2Network() - launchAddNetworkScreen() - enterWPA2NetworkDetails() - - // When - permissionCallbackTriggered( - AddNetworkFragment.WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifyTriedToAddWPA2Network() - verifyNewNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addWPA2Network_success() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessAddingWPA2Network() - launchAddNetworkScreen() - - // When - addWPA2Network() - - // Then - verifyTriedToAddWPA2Network() - dismissResultsDialog() - } - } - - @Test - fun addWPA2Network_wifiManagerFailure() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWifiManagerFailureAddingWPA2Network() - launchAddNetworkScreen() - - // When - addWPA2Network() - - // Then - verifyTriedToAddWPA2Network() - verifyFailureAddingNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun addWPA2Network_wiseFyFailure() { - with(addNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureAddingWPA2Network() - launchAddNetworkScreen() - - // When - addWPA2Network() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToAddWPA2Network() - - // And - dismissErrorDialog() - } - } - - @Test - fun ridiculousPermissionRequested() { - with(addNetworkRobot) { - // Given - launchAddNetworkScreen() - - // When - permissionCallbackTriggeredWithEmptyArray(RANDO_PERMISSION_REQUEST_CODE) - - // Then - verifyPermissionErrorShown() - dismissErrorDialog() - } - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/add/AddNetworkRobot.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/add/AddNetworkRobot.kt deleted file mode 100644 index 16de8e0e..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/add/AddNetworkRobot.kt +++ /dev/null @@ -1,333 +0,0 @@ -package com.isupatches.wisefysample.ui.add - -import android.content.Intent -import android.net.wifi.WifiConfiguration -import androidx.test.espresso.Espresso.onView -import androidx.test.espresso.matcher.ViewMatchers.withId -import androidx.test.espresso.matcher.ViewMatchers.withText -import androidx.test.rule.ActivityTestRule -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefysample.BAD_WIFI_MANAGER_RETURN -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.TEST_PASSWORD_1 -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.internal.base.BaseRobot -import com.isupatches.wisefysample.internal.espresso.checkIsChecked -import com.isupatches.wisefysample.internal.espresso.checkIsDisplayed -import com.isupatches.wisefysample.internal.espresso.checkIsInvisible -import com.isupatches.wisefysample.internal.espresso.checkIsVisible -import com.isupatches.wisefysample.internal.espresso.getString -import com.isupatches.wisefysample.internal.espresso.performClick -import com.isupatches.wisefysample.internal.espresso.performScrollToAndCheckIsDisplayed -import com.isupatches.wisefysample.internal.espresso.performScrollToAndClick -import com.isupatches.wisefysample.internal.espresso.performScrollToAndReplaceText -import com.isupatches.wisefysample.internal.models.NetworkType -import com.isupatches.wisefysample.internal.preferences.AddNetworkStore -import com.isupatches.wisefysample.internal.util.PermissionUtil -import com.isupatches.wisefysample.ui.main.MainActivity -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.doAnswer -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.timeout -import com.nhaarman.mockitokotlin2.verify -import com.nhaarman.mockitokotlin2.whenever -import org.hamcrest.CoreMatchers.allOf -import org.hamcrest.CoreMatchers.containsString - -internal class AddNetworkRobot( - private val activityTestRule: ActivityTestRule, - private val wiseFyPublicApi: WiseFyPublicApi, - private val addNetworkStore: AddNetworkStore, - permissionUtil: PermissionUtil -) : BaseRobot(activityTestRule, permissionUtil) { - - companion object { - private const val NETWORK_ID = 1 - private val SAVED_NETWORK = mock() - } - - /* - * Preconditions - */ - - fun withSuccessAddingOpenNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as AddNetworkCallbacks - callback.networkAdded(NETWORK_ID, SAVED_NETWORK) - }.whenever(wiseFyPublicApi).addOpenNetwork(eq(TEST_SSID_1), any()) - } - - fun withWifiManagerFailureAddingOpenNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as AddNetworkCallbacks - callback.failureAddingNetwork(BAD_WIFI_MANAGER_RETURN) - }.whenever(wiseFyPublicApi).addOpenNetwork(eq(TEST_SSID_1), any()) - } - - fun withWiseFyFailureAddingOpenNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as AddNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).addOpenNetwork(eq(TEST_SSID_1), any()) - } - - @Suppress("deprecation") - fun withSuccessAddingWEPNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.networkAdded(NETWORK_ID, SAVED_NETWORK) - }.whenever(wiseFyPublicApi).addWEPNetwork( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - @Suppress("deprecation") - fun withWifiManagerFailureAddingWEPNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.failureAddingNetwork(BAD_WIFI_MANAGER_RETURN) - }.whenever(wiseFyPublicApi).addWEPNetwork( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - @Suppress("deprecation") - fun withWiseFyFailureAddingWEPNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).addWEPNetwork( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - fun withSuccessAddingWPA2Network() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.networkAdded(NETWORK_ID, SAVED_NETWORK) - }.whenever(wiseFyPublicApi).addWPA2Network( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - fun withWifiManagerFailureAddingWPA2Network() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.failureAddingNetwork(BAD_WIFI_MANAGER_RETURN) - }.whenever(wiseFyPublicApi).addWPA2Network( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - fun withWiseFyFailureAddingWPA2Network() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).addWPA2Network( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - fun withOpenNetworkInStore() { - with(addNetworkStore) { - setNetworkType(NetworkType.OPEN) - setLastUsedNetworkName(TEST_SSID_1) - } - } - - fun withWEPNetworkInStore() { - with(addNetworkStore) { - setNetworkType(NetworkType.WEP) - setLastUsedNetworkName(TEST_SSID_1) - setLastUsedNetworkPassword(TEST_PASSWORD_1) - } - } - - fun withWPA2NetworkInStore() { - with(addNetworkStore) { - setNetworkType(NetworkType.WPA2) - setLastUsedNetworkName(TEST_SSID_1) - setLastUsedNetworkPassword(TEST_PASSWORD_1) - } - } - - /* - * Actions - */ - - fun enterOpenNetworkDetails() { - onView(withId(R.id.openNetworkRdb)).performScrollToAndClick() - onView(withId(R.id.networkNameEdt)).performScrollToAndReplaceText(TEST_SSID_1) - } - - fun enterWEPNetworkDetails() { - onView(withId(R.id.wepNetworkRdb)).performScrollToAndClick() - enterNetworkNameAndPassword() - } - - fun enterWPA2NetworkDetails() { - onView(withId(R.id.wpa2NetworkRdb)).performScrollToAndClick() - enterNetworkNameAndPassword() - } - - fun launchAddNetworkScreen() { - activityTestRule.launchActivity(Intent()) - onView(withId(R.id.menu_add)).performClick() - } - - fun addOpenNetwork() { - onView(withId(R.id.openNetworkRdb)).performScrollToAndClick() - onView(withId(R.id.networkNameEdt)).performScrollToAndReplaceText(TEST_SSID_1) - onView((withId(R.id.addNetworkBtn))).performScrollToAndClick() - } - - fun addWEPNetwork() { - onView(withId(R.id.wepNetworkRdb)).performScrollToAndClick() - enterNetworkNameAndPassword() - onView((withId(R.id.addNetworkBtn))).performScrollToAndClick() - } - - fun addWPA2Network() { - onView(withId(R.id.wpa2NetworkRdb)).performScrollToAndClick() - enterNetworkNameAndPassword() - onView((withId(R.id.addNetworkBtn))).performScrollToAndClick() - } - - fun checkOpenNetwork() { - onView(withId(R.id.openNetworkRdb)).performScrollToAndClick() - } - - fun checkWEPNetwork() { - onView(withId(R.id.wepNetworkRdb)).performScrollToAndClick() - } - - fun checkWPA2Network() { - onView(withId(R.id.wpa2NetworkRdb)).performScrollToAndClick() - } - - /* - * Permission Helpers - */ - - fun permissionCallbackTriggered(requestCode: Int, permissionResult: Int) { - val activity = activityTestRule.activity - val fragment: AddNetworkFragment? = activity - .supportFragmentManager - .findFragmentByTag( - AddNetworkFragment.TAG - ) as? AddNetworkFragment - - activity.runOnUiThread { - fragment?.onRequestPermissionsResult( - requestCode, - emptyArray(), - intArrayOf(permissionResult) - ) - } - } - - fun permissionCallbackTriggeredWithEmptyArray(requestCode: Int) { - val activity = activityTestRule.activity - val fragment: AddNetworkFragment? = activity - .supportFragmentManager - .findFragmentByTag( - AddNetworkFragment.TAG - ) as? AddNetworkFragment - - activity.runOnUiThread { - fragment?.onRequestPermissionsResult( - requestCode, - emptyArray(), - intArrayOf() - ) - } - } - - /* - * Verification - */ - - fun verifyNewNetworkIsDisplayed() { - onView(withText(containsString("Network added"))).checkIsDisplayed() - } - - fun verifyFailureAddingNetworkIsDisplayed() { - onView(withText( - activityTestRule.getString(R.string.failure_adding_network, -1) - )).checkIsDisplayed() - } - - fun verifyOpenNetworkIsChecked() { - onView(withId(R.id.openNetworkRdb)).checkIsChecked() - } - - fun verifyWEPNetworkIsChecked() { - onView(withId(R.id.wepNetworkRdb)).checkIsChecked() - } - - fun verifyWPA2NetworkIsChecked() { - onView(withId(R.id.wpa2NetworkRdb)).checkIsChecked() - } - - fun verifyOnlyNetworkNameIsVisible() { - onView(withId(R.id.networkNameEdt)).checkIsVisible() - onView(withId(R.id.networkPasswordEdt)).checkIsInvisible() - } - - fun verifyNetworkNameAndPasswordAreBothVisible() { - onView(withId(R.id.networkNameEdt)).checkIsVisible() - onView(withId(R.id.networkPasswordEdt)).checkIsVisible() - } - - fun verifyNetworkNameAndPasswordIsPopulated() { - onView(allOf(withId(R.id.networkNameEdt), withText(TEST_SSID_1))).performScrollToAndCheckIsDisplayed() - onView( - allOf(withId(R.id.networkPasswordEdt), withText(TEST_PASSWORD_1)) - ).performScrollToAndCheckIsDisplayed() - } - - fun verifyTriedToAddOpenNetwork(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).addOpenNetwork(eq(TEST_SSID_1), any()) - } - - @Suppress("deprecation") - fun verifyTriedToAddWEPNetwork(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).addWEPNetwork( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - fun verifyTriedToAddWPA2Network(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).addWPA2Network( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - /* - * Form Helpers - */ - - private fun enterNetworkNameAndPassword() { - onView(withId(R.id.networkNameEdt)).performScrollToAndReplaceText(TEST_SSID_1) - onView(withId(R.id.networkPasswordEdt)).performScrollToAndReplaceText(TEST_PASSWORD_1) - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/main/MainFragmentTest.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/main/MainFragmentTest.kt deleted file mode 100644 index feb04e66..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/main/MainFragmentTest.kt +++ /dev/null @@ -1,106 +0,0 @@ -package com.isupatches.wisefysample.ui.main - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import androidx.test.espresso.intent.rule.IntentsTestRule -import androidx.test.rule.GrantPermissionRule -import com.isupatches.wisefysample.internal.base.AbstractEspressoTestClass -import org.junit.Before -import org.junit.Rule -import org.junit.Test - -internal class MainFragmentTest : AbstractEspressoTestClass() { - - @get:Rule - val activityTestRule = IntentsTestRule(MainActivity::class.java, false, false) - - @get:Rule - val grantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(ACCESS_FINE_LOCATION) - - private lateinit var mainRobot: MainRobot - - @Before - override fun setUp() { - super.setUp() - mainRobot = MainRobot(activityTestRule, permissionUtil) - } - - @Test - fun verifyOpensAddNetwork() { - with(mainRobot) { - // Given - launchActivity() - - // When - clickAddNetwork() - - // Then - verifyAddNetworkWasOpened() - - // And When - clickHome() - - // Then - verifyHomeWasOpened() - } - } - - @Test - fun verifyOpensRemoveNetwork() { - with(mainRobot) { - // Given - launchActivity() - - // When - clickRemoveNetwork() - - // Then - verifyRemoveNetworkWasOpened() - - // And When - clickHome() - - // Then - verifyHomeWasOpened() - } - } - - @Test - fun verifyOpensMisc() { - with(mainRobot) { - // Given - launchActivity() - - // When - clickMisc() - - // Then - verifyMiscWasOpened() - - // And When - clickHome() - - // Then - verifyHomeWasOpened() - } - } - - @Test - fun verifyOpensSearch() { - with(mainRobot) { - // Given - launchActivity() - - // When - clickSearch() - - // Then - verifySearchWasOpened() - - // And When - clickHome() - - // Then - verifyHomeWasOpened() - } - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/main/MainRobot.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/main/MainRobot.kt deleted file mode 100644 index 9bcf00d3..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/main/MainRobot.kt +++ /dev/null @@ -1,69 +0,0 @@ -package com.isupatches.wisefysample.ui.main - -import android.content.Intent -import androidx.test.espresso.Espresso.onView -import androidx.test.espresso.matcher.ViewMatchers.withId -import androidx.test.rule.ActivityTestRule -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.base.BaseRobot -import com.isupatches.wisefysample.internal.espresso.performClick -import com.isupatches.wisefysample.internal.espresso.performScrollToAndCheckIsDisplayed -import com.isupatches.wisefysample.internal.util.PermissionUtil - -internal class MainRobot( - private val activityTestRule: ActivityTestRule, - permissionUtil: PermissionUtil -) : BaseRobot(activityTestRule, permissionUtil) { - - /* - * Actions - */ - - fun clickAddNetwork() { - onView(withId(R.id.menu_add)).performClick() - } - - fun clickRemoveNetwork() { - onView(withId(R.id.menu_remove)).performClick() - } - - fun clickHome() { - onView(withId(R.id.menu_home)).performClick() - } - - fun clickMisc() { - onView(withId(R.id.menu_misc)).performClick() - } - - fun clickSearch() { - onView(withId(R.id.menu_search)).performClick() - } - - fun launchActivity() { - activityTestRule.launchActivity(Intent()) - } - - /* - * Verification - */ - - fun verifyAddNetworkWasOpened() { - onView(withId(R.id.addNetworkBtn)).performScrollToAndCheckIsDisplayed() - } - - fun verifyRemoveNetworkWasOpened() { - onView(withId(R.id.removeNetworkBtn)).performScrollToAndCheckIsDisplayed() - } - - fun verifyHomeWasOpened() { - onView(withId(R.id.wisefyImg)).performScrollToAndCheckIsDisplayed() - } - - fun verifyMiscWasOpened() { - onView(withId(R.id.disableWifiBtn)).performScrollToAndCheckIsDisplayed() - } - - fun verifySearchWasOpened() { - onView(withId(R.id.searchBtn)).performScrollToAndCheckIsDisplayed() - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/misc/MiscFragmentTest.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/misc/MiscFragmentTest.kt deleted file mode 100644 index 4abbd5b5..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/misc/MiscFragmentTest.kt +++ /dev/null @@ -1,855 +0,0 @@ -package com.isupatches.wisefysample.ui.misc - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.content.pm.PackageManager -import androidx.test.espresso.intent.rule.IntentsTestRule -import androidx.test.rule.GrantPermissionRule -import com.isupatches.wisefysample.RANDO_PERMISSION_REQUEST_CODE -import com.isupatches.wisefysample.internal.base.AbstractEspressoTestClass -import com.isupatches.wisefysample.ui.main.MainActivity -import org.junit.Before -import org.junit.Rule -import org.junit.Test - -internal class MiscFragmentTest : AbstractEspressoTestClass() { - - @get:Rule - val activityTestRule = IntentsTestRule(MainActivity::class.java, false, false) - - @get:Rule - val grantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(ACCESS_FINE_LOCATION) - - private lateinit var miscRobot: MiscRobot - - @Before - override fun setUp() { - super.setUp() - miscRobot = MiscRobot(activityTestRule, wiseFy, sdkUtil, permissionUtil) - } - - @Test - fun disableWifi_success() { - with(miscRobot) { - // Given - withSuccessDisablingWifi() - launchMiscScreen() - - // When - disableWifi() - - // Then - verifyTriedToDisableWifi() - verifyWifiDisabledIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun disableWifi_failureDisablingWifi() { - with(miscRobot) { - // Given - withFailureDisablingWifi() - launchMiscScreen() - - // When - disableWifi() - - // Then - verifyTriedToDisableWifi() - verifyFailureDisablingWifiIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun disableWifi_wiseFyFailure() { - with(miscRobot) { - // Given - withWiseFyFailureDisablingWifi() - launchMiscScreen() - - // When - disableWifi() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToDisableWifi() - - // And - dismissErrorDialog() - } - } - - @Test - fun enableWifi_success() { - with(miscRobot) { - // Given - withSuccessEnablingWifi() - launchMiscScreen() - - // When - enableWifi() - - // Then - verifyTriedToEnableWifi() - verifyWifiEnabledIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun enableWifi_failureEnablingWifi() { - with(miscRobot) { - // Given - withFailureEnablingWifi() - launchMiscScreen() - - // When - enableWifi() - - // Then - verifyTriedToEnableWifi() - verifyFailureEnablingWifiIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun enableWifi_wiseFyFailure() { - with(miscRobot) { - // Given - withWiseFyFailureEnablingWifi() - launchMiscScreen() - - // When - enableWifi() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToEnableWifi() - - // And - dismissErrorDialog() - } - } - - @Test - fun getCurrentNetwork_success() { - with(miscRobot) { - // Given - withSuccessGettingCurrentNetwork() - launchMiscScreen() - - // When - getCurrentNetwork() - - // Then - verifyTriedToGetCurrentNetwork() - verifyCurrentNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getCurrentNetwork_noCurrentNetwork() { - with(miscRobot) { - // Given - withNoCurrentNetwork() - launchMiscScreen() - - // When - getCurrentNetwork() - - // Then - verifyTriedToGetCurrentNetwork() - verifyNoCurrentNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getCurrentNetwork_wiseFyFailure() { - with(miscRobot) { - // Given - withWiseFyFailureGettingCurrentNetwork() - launchMiscScreen() - - // When - getCurrentNetwork() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToGetCurrentNetwork() - - // And - dismissErrorDialog() - } - } - - @Test - fun getCurrentNetworkInfo_success() { - with(miscRobot) { - // Given - withSuccessGettingCurrentNetworkInfo() - launchMiscScreen() - - // When - getCurrentNetworkInfo() - - // Then - verifyTriedToGetCurrentNetworkInfo() - verifyCurrentNetworkInfoIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getCurrentNetworkInfo_noCurrentNetworkInfo() { - with(miscRobot) { - // Given - withNoCurrentNetworkInfo() - launchMiscScreen() - - // When - getCurrentNetworkInfo() - - // Then - verifyTriedToGetCurrentNetworkInfo() - verifyNoCurrentNetworkInfoIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getCurrentNetworkInfo_wiseFyFailure() { - with(miscRobot) { - // Given - withWiseFyFailureGettingCurrentNetworkInfo() - launchMiscScreen() - - // When - getCurrentNetworkInfo() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToGetCurrentNetworkInfo() - - // And - dismissErrorDialog() - } - } - - @Test - fun getFrequency_belowLollipop() { - with(miscRobot) { - // Given - withDeviceBelowLollipop() - withPermission(ACCESS_FINE_LOCATION) - launchMiscScreen() - - // When - getFrequency() - - // Then - verifyFrequencyLollipopNoticeIsDisplayed() - dismissErrorDialog() - } - } - - @Test - fun getFrequency_permissionErrorDialog() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_FREQUENCY_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getFrequency_permissionError_once_accessFineLocation() { - with(miscRobot) { - // Given - withDeviceLollipopOrHigher() - withSuccessGettingFrequency() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchMiscScreen() - - // When - getFrequency() - - // Then - verifyTriedToGetFrequency() - verifyFrequencyIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getFrequency_permissionError_emptyList() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - MiscFragment.WISEFY_GET_FREQUENCY_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getFrequency_permissionError_permissionDenied() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_FREQUENCY_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getFrequency_success_afterPermissionGranted() { - with(miscRobot) { - // Given - withDeviceLollipopOrHigher() - withPermission(ACCESS_FINE_LOCATION) - withSuccessGettingFrequency() - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_FREQUENCY_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifyTriedToGetFrequency() - dismissResultsDialog() - } - } - - @Test - fun getFrequency_success() { - with(miscRobot) { - // Given - withDeviceLollipopOrHigher() - withPermission(ACCESS_FINE_LOCATION) - withSuccessGettingFrequency() - launchMiscScreen() - - // When - getFrequency() - - // Then - verifyTriedToGetFrequency() - verifyFrequencyIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getFrequency_failureGettingFrequency() { - with(miscRobot) { - // Given - withDeviceLollipopOrHigher() - withPermission(ACCESS_FINE_LOCATION) - withFailureGettingFrequency() - launchMiscScreen() - - // When - getFrequency() - - // Then - verifyTriedToGetFrequency() - verifyFailureRetrievingFrequencyIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getFrequency_wiseFyFailure() { - with(miscRobot) { - // Given - withDeviceLollipopOrHigher() - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureGettingFrequency() - launchMiscScreen() - - // When - getFrequency() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToGetFrequency() - dismissResultsDialog() - } - } - - @Test - fun getIP_permissionErrorDialog() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_IP_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getIP_permissionError_once_accessFineLocation() { - with(miscRobot) { - // Given - withSuccessGettingIP() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchMiscScreen() - - // When - getIP() - - // Then - verifyTriedToGetIP() - verifyIPIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getIP_permissionError_emptyList() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - MiscFragment.WISEFY_GET_IP_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getIP_permissionError_permissionDenied() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_IP_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getIP_success_afterPermissionGranted() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessGettingIP() - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_IP_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifyTriedToGetIP() - verifyIPIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getIP_success() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessGettingIP() - launchMiscScreen() - - // When - getIP() - - // Then - verifyTriedToGetIP() - verifyIPIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getIP_failureGettingIp() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withFailureGettingIP() - launchMiscScreen() - - // When - getIP() - - // Then - verifyTriedToGetIP() - verifyFailureRetrievingIPIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getIP_wiseFyFailure() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureGettingIP() - launchMiscScreen() - - // When - getIP() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToGetIP() - - // And - dismissErrorDialog() - } - } - - @Test - fun getNearbyAccessPoints_permissionErrorDialog() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_NEARBY_ACCESS_POINTS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getNearbyAccessPoints_permissionError_once_accessFineLocation() { - with(miscRobot) { - // Given - withSuccessGettingNearbyAccessPoints() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchMiscScreen() - - // When - getNearbyAccessPoints() - - // Then - verifyTriedToGetNearbyAccessPoints() - verifyAccessPointsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getNearbyAccessPoints_permissionError_emptyList() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - MiscFragment.WISEFY_GET_NEARBY_ACCESS_POINTS_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getNearbyAccessPoints_permissionError_permissionDenied() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_NEARBY_ACCESS_POINTS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getNearbyAccessPoints_success_afterPermissionGranted() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessGettingNearbyAccessPoints() - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_NEARBY_ACCESS_POINTS_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifyTriedToGetNearbyAccessPoints() - verifyAccessPointsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getNearbyAccessPoints_success() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessGettingNearbyAccessPoints() - launchMiscScreen() - - // When - getNearbyAccessPoints() - - // Then - verifyTriedToGetNearbyAccessPoints() - verifyAccessPointsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getNearbyAccessPoints_noNearbyAccessPoints() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withNoNearbyAccessPoints() - launchMiscScreen() - - // When - getNearbyAccessPoints() - - // Then - verifyTriedToGetNearbyAccessPoints() - verifyNoAccessPointsFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getNearbyAccessPoints_wiseFyFailure() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureGettingNearbyAccessPoints() - launchMiscScreen() - - // When - getNearbyAccessPoints() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToGetNearbyAccessPoints() - - // And - dismissErrorDialog() - } - } - - @Test - fun getSavedNetworks_permissionErrorDialog() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_SAVED_NETWORKS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getSavedNetworks_permissionError_once() { - with(miscRobot) { - // Given - withSuccessGettingSavedNetworks() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchMiscScreen() - - // When - getSavedNetworks() - - // Then - verifyTriedToGetSavedNetworks() - verifySavedNetworksAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getSavedNetworks_permissionError_emptyList() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - MiscFragment.WISEFY_GET_SAVED_NETWORKS_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getSavedNetworks_permissionError_permissionDenied() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_SAVED_NETWORKS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun getSavedNetworks_success_afterPermissionGranted() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessGettingSavedNetworks() - launchMiscScreen() - - // When - permissionCallbackTriggered( - MiscFragment.WISEFY_GET_SAVED_NETWORKS_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifyTriedToGetSavedNetworks() - verifySavedNetworksAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getSavedNetworks_success() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessGettingSavedNetworks() - launchMiscScreen() - - // When - getSavedNetworks() - - // Then - verifyTriedToGetSavedNetworks() - verifySavedNetworksAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getSavedNetworks_noSavedNetworks() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withNoSavedNetworks() - launchMiscScreen() - - // When - getSavedNetworks() - - // Then - verifyTriedToGetSavedNetworks() - verifyNoSavedNetworksFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun getSavedNetworks_wiseFyFailure() { - with(miscRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureGettingSavedNetworks() - launchMiscScreen() - - // When - getSavedNetworks() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToGetSavedNetworks() - - // And - dismissErrorDialog() - } - } - - @Test - fun ridiculousPermissionRequested() { - with(miscRobot) { - // Given - launchMiscScreen() - - // When - permissionCallbackTriggeredWithEmptyArray(RANDO_PERMISSION_REQUEST_CODE) - - // Then - verifyPermissionErrorShown() - dismissErrorDialog() - } - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/misc/MiscRobot.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/misc/MiscRobot.kt deleted file mode 100644 index c7f5adb1..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/misc/MiscRobot.kt +++ /dev/null @@ -1,406 +0,0 @@ -package com.isupatches.wisefysample.ui.misc - -import android.content.Intent -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo -import androidx.test.espresso.Espresso.onView -import androidx.test.espresso.matcher.ViewMatchers.withId -import androidx.test.espresso.matcher.ViewMatchers.withText -import androidx.test.rule.ActivityTestRule -import com.isupatches.wisefy.WiseFy.Companion.MIN_FREQUENCY_5GHZ -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.TEST_IP -import com.isupatches.wisefysample.internal.base.BaseRobot -import com.isupatches.wisefysample.internal.espresso.checkIsDisplayed -import com.isupatches.wisefysample.internal.espresso.getString -import com.isupatches.wisefysample.internal.espresso.performClick -import com.isupatches.wisefysample.internal.espresso.performScrollToAndClick -import com.isupatches.wisefysample.internal.util.PermissionUtil -import com.isupatches.wisefysample.internal.util.SdkUtil -import com.isupatches.wisefysample.ui.main.MainActivity -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.doAnswer -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.given -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.timeout -import com.nhaarman.mockitokotlin2.verify -import com.nhaarman.mockitokotlin2.whenever -import org.hamcrest.CoreMatchers.containsString - -internal class MiscRobot( - private val activityTestRule: ActivityTestRule, - private val wiseFyPublicApi: WiseFyPublicApi, - private val sdkUtil: SdkUtil, - permissionUtil: PermissionUtil -) : BaseRobot(activityTestRule, permissionUtil) { - - companion object { - private val CURRENT_NETWORK = mock() - private val CURRENT_NETWORK_INFO = mock() - - private val ACCESS_POINT = mock() - private val SAVED_NETWORK = mock() - } - - /* - * Preconditions - */ - - fun withSuccessDisablingWifi() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as DisableWifiCallbacks - callback.wifiDisabled() - }.whenever(wiseFyPublicApi).disableWifi(any()) - } - - fun withFailureDisablingWifi() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as DisableWifiCallbacks - callback.failureDisablingWifi() - }.whenever(wiseFyPublicApi).disableWifi(any()) - } - - fun withWiseFyFailureDisablingWifi() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as DisableWifiCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).disableWifi(any()) - } - - fun withSuccessEnablingWifi() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as EnableWifiCallbacks - callback.wifiEnabled() - }.whenever(wiseFyPublicApi).enableWifi(any()) - } - - fun withFailureEnablingWifi() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as EnableWifiCallbacks - callback.failureEnablingWifi() - }.whenever(wiseFyPublicApi).enableWifi(any()) - } - - fun withWiseFyFailureEnablingWifi() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as EnableWifiCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).enableWifi(any()) - } - - fun withSuccessGettingCurrentNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkCallbacks - callback.retrievedCurrentNetwork(CURRENT_NETWORK) - }.whenever(wiseFyPublicApi).getCurrentNetwork(any()) - } - - fun withNoCurrentNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkCallbacks - callback.noCurrentNetwork() - }.whenever(wiseFyPublicApi).getCurrentNetwork(any()) - } - - fun withWiseFyFailureGettingCurrentNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).getCurrentNetwork(any()) - } - - fun withSuccessGettingCurrentNetworkInfo() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkInfoCallbacks - callback.retrievedCurrentNetworkInfo(CURRENT_NETWORK_INFO) - }.whenever(wiseFyPublicApi).getCurrentNetworkInfo(any()) - } - - fun withNoCurrentNetworkInfo() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkInfoCallbacks - callback.noCurrentNetworkInfo() - }.whenever(wiseFyPublicApi).getCurrentNetworkInfo(any()) - } - - fun withWiseFyFailureGettingCurrentNetworkInfo() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkInfoCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).getCurrentNetworkInfo(any()) - } - - fun withSuccessGettingFrequency() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetFrequencyCallbacks - callback.retrievedFrequency(MIN_FREQUENCY_5GHZ) - }.whenever(wiseFyPublicApi).getFrequency(any()) - } - - fun withFailureGettingFrequency() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetFrequencyCallbacks - callback.failureGettingFrequency() - }.whenever(wiseFyPublicApi).getFrequency(any()) - } - - fun withWiseFyFailureGettingFrequency() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetFrequencyCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).getFrequency(any()) - } - - fun withSuccessGettingIP() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetIPCallbacks - callback.retrievedIP(TEST_IP) - }.whenever(wiseFyPublicApi).getIP(any()) - } - - fun withFailureGettingIP() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetIPCallbacks - callback.failureRetrievingIP() - }.whenever(wiseFyPublicApi).getIP(any()) - } - - fun withWiseFyFailureGettingIP() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetIPCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).getIP(any()) - } - - fun withSuccessGettingNearbyAccessPoints() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as GetNearbyAccessPointsCallbacks - callback.retrievedNearbyAccessPoints(listOf(ACCESS_POINT)) - }.whenever(wiseFyPublicApi).getNearbyAccessPoints(eq(true), any()) - } - - fun withNoNearbyAccessPoints() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as GetNearbyAccessPointsCallbacks - callback.noAccessPointsFound() - }.whenever(wiseFyPublicApi).getNearbyAccessPoints(eq(true), any()) - } - - fun withWiseFyFailureGettingNearbyAccessPoints() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as GetNearbyAccessPointsCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).getNearbyAccessPoints(eq(true), any()) - } - - fun withSuccessGettingSavedNetworks() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetSavedNetworksCallbacks - callback.retrievedSavedNetworks(listOf(SAVED_NETWORK)) - }.whenever(wiseFyPublicApi).getSavedNetworks(any()) - } - - fun withNoSavedNetworks() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetSavedNetworksCallbacks - callback.noSavedNetworksFound() - }.whenever(wiseFyPublicApi).getSavedNetworks(any()) - } - - fun withWiseFyFailureGettingSavedNetworks() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetSavedNetworksCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).getSavedNetworks(any()) - } - - fun withDeviceBelowLollipop() { - given(sdkUtil.isAtLeastLollipop()).willReturn(false) - } - - fun withDeviceLollipopOrHigher() { - given(sdkUtil.isAtLeastLollipop()).willReturn(true) - } - - /* - * Actions - */ - - fun disableWifi() { - onView(withId(R.id.disableWifiBtn)).performScrollToAndClick() - } - - fun enableWifi() { - onView(withId(R.id.enableWifiBtn)).performScrollToAndClick() - } - - fun getCurrentNetwork() { - onView(withId(R.id.getCurrentNetworkBtn)).performScrollToAndClick() - } - - fun getCurrentNetworkInfo() { - onView(withId(R.id.getCurrentNetworkInfoBtn)).performScrollToAndClick() - } - - fun getFrequency() { - onView(withId(R.id.getFrequencyBtn)).performScrollToAndClick() - } - - fun getIP() { - onView(withId(R.id.getIPBtn)).performScrollToAndClick() - } - - fun getNearbyAccessPoints() { - onView(withId(R.id.getNearbyAccessPointsBtn)).performScrollToAndClick() - } - - fun getSavedNetworks() { - onView(withId(R.id.getSavedNetworksBtn)).performScrollToAndClick() - } - - fun launchMiscScreen() { - activityTestRule.launchActivity(Intent()) - onView(withId(R.id.menu_misc)).performClick() - } - - /* - * Permission Helpers - */ - - fun permissionCallbackTriggered(requestCode: Int, permissionResult: Int) { - val activity = activityTestRule.activity - val fragment: MiscFragment? = activity - .supportFragmentManager - .findFragmentByTag( - MiscFragment.TAG - ) as? MiscFragment - - activity.runOnUiThread { - fragment?.onRequestPermissionsResult( - requestCode, - emptyArray(), - intArrayOf(permissionResult) - ) - } - } - - fun permissionCallbackTriggeredWithEmptyArray(requestCode: Int) { - val activity = activityTestRule.activity - val fragment: MiscFragment? = activity - .supportFragmentManager - .findFragmentByTag( - MiscFragment.TAG - ) as? MiscFragment - - activity.runOnUiThread { - fragment?.onRequestPermissionsResult( - requestCode, - emptyArray(), - intArrayOf() - ) - } - } - - /* - * Verification - */ - - fun verifyWifiDisabledIsDisplayed() { - onView(withText(R.string.wifi_disabled)).checkIsDisplayed() - } - - fun verifyFailureDisablingWifiIsDisplayed() { - onView(withText(R.string.failure_disabling_wifi)).checkIsDisplayed() - } - - fun verifyWifiEnabledIsDisplayed() { - onView(withText(R.string.wifi_enabled)).checkIsDisplayed() - } - - fun verifyFailureEnablingWifiIsDisplayed() { - onView(withText(R.string.failure_enabling_wifi)).checkIsDisplayed() - } - - fun verifyCurrentNetworkIsDisplayed() { - onView(withText(containsString("Current network"))).checkIsDisplayed() - } - - fun verifyNoCurrentNetworkIsDisplayed() { - onView(withText(R.string.no_current_network)).checkIsDisplayed() - } - - fun verifyCurrentNetworkInfoIsDisplayed() { - onView(withText(containsString("Current network info"))).checkIsDisplayed() - } - - fun verifyNoCurrentNetworkInfoIsDisplayed() { - onView(withText(R.string.no_current_network_info)).checkIsDisplayed() - } - - fun verifyFrequencyIsDisplayed() { - onView(withText(containsString("$MIN_FREQUENCY_5GHZ"))).checkIsDisplayed() - } - - fun verifyFailureRetrievingFrequencyIsDisplayed() { - onView(withText(R.string.failure_retrieving_frequency)).checkIsDisplayed() - } - - fun verifyIPIsDisplayed() { - onView(withText(containsString(TEST_IP))).checkIsDisplayed() - } - - fun verifyFailureRetrievingIPIsDisplayed() { - onView(withText(R.string.failure_retrieving_ip)).checkIsDisplayed() - } - - fun verifyTriedToDisableWifi(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).disableWifi(any()) - } - - fun verifyTriedToEnableWifi(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).enableWifi(any()) - } - - fun verifyTriedToGetCurrentNetwork(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).getCurrentNetwork(any()) - } - - fun verifyTriedToGetCurrentNetworkInfo(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).getCurrentNetworkInfo(any()) - } - - fun verifyTriedToGetIP(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).getIP(any()) - } - - fun verifyTriedToGetFrequency(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).getFrequency(any()) - } - - fun verifyTriedToGetNearbyAccessPoints(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).getNearbyAccessPoints(eq(true), any()) - } - - fun verifyTriedToGetSavedNetworks(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).getSavedNetworks(any()) - } - - fun verifyFrequencyLollipopNoticeIsDisplayed() { - onView(withText( - activityTestRule.getString(R.string.frequency_lollipop_notice) - )).checkIsDisplayed() - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkFragmentTest.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkFragmentTest.kt deleted file mode 100644 index ce72de4c..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkFragmentTest.kt +++ /dev/null @@ -1,227 +0,0 @@ -package com.isupatches.wisefysample.ui.remove - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.content.pm.PackageManager -import androidx.test.espresso.intent.rule.IntentsTestRule -import androidx.test.rule.GrantPermissionRule -import com.isupatches.wisefysample.RANDO_PERMISSION_REQUEST_CODE -import com.isupatches.wisefysample.internal.base.AbstractEspressoTestClass -import com.isupatches.wisefysample.ui.main.MainActivity -import org.junit.Before -import org.junit.Rule -import org.junit.Test - -internal class RemoveNetworkFragmentTest : AbstractEspressoTestClass() { - - @get:Rule - val activityTestRule = IntentsTestRule(MainActivity::class.java, false, false) - - @get:Rule - val grantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(ACCESS_FINE_LOCATION) - - private lateinit var removeNetworkRobot: RemoveNetworkRobot - - @Before - override fun setUp() { - super.setUp() - removeNetworkRobot = RemoveNetworkRobot( - activityTestRule, - wiseFy, - removeNetworkStore, - permissionUtil - ) - } - - @Test - fun loadsFromStore() { - with(removeNetworkRobot) { - // Given - withDetailsInStore() - - // When - launchRemoveNetworkScreen() - - // Then - verifyNetworkNameIsPopulated() - } - } - - @Test - fun removeNetwork_permissionErrorDialog() { - with(removeNetworkRobot) { - // Given - launchRemoveNetworkScreen() - - // When - permissionCallbackTriggered( - RemoveNetworkFragment.WISEFY_REMOVE_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun removeNetwork_permissionError_once() { - with(removeNetworkRobot) { - // Given - withSuccessRemovingNetwork() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchRemoveNetworkScreen() - - // When - removeNetwork() - - // Then - verifyTriedToRemoveNetwork() - verifyNetworkRemovedIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun removeNetwork_permissionError_emptyList() { - with(removeNetworkRobot) { - // Given - launchRemoveNetworkScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - RemoveNetworkFragment.WISEFY_REMOVE_NETWORK_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun removeNetwork_permissionError_permissionDenied() { - with(removeNetworkRobot) { - // Given - launchRemoveNetworkScreen() - - // When - permissionCallbackTriggered( - RemoveNetworkFragment.WISEFY_REMOVE_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun removeNetwork_success_afterPermissionGranted() { - with(removeNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessRemovingNetwork() - launchRemoveNetworkScreen() - enterNetworkDetails() - - // When - permissionCallbackTriggered( - RemoveNetworkFragment.WISEFY_REMOVE_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifyTriedToRemoveNetwork() - verifyNetworkRemovedIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun removeNetwork_success() { - with(removeNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessRemovingNetwork() - launchRemoveNetworkScreen() - - // When - removeNetwork() - - // Then - verifyTriedToRemoveNetwork() - verifyNetworkRemovedIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun removeNetwork_failureToRemoveNetwork() { - with(removeNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withFailureRemovingNetwork() - launchRemoveNetworkScreen() - - // When - removeNetwork() - - // Then - verifyTriedToRemoveNetwork() - verifyFailureToRemovingNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun removeNetwork_networkNotFoundToRemove() { - with(removeNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withNetworkNotFoundToRemove() - launchRemoveNetworkScreen() - - // When - removeNetwork() - - // Then - verifyTriedToRemoveNetwork() - verifyNetworkNotFoundToRemoveIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun removeNetwork_wiseFyFailure() { - with(removeNetworkRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureRemovingNetwork() - launchRemoveNetworkScreen() - - // When - removeNetwork() - - // Then - verifyWiseFyFailureIsDisplayed() - verifyTriedToRemoveNetwork() - - // And - dismissErrorDialog() - } - } - - @Test - fun ridiculousPermissionRequested() { - with(removeNetworkRobot) { - // Given - launchRemoveNetworkScreen() - - // When - permissionCallbackTriggeredWithEmptyArray(RANDO_PERMISSION_REQUEST_CODE) - - // Then - verifyPermissionErrorShown() - dismissErrorDialog() - } - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkRobot.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkRobot.kt deleted file mode 100644 index 384cae46..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkRobot.kt +++ /dev/null @@ -1,160 +0,0 @@ -package com.isupatches.wisefysample.ui.remove - -import android.content.Intent -import androidx.test.espresso.Espresso.onView -import androidx.test.espresso.matcher.ViewMatchers.withId -import androidx.test.espresso.matcher.ViewMatchers.withText -import androidx.test.rule.ActivityTestRule -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.internal.base.BaseRobot -import com.isupatches.wisefysample.internal.espresso.checkIsDisplayed -import com.isupatches.wisefysample.internal.espresso.performClick -import com.isupatches.wisefysample.internal.espresso.performScrollToAndClick -import com.isupatches.wisefysample.internal.espresso.performScrollToAndReplaceText -import com.isupatches.wisefysample.internal.preferences.RemoveNetworkStore -import com.isupatches.wisefysample.internal.util.PermissionUtil -import com.isupatches.wisefysample.ui.main.MainActivity -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.doAnswer -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.timeout -import com.nhaarman.mockitokotlin2.verify -import com.nhaarman.mockitokotlin2.whenever - -internal class RemoveNetworkRobot( - private val activityTestRule: ActivityTestRule, - private val wiseFyPublicApi: WiseFyPublicApi, - private val removeNetworkStore: RemoveNetworkStore, - permissionUtil: PermissionUtil -) : BaseRobot(activityTestRule, permissionUtil) { - - /* - * Preconditions - */ - - fun withDetailsInStore() { - with(removeNetworkStore) { - setLastUsedRegex(TEST_SSID_1) - } - } - - fun withSuccessRemovingNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as RemoveNetworkCallbacks - callback.networkRemoved() - }.whenever(wiseFyPublicApi).removeNetwork( - eq(TEST_SSID_1), - any() - ) - } - - fun withNetworkNotFoundToRemove() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as RemoveNetworkCallbacks - callback.networkNotFoundToRemove() - }.whenever(wiseFyPublicApi).removeNetwork( - eq(TEST_SSID_1), - any() - ) - } - - fun withFailureRemovingNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as RemoveNetworkCallbacks - callback.failureRemovingNetwork() - }.whenever(wiseFyPublicApi).removeNetwork( - eq(TEST_SSID_1), - any() - ) - } - - fun withWiseFyFailureRemovingNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as RemoveNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).removeNetwork( - eq(TEST_SSID_1), - any() - ) - } - - /* - * Actions - */ - - fun enterNetworkDetails() { - onView(withId(R.id.networkNameEdt)).performScrollToAndReplaceText(TEST_SSID_1) - } - - fun launchRemoveNetworkScreen() { - activityTestRule.launchActivity(Intent()) - onView(withId(R.id.menu_remove)).performClick() - } - - fun removeNetwork() { - onView(withId(R.id.networkNameEdt)).performScrollToAndReplaceText(TEST_SSID_1) - onView(withId(R.id.removeNetworkBtn)).performScrollToAndClick() - } - - /* - * Permission Helpers - */ - - fun permissionCallbackTriggered(requestCode: Int, permissionResult: Int) { - val activity = activityTestRule.activity - val fragment: RemoveNetworkFragment? = activity - .supportFragmentManager - .findFragmentByTag( - RemoveNetworkFragment.TAG - ) as? RemoveNetworkFragment - - activity.runOnUiThread { - fragment?.onRequestPermissionsResult( - requestCode, - emptyArray(), - intArrayOf(permissionResult) - ) - } - } - - fun permissionCallbackTriggeredWithEmptyArray(requestCode: Int) { - val activity = activityTestRule.activity - val fragment: RemoveNetworkFragment? = activity - .supportFragmentManager - .findFragmentByTag( - RemoveNetworkFragment.TAG - ) as? RemoveNetworkFragment - - activity.runOnUiThread { - fragment?.onRequestPermissionsResult( - requestCode, - emptyArray(), - intArrayOf() - ) - } - } - - /* - * Verification - */ - - fun verifyFailureToRemovingNetworkIsDisplayed() { - onView(withText(R.string.failure_removing_network)).checkIsDisplayed() - } - - fun verifyNetworkNotFoundToRemoveIsDisplayed() { - onView(withText(R.string.network_not_found_to_remove)).checkIsDisplayed() - } - - fun verifyNetworkRemovedIsDisplayed() { - onView(withText("Network removed")).checkIsDisplayed() - } - - fun verifyTriedToRemoveNetwork(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).removeNetwork(eq(TEST_SSID_1), any()) - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/search/SearchFragmentTest.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/search/SearchFragmentTest.kt deleted file mode 100644 index 93d0af17..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/search/SearchFragmentTest.kt +++ /dev/null @@ -1,1441 +0,0 @@ -package com.isupatches.wisefysample.ui.search - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.content.pm.PackageManager -import androidx.test.espresso.intent.rule.IntentsTestRule -import androidx.test.rule.GrantPermissionRule -import com.isupatches.wisefysample.RANDO_PERMISSION_REQUEST_CODE -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.internal.base.AbstractEspressoTestClass -import com.isupatches.wisefysample.ui.main.MainActivity -import org.junit.Before -import org.junit.Rule -import org.junit.Test - -internal class SearchFragmentTest : AbstractEspressoTestClass() { - - @get:Rule - var activityTestRule = IntentsTestRule(MainActivity::class.java, false, false) - - @get:Rule - val grantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(ACCESS_FINE_LOCATION) - - private lateinit var searchRobot: SearchRobot - - @Before - override fun setUp() { - super.setUp() - searchRobot = SearchRobot(activityTestRule, wiseFy, searchStore, permissionUtil) - } - - @Test - fun adaptiveUI() { - with(searchRobot) { - // Given - withAccessPointInStore(false) - launchSearchScreen() - - // When - fillOutForAccessPoint() - - // Then - Access Point - verifyAccessPointIsChecked() - verifyReturnFullListIsSetToNo() - - verifyFilterDuplicatesIsDisplayed() - setFilterDupesToNo() - verifyFilterDupesSetToNo() - setFilterDupesToYes() - verifyFilterDupesSetToYes() - - verifyTimeoutIsDisplayed() - - // And When - fillOutForAccessPoints() - - // Then - Access Points - verifyAccessPointIsChecked() - verifyReturnFullListIsSetToYes() - - verifyFilterDuplicatesIsDisplayed() - setFilterDupesToNo() - verifyFilterDupesSetToNo() - setFilterDupesToYes() - verifyFilterDupesSetToYes() - - verifyTimeoutIsNotDisplayed() - - // And When - fillOutForSSID() - - // Then - SSID - verifySSIDsChecked() - verifyReturnFullListIsSetToNo() - verifyFilterDuplicatesIsNotDisplayed() - verifyTimeoutIsDisplayed() - - // And When - fillOutForSSIDs() - - // Then - SSIDS - verifySSIDsChecked() - verifyReturnFullListIsSetToYes() - verifyFilterDuplicatesIsNotDisplayed() - verifyTimeoutIsNotDisplayed() - - // And When - fillOutForSavedNetwork() - - // Then - Saved Network - verifySavedNetworkIsChecked() - verifyReturnFullListIsSetToNo() - verifyFilterDuplicatesIsNotDisplayed() - verifyTimeoutIsNotDisplayed() - - // And When - fillOutForSavedNetworks() - - // Then - Saved Networks - verifySavedNetworkIsChecked() - verifyReturnFullListIsSetToYes() - verifyFilterDuplicatesIsNotDisplayed() - verifyTimeoutIsNotDisplayed() - - // And When - fillOutForAccessPoint() - - // Then Finally - Access Point - verifyAccessPointIsChecked() - verifyReturnFullListIsSetToNo() - verifyFilterDuplicatesIsDisplayed() - verifyTimeoutIsDisplayed() - } - } - - @Test - fun loadsAccessPointFromStore_filterDuplicates_false() { - with(searchRobot) { - // Given - withAccessPointInStore(false) - - // When - launchSearchScreen() - - // Then - verifySearchRegexIsPopulated() - verifyAccessPointIsChecked() - verifyReturnFullListIsSetToNo() - verifyFilterDupesSetToNo() - verifyTimeoutIsDisplayed() - } - } - - @Test - fun loadsAccessPointFromStore_filterDuplicates_true() { - with(searchRobot) { - // Given - withAccessPointInStore(true) - - // When - launchSearchScreen() - - // Then - verifySearchRegexIsPopulated() - verifyAccessPointIsChecked() - verifyReturnFullListIsSetToNo() - verifyFilterDupesSetToYes() - verifyTimeoutIsDisplayed() - } - } - - @Test - fun loadsAccessPointsFromStore_filterDuplicates_false() { - with(searchRobot) { - // Given - withAccessPointsInStore(false) - - // When - launchSearchScreen() - - // Then - verifySearchRegexIsPopulated() - verifyAccessPointIsChecked() - verifyReturnFullListIsSetToYes() - verifyFilterDupesSetToNo() - verifyTimeoutIsNotDisplayed() - } - } - - @Test - fun loadsAccessPointsFromStore_filterDuplicates_true() { - with(searchRobot) { - // Given - withAccessPointsInStore(true) - - // When - launchSearchScreen() - - // Then - verifySearchRegexIsPopulated() - verifyAccessPointIsChecked() - verifyReturnFullListIsSetToYes() - verifyFilterDupesSetToYes() - verifyTimeoutIsNotDisplayed() - } - } - - @Test - fun loadsSSIDFromStore() { - with(searchRobot) { - // Given - withSSIDInStore() - - // When - launchSearchScreen() - - // Then - verifySearchRegexIsPopulated() - verifySSIDsChecked() - verifyReturnFullListIsSetToNo() - verifyFilterDuplicatesIsNotDisplayed() - verifyTimeoutIsDisplayed() - } - } - - @Test - fun loadsSSIDSFromStore() { - with(searchRobot) { - // Given - withSSIDsInStore() - - // When - launchSearchScreen() - - // Then - verifySearchRegexIsPopulated() - verifySSIDsChecked() - verifyReturnFullListIsSetToYes() - verifyFilterDuplicatesIsNotDisplayed() - verifyTimeoutIsNotDisplayed() - } - } - - @Test - fun loadsSavedNetworkFromStore() { - with(searchRobot) { - // Given - withSavedNetworkInStore() - - // When - launchSearchScreen() - - // Then - verifySearchRegexIsPopulated() - verifySavedNetworkIsChecked() - verifyReturnFullListIsSetToNo() - verifyFilterDuplicatesIsNotDisplayed() - verifyTimeoutIsNotDisplayed() - } - } - - @Test - fun loadsSavedNetworksFromStore() { - with(searchRobot) { - // Given - withSavedNetworksInStore() - - // When - launchSearchScreen() - - // Then - verifySearchRegexIsPopulated() - verifySavedNetworkIsChecked() - verifyReturnFullListIsSetToYes() - verifyFilterDuplicatesIsNotDisplayed() - verifyTimeoutIsNotDisplayed() - } - } - - @Test - fun searchForAccessPoint_permissionErrorDialog_filterDuplicates_true() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoint_permissionError_once_accessFineLocation_filterDuplicates_true() { - with(searchRobot) { - // Given - withSuccessSearchingForAccessPoint(true) - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchSearchScreen() - - // When - searchForAccessPoint(TEST_SSID_1, true) - - // Then - verifySearchedForAccessPoint(true) - verifyAccessPointIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoint_permissionError_emptyList_filterDuplicates_true() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoint_permissionError_permissionDenied_filterDuplicates_true() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoint_success_afterPermissionGranted_filterDuplicates_true() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForAccessPoint(true) - launchSearchScreen() - fillOutForAccessPoint(TEST_SSID_1, true) - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifySearchedForAccessPoint(true) - verifyAccessPointIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoint_success_filterDuplicates_true() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForAccessPoint(true) - launchSearchScreen() - - // When - searchForAccessPoint(TEST_SSID_1, true) - - // Then - verifySearchedForAccessPoint(true) - verifyAccessPointIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoint_accessPointNotFound_filterDuplicates_true() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withAccessPointNotFound(true) - launchSearchScreen() - - // When - searchForAccessPoint(TEST_SSID_1, true) - - // Then - verifySearchedForAccessPoint(true) - verifyAccessPointNotFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoint_wiseFyFailure_filterDuplicates_true() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureSearchingForAccessPoint(true) - launchSearchScreen() - - // When - searchForAccessPoint(TEST_SSID_1, true) - - // Then - verifyWiseFyFailureIsDisplayed() - verifySearchedForAccessPoint(true) - - // And - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoint_permissionErrorDialog_filterDuplicates_false() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoint_permissionError_once_accessFineLocation_filterDuplicates_false() { - with(searchRobot) { - // Given - withSuccessSearchingForAccessPoint(false) - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchSearchScreen() - - // When - searchForAccessPoint(TEST_SSID_1, false) - - // Then - verifySearchedForAccessPoint(false) - verifyAccessPointIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoint_permissionError_emptyList_filterDuplicates_false() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoint_permissionError_permissionDenied_filterDuplicates_false() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoint_success_afterPermissionGranted_filterDuplicates_false() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForAccessPoint(false) - launchSearchScreen() - fillOutForAccessPoint(TEST_SSID_1, false) - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINT_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifySearchedForAccessPoint(false) - verifyAccessPointIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoint_success_filterDuplicates_false() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForAccessPoint(false) - launchSearchScreen() - - // When - searchForAccessPoint(TEST_SSID_1, false) - - // Then - verifySearchedForAccessPoint(false) - verifyAccessPointIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoint_accessPointNotFound_filterDuplicates_false() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withAccessPointNotFound(false) - launchSearchScreen() - - // When - searchForAccessPoint(TEST_SSID_1, false) - - // Then - verifySearchedForAccessPoint(false) - verifyAccessPointNotFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoint_wiseFyFailure_filterDuplicates_false() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureSearchingForAccessPoint(false) - launchSearchScreen() - - // When - searchForAccessPoint(TEST_SSID_1, false) - - // Then - verifyWiseFyFailureIsDisplayed() - verifySearchedForAccessPoint(false) - - // And - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoints_permissionErrorDialog_filterDuplicates_true() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoints_permissionError_once_accessFineLocation_filterDuplicates_true() { - with(searchRobot) { - // Given - withSuccessSearchingForAccessPoints(true) - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchSearchScreen() - - // When - searchForAccessPoints(TEST_SSID_1, true) - - // Then - verifySearchedForAccessPoints(true) - verifyAccessPointsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoints_permissionError_emptyList_filterDuplicates_true() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoints_permissionError_permissionDenied_filterDuplicates_true() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoints_success_afterPermissionGranted_filterDuplicates_true() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForAccessPoints(true) - launchSearchScreen() - fillOutForAccessPoints(TEST_SSID_1, true) - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifySearchedForAccessPoints(true) - verifyAccessPointsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoints_success_filterDuplicates_true() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForAccessPoints(true) - launchSearchScreen() - - // When - searchForAccessPoints(TEST_SSID_1, true) - - // Then - verifySearchedForAccessPoints(true) - verifyAccessPointsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoints_noAccessPointsFound_filterDuplicates_true() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withNoAccessPointsFound(true) - launchSearchScreen() - - // When - searchForAccessPoints(TEST_SSID_1, true) - - // Then - verifySearchedForAccessPoints(true) - verifyNoAccessPointsFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoints_wiseFyFailure_filterDuplicates_true() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureSearchingForAccessPoints(true) - launchSearchScreen() - - // When - searchForAccessPoints(TEST_SSID_1, true) - - // Then - verifyWiseFyFailureIsDisplayed() - verifySearchedForAccessPoints(true) - - // And - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoints_permissionErrorDialog_filterDuplicates_false() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoints_permissionError_once_accessFineLocation_filterDuplicates_false() { - with(searchRobot) { - // Given - withSuccessSearchingForAccessPoints(false) - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchSearchScreen() - - // When - searchForAccessPoints(TEST_SSID_1, false) - - // Then - verifySearchedForAccessPoints(false) - verifyAccessPointsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoints_permissionError_emptyList_filterDuplicates_false() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoints_permissionError_permissionDenied_filterDuplicates_false() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForAccessPoints_success_afterPermissionGranted_filterDuplicates_false() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForAccessPoints(false) - launchSearchScreen() - fillOutForAccessPoints(TEST_SSID_1, false) - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_ACCESS_POINTS_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifySearchedForAccessPoints(false) - verifyAccessPointsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoints_success_filterDuplicates_false() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForAccessPoints(false) - launchSearchScreen() - - // When - searchForAccessPoints(TEST_SSID_1, false) - - // Then - verifySearchedForAccessPoints(false) - verifyAccessPointsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoints_noAccessPointsFound_filterDuplicates_false() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withNoAccessPointsFound(false) - launchSearchScreen() - - // When - searchForAccessPoints(TEST_SSID_1, false) - - // Then - verifySearchedForAccessPoints(false) - verifyNoAccessPointsFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForAccessPoints_wiseFyFailure_filterDuplicates_false() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureSearchingForAccessPoints(false) - launchSearchScreen() - - // When - searchForAccessPoints(TEST_SSID_1, false) - - // Then - verifyWiseFyFailureIsDisplayed() - verifySearchedForAccessPoints(false) - - // And - dismissErrorDialog() - } - } - - @Test - fun searchForSSID_permissionErrorDialog() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SSID_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSSID_permissionError_once_accessFineLocation() { - with(searchRobot) { - // Given - withSuccessSearchingForSSID() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchSearchScreen() - - // When - searchForSSID(TEST_SSID_1) - - // Then - verifySearchedForSSID() - verifySSIDIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSSID_permissionError_emptyList() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - SearchFragment.WISEFY_SEARCH_FOR_SSID_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSSID_permissionError_permissionDenied() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SSID_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSSID_success_afterPermissionGranted() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForSSID() - launchSearchScreen() - fillOutForSSID(TEST_SSID_1) - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SSID_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifySearchedForSSID() - verifySSIDIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSSID_success() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForSSID() - launchSearchScreen() - - // When - searchForSSID(TEST_SSID_1) - - // Then - verifySearchedForSSID() - verifySSIDIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSSID_SSIDNotFound() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSSIDNotFound() - launchSearchScreen() - - // When - searchForSSID(TEST_SSID_1) - - // Then - verifySearchedForSSID() - verifySSIDNotFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSSID_wiseFyFailure() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureSearchingForSSID() - launchSearchScreen() - - // When - searchForSSID(TEST_SSID_1) - - // Then - verifyWiseFyFailureIsDisplayed() - verifySearchedForSSID() - - // And - dismissErrorDialog() - } - } - - @Test - fun searchForSSIDs_permissionErrorDialog() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SSIDS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSSIDs_permissionError_once_accessFineLocation() { - with(searchRobot) { - // Given - withSuccessSearchingForSSIDs() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchSearchScreen() - - // When - searchForSSIDs(TEST_SSID_1) - - // Then - verifySearchedForSSIDs() - verifySSIDsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSSIDs_permissionError_emptyList() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - SearchFragment.WISEFY_SEARCH_FOR_SSIDS_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSSIDs_permissionError_permissionDenied() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SSIDS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSSIDs_success_afterPermissionGranted() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForSSIDs() - launchSearchScreen() - fillOutForSSIDs(TEST_SSID_1) - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SSIDS_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifySearchedForSSIDs() - verifySSIDsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSSIDs_success() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForSSIDs() - launchSearchScreen() - - // When - searchForSSIDs(TEST_SSID_1) - - // Then - verifySearchedForSSIDs() - verifySSIDsAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSSIDs_noSSIDsFound() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withNoSSIDsFound() - launchSearchScreen() - - // When - searchForSSIDs(TEST_SSID_1) - - // Then - verifySearchedForSSIDs() - verifyNoSSIDsFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSSIDs_wiseFyFailure() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureSearchingForSSIDs() - launchSearchScreen() - - // When - searchForSSIDs(TEST_SSID_1) - - // Then - verifyWiseFyFailureIsDisplayed() - verifySearchedForSSIDs() - - // And - dismissErrorDialog() - } - } - - @Test - fun searchForSavedNetwork_permissionErrorDialog() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SAVED_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSavedNetwork_permissionError_once() { - with(searchRobot) { - // Given - withSuccessSearchingForSavedNetwork() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchSearchScreen() - - // When - searchForSavedNetwork(TEST_SSID_1) - - // Then - verifySearchedForSavedNetwork() - verifySavedNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSavedNetwork_permissionError_emptyList() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - SearchFragment.WISEFY_SEARCH_FOR_SAVED_NETWORK_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSavedNetwork_permissionError_permissionDenied() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SAVED_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSavedNetwork_success_afterPermissionGranted() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForSavedNetwork() - launchSearchScreen() - fillOutForSavedNetwork(TEST_SSID_1) - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SAVED_NETWORK_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifySearchedForSavedNetwork() - verifySavedNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSavedNetwork_success() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForSavedNetwork() - launchSearchScreen() - - // When - searchForSavedNetwork(TEST_SSID_1) - - // Then - verifySearchedForSavedNetwork() - verifySavedNetworkIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSavedNetwork_savedNetworkNotFound() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSavedNetworkNotFound() - launchSearchScreen() - - // When - searchForSavedNetwork(TEST_SSID_1) - - // Then - verifySearchedForSavedNetwork() - verifySavedNetworkNotFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSavedNetwork_wiseFyFailure() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureSearchingForSavedNetwork() - launchSearchScreen() - - // When - searchForSavedNetwork(TEST_SSID_1) - - // Then - verifyWiseFyFailureIsDisplayed() - verifySearchedForSavedNetwork() - - // And - dismissErrorDialog() - } - } - - @Test - fun searchForSavedNetworks_permissionErrorDialog() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSavedNetworks_permissionError_once() { - with(searchRobot) { - // Given - withSuccessSearchingForSavedNetworks() - withPermissionDeniedOnce(ACCESS_FINE_LOCATION) - launchSearchScreen() - - // When - searchForSavedNetworks(TEST_SSID_1) - - // Then - verifySearchedForSavedNetworks() - verifySavedNetworksAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSavedNetworks_permissionError_emptyList() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggeredWithEmptyArray( - SearchFragment.WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSavedNetworks_permissionError_permissionDenied() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE, - PackageManager.PERMISSION_DENIED - ) - - // Then - dismissErrorDialog() - } - } - - @Test - fun searchForSavedNetworks_success_afterPermissionGranted() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForSavedNetworks() - launchSearchScreen() - fillOutForSavedNetworks(TEST_SSID_1) - - // When - permissionCallbackTriggered( - SearchFragment.WISEFY_SEARCH_FOR_SAVED_NETWORKS_REQUEST_CODE, - PackageManager.PERMISSION_GRANTED - ) - - // Then - verifySearchedForSavedNetworks() - verifySavedNetworksAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSavedNetworks_success() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withSuccessSearchingForSavedNetworks() - launchSearchScreen() - - // When - searchForSavedNetworks(TEST_SSID_1) - - // Then - verifySearchedForSavedNetworks() - verifySavedNetworksAreDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSavedNetworks_noSavedNetworksFound() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withNotSavedNetworksFound() - launchSearchScreen() - - // When - searchForSavedNetworks(TEST_SSID_1) - - // Then - verifySearchedForSavedNetworks() - verifyNoSavedNetworksFoundIsDisplayed() - dismissResultsDialog() - } - } - - @Test - fun searchForSavedNetworks_wiseFyFailure() { - with(searchRobot) { - // Given - withPermission(ACCESS_FINE_LOCATION) - withWiseFyFailureSearchingForSavedNetworks() - launchSearchScreen() - - // When - searchForSavedNetworks(TEST_SSID_1) - - // Then - verifyWiseFyFailureIsDisplayed() - verifySearchedForSavedNetworks() - - // And - dismissErrorDialog() - } - } - - @Test - fun ridiculousPermissionRequested() { - with(searchRobot) { - // Given - launchSearchScreen() - - // When - permissionCallbackTriggeredWithEmptyArray(RANDO_PERMISSION_REQUEST_CODE) - - // Then - verifyPermissionErrorShown() - dismissErrorDialog() - } - } -} diff --git a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/search/SearchRobot.kt b/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/search/SearchRobot.kt deleted file mode 100644 index 3e358c06..00000000 --- a/wisefysample/src/androidTest/java/com/isupatches/wisefysample/ui/search/SearchRobot.kt +++ /dev/null @@ -1,549 +0,0 @@ -package com.isupatches.wisefysample.ui.search - -import android.content.Intent -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import androidx.test.espresso.Espresso.onView -import androidx.test.espresso.action.ViewActions.scrollTo -import androidx.test.espresso.matcher.ViewMatchers.withId -import androidx.test.espresso.matcher.ViewMatchers.withText -import androidx.test.rule.ActivityTestRule -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.TEST_TIMEOUT -import com.isupatches.wisefysample.internal.base.BaseRobot -import com.isupatches.wisefysample.internal.espresso.checkIsChecked -import com.isupatches.wisefysample.internal.espresso.checkIsDisplayed -import com.isupatches.wisefysample.internal.espresso.checkIsInvisible -import com.isupatches.wisefysample.internal.espresso.checkIsNotChecked -import com.isupatches.wisefysample.internal.espresso.performClick -import com.isupatches.wisefysample.internal.espresso.performScrollToAndCheckIsDisplayed -import com.isupatches.wisefysample.internal.espresso.performScrollToAndClick -import com.isupatches.wisefysample.internal.espresso.performScrollToAndReplaceText -import com.isupatches.wisefysample.internal.espresso.setProgress -import com.isupatches.wisefysample.internal.models.SearchType -import com.isupatches.wisefysample.internal.preferences.SearchStore -import com.isupatches.wisefysample.internal.util.PermissionUtil -import com.isupatches.wisefysample.ui.main.MainActivity -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.doAnswer -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.timeout -import com.nhaarman.mockitokotlin2.verify -import com.nhaarman.mockitokotlin2.whenever -import org.hamcrest.CoreMatchers.allOf -import org.hamcrest.CoreMatchers.containsString - -internal class SearchRobot( - private val activityTestRule: ActivityTestRule, - private val wiseFyPublicApi: WiseFyPublicApi, - private val searchStore: SearchStore, - permissionUtil: PermissionUtil -) : BaseRobot(activityTestRule, permissionUtil) { - - companion object { - private val SAVED_NETWORK = mock() - private val ACCESS_POINT = mock() - } - - /* - * Preconditions - */ - - fun withSuccessSearchingForAccessPoint(filterDuplicates: Boolean) { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[3] as SearchForAccessPointCallbacks - callback.accessPointFound(ACCESS_POINT) - }.whenever(wiseFyPublicApi).searchForAccessPoint( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT * 1000), - eq(filterDuplicates), - any() - ) - } - - fun withAccessPointNotFound(filterDuplicates: Boolean) { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[3] as SearchForAccessPointCallbacks - callback.accessPointNotFound() - }.whenever(wiseFyPublicApi).searchForAccessPoint( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT * 1000), - eq(filterDuplicates), - any() - ) - } - - fun withWiseFyFailureSearchingForAccessPoint(filterDuplicates: Boolean) { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[3] as SearchForAccessPointCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).searchForAccessPoint( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT * 1000), - eq(filterDuplicates), - any() - ) - } - - fun withSuccessSearchingForAccessPoints(filterDuplicates: Boolean) { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForAccessPointsCallbacks - callback.foundAccessPoints(listOf(ACCESS_POINT)) - }.whenever(wiseFyPublicApi).searchForAccessPoints( - eq(TEST_SSID_1), - eq(filterDuplicates), - any() - ) - } - - fun withNoAccessPointsFound(filterDuplicates: Boolean) { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForAccessPointsCallbacks - callback.noAccessPointsFound() - }.whenever(wiseFyPublicApi).searchForAccessPoints(eq(TEST_SSID_1), eq(filterDuplicates), any()) - } - - fun withWiseFyFailureSearchingForAccessPoints(filterDuplicates: Boolean) { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForAccessPointsCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).searchForAccessPoints(eq(TEST_SSID_1), eq(filterDuplicates), any()) - } - - fun withSuccessSearchingForSavedNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworkCallbacks - callback.retrievedSavedNetwork(SAVED_NETWORK) - }.whenever(wiseFyPublicApi).searchForSavedNetwork(eq(TEST_SSID_1), any()) - } - - fun withSavedNetworkNotFound() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworkCallbacks - callback.savedNetworkNotFound() - }.whenever(wiseFyPublicApi).searchForSavedNetwork(eq(TEST_SSID_1), any()) - } - - fun withWiseFyFailureSearchingForSavedNetwork() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).searchForSavedNetwork(eq(TEST_SSID_1), any()) - } - - fun withSuccessSearchingForSavedNetworks() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworksCallbacks - callback.retrievedSavedNetworks(listOf(SAVED_NETWORK)) - }.whenever(wiseFyPublicApi).searchForSavedNetworks(eq(TEST_SSID_1), any()) - } - - fun withNotSavedNetworksFound() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworksCallbacks - callback.noSavedNetworksFound() - }.whenever(wiseFyPublicApi).searchForSavedNetworks(eq(TEST_SSID_1), any()) - } - - fun withWiseFyFailureSearchingForSavedNetworks() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworksCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).searchForSavedNetworks(eq(TEST_SSID_1), any()) - } - - fun withSuccessSearchingForSSID() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForSSIDCallbacks - callback.ssidFound(TEST_SSID_1) - }.whenever(wiseFyPublicApi).searchForSSID( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT * 1000), - any() - ) - } - - fun withSSIDNotFound() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForSSIDCallbacks - callback.ssidNotFound() - }.whenever(wiseFyPublicApi).searchForSSID( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT * 1000), - any() - ) - } - - fun withWiseFyFailureSearchingForSSID() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForSSIDCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).searchForSSID( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT * 1000), - any() - ) - } - - fun withSuccessSearchingForSSIDs() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSSIDsCallbacks - callback.retrievedSSIDs(listOf(TEST_SSID_1)) - }.whenever(wiseFyPublicApi).searchForSSIDs(eq(TEST_SSID_1), any()) - } - - fun withNoSSIDsFound() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSSIDsCallbacks - callback.noSSIDsFound() - }.whenever(wiseFyPublicApi).searchForSSIDs(eq(TEST_SSID_1), any()) - } - - fun withWiseFyFailureSearchingForSSIDs() { - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSSIDsCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(wiseFyPublicApi).searchForSSIDs(eq(TEST_SSID_1), any()) - } - - fun withAccessPointInStore(filterDuplicates: Boolean) { - searchStore.setLastUsedRegex(TEST_SSID_1) - searchStore.setSearchType(SearchType.ACCESS_POINT) - searchStore.setFilterDuplicates(filterDuplicates) - searchStore.setReturnFullList(false) - searchStore.setTimeout(TEST_TIMEOUT) - } - - fun withAccessPointsInStore(filterDuplicates: Boolean) { - searchStore.setLastUsedRegex(TEST_SSID_1) - searchStore.setSearchType(SearchType.ACCESS_POINT) - searchStore.setFilterDuplicates(filterDuplicates) - searchStore.setReturnFullList(true) - searchStore.setTimeout(TEST_TIMEOUT) - } - - fun withSSIDInStore() { - searchStore.setLastUsedRegex(TEST_SSID_1) - searchStore.setSearchType(SearchType.SSID) - searchStore.setReturnFullList(false) - searchStore.setTimeout(TEST_TIMEOUT) - } - - fun withSSIDsInStore() { - searchStore.setLastUsedRegex(TEST_SSID_1) - searchStore.setSearchType(SearchType.SSID) - searchStore.setReturnFullList(true) - searchStore.setTimeout(TEST_TIMEOUT) - } - - fun withSavedNetworkInStore() { - searchStore.setLastUsedRegex(TEST_SSID_1) - searchStore.setSearchType(SearchType.SAVED_NETWORK) - searchStore.setReturnFullList(false) - searchStore.setTimeout(TEST_TIMEOUT) - } - - fun withSavedNetworksInStore() { - searchStore.setLastUsedRegex(TEST_SSID_1) - searchStore.setSearchType(SearchType.SAVED_NETWORK) - searchStore.setReturnFullList(true) - searchStore.setTimeout(TEST_TIMEOUT) - } - - /* - * Actions - */ - - fun fillOutForAccessPoint(ssid: String? = null, filterDuplicates: Boolean? = null) { - onView(withId(R.id.accessPointRdb)).performScrollToAndClick() - setSearchRegex(ssid) - onView(withId(R.id.noFullListRdb)).performScrollToAndClick() - setFilterDuplicates(filterDuplicates) - setTimeoutSeek() - } - - fun fillOutForAccessPoints(ssid: String? = null, filterDuplicates: Boolean? = null) { - onView(withId(R.id.accessPointRdb)).performScrollToAndClick() - setSearchRegex(ssid) - onView(withId(R.id.yesFullListRdb)).performScrollToAndClick() - setFilterDuplicates(filterDuplicates) - } - - fun fillOutForSavedNetwork(ssid: String? = null) { - onView(withId(R.id.savedNetworkRdb)).performScrollToAndClick() - setSearchRegex(ssid) - onView(withId(R.id.noFullListRdb)).performScrollToAndClick() - } - - fun fillOutForSavedNetworks(ssid: String? = null) { - onView(withId(R.id.savedNetworkRdb)).performScrollToAndClick() - setSearchRegex(ssid) - onView(withId(R.id.yesFullListRdb)).performScrollToAndClick() - } - - fun fillOutForSSID(ssid: String? = null) { - onView(withId(R.id.ssidRdb)).performScrollToAndClick() - setSearchRegex(ssid) - onView(withId(R.id.noFullListRdb)).performScrollToAndClick() - setTimeoutSeek() - } - - fun fillOutForSSIDs(ssid: String? = null) { - onView(withId(R.id.ssidRdb)).performScrollToAndClick() - setSearchRegex(ssid) - onView(withId(R.id.yesFullListRdb)).performScrollToAndClick() - } - - fun launchSearchScreen() { - activityTestRule.launchActivity(Intent()) - onView(withId(R.id.menu_search)).performClick() - } - - fun setFilterDupesToNo() { - onView(withId(R.id.noFilterDupesRdb)).performScrollToAndClick() - } - - fun setFilterDupesToYes() { - onView(withId(R.id.yesFilterDupesRdb)).performScrollToAndClick() - } - - fun searchForAccessPoint(ssid: String, filterDuplicates: Boolean) { - fillOutForAccessPoint(ssid, filterDuplicates) - clickSearchButton() - } - - fun searchForAccessPoints(ssid: String, filterDuplicates: Boolean) { - fillOutForAccessPoints(ssid, filterDuplicates) - clickSearchButton() - } - - fun searchForSavedNetwork(ssid: String) { - fillOutForSavedNetwork(ssid) - clickSearchButton() - } - - fun searchForSavedNetworks(ssid: String) { - fillOutForSavedNetworks(ssid) - clickSearchButton() - } - - fun searchForSSID(ssid: String) { - fillOutForSSID(ssid) - clickSearchButton() - } - - fun searchForSSIDs(ssid: String) { - fillOutForSSIDs(ssid) - clickSearchButton() - } - - /* - * View Helpers - */ - - private fun clickSearchButton() { - onView(withId(R.id.searchBtn)).performScrollToAndClick() - } - - private fun setFilterDuplicates(filterDuplicates: Boolean?) { - filterDuplicates?.let { - if (it) { - setFilterDupesToYes() - } else { - setFilterDupesToNo() - } - } - } - - private fun setSearchRegex(ssid: String?) { - ssid?.let { - onView(withId(R.id.searchRegexEdt)).performScrollToAndReplaceText(ssid) - } - } - - private fun setTimeoutSeek() { - onView(withId(R.id.timeoutSeek)).perform(scrollTo()).perform(setProgress(TEST_TIMEOUT)) - } - - /* - * Permission Helpers - */ - - fun permissionCallbackTriggered(requestCode: Int, permissionResult: Int) { - val activity = activityTestRule.activity - val fragment: SearchFragment? = activity - .supportFragmentManager - .findFragmentByTag( - SearchFragment.TAG - ) as? SearchFragment - - activity.runOnUiThread { - fragment?.onRequestPermissionsResult( - requestCode, - emptyArray(), - intArrayOf(permissionResult) - ) - } - } - - fun permissionCallbackTriggeredWithEmptyArray(requestCode: Int) { - val activity = activityTestRule.activity - val fragment: SearchFragment? = activity - .supportFragmentManager - .findFragmentByTag( - SearchFragment.TAG - ) as? SearchFragment - - activity.runOnUiThread { - fragment?.onRequestPermissionsResult( - requestCode, - emptyArray(), - intArrayOf() - ) - } - } - - /* - * Verification - */ - - fun verifyAccessPointIsDisplayed() { - onView(withText(containsString("Access point"))).checkIsDisplayed() - } - - fun verifyAccessPointNotFoundIsDisplayed() { - onView(withText(R.string.access_point_not_found)).checkIsDisplayed() - } - - fun verifySavedNetworkIsDisplayed() { - onView(withText(containsString("Saved network"))).checkIsDisplayed() - } - - fun verifySavedNetworkNotFoundIsDisplayed() { - onView(withText(R.string.saved_network_not_found)).checkIsDisplayed() - } - - fun verifySSIDIsDisplayed() { - onView(withText(containsString("SSID"))).checkIsDisplayed() - } - - fun verifySSIDNotFoundIsDisplayed() { - onView(withText(R.string.ssid_not_found)).checkIsDisplayed() - } - - fun verifySSIDsAreDisplayed() { - onView(withText(containsString("SSIDs"))).checkIsDisplayed() - } - - fun verifyNoSSIDsFoundIsDisplayed() { - onView(withText(R.string.no_ssids_found)).checkIsDisplayed() - } - - fun verifySearchedForAccessPoint(filterDuplicates: Boolean, times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).searchForAccessPoint( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT * 1000), - eq(filterDuplicates), - any() - ) - } - - fun verifySearchedForAccessPoints(filterDuplicates: Boolean, times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).searchForAccessPoints( - eq(TEST_SSID_1), - eq(filterDuplicates), - any() - ) - } - - fun verifySearchedForSavedNetwork(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).searchForSavedNetwork( - eq(TEST_SSID_1), - any() - ) - } - - fun verifySearchedForSavedNetworks(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).searchForSavedNetworks( - eq(TEST_SSID_1), - any() - ) - } - - fun verifySearchedForSSID(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).searchForSSID( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT * 1000), - any() - ) - } - - fun verifySearchedForSSIDs(times: Int = 1) { - verify(wiseFyPublicApi, timeout(3000).times(times)).searchForSSIDs( - eq(TEST_SSID_1), - any() - ) - } - - fun verifySearchRegexIsPopulated() { - onView(allOf(withId(R.id.searchRegexEdt), withText(TEST_SSID_1))).performScrollToAndCheckIsDisplayed() - } - - fun verifyAccessPointIsChecked() { - onView(withId(R.id.accessPointRdb)).checkIsChecked() - } - - fun verifySSIDsChecked() { - onView(withId(R.id.ssidRdb)).checkIsChecked() - } - - fun verifySavedNetworkIsChecked() { - onView(withId(R.id.savedNetworkRdb)).checkIsChecked() - } - - fun verifyFilterDupesSetToYes() { - onView(withId(R.id.yesFilterDupesRdb)).checkIsChecked() - onView((withId(R.id.noFilterDupesRdb))).checkIsNotChecked() - } - - fun verifyFilterDupesSetToNo() { - onView(withId(R.id.noFilterDupesRdb)).checkIsChecked() - onView((withId(R.id.yesFilterDupesRdb))).checkIsNotChecked() - } - - fun verifyReturnFullListIsSetToYes() { - onView(withId(R.id.yesFullListRdb)).checkIsChecked() - onView((withId(R.id.noFullListRdb))).checkIsNotChecked() - } - - fun verifyReturnFullListIsSetToNo() { - onView(withId(R.id.noFullListRdb)).checkIsChecked() - onView((withId(R.id.yesFullListRdb))).checkIsNotChecked() - } - - fun verifyTimeoutIsDisplayed() { - onView(withId(R.id.timeoutSeek)).performScrollToAndCheckIsDisplayed() - } - - fun verifyTimeoutIsNotDisplayed() { - onView(withId(R.id.timeoutSeek)).checkIsInvisible() - } - - fun verifyFilterDuplicatesIsDisplayed() { - onView(withId(R.id.filterDupesRdg)).performScrollToAndCheckIsDisplayed() - } - - fun verifyFilterDuplicatesIsNotDisplayed() { - onView(withId(R.id.filterDupesRdg)).checkIsInvisible() - } -} diff --git a/wisefysample/src/commonTest/java/com/isupatches/wisefysample/TestConstants.kt b/wisefysample/src/commonTest/java/com/isupatches/wisefysample/TestConstants.kt deleted file mode 100644 index e1973a69..00000000 --- a/wisefysample/src/commonTest/java/com/isupatches/wisefysample/TestConstants.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.isupatches.wisefysample - -internal const val TEST_SSID_1 = "Test SSID" -internal const val TEST_PASSWORD_1 = "passWORD1!" - -internal const val TEST_TIMEOUT = 1 - -internal const val BAD_WIFI_MANAGER_RETURN = -1 - -internal const val TEST_IP = "192.168.0.1" - -internal const val RANDO_PERMISSION_REQUEST_CODE = -9999 diff --git a/wisefysample/src/commonTest/java/com/isupatches/wisefysample/TestRxSchedulersProvider.kt b/wisefysample/src/commonTest/java/com/isupatches/wisefysample/TestRxSchedulersProvider.kt deleted file mode 100644 index 0675b5c4..00000000 --- a/wisefysample/src/commonTest/java/com/isupatches/wisefysample/TestRxSchedulersProvider.kt +++ /dev/null @@ -1,10 +0,0 @@ -package com.isupatches.wisefysample - -import com.isupatches.wisefysample.internal.util.RxSchedulersProvider -import io.reactivex.Scheduler -import io.reactivex.schedulers.Schedulers - -class TestRxSchedulersProvider(mainThread: Scheduler = Schedulers.trampoline()) : RxSchedulersProvider() { - override val main: Scheduler = mainThread - override val io: Scheduler = Schedulers.trampoline() -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BasePresenter.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BasePresenter.kt deleted file mode 100644 index 76601c3d..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/base/BasePresenter.kt +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.internal.base - -import android.util.Log -import com.isupatches.wisefy.constants.WiseFyCode -import com.isupatches.wisefysample.internal.util.RxSchedulersProvider - -internal abstract class BasePresenter constructor( - private val rxSchedulersProvider: RxSchedulersProvider -) : BaseMvp.Presenter { - - companion object { - private val TAG = BasePresenter::class.java.simpleName - } - - private var view: V? = null - - private val isViewAttached: Boolean - get() = view != null - - override fun attachView(view: V) { - this.view = view - } - - override fun detachView() { - view = null - } - - protected fun getView(): V = view ?: throw ViewNotAttachedException() - - protected fun doSafelyWithView(viewCommand: (view: V) -> Unit) { - if (isViewAttached) { - rxSchedulersProvider.main.scheduleDirect { - if (isViewAttached) { - val view = view - requireNotNull(view) - viewCommand(view) - } else { - Log.w(TAG, "ViewCommand was scheduled., but view is now detached!") - } - } - } - } - - override fun displayWiseFyFailure(@WiseFyCode wiseFyFailureCode: Int) { - doSafelyWithView { view -> view.displayWiseFyFailure(wiseFyFailureCode) } - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/PreferencesModule.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/PreferencesModule.kt deleted file mode 100644 index 1e1f5d8e..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/di/PreferencesModule.kt +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.internal.di - -import android.content.Context -import androidx.annotation.StringRes -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.preferences.AddNetworkStore -import com.isupatches.wisefysample.internal.preferences.RemoveNetworkStore -import com.isupatches.wisefysample.internal.preferences.SearchStore -import com.isupatches.wisefysample.internal.preferences.SharedPreferencesAddNetworkStore -import com.isupatches.wisefysample.internal.preferences.SharedPreferencesRemoveNetworkStore -import com.isupatches.wisefysample.internal.preferences.SharedPreferencesSearchStore -import dagger.Module -import dagger.Provides -import javax.inject.Singleton - -@Suppress("unused", "UndocumentedPublicClass", "UndocumentedPublicFunction") -@Module internal object PreferencesModule { - - @JvmStatic @Singleton @Provides - fun provideAddNetworkStore(context: Context): AddNetworkStore = SharedPreferencesAddNetworkStore( - sharedPreferences = getSharedPreferences(context, R.string.preferences_add_network_data) - ) - - @JvmStatic @Singleton @Provides - fun provideRemoveNetworkStore(context: Context): RemoveNetworkStore = SharedPreferencesRemoveNetworkStore( - sharedPreferences = getSharedPreferences(context, R.string.preferences_remove_network_data) - ) - - @JvmStatic @Singleton @Provides - fun provideSearchStore(context: Context): SearchStore = SharedPreferencesSearchStore( - sharedPreferences = getSharedPreferences(context, R.string.preferences_search_data) - ) - - private fun getSharedPreferences(context: Context, @StringRes prefKey: Int) = - context.getSharedPreferences(context.getString(prefKey), Context.MODE_PRIVATE) -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/logging/WiseFySampleLogger.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/internal/logging/WiseFySampleLogger.kt deleted file mode 100644 index cff12afd..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/logging/WiseFySampleLogger.kt +++ /dev/null @@ -1,66 +0,0 @@ -package com.isupatches.wisefysample.internal.logging - -import android.util.Log -import com.isupatches.wisefy.logging.WiseFyLogger -import java.util.Locale - -private const val LOG_TAG = "WiseFySample" - -internal object WiseFySampleLogger : WiseFyLogger { - - override fun i(tag: String, message: String, vararg args: Any) { - if (Log.isLoggable(LOG_TAG, Log.INFO)) { - Log.i(LOG_TAG, createMessage(tag, message, args)) - } - } - - override fun v(tag: String, message: String, vararg args: Any) { - if (Log.isLoggable(LOG_TAG, Log.VERBOSE)) { - Log.v(LOG_TAG, createMessage(tag, message, args)) - } - } - - override fun d(tag: String, message: String, vararg args: Any) { - if (Log.isLoggable(LOG_TAG, Log.DEBUG)) { - Log.d(LOG_TAG, createMessage(tag, message, args)) - } - } - - override fun w(tag: String, message: String, vararg args: Any) { - if (Log.isLoggable(LOG_TAG, Log.WARN)) { - Log.w(LOG_TAG, createMessage(tag, message, args)) - } - } - - override fun e(tag: String, message: String, vararg args: Any) { - if (Log.isLoggable(LOG_TAG, Log.ERROR)) { - Log.e(LOG_TAG, createMessage(tag, message, args)) - } - } - - override fun e(tag: String, throwable: Throwable, message: String, vararg args: Any) { - if (Log.isLoggable(LOG_TAG, Log.ERROR)) { - Log.e(LOG_TAG, createMessage(tag, message, args), throwable) - } - } - - override fun wtf(tag: String, message: String, vararg args: Any) { - if (Log.isLoggable(LOG_TAG, Log.ERROR)) { - Log.wtf(LOG_TAG, createMessage(tag, message, args)) - } - } - - override fun wtf(tag: String, throwable: Throwable, message: String, vararg args: Any) { - if (Log.isLoggable(LOG_TAG, Log.ERROR)) { - Log.wtf(LOG_TAG, createMessage(tag, message, args), throwable) - } - } - - /* - * Private Helpers - */ - - private fun createMessage(tag: String, message: String, vararg args: Any): String { - return "$tag - ${message.format(Locale.US, *args)}" - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/nav/MainRouter.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/internal/nav/MainRouter.kt deleted file mode 100644 index 82d46637..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/nav/MainRouter.kt +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.internal.nav - -import androidx.fragment.app.Fragment -import androidx.fragment.app.FragmentActivity -import com.google.android.material.bottomnavigation.BottomNavigationView -import com.isupatches.wisefysample.R - -internal fun BottomNavigationView.selectItem(actionId: Int) { - menu.findItem(actionId)?.isChecked = true -} - -internal fun openFragment(activity: FragmentActivity?, fragment: Fragment, tag: String) { - activity?.let { - val supportFragmentManager = it.supportFragmentManager - (0 until supportFragmentManager.backStackEntryCount).forEach { _ -> - supportFragmentManager.popBackStack() - } - with(supportFragmentManager.beginTransaction()) { - replace(R.id.fragmentContainer, fragment, tag) - commit() - } - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/RxSchedulersProvider.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/RxSchedulersProvider.kt deleted file mode 100644 index 70c504a9..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/RxSchedulersProvider.kt +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.internal.util - -import io.reactivex.Scheduler -import io.reactivex.android.schedulers.AndroidSchedulers -import io.reactivex.schedulers.Schedulers -import javax.inject.Inject - -/** - * A classed used to provide appropriate Rx schedulers for both production and tests - */ -open class RxSchedulersProvider @Inject constructor() { - - /** - * The UI/main thread for Rx subscriptions to use - */ - open val main: Scheduler by lazy { AndroidSchedulers.mainThread() } - - /** - * The background thread for Rx subscriptions to use - */ - open val io: Scheduler by lazy { Schedulers.io() } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/WiseFyFactory.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/WiseFyFactory.kt deleted file mode 100644 index f6c55698..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/internal/util/WiseFyFactory.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.internal.util - -import androidx.fragment.app.FragmentActivity -import com.isupatches.wisefy.WiseFy -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefysample.internal.logging.WiseFySampleLogger - -/** - * @param activity The context to create a WiseFy implementation - * - * @return WiseFyPublicApi - The implementation of the public API for WiseFy - * - * @see [WiseFy] - * @see [WiseFyPublicApi] - */ -fun createWiseFy(activity: FragmentActivity): WiseFyPublicApi { - return WiseFy.Brains(activity, WiseFySampleLogger).getSmarts() -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkFragment.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkFragment.kt deleted file mode 100644 index c5343385..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkFragment.kt +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.add - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.content.pm.PackageManager -import android.net.wifi.WifiConfiguration -import android.os.Bundle -import android.util.Log -import android.view.View -import androidx.annotation.VisibleForTesting -import com.isupatches.wisefy.constants.WiseFyCode -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.base.BaseFragment -import com.isupatches.wisefysample.internal.models.NetworkType -import com.isupatches.wisefysample.internal.preferences.AddNetworkStore -import com.isupatches.wisefysample.internal.util.getTrimmedInput -import com.isupatches.wisefysample.internal.util.hideKeyboardFrom -import dagger.Binds -import dagger.Module -import javax.inject.Inject -import kotlinx.android.synthetic.main.fragment_add.addNetworkBtn -import kotlinx.android.synthetic.main.fragment_add.addNetworkTypeRdg -import kotlinx.android.synthetic.main.fragment_add.networkNameEdt -import kotlinx.android.synthetic.main.fragment_add.networkPasswordEdt -import kotlinx.android.synthetic.main.fragment_add.networkPasswordTil - -internal class AddNetworkFragment : BaseFragment(), AddNetworkMvp.View { - - override val layoutRes = R.layout.fragment_add - - @Inject lateinit var presenter: AddNetworkMvp.Presenter - @Inject lateinit var addNetworkStore: AddNetworkStore - - companion object { - val TAG: String = AddNetworkFragment::class.java.simpleName - - fun newInstance() = AddNetworkFragment() - - @VisibleForTesting internal const val WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE = 1 - @VisibleForTesting internal const val WISEFY_ADD_WEP_NETWORK_REQUEST_CODE = 2 - @VisibleForTesting internal const val WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE = 3 - } - - override fun onStart() { - super.onStart() - presenter.attachView(this) - } - - override fun onStop() { - presenter.detachView() - super.onStop() - addNetworkStore.setLastUsedNetworkName(networkNameEdt.getTrimmedInput()) - addNetworkStore.setLastUsedNetworkPassword(networkPasswordEdt.getTrimmedInput()) - hideKeyboardFrom(addNetworkBtn) - } - - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - super.onViewCreated(view, savedInstanceState) - - if (savedInstanceState == null) { - restoreUI() - } - - addNetworkBtn.setOnClickListener { - when (addNetworkTypeRdg.checkedRadioButtonId) { - R.id.openNetworkRdb -> addOpenNetwork() - R.id.wepNetworkRdb -> addWEPNetwork() - R.id.wpa2NetworkRdb -> addWPA2Network() - } - } - addNetworkTypeRdg.setOnCheckedChangeListener { _, checkedId -> - when (checkedId) { - R.id.openNetworkRdb -> addNetworkStore.setNetworkType(NetworkType.OPEN) - R.id.wepNetworkRdb -> addNetworkStore.setNetworkType(NetworkType.WEP) - R.id.wpa2NetworkRdb -> addNetworkStore.setNetworkType(NetworkType.WPA2) - } - updateUI() - } - } - - /* - * View helpers - */ - - private fun adjustNetworkPasswordVisibility(visibility: Int) { - networkPasswordTil.visibility = visibility - networkPasswordEdt.visibility = visibility - } - - private fun restoreUI() { - // Restore edit text values - networkNameEdt.setText(addNetworkStore.getLastUsedNetworkName()) - networkPasswordEdt.setText(addNetworkStore.getLastUsedNetworkPassword()) - - // Restore checked state - val checkedId = when (addNetworkStore.getNetworkType()) { - NetworkType.OPEN -> R.id.openNetworkRdb - NetworkType.WEP -> R.id.wepNetworkRdb - NetworkType.WPA2 -> R.id.wpa2NetworkRdb - } - addNetworkTypeRdg.check(checkedId) - - // Show/hide password edit - when (addNetworkStore.getNetworkType()) { - NetworkType.OPEN -> adjustNetworkPasswordVisibility(View.INVISIBLE) - else -> adjustNetworkPasswordVisibility(View.VISIBLE) - } - } - - private fun updateUI() { - when (addNetworkTypeRdg.checkedRadioButtonId) { - R.id.openNetworkRdb -> adjustNetworkPasswordVisibility(View.INVISIBLE) - else -> adjustNetworkPasswordVisibility(View.VISIBLE) - } - } - - /* - * Presenter callback overrides - */ - - override fun displayFailureAddingNetwork(wifiManagerReturn: Int) { - displayInfo(getString(R.string.failure_adding_network, wifiManagerReturn), R.string.add_network_result) - } - - override fun displayNetworkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) { - displayInfoFullScreen( - getString(R.string.network_added, newNetworkId, networkConfig), - R.string.add_network_result - ) - } - - override fun displayWiseFyFailure(@WiseFyCode wiseFyFailureCode: Int) { - displayWiseFyFailureWithCode(wiseFyFailureCode) - } - - /* - * WiseFy helpers - */ - - @Throws(SecurityException::class) - private fun addOpenNetwork() { - if (checkAddOpenNetworkPermissions()) { - presenter.addOpenNetwork(networkNameEdt.getTrimmedInput()) - } - } - - @Throws(SecurityException::class) - private fun addWEPNetwork() { - if (checkAddWEPNetworkPermissions()) { - presenter.addWEPNetwork( - ssid = networkNameEdt.getTrimmedInput(), - password = networkPasswordEdt.getTrimmedInput() - ) - } - } - - @Throws(SecurityException::class) - private fun addWPA2Network() { - if (checkAddWPA2NetworkPermissions()) { - presenter.addWPA2Network( - ssid = networkNameEdt.getTrimmedInput(), - password = networkPasswordEdt.getTrimmedInput() - ) - } - } - - /* - * Permission helpers - */ - - private fun checkAddOpenNetworkPermissions(): Boolean { - return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE) - } - - private fun checkAddWEPNetworkPermissions(): Boolean { - return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_ADD_WEP_NETWORK_REQUEST_CODE) - } - - private fun checkAddWPA2NetworkPermissions(): Boolean { - return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE) - } - - override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray) { - when (requestCode) { - WISEFY_ADD_OPEN_NETWORK_REQUEST_CODE -> { - if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { - addOpenNetwork() - } else { - Log.w(TAG, "Permissions for adding an open network are denied") - displayPermissionErrorDialog(R.string.permission_error_add_open_network) - } - } - WISEFY_ADD_WEP_NETWORK_REQUEST_CODE -> { - if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { - addWEPNetwork() - } else { - Log.w(TAG, "Permissions for adding a WEP network are denied") - displayPermissionErrorDialog(R.string.permission_error_add_wep_network) - } - } - WISEFY_ADD_WPA2_NETWORK_REQUEST_CODE -> { - if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { - addWPA2Network() - } else { - Log.w(TAG, "Permissions for adding a WPA2 network are denied") - displayPermissionErrorDialog(R.string.permission_error_add_wpa2_network) - } - } - else -> { - Log.wtf(TAG, "Weird permission requested, not handled") - displayPermissionErrorDialog( - getString(R.string.permission_error_unhandled_request_code_args, requestCode) - ) - } - } - } - - /* - * Dagger - */ - - @Suppress("unused") - @Module internal interface AddNetworkFragmentModule { - @Binds fun bindAddNetworkModel(impl: AddNetworkModel): AddNetworkMvp.Model - @Binds fun bindAddNetworkPresenter(impl: AddNetworkPresenter): AddNetworkMvp.Presenter - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkModel.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkModel.kt deleted file mode 100644 index 7cd821d1..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkModel.kt +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.add - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import javax.inject.Inject - -internal class AddNetworkModel @Inject constructor( - private val wiseFy: WiseFyPublicApi -) : AddNetworkMvp.Model { - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addOpenNetwork(ssid: String, callbacks: AddNetworkCallbacks) { - wiseFy.addOpenNetwork(ssid, callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - @Suppress("deprecation") - override fun addWEPNetwork( - ssid: String, - password: String, - callbacks: AddNetworkCallbacks - ) { - wiseFy.addWEPNetwork(ssid, password, callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addWPA2Network( - ssid: String, - password: String, - callbacks: AddNetworkCallbacks - ) { - wiseFy.addWPA2Network(ssid, password, callbacks) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkMvp.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkMvp.kt deleted file mode 100644 index 29689a11..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkMvp.kt +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.add - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.net.wifi.WifiConfiguration -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefysample.internal.base.BaseMvp - -@Suppress("UndocumentedPublicClass", "UndocumentedPublicFunction") -internal interface AddNetworkMvp { - - interface View : BaseMvp.View { - fun displayFailureAddingNetwork(wifiManagerReturn: Int) - fun displayNetworkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) - } - - interface Presenter : BaseMvp.Presenter { - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addOpenNetwork(ssid: String) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addWEPNetwork(ssid: String, password: String) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addWPA2Network(ssid: String, password: String) - } - - interface Model { - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addOpenNetwork(ssid: String, callbacks: AddNetworkCallbacks) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addWEPNetwork(ssid: String, password: String, callbacks: AddNetworkCallbacks) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun addWPA2Network(ssid: String, password: String, callbacks: AddNetworkCallbacks) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkPresenter.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkPresenter.kt deleted file mode 100644 index b06ac919..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/add/AddNetworkPresenter.kt +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.add - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.net.wifi.WifiConfiguration -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefysample.internal.base.BasePresenter -import com.isupatches.wisefysample.internal.util.RxSchedulersProvider -import javax.inject.Inject - -internal class AddNetworkPresenter @Inject constructor( - private val model: AddNetworkMvp.Model, - rxSchedulersProvider: RxSchedulersProvider -) : BasePresenter(rxSchedulersProvider), AddNetworkMvp.Presenter { - - private val addNetworkCallbacks by lazy { - object : AddNetworkCallbacks { - override fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) { - doSafelyWithView { view -> view.displayNetworkAdded(newNetworkId, networkConfig) } - } - - override fun failureAddingNetwork(wifiManagerReturn: Int) { - doSafelyWithView { view -> view.displayFailureAddingNetwork(wifiManagerReturn) } - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - } - } - - /* - * Model call-throughs - */ - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addOpenNetwork(ssid: String) { - model.addOpenNetwork(ssid, addNetworkCallbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addWEPNetwork(ssid: String, password: String) { - model.addWEPNetwork(ssid, password, addNetworkCallbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun addWPA2Network(ssid: String, password: String) { - model.addWPA2Network(ssid, password, addNetworkCallbacks) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/BaseNoticeDialogFragment.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/BaseNoticeDialogFragment.kt deleted file mode 100644 index 541a9ea4..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/BaseNoticeDialogFragment.kt +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.dialogs - -import android.os.Bundle -import android.view.View -import com.isupatches.wisefysample.internal.base.BaseDialogFragment -import kotlinx.android.synthetic.main.dialog_base.dialogMessageTxt -import kotlinx.android.synthetic.main.dialog_base.dialogTitleTxt -import kotlinx.android.synthetic.main.dialog_base.okBtn - -internal const val EXTRA_DIALOG_TITLE = "dialog title" -internal const val EXTRA_DIALOG_MESSAGE = "dialog message" - -internal abstract class BaseNoticeDialogFragment : BaseDialogFragment() { - - private val dialogTitle: String by lazy { - arguments!!.getString(EXTRA_DIALOG_TITLE) - } - - private val dialogMessage: String by lazy { - arguments!!.getString(EXTRA_DIALOG_MESSAGE) - } - - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - isCancelable = false - } - - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - super.onViewCreated(view, savedInstanceState) - dialogTitleTxt.text = dialogTitle - dialogMessageTxt.text = dialogMessage - okBtn.setOnClickListener { - dismiss() - } - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/FullScreenNoticeDialogFragment.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/FullScreenNoticeDialogFragment.kt deleted file mode 100644 index 41113da1..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/FullScreenNoticeDialogFragment.kt +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.dialogs - -import android.app.Dialog -import android.os.Bundle -import android.view.ViewGroup -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.util.applyArguments - -internal class FullScreenNoticeDialogFragment : BaseNoticeDialogFragment() { - - override val layoutRes = R.layout.dialog_base_fullscreen - - companion object { - val TAG: String = FullScreenNoticeDialogFragment::class.java.simpleName - - fun newInstance(title: String, message: String) = - FullScreenNoticeDialogFragment().applyArguments { - putString(EXTRA_DIALOG_TITLE, title) - putString(EXTRA_DIALOG_MESSAGE, message) - } - } - - override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { - dialog?.window?.setLayout( - ViewGroup.LayoutParams.MATCH_PARENT, - ViewGroup.LayoutParams.MATCH_PARENT - ) - return super.onCreateDialog(savedInstanceState) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/NoticeDialogFragment.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/NoticeDialogFragment.kt deleted file mode 100644 index 806d4d70..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/dialogs/NoticeDialogFragment.kt +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.dialogs - -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.util.applyArguments - -internal class NoticeDialogFragment : BaseNoticeDialogFragment() { - - override val layoutRes = R.layout.dialog_base - - companion object { - val TAG: String = NoticeDialogFragment::class.java.simpleName - - fun newInstance(title: String, message: String) = - NoticeDialogFragment().applyArguments { - putString(EXTRA_DIALOG_TITLE, title) - putString(EXTRA_DIALOG_MESSAGE, message) - } - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/main/MainActivity.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/main/MainActivity.kt deleted file mode 100644 index ca9225f3..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/main/MainActivity.kt +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.main - -import android.os.Bundle -import android.view.MenuItem -import com.google.android.material.bottomnavigation.BottomNavigationView -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.nav.openFragment -import com.isupatches.wisefysample.internal.nav.selectItem -import com.isupatches.wisefysample.internal.util.SdkUtil -import com.isupatches.wisefysample.internal.util.SdkUtilImpl -import com.isupatches.wisefysample.internal.util.createWiseFy -import com.isupatches.wisefysample.ui.add.AddNetworkFragment -import com.isupatches.wisefysample.ui.misc.MiscFragment -import com.isupatches.wisefysample.ui.remove.RemoveNetworkFragment -import com.isupatches.wisefysample.ui.search.SearchFragment -import dagger.Binds -import dagger.Module -import dagger.Provides -import dagger.android.AndroidInjection -import dagger.android.ContributesAndroidInjector -import dagger.android.support.DaggerAppCompatActivity -import javax.inject.Inject -import kotlinx.android.synthetic.main.activity_main.bottomNavigationView - -internal class MainActivity : DaggerAppCompatActivity(), - BottomNavigationView.OnNavigationItemSelectedListener { - - @Inject lateinit var wiseFy: WiseFyPublicApi - - override fun onCreate(savedInstanceState: Bundle?) { - AndroidInjection.inject(this) - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - bottomNavigationView.setOnNavigationItemSelectedListener(this) - if (savedInstanceState == null) { - bottomNavigationView.selectItem(R.id.menu_home) - openFragment(this, MainFragment.newInstance(), MainFragment.TAG) - } - } - - override fun onDestroy() { - super.onDestroy() - wiseFy.dump() - } - - @Suppress("ReturnCount") - override fun onNavigationItemSelected(item: MenuItem): Boolean { - when (item.itemId) { - R.id.menu_add -> { - openFragment(this, AddNetworkFragment.newInstance(), AddNetworkFragment.TAG) - return true - } - R.id.menu_remove -> { - openFragment(this, RemoveNetworkFragment.newInstance(), RemoveNetworkFragment.TAG) - return true - } - R.id.menu_home -> { - openFragment(this, MainFragment.newInstance(), MainFragment.TAG) - return true - } - R.id.menu_search -> { - openFragment(this, SearchFragment.newInstance(), SearchFragment.TAG) - return true - } - R.id.menu_misc -> { - openFragment(this, MiscFragment.newInstance(), MiscFragment.TAG) - return true - } - } - bottomNavigationView.selectItem(item.itemId) - return super.onOptionsItemSelected(item) - } - - @Suppress("unused") - @Module internal interface FragmentBindings { - @ContributesAndroidInjector(modules = [ - AddNetworkFragment.AddNetworkFragmentModule::class - ]) fun addNetworkFragment(): AddNetworkFragment - - @ContributesAndroidInjector(modules = [ - RemoveNetworkFragment.RemoveNetworkFragmentModule::class - ]) fun removeNetworkFragment(): RemoveNetworkFragment - - @ContributesAndroidInjector fun mainFragment(): MainFragment - - @ContributesAndroidInjector(modules = [ - MiscFragment.MiscFragmentModule::class - ]) fun miscFragment(): MiscFragment - - @ContributesAndroidInjector(modules = [ - SearchFragment.SearchFragmentModule::class - ]) fun searchFragment(): SearchFragment - } - - @Suppress("unused") - @Module internal abstract class MainActivityModule { - - @Binds abstract fun bindSdkUtil(impl: SdkUtilImpl): SdkUtil - - @Module companion object { - @Provides @JvmStatic - fun provideWiseFy(activity: MainActivity) = createWiseFy(activity) - } - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscModel.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscModel.kt deleted file mode 100644 index c06fc6eb..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscModel.kt +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.misc - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.os.Build -import androidx.annotation.RequiresApi -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import javax.inject.Inject - -internal class MiscModel @Inject constructor( - private val wiseFy: WiseFyPublicApi -) : MiscMvp.Model { - - override fun disableWifi(callbacks: DisableWifiCallbacks) { - wiseFy.disableWifi(callbacks) - } - - override fun enableWifi(callbacks: EnableWifiCallbacks) { - wiseFy.enableWifi(callbacks) - } - - override fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks) { - wiseFy.getCurrentNetwork(callbacks) - } - - override fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks) { - wiseFy.getCurrentNetworkInfo(callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - override fun getFrequency(callbacks: GetFrequencyCallbacks) { - wiseFy.getFrequency(callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getIP(callbacks: GetIPCallbacks) { - wiseFy.getIP(callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getNearbyAccessPoints(callbacks: GetNearbyAccessPointsCallbacks) { - wiseFy.getNearbyAccessPoints(true, callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks) { - wiseFy.getSavedNetworks(callbacks) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscMvp.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscMvp.kt deleted file mode 100644 index 36d8b8af..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscMvp.kt +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.misc - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import com.isupatches.wisefysample.internal.base.BaseMvp - -@Suppress("UndocumentedPublicClass", "UndocumentedPublicFunction") -internal interface MiscMvp { - - interface View : BaseMvp.View { - fun displayWifiDisabled() - fun displayFailureDisablingWifi() - fun displayWifiEnabled() - fun displayFailureEnablingWifi() - fun displayCurrentNetwork(currentNetwork: WifiInfo) - fun displayNoCurrentNetwork() - fun displayCurrentNetworkInfo(currentNetworkInfo: NetworkInfo) - fun displayNoCurrentNetworkInfo() - fun displayFrequency(frequency: Int) - fun displayFailureRetrievingFrequency() - fun displayIP(ip: String) - fun displayFailureRetrievingIP() - fun displayNearbyAccessPoints(accessPoints: List) - fun displayNoAccessPointsFound() - fun displayNoSavedNetworksFound() - fun displaySavedNetworks(savedNetworks: List) - } - - interface Presenter : BaseMvp.Presenter { - - fun disableWifi() - - fun enableWifi() - - fun getCurrentNetwork() - - fun getCurrentNetworkInfo() - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getFrequency() - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getIP() - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getNearbyAccessPoints() - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getSavedNetworks() - } - - interface Model { - - fun disableWifi(callbacks: DisableWifiCallbacks) - - fun enableWifi(callbacks: EnableWifiCallbacks) - - fun getCurrentNetwork(callbacks: GetCurrentNetworkCallbacks) - - fun getCurrentNetworkInfo(callbacks: GetCurrentNetworkInfoCallbacks) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getFrequency(callbacks: GetFrequencyCallbacks) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getIP(callbacks: GetIPCallbacks) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getNearbyAccessPoints(callbacks: GetNearbyAccessPointsCallbacks) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun getSavedNetworks(callbacks: GetSavedNetworksCallbacks) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscPresenter.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscPresenter.kt deleted file mode 100644 index d041c186..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/misc/MiscPresenter.kt +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.misc - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo -import android.os.Build -import androidx.annotation.RequiresApi -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import com.isupatches.wisefysample.internal.base.BasePresenter -import com.isupatches.wisefysample.internal.util.RxSchedulersProvider -import javax.inject.Inject - -internal class MiscPresenter @Inject constructor( - private val model: MiscMvp.Model, - rxSchedulersProvider: RxSchedulersProvider -) : BasePresenter(rxSchedulersProvider), MiscMvp.Presenter { - - /* - * Model call-throughs - */ - - override fun disableWifi() { - model.disableWifi(object : DisableWifiCallbacks { - override fun wifiDisabled() { - doSafelyWithView { view -> view.displayWifiDisabled() } - } - - override fun failureDisablingWifi() { - doSafelyWithView { view -> view.displayFailureDisablingWifi() } - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - override fun enableWifi() { - model.enableWifi(object : EnableWifiCallbacks { - override fun wifiEnabled() { - doSafelyWithView { view -> view.displayWifiEnabled() } - } - - override fun failureEnablingWifi() { - doSafelyWithView { view -> view.displayFailureEnablingWifi() } - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - override fun getCurrentNetwork() { - model.getCurrentNetwork(object : GetCurrentNetworkCallbacks { - override fun retrievedCurrentNetwork(currentNetwork: WifiInfo) { - doSafelyWithView { view -> view.displayCurrentNetwork(currentNetwork) } - } - - override fun noCurrentNetwork() { - doSafelyWithView { view -> view.displayNoCurrentNetwork() } - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - override fun getCurrentNetworkInfo() { - model.getCurrentNetworkInfo(object : GetCurrentNetworkInfoCallbacks { - override fun retrievedCurrentNetworkInfo(currentNetworkInfo: NetworkInfo) { - doSafelyWithView { view -> view.displayCurrentNetworkInfo(currentNetworkInfo) } - } - - override fun noCurrentNetworkInfo() { - doSafelyWithView { view -> view.displayNoCurrentNetworkInfo() } - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - @RequiresApi(Build.VERSION_CODES.LOLLIPOP) - override fun getFrequency() { - model.getFrequency(object : GetFrequencyCallbacks { - override fun retrievedFrequency(frequency: Int) { - doSafelyWithView { view -> view.displayFrequency(frequency) } - } - - override fun failureGettingFrequency() { - doSafelyWithView { view -> view.displayFailureRetrievingFrequency() } - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getIP() { - model.getIP(object : GetIPCallbacks { - override fun retrievedIP(ip: String) { - doSafelyWithView { view -> view.displayIP(ip) } - } - - override fun failureRetrievingIP() { - doSafelyWithView { view -> view.displayFailureRetrievingIP() } - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getNearbyAccessPoints() { - model.getNearbyAccessPoints(object : GetNearbyAccessPointsCallbacks { - override fun noAccessPointsFound() { - doSafelyWithView { view -> view.displayNoAccessPointsFound() } - } - - override fun retrievedNearbyAccessPoints(nearbyAccessPoints: List) { - doSafelyWithView { view -> view.displayNearbyAccessPoints(nearbyAccessPoints) } - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun getSavedNetworks() { - model.getSavedNetworks(object : GetSavedNetworksCallbacks { - override fun noSavedNetworksFound() { - doSafelyWithView { view -> view.displayNoSavedNetworksFound() } - } - - override fun retrievedSavedNetworks(savedNetworks: List) { - doSafelyWithView { view -> view.displaySavedNetworks(savedNetworks) } - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkFragment.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkFragment.kt deleted file mode 100644 index 260fe128..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkFragment.kt +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.remove - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.content.pm.PackageManager -import android.os.Bundle -import android.util.Log -import android.view.View -import androidx.annotation.VisibleForTesting -import com.isupatches.wisefy.constants.WiseFyCode -import com.isupatches.wisefysample.R -import com.isupatches.wisefysample.internal.base.BaseFragment -import com.isupatches.wisefysample.internal.preferences.RemoveNetworkStore -import com.isupatches.wisefysample.internal.util.getTrimmedInput -import com.isupatches.wisefysample.internal.util.hideKeyboardFrom -import dagger.Binds -import dagger.Module -import javax.inject.Inject -import kotlinx.android.synthetic.main.fragment_remove.networkNameEdt -import kotlinx.android.synthetic.main.fragment_remove.removeNetworkBtn - -internal class RemoveNetworkFragment : BaseFragment(), RemoveNetworkMvp.View { - - override val layoutRes = R.layout.fragment_remove - - @Inject lateinit var presenter: RemoveNetworkMvp.Presenter - @Inject lateinit var removeNetworkStore: RemoveNetworkStore - - companion object { - val TAG: String = RemoveNetworkFragment::class.java.simpleName - - fun newInstance() = RemoveNetworkFragment() - - @VisibleForTesting internal const val WISEFY_REMOVE_NETWORK_REQUEST_CODE = 1 - } - - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - super.onViewCreated(view, savedInstanceState) - - if (savedInstanceState == null) { - restoreUI() - } - - removeNetworkBtn.setOnClickListener { - hideKeyboardFrom(removeNetworkBtn) - removeNetwork() - } - } - - override fun onStart() { - super.onStart() - presenter.attachView(this) - } - - override fun onStop() { - presenter.detachView() - super.onStop() - removeNetworkStore.setLastUsedRegex(networkNameEdt.getTrimmedInput()) - hideKeyboardFrom(removeNetworkBtn) - } - - /* - * View helpers - */ - - private fun restoreUI() { - // Restore edit text value - networkNameEdt.setText(removeNetworkStore.getLastUsedRegex()) - } - - /* - * Presenter callback overrides - */ - - override fun displayNetworkRemoved() { - displayInfo(R.string.network_removed, R.string.remover_network_result) - } - - override fun displayNetworkNotFoundToRemove() { - displayInfo(R.string.network_not_found_to_remove, R.string.remover_network_result) - } - - override fun displayFailureRemovingNetwork() { - displayInfo(R.string.failure_removing_network, R.string.remover_network_result) - } - - override fun displayWiseFyFailure(@WiseFyCode wiseFyFailureCode: Int) { - displayWiseFyFailureWithCode(wiseFyFailureCode) - } - - /* - * WiseFy helpers - */ - - @Throws(SecurityException::class) - private fun removeNetwork() { - if (checkRemoveNetworkPermissions()) { - presenter.removeNetwork(networkNameEdt.getTrimmedInput()) - } - } - - /* - * Permission helpers - */ - - private fun checkRemoveNetworkPermissions(): Boolean { - return isPermissionGranted(ACCESS_FINE_LOCATION, WISEFY_REMOVE_NETWORK_REQUEST_CODE) - } - - override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray) { - when (requestCode) { - WISEFY_REMOVE_NETWORK_REQUEST_CODE -> { - if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { - removeNetwork() - } else { - Log.w(TAG, "Permissions for remove saved network are denied") - displayPermissionErrorDialog(R.string.permission_error_remove_network) - } - } - else -> { - Log.wtf(TAG, "Weird permission requested, not handled") - displayPermissionErrorDialog( - getString(R.string.permission_error_unhandled_request_code_args, requestCode) - ) - } - } - } - - /* - * Dagger - */ - - @Suppress("unused") - @Module internal interface RemoveNetworkFragmentModule { - @Binds fun bindRemoveNetworkModel(impl: RemoveNetworkModel): RemoveNetworkMvp.Model - @Binds fun bindRemoveNetworkPresenter(impl: RemoveNetworkPresenter): RemoveNetworkMvp.Presenter - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkMvp.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkMvp.kt deleted file mode 100644 index afbf1797..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkMvp.kt +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.remove - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import com.isupatches.wisefysample.internal.base.BaseMvp - -@Suppress("UndocumentedPublicClass", "UndocumentedPublicFunction") -internal interface RemoveNetworkMvp { - - interface View : BaseMvp.View { - fun displayNetworkRemoved() - fun displayNetworkNotFoundToRemove() - fun displayFailureRemovingNetwork() - } - - interface Presenter : BaseMvp.Presenter { - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun removeNetwork(networkName: String) - } - - interface Model { - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun removeNetwork(networkName: String, callbacks: RemoveNetworkCallbacks) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkPresenter.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkPresenter.kt deleted file mode 100644 index aa997c47..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/remove/RemoveNetworkPresenter.kt +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.remove - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import com.isupatches.wisefy.constants.WiseFyCode -import com.isupatches.wisefysample.internal.base.BasePresenter -import com.isupatches.wisefysample.internal.util.RxSchedulersProvider -import javax.inject.Inject - -internal class RemoveNetworkPresenter @Inject constructor( - private val model: RemoveNetworkMvp.Model, - rxSchedulersProvider: RxSchedulersProvider -) : BasePresenter(rxSchedulersProvider), RemoveNetworkMvp.Presenter { - - /* - * Model call-throughs - */ - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun removeNetwork(networkName: String) { - model.removeNetwork(networkName, object : RemoveNetworkCallbacks { - override fun networkRemoved() { - doSafelyWithView { view -> view.displayNetworkRemoved() } - } - - override fun networkNotFoundToRemove() { - doSafelyWithView { view -> view.displayNetworkNotFoundToRemove() } - } - - override fun failureRemovingNetwork() { - doSafelyWithView { view -> view.displayFailureRemovingNetwork() } - } - - override fun wisefyFailure(@WiseFyCode wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchModel.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchModel.kt deleted file mode 100644 index 352e1d1e..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchModel.kt +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.search - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -import javax.inject.Inject - -internal class SearchModel @Inject constructor( - private val wiseFy: WiseFyPublicApi -) : SearchMvp.Model { - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForAccessPoint( - regexForSSID: String, - timeout: Int, - filterDuplicates: Boolean, - callbacks: SearchForAccessPointCallbacks - ) { - wiseFy.searchForAccessPoint(regexForSSID, timeout, filterDuplicates, callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForAccessPoints( - regexForSSID: String, - filterDuplicates: Boolean, - callbacks: SearchForAccessPointsCallbacks - ) { - wiseFy.searchForAccessPoints(regexForSSID, filterDuplicates, callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSavedNetwork( - regexForSSID: String, - callbacks: SearchForSavedNetworkCallbacks - ) { - wiseFy.searchForSavedNetwork(regexForSSID, callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSavedNetworks( - regexForSSID: String, - callbacks: SearchForSavedNetworksCallbacks - ) { - wiseFy.searchForSavedNetworks(regexForSSID, callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSSID( - regexForSSID: String, - timeout: Int, - callbacks: SearchForSSIDCallbacks - ) { - wiseFy.searchForSSID(regexForSSID, timeout, callbacks) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSSIDs(regexForSSID: String, callbacks: SearchForSSIDsCallbacks) { - wiseFy.searchForSSIDs(regexForSSID, callbacks) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchMvp.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchMvp.kt deleted file mode 100644 index a6feeaba..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchMvp.kt +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.search - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -import com.isupatches.wisefysample.internal.base.BaseMvp - -@Suppress("UndocumentedPublicClass", "UndocumentedPublicFunction") -internal interface SearchMvp { - - interface View : BaseMvp.View { - fun displaySavedNetwork(savedNetwork: WifiConfiguration) - fun displaySavedNetworkNotFound() - fun displaySavedNetworks(savedNetworks: List) - fun displayNoSavedNetworksFound() - fun displayAccessPoint(accessPoint: ScanResult) - fun displayAccessPointNotFound() - fun displayAccessPoints(accessPoints: List) - fun displayNoAccessPointsFound() - fun displaySSID(ssid: String) - fun displaySSIDNotFound() - fun displaySSIDs(ssids: List) - fun displayNoSSIDsFound() - } - - interface Presenter : BaseMvp.Presenter { - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForAccessPoint(regexForSSID: String, timeout: Int, filterDuplicates: Boolean) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForAccessPoints(regexForSSID: String, filterDuplicates: Boolean) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSavedNetwork(regexForSSID: String) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSavedNetworks(regexForSSID: String) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSSID(regexForSSID: String, timeout: Int) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSSIDs(regexForSSID: String) - } - - interface Model { - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForAccessPoint( - regexForSSID: String, - timeout: Int, - filterDuplicates: Boolean, - callbacks: SearchForAccessPointCallbacks - ) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForAccessPoints( - regexForSSID: String, - filterDuplicates: Boolean, - callbacks: SearchForAccessPointsCallbacks - ) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSavedNetwork(regexForSSID: String, callbacks: SearchForSavedNetworkCallbacks) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSavedNetworks(regexForSSID: String, callbacks: SearchForSavedNetworksCallbacks) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSSID(regexForSSID: String, timeout: Int, callbacks: SearchForSSIDCallbacks) - - @RequiresPermission(ACCESS_FINE_LOCATION) - fun searchForSSIDs(regexForSSID: String, callbacks: SearchForSSIDsCallbacks) - } -} diff --git a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchPresenter.kt b/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchPresenter.kt deleted file mode 100644 index b4368be1..00000000 --- a/wisefysample/src/main/java/com/isupatches/wisefysample/ui/search/SearchPresenter.kt +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2019 Patches Klinefelter - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.isupatches.wisefysample.ui.search - -import android.Manifest.permission.ACCESS_FINE_LOCATION -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import androidx.annotation.RequiresPermission -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -import com.isupatches.wisefy.constants.WiseFyCode -import com.isupatches.wisefysample.internal.base.BasePresenter -import com.isupatches.wisefysample.internal.util.RxSchedulersProvider -import javax.inject.Inject - -internal class SearchPresenter @Inject constructor( - private val model: SearchMvp.Model, - rxSchedulersProvider: RxSchedulersProvider -) : BasePresenter(rxSchedulersProvider), SearchMvp.Presenter { - - /* - * Model call-throughs - */ - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForAccessPoint( - regexForSSID: String, - timeout: Int, - filterDuplicates: Boolean - ) { - model.searchForAccessPoint( - regexForSSID, - timeout, - filterDuplicates, - object : SearchForAccessPointCallbacks { - override fun accessPointFound(accessPoint: ScanResult) { - doSafelyWithView { view -> view.displayAccessPoint(accessPoint) } - } - - override fun accessPointNotFound() { - doSafelyWithView { view -> view.displayAccessPointNotFound() } - } - - override fun wisefyFailure(@WiseFyCode wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForAccessPoints(regexForSSID: String, filterDuplicates: Boolean) { - model.searchForAccessPoints(regexForSSID, filterDuplicates, object : SearchForAccessPointsCallbacks { - override fun foundAccessPoints(accessPoints: List) { - doSafelyWithView { view -> view.displayAccessPoints(accessPoints) } - } - - override fun noAccessPointsFound() { - doSafelyWithView { view -> view.displayNoAccessPointsFound() } - } - - override fun wisefyFailure(@WiseFyCode wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSavedNetwork(regexForSSID: String) { - model.searchForSavedNetwork(regexForSSID, object : SearchForSavedNetworkCallbacks { - override fun retrievedSavedNetwork(savedNetwork: WifiConfiguration) { - doSafelyWithView { view -> view.displaySavedNetwork(savedNetwork) } - } - - override fun savedNetworkNotFound() { - doSafelyWithView { view -> view.displaySavedNetworkNotFound() } - } - - override fun wisefyFailure(@WiseFyCode wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSavedNetworks(regexForSSID: String) { - model.searchForSavedNetworks(regexForSSID, object : SearchForSavedNetworksCallbacks { - override fun retrievedSavedNetworks(savedNetworks: List) { - doSafelyWithView { view -> view.displaySavedNetworks(savedNetworks) } - } - - override fun noSavedNetworksFound() { - doSafelyWithView { view -> view.displayNoSavedNetworksFound() } - } - - override fun wisefyFailure(@WiseFyCode wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSSID(regexForSSID: String, timeout: Int) { - model.searchForSSID(regexForSSID, timeout, object : SearchForSSIDCallbacks { - override fun ssidFound(ssid: String) { - doSafelyWithView { view -> view.displaySSID(ssid) } - } - - override fun ssidNotFound() { - doSafelyWithView { view -> view.displaySSIDNotFound() } - } - - override fun wisefyFailure(@WiseFyCode wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } - - @RequiresPermission(ACCESS_FINE_LOCATION) - override fun searchForSSIDs(regexForSSID: String) { - model.searchForSSIDs(regexForSSID, object : SearchForSSIDsCallbacks { - override fun retrievedSSIDs(ssids: List) { - doSafelyWithView { view -> view.displaySSIDs(ssids) } - } - - override fun noSSIDsFound() { - doSafelyWithView { view -> view.displayNoSSIDsFound() } - } - - override fun wisefyFailure(@WiseFyCode wisefyFailureCode: Int) { - displayWiseFyFailure(wisefyFailureCode) - } - }) - } -} diff --git a/wisefysample/src/main/res/values/remove_network.xml b/wisefysample/src/main/res/values/remove_network.xml deleted file mode 100644 index 6d368221..00000000 --- a/wisefysample/src/main/res/values/remove_network.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Remove Network - - - Remove Network Result - - Network removed - Network not found to remove - Failure removing network! - - - Permissions for removing network are denied - - \ No newline at end of file diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/models/NetworkTypeTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/internal/models/NetworkTypeTest.kt deleted file mode 100644 index 16b99414..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/models/NetworkTypeTest.kt +++ /dev/null @@ -1,33 +0,0 @@ -package com.isupatches.wisefysample.internal.models - -import org.junit.Assert.assertEquals -import org.junit.Assert.fail -import org.junit.Test - -internal class NetworkTypeTest { - - @Test - fun open() { - assertEquals(NetworkType.OPEN, NetworkType.of(NetworkType.OPEN.intVal)) - } - - @Test - fun wpa2() { - assertEquals(NetworkType.WPA2, NetworkType.of(NetworkType.WPA2.intVal)) - } - - @Test - fun wep() { - assertEquals(NetworkType.WEP, NetworkType.of(NetworkType.WEP.intVal)) - } - - @Test - fun unexpected() { - try { - NetworkType.of(999) - fail("Expected IllegalArgumentException from NetworkType.of") - } catch (ex: IllegalArgumentException) { - // Do nothing - } - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/models/SearchTypeTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/internal/models/SearchTypeTest.kt deleted file mode 100644 index 94ac0c77..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/models/SearchTypeTest.kt +++ /dev/null @@ -1,33 +0,0 @@ -package com.isupatches.wisefysample.internal.models - -import org.junit.Assert.assertEquals -import org.junit.Assert.fail -import org.junit.Test - -internal class SearchTypeTest { - - @Test - fun accessPoint() { - assertEquals(SearchType.ACCESS_POINT, SearchType.of(SearchType.ACCESS_POINT.intVal)) - } - - @Test - fun ssid() { - assertEquals(SearchType.SSID, SearchType.of(SearchType.SSID.intVal)) - } - - @Test - fun savedNetwork() { - assertEquals(SearchType.SAVED_NETWORK, SearchType.of(SearchType.SAVED_NETWORK.intVal)) - } - - @Test - fun unexpected() { - try { - SearchType.of(999) - fail("Expected IllegalArgumentException from NetworkType.of") - } catch (ex: IllegalArgumentException) { - // Do nothing - } - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/BaseSharedPreferencesStoreTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/BaseSharedPreferencesStoreTest.kt deleted file mode 100644 index 87474967..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/BaseSharedPreferencesStoreTest.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.isupatches.wisefysample.internal.preferences - -import android.content.SharedPreferences -import com.isupatches.wisefysample.TEST_SSID_1 -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.verify -import org.mockito.Mockito - -abstract class BaseSharedPreferencesStoreTest { - - protected val editor: SharedPreferences.Editor = mock() - protected val sharedPreferences: SharedPreferences = mock().also { - Mockito.`when`(it.edit()).thenReturn(editor) - } - - fun verifyUpdatedLastUsedRegex() { - verify(editor).putString(PREF_LAST_USED_REGEX, TEST_SSID_1) - } - - fun verifyRetrievedLastUsedRegex() { - verify(sharedPreferences).getString(PREF_LAST_USED_REGEX, "") - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesAddNetworkStoreTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesAddNetworkStoreTest.kt deleted file mode 100644 index 02e4666b..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesAddNetworkStoreTest.kt +++ /dev/null @@ -1,68 +0,0 @@ -package com.isupatches.wisefysample.internal.preferences - -import com.isupatches.wisefysample.TEST_PASSWORD_1 -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.internal.models.NetworkType -import com.nhaarman.mockitokotlin2.verify -import org.junit.Test - -internal class SharedPreferencesAddNetworkStoreTest : BaseSharedPreferencesStoreTest() { - - private val store by lazy { - SharedPreferencesAddNetworkStore(sharedPreferences) - } - - @Test - fun clearsAddNetworkStoreData() { - store.clear() - verify(editor).clear() - } - - /* - * Network Type - */ - - @Test - fun setNetworkType() { - store.setNetworkType(NetworkType.WPA2) - verify(editor).putInt(PREF_NETWORK_TYPE, NetworkType.WPA2.intVal) - } - - @Test - fun getNetworkType() { - store.getNetworkType() - verify(sharedPreferences).getInt(PREF_NETWORK_TYPE, NetworkType.WPA2.intVal) - } - - /* - * Last Used Network Name - */ - - @Test - fun setLastUsedNetworkName() { - store.setLastUsedNetworkName(TEST_SSID_1) - verify(editor).putString(PREF_LAST_USED_NETWORK_NAME, TEST_SSID_1) - } - - @Test - fun getLastUsedNetworkName() { - store.getLastUsedNetworkName() - verify(sharedPreferences).getString(PREF_LAST_USED_NETWORK_NAME, "") - } - - /* - * Last Used Network Password - */ - - @Test - fun setLastUsedNetworkPassword() { - store.setLastUsedNetworkPassword(TEST_PASSWORD_1) - verify(editor).putString(PREF_LAST_USED_NETWORK_PASSWORD, TEST_PASSWORD_1) - } - - @Test - fun getLastUsedNetworkPassword() { - store.getLastUsedNetworkPassword() - verify(sharedPreferences).getString(PREF_LAST_USED_NETWORK_PASSWORD, "") - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesRemoveNetworkStoreTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesRemoveNetworkStoreTest.kt deleted file mode 100644 index 2b914800..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesRemoveNetworkStoreTest.kt +++ /dev/null @@ -1,34 +0,0 @@ -package com.isupatches.wisefysample.internal.preferences - -import com.isupatches.wisefysample.TEST_SSID_1 -import com.nhaarman.mockitokotlin2.verify -import org.junit.Test - -internal class SharedPreferencesRemoveNetworkStoreTest : BaseSharedPreferencesStoreTest() { - - private val store by lazy { - SharedPreferencesRemoveNetworkStore(sharedPreferences) - } - - @Test - fun clearsRemoveNetworkStoreData() { - store.clear() - verify(editor).clear() - } - - /* - * Last Used Regex - */ - - @Test - fun setLastUsedRegex_remove() { - store.setLastUsedRegex(TEST_SSID_1) - verifyUpdatedLastUsedRegex() - } - - @Test - fun getLastUsedRegex_remove() { - store.getLastUsedRegex() - verifyRetrievedLastUsedRegex() - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesSearchStoreTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesSearchStoreTest.kt deleted file mode 100644 index 3d7abd50..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/internal/preferences/SharedPreferencesSearchStoreTest.kt +++ /dev/null @@ -1,104 +0,0 @@ -package com.isupatches.wisefysample.internal.preferences - -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.TEST_TIMEOUT -import com.isupatches.wisefysample.internal.models.SearchType -import com.nhaarman.mockitokotlin2.verify -import org.junit.Test - -internal class SharedPreferencesSearchStoreTest : BaseSharedPreferencesStoreTest() { - - companion object { - private const val TIMEOUT = 10 - } - - private val store by lazy { - SharedPreferencesSearchStore(sharedPreferences) - } - - @Test - fun clearsSearchStoreData() { - store.clear() - verify(editor).clear() - } - - /* - * Last Used Regex - */ - - @Test - fun setLastUsedRegex_search() { - store.setLastUsedRegex(TEST_SSID_1) - verifyUpdatedLastUsedRegex() - } - - @Test - fun getLastUsedRegex_search() { - store.getLastUsedRegex() - verifyRetrievedLastUsedRegex() - } - - /* - * Search Type - */ - - @Test - fun setSearchType() { - store.setSearchType(SearchType.ACCESS_POINT) - verify(editor).putInt(PREF_SEARCH_TYPE, SearchType.ACCESS_POINT.intVal) - } - - @Test - fun getSearchType() { - store.getSearchType() - verify(sharedPreferences).getInt(PREF_SEARCH_TYPE, SearchType.ACCESS_POINT.intVal) - } - - /* - * Filter Duplicates - */ - - @Test - fun setFilterDuplicates() { - store.setFilterDuplicates(true) - verify(editor).putBoolean(PREF_FILTER_DUPLICATES, true) - } - - @Test - fun shouldFilterDuplicates() { - store.shouldFilterDuplicates() - verify(sharedPreferences).getBoolean(PREF_FILTER_DUPLICATES, true) - } - - /* - * Return Full List - */ - - @Test - fun setReturnFullList() { - store.setReturnFullList(true) - verify(editor).putBoolean(PREF_RETURN_FULL_LIST, true) - } - - @Test - fun shouldReturnFullList() { - store.shouldReturnFullList() - verify(sharedPreferences).getBoolean(PREF_RETURN_FULL_LIST, true) - } - - /* - * Timeout - */ - - @Test - fun setTimeout() { - store.setTimeout(TIMEOUT) - verify(editor).putInt(PREF_TIMEOUT, TIMEOUT) - } - - @Test - fun getTimeout() { - store.getTimeout() - verify(sharedPreferences).getInt(PREF_TIMEOUT, TEST_TIMEOUT) - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/add/AddNetworkModelTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/ui/add/AddNetworkModelTest.kt deleted file mode 100644 index c88e61db..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/add/AddNetworkModelTest.kt +++ /dev/null @@ -1,66 +0,0 @@ -package com.isupatches.wisefysample.ui.add - -import android.net.wifi.WifiConfiguration -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefysample.TEST_PASSWORD_1 -import com.isupatches.wisefysample.TEST_SSID_1 -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.times -import com.nhaarman.mockitokotlin2.verify -import org.junit.Test - -internal class AddNetworkModelTest { - - private val wiseFy = mock() - - private val model = AddNetworkModel(wiseFy) - - private val addNetworkCallbacks = object : AddNetworkCallbacks { - override fun networkAdded(newNetworkId: Int, networkConfig: WifiConfiguration) { - } - - override fun failureAddingNetwork(wifiManagerReturn: Int) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - } - - @Test - fun addOpenNetwork() { - // When - model.addOpenNetwork(TEST_SSID_1, addNetworkCallbacks) - - // Then - verify(wiseFy, times(1)).addOpenNetwork(eq(TEST_SSID_1), any()) - } - - @Test - fun addWepNetwork() { - // When - model.addWEPNetwork(TEST_SSID_1, TEST_PASSWORD_1, addNetworkCallbacks) - - // Then - verify(wiseFy, times(1)).addWEPNetwork( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - @Test - fun addWPA2Network() { - // When - model.addWPA2Network(TEST_SSID_1, TEST_PASSWORD_1, addNetworkCallbacks) - - // Then - verify(wiseFy, times(1)).addWPA2Network( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/add/AddNetworkPresenterTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/ui/add/AddNetworkPresenterTest.kt deleted file mode 100644 index 8b6b7a15..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/add/AddNetworkPresenterTest.kt +++ /dev/null @@ -1,226 +0,0 @@ -package com.isupatches.wisefysample.ui.add - -import android.net.wifi.WifiConfiguration -import com.isupatches.wisefy.callbacks.AddNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefysample.BAD_WIFI_MANAGER_RETURN -import com.isupatches.wisefysample.TEST_PASSWORD_1 -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.TestRxSchedulersProvider -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.doAnswer -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.times -import com.nhaarman.mockitokotlin2.verify -import com.nhaarman.mockitokotlin2.whenever -import org.junit.After -import org.junit.Before -import org.junit.Test - -internal class AddNetworkPresenterTest { - - private val view = mock() - private val model = mock() - - private val presenter = AddNetworkPresenter(model, TestRxSchedulersProvider()) - - companion object { - private const val NETWORK_ID = 1 - private val SAVED_NETWORK = mock() - } - - @Before - fun setUp() { - presenter.attachView(view) - } - - @After - fun tearDown() { - presenter.detachView() - } - - @Test - fun addOpenNetwork_networkAdded() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as AddNetworkCallbacks - callback.networkAdded(NETWORK_ID, SAVED_NETWORK) - }.whenever(model).addOpenNetwork(eq(TEST_SSID_1), any()) - - // When - addOpenNetwork() - - // Then - verifyTriedToAddOpenNetwork() - verify(view, times(1)).displayNetworkAdded(NETWORK_ID, SAVED_NETWORK) - } - - @Test - fun addOpenNetwork_failureAddingNetwork() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as AddNetworkCallbacks - callback.failureAddingNetwork(BAD_WIFI_MANAGER_RETURN) - }.whenever(model).addOpenNetwork(eq(TEST_SSID_1), any()) - - // When - addOpenNetwork() - - // Then - verifyTriedToAddOpenNetwork() - verify(view, times(1)).displayFailureAddingNetwork(BAD_WIFI_MANAGER_RETURN) - } - - @Test - fun addOpenNetwork_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as AddNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).addOpenNetwork(eq(TEST_SSID_1), any()) - - // When - addOpenNetwork() - - // Then - verifyTriedToAddOpenNetwork() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun addWEPNetwork_networkAdded() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.networkAdded(NETWORK_ID, SAVED_NETWORK) - }.whenever(model).addWEPNetwork(eq(TEST_SSID_1), eq(TEST_PASSWORD_1), any()) - - // When - addWEPNetwork() - - // Then - verifyTriedToAddWEPNetwork() - verify(view, times(1)).displayNetworkAdded(NETWORK_ID, SAVED_NETWORK) - } - - @Test - fun addWEPNetwork_failureAddingNetwork() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.failureAddingNetwork(BAD_WIFI_MANAGER_RETURN) - }.whenever(model).addWEPNetwork(eq(TEST_SSID_1), eq(TEST_PASSWORD_1), any()) - - // When - addWEPNetwork() - - // Then - verifyTriedToAddWEPNetwork() - verify(view, times(1)).displayFailureAddingNetwork(BAD_WIFI_MANAGER_RETURN) - } - - @Test - fun addWEPNetwork_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).addWEPNetwork(eq(TEST_SSID_1), eq(TEST_PASSWORD_1), any()) - - // When - addWEPNetwork() - - // Then - verifyTriedToAddWEPNetwork() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun addWPA2Network_networkAdded() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.networkAdded(NETWORK_ID, SAVED_NETWORK) - }.whenever(model).addWPA2Network(eq(TEST_SSID_1), eq(TEST_PASSWORD_1), any()) - - // When - addWPA2Network() - - // Then - verifyTriedToAddWPA2Network() - verify(view, times(1)).displayNetworkAdded(NETWORK_ID, SAVED_NETWORK) - } - - @Test - fun addWPA2Network_failureAddingNetwork() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.failureAddingNetwork(BAD_WIFI_MANAGER_RETURN) - }.whenever(model).addWPA2Network(eq(TEST_SSID_1), eq(TEST_PASSWORD_1), any()) - - // When - addWPA2Network() - - // Then - verifyTriedToAddWPA2Network() - verify(view, times(1)).displayFailureAddingNetwork(BAD_WIFI_MANAGER_RETURN) - } - - @Test - fun addWPA2Network_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as AddNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).addWPA2Network(eq(TEST_SSID_1), eq(TEST_PASSWORD_1), any()) - - // When - addWPA2Network() - - // Then - verifyTriedToAddWPA2Network() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - /* - * Call Helpers - */ - - private fun addOpenNetwork() { - presenter.addOpenNetwork(TEST_SSID_1) - } - - private fun addWEPNetwork() { - presenter.addWEPNetwork(TEST_SSID_1, TEST_PASSWORD_1) - } - - private fun addWPA2Network() { - presenter.addWPA2Network(TEST_SSID_1, TEST_PASSWORD_1) - } - - /* - * Verification Helpers - */ - - private fun verifyTriedToAddOpenNetwork() { - verify(model, times(1)).addOpenNetwork(eq(TEST_SSID_1), any()) - } - - private fun verifyTriedToAddWEPNetwork() { - verify(model, times(1)).addWEPNetwork( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } - - private fun verifyTriedToAddWPA2Network() { - verify(model, times(1)).addWPA2Network( - eq(TEST_SSID_1), - eq(TEST_PASSWORD_1), - any() - ) - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/misc/MiscModelTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/ui/misc/MiscModelTest.kt deleted file mode 100644 index 070f7c92..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/misc/MiscModelTest.kt +++ /dev/null @@ -1,172 +0,0 @@ -package com.isupatches.wisefysample.ui.misc - -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.times -import com.nhaarman.mockitokotlin2.verify -import org.junit.Test - -internal class MiscModelTest { - - private val wiseFy = mock() - - private val model = MiscModel(wiseFy) - - @Test - fun disableWifi() { - // When - model.disableWifi(object : DisableWifiCallbacks { - override fun failureDisablingWifi() { - } - - override fun wifiDisabled() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).disableWifi(any()) - } - - @Test - fun enableWifi() { - // When - model.enableWifi(object : EnableWifiCallbacks { - override fun failureEnablingWifi() { - } - - override fun wifiEnabled() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).enableWifi(any()) - } - - @Test - fun getCurrentNetwork() { - // When - model.getCurrentNetwork(object : GetCurrentNetworkCallbacks { - override fun noCurrentNetwork() { - } - - override fun retrievedCurrentNetwork(currentNetwork: WifiInfo) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).getCurrentNetwork(any()) - } - - @Test - fun getCurrentNetworkInfo() { - // When - model.getCurrentNetworkInfo(object : GetCurrentNetworkInfoCallbacks { - override fun noCurrentNetworkInfo() { - } - - override fun retrievedCurrentNetworkInfo(currentNetworkInfo: NetworkInfo) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).getCurrentNetworkInfo(any()) - } - - @Test - fun getFrequency() { - // When - model.getFrequency(object : GetFrequencyCallbacks { - override fun failureGettingFrequency() { - } - - override fun retrievedFrequency(frequency: Int) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).getFrequency(any()) - } - - @Test - fun getIp() { - // When - model.getIP(object : GetIPCallbacks { - override fun failureRetrievingIP() { - } - - override fun retrievedIP(ip: String) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).getIP(any()) - } - - @Test - fun getNearbyAccessPoints() { - // When - model.getNearbyAccessPoints(object : GetNearbyAccessPointsCallbacks { - override fun retrievedNearbyAccessPoints(nearbyAccessPoints: List) { - } - - override fun noAccessPointsFound() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).getNearbyAccessPoints(eq(true), any()) - } - - @Test - fun getSavedNetworks() { - // When - model.getSavedNetworks(object : GetSavedNetworksCallbacks { - override fun noSavedNetworksFound() { - } - - override fun retrievedSavedNetworks(savedNetworks: List) { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).getSavedNetworks(any()) - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/misc/MiscPresenterTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/ui/misc/MiscPresenterTest.kt deleted file mode 100644 index b8f6710b..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/misc/MiscPresenterTest.kt +++ /dev/null @@ -1,509 +0,0 @@ -package com.isupatches.wisefysample.ui.misc - -import android.net.NetworkInfo -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import android.net.wifi.WifiInfo -import com.isupatches.wisefy.WiseFy.Companion.MIN_FREQUENCY_5GHZ -import com.isupatches.wisefy.callbacks.DisableWifiCallbacks -import com.isupatches.wisefy.callbacks.EnableWifiCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkCallbacks -import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks -import com.isupatches.wisefy.callbacks.GetFrequencyCallbacks -import com.isupatches.wisefy.callbacks.GetIPCallbacks -import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.GetSavedNetworksCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefysample.TEST_IP -import com.isupatches.wisefysample.TestRxSchedulersProvider -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.doAnswer -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.times -import com.nhaarman.mockitokotlin2.verify -import com.nhaarman.mockitokotlin2.whenever -import org.junit.After -import org.junit.Before -import org.junit.Test - -internal class MiscPresenterTest { - - private val view = mock() - private val model = mock() - - private val presenter = MiscPresenter(model, TestRxSchedulersProvider()) - - companion object { - private val CURRENT_NETWORK = mock() - private val CURRENT_NETWORK_INFO = mock() - - private val ACCESS_POINT = mock() - private val SAVED_NETWORK = mock() - } - - @Before - fun setUp() { - presenter.attachView(view) - } - - @After - fun tearDown() { - presenter.detachView() - } - - @Test - fun disableWifi_wifiDisabled() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as DisableWifiCallbacks - callback.wifiDisabled() - }.whenever(model).disableWifi(any()) - - // When - disableWifi() - - // Then - verifyTriedToDisableWifi() - verify(view, times(1)).displayWifiDisabled() - } - - @Test - fun disableWifi_failureDisablingWifi() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as DisableWifiCallbacks - callback.failureDisablingWifi() - }.whenever(model).disableWifi(any()) - - // When - disableWifi() - - // Then - verifyTriedToDisableWifi() - verify(view, times(1)).displayFailureDisablingWifi() - } - - @Test - fun disableWifi_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as DisableWifiCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).disableWifi(any()) - - // When - disableWifi() - - // Then - verifyTriedToDisableWifi() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun enableWifi_wifiEnabled() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as EnableWifiCallbacks - callback.wifiEnabled() - }.whenever(model).enableWifi(any()) - - // When - enableWifi() - - // Then - verifyTriedToEnableWifi() - verify(view, times(1)).displayWifiEnabled() - } - - @Test - fun enableWifi_failureEnablingWifi() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as EnableWifiCallbacks - callback.failureEnablingWifi() - }.whenever(model).enableWifi(any()) - - // When - enableWifi() - - // Then - verifyTriedToEnableWifi() - verify(view, times(1)).displayFailureEnablingWifi() - } - - @Test - fun enableWifi_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as EnableWifiCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).enableWifi(any()) - - // When - enableWifi() - - // Then - verifyTriedToEnableWifi() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun getCurrentNetwork_retrievedCurrentNetwork() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkCallbacks - callback.retrievedCurrentNetwork(CURRENT_NETWORK) - }.whenever(model).getCurrentNetwork(any()) - - // When - getCurrentNetwork() - - // Then - verifyTriedToGetCurrentNetwork() - verify(view, times(1)).displayCurrentNetwork(CURRENT_NETWORK) - } - - @Test - fun getCurrentNetwork_noCurrentNetwork() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkCallbacks - callback.noCurrentNetwork() - }.whenever(model).getCurrentNetwork(any()) - - // When - getCurrentNetwork() - - // Then - verifyTriedToGetCurrentNetwork() - verify(view, times(1)).displayNoCurrentNetwork() - } - - @Test - fun getCurrentNetwork_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).getCurrentNetwork(any()) - - // When - getCurrentNetwork() - - // Then - verifyTriedToGetCurrentNetwork() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun getCurrentNetworkInfo_retrievedCurrentNetworkInfo() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkInfoCallbacks - callback.retrievedCurrentNetworkInfo(CURRENT_NETWORK_INFO) - }.whenever(model).getCurrentNetworkInfo(any()) - - // When - getCurrentNetworkInfo() - - // Then - verifyTriedToGetCurrentNetworkInfo() - verify(view, times(1)).displayCurrentNetworkInfo(CURRENT_NETWORK_INFO) - } - - @Test - fun getCurrentNetworkInfo_noCurrentNetworkInfo() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkInfoCallbacks - callback.noCurrentNetworkInfo() - }.whenever(model).getCurrentNetworkInfo(any()) - - // When - getCurrentNetworkInfo() - - // Then - verifyTriedToGetCurrentNetworkInfo() - verify(view, times(1)).displayNoCurrentNetworkInfo() - } - - @Test - fun getCurrentNetworkInfo_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetCurrentNetworkInfoCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).getCurrentNetworkInfo(any()) - - // When - getCurrentNetworkInfo() - - // Then - verifyTriedToGetCurrentNetworkInfo() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun getFrequency_retrievedFrequency() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetFrequencyCallbacks - callback.retrievedFrequency(MIN_FREQUENCY_5GHZ) - }.whenever(model).getFrequency(any()) - - // When - getFrequency() - - // Then - verifyTriedToGetFrequency() - verify(view, times(1)).displayFrequency(MIN_FREQUENCY_5GHZ) - } - - @Test - fun getFrequency_failureGettingFrequency() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetFrequencyCallbacks - callback.failureGettingFrequency() - }.whenever(model).getFrequency(any()) - - // When - getFrequency() - - // Then - verifyTriedToGetFrequency() - verify(view, times(1)).displayFailureRetrievingFrequency() - } - - @Test - fun getFrequency_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetFrequencyCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).getFrequency(any()) - - // When - getFrequency() - - // Then - verifyTriedToGetFrequency() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun getIP_retrievedIP() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetIPCallbacks - callback.retrievedIP(TEST_IP) - }.whenever(model).getIP(any()) - - // When - getIP() - - // Then - verifyTriedToGetIP() - verify(view, times(1)).displayIP(TEST_IP) - } - - @Test - fun getIP_failureRetrievingIP() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetIPCallbacks - callback.failureRetrievingIP() - }.whenever(model).getIP(any()) - - // When - getIP() - - // Then - verifyTriedToGetIP() - verify(view, times(1)).displayFailureRetrievingIP() - } - - @Test - fun getIP_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetIPCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).getIP(any()) - - // When - getIP() - - // Then - verifyTriedToGetIP() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun getNearbyAccessPoints_retrievedNearbyAccessPoints() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetNearbyAccessPointsCallbacks - callback.retrievedNearbyAccessPoints(listOf(ACCESS_POINT)) - }.whenever(model).getNearbyAccessPoints(any()) - - // When - getNearbyAccessPoints() - - // Then - verifyTriedToGetNearbyAccessPoints() - verify(view, times(1)).displayNearbyAccessPoints(listOf(ACCESS_POINT)) - } - - @Test - fun getNearbyAccessPoints_noAccessPointsFound() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetNearbyAccessPointsCallbacks - callback.noAccessPointsFound() - }.whenever(model).getNearbyAccessPoints(any()) - - // When - getNearbyAccessPoints() - - // Then - verifyTriedToGetNearbyAccessPoints() - verify(view, times(1)).displayNoAccessPointsFound() - } - - @Test - fun getNearbyAccessPoints_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetNearbyAccessPointsCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).getNearbyAccessPoints(any()) - - // When - getNearbyAccessPoints() - - // Then - verifyTriedToGetNearbyAccessPoints() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun getSavedNetworks_retrievedSavedNetworks() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetSavedNetworksCallbacks - callback.retrievedSavedNetworks(listOf(SAVED_NETWORK)) - }.whenever(model).getSavedNetworks(any()) - - // When - getSavedNetworks() - - // Then - verifyTriedToGetSavedNetworks() - verify(view, times(1)).displaySavedNetworks(listOf(SAVED_NETWORK)) - } - - @Test - fun getSavedNetworks_noSavedNetworksFound() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetSavedNetworksCallbacks - callback.noSavedNetworksFound() - }.whenever(model).getSavedNetworks(any()) - - // When - getSavedNetworks() - - // Then - verifyTriedToGetSavedNetworks() - verify(view, times(1)).displayNoSavedNetworksFound() - } - - @Test - fun getSavedNetworks_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[0] as GetSavedNetworksCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).getSavedNetworks(any()) - - // When - getSavedNetworks() - - // Then - verifyTriedToGetSavedNetworks() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - /* - * Call Helpers - */ - - private fun disableWifi() { - presenter.disableWifi() - } - - private fun enableWifi() { - presenter.enableWifi() - } - - private fun getCurrentNetwork() { - presenter.getCurrentNetwork() - } - - private fun getCurrentNetworkInfo() { - presenter.getCurrentNetworkInfo() - } - - private fun getFrequency() { - presenter.getFrequency() - } - - private fun getIP() { - presenter.getIP() - } - - private fun getNearbyAccessPoints() { - presenter.getNearbyAccessPoints() - } - - private fun getSavedNetworks() { - presenter.getSavedNetworks() - } - - /* - * Verification Helpers - */ - - private fun verifyTriedToDisableWifi() { - verify(model, times(1)).disableWifi(any()) - } - - private fun verifyTriedToEnableWifi() { - verify(model, times(1)).enableWifi(any()) - } - - private fun verifyTriedToGetCurrentNetwork() { - verify(model, times(1)).getCurrentNetwork(any()) - } - - private fun verifyTriedToGetCurrentNetworkInfo() { - verify(model, times(1)).getCurrentNetworkInfo(any()) - } - - private fun verifyTriedToGetFrequency() { - verify(model, times(1)).getFrequency(any()) - } - - private fun verifyTriedToGetIP() { - verify(model, times(1)).getIP(any()) - } - - private fun verifyTriedToGetNearbyAccessPoints() { - verify(model, times(1)).getNearbyAccessPoints(any()) - } - - private fun verifyTriedToGetSavedNetworks() { - verify(model, times(1)).getSavedNetworks(any()) - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/remove/RemoveModelTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/ui/remove/RemoveModelTest.kt deleted file mode 100644 index b5345a3b..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/remove/RemoveModelTest.kt +++ /dev/null @@ -1,39 +0,0 @@ -package com.isupatches.wisefysample.ui.remove - -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import com.isupatches.wisefysample.TEST_SSID_1 -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.times -import com.nhaarman.mockitokotlin2.verify -import org.junit.Test - -internal class RemoveModelTest { - - private val wiseFy = mock() - - private val model = RemoveNetworkModel(wiseFy) - - @Test - fun removeNetwork() { - // When - model.removeNetwork(TEST_SSID_1, object : RemoveNetworkCallbacks { - override fun failureRemovingNetwork() { - } - - override fun networkNotFoundToRemove() { - } - - override fun networkRemoved() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).removeNetwork(eq(TEST_SSID_1), any()) - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/remove/RemovePresenterTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/ui/remove/RemovePresenterTest.kt deleted file mode 100644 index 03447a12..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/remove/RemovePresenterTest.kt +++ /dev/null @@ -1,114 +0,0 @@ -package com.isupatches.wisefysample.ui.remove - -import com.isupatches.wisefy.callbacks.RemoveNetworkCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.TestRxSchedulersProvider -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.times -import com.nhaarman.mockitokotlin2.verify -import com.nhaarman.mockitokotlin2.whenever -import org.junit.After -import org.junit.Before -import org.junit.Test -import org.mockito.Mockito.doAnswer - -internal class RemovePresenterTest { - - private val view = mock() - private val model = mock() - - private val presenter = RemoveNetworkPresenter(model, TestRxSchedulersProvider()) - - @Before - fun setUp() { - presenter.attachView(view) - } - - @After - fun tearDown() { - presenter.detachView() - } - - @Test - fun removeNetwork_networkRemoved() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as RemoveNetworkCallbacks - callback.networkRemoved() - }.whenever(model).removeNetwork(eq(TEST_SSID_1), any()) - - // When - removeNetwork() - - // Then - verifyTriedToRemoveNetwork() - verify(view, times(1)).displayNetworkRemoved() - } - - @Test - fun removeNetwork_failureRemovingNetwork() { - // Then - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as RemoveNetworkCallbacks - callback.failureRemovingNetwork() - }.whenever(model).removeNetwork(eq(TEST_SSID_1), any()) - - // When - removeNetwork() - - // Then - verifyTriedToRemoveNetwork() - verify(view, times(1)).displayFailureRemovingNetwork() - } - - @Test - fun removeNetwork_networkNotFoundToRemove() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as RemoveNetworkCallbacks - callback.networkNotFoundToRemove() - }.whenever(model).removeNetwork(eq(TEST_SSID_1), any()) - - // When - removeNetwork() - - // Then - verifyTriedToRemoveNetwork() - verify(view, times(1)).displayNetworkNotFoundToRemove() - } - - @Test - fun removeNetwork_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as RemoveNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).removeNetwork(eq(TEST_SSID_1), any()) - - // When - removeNetwork() - - // Then - verifyTriedToRemoveNetwork() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - /* - * Call Helpers - */ - - private fun removeNetwork() { - presenter.removeNetwork(TEST_SSID_1) - } - - /* - * Verification Helpers - */ - - private fun verifyTriedToRemoveNetwork() { - verify(model, times(1)).removeNetwork(eq(TEST_SSID_1), any()) - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/search/SearchModelTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/ui/search/SearchModelTest.kt deleted file mode 100644 index fd7184d7..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/search/SearchModelTest.kt +++ /dev/null @@ -1,150 +0,0 @@ -package com.isupatches.wisefysample.ui.search - -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import com.isupatches.wisefy.WiseFyPublicApi -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.TEST_TIMEOUT -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.times -import com.nhaarman.mockitokotlin2.verify -import org.junit.Test - -internal class SearchModelTest { - - private val wiseFy = mock() - - private val model = SearchModel(wiseFy) - - @Test - fun searchForAccessPoint() { - // When - model.searchForAccessPoint(TEST_SSID_1, TEST_TIMEOUT, true, object : SearchForAccessPointCallbacks { - override fun accessPointFound(accessPoint: ScanResult) { - } - - override fun accessPointNotFound() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).searchForAccessPoint( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT), - eq(true), - any() - ) - } - - @Test - fun searchForAccessPoints() { - // When - model.searchForAccessPoints(TEST_SSID_1, true, object : SearchForAccessPointsCallbacks { - override fun foundAccessPoints(accessPoints: List) { - } - - override fun noAccessPointsFound() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).searchForAccessPoints( - eq(TEST_SSID_1), - eq(true), - any() - ) - } - - @Test - fun searchForSavedNetwork() { - // When - model.searchForSavedNetwork(TEST_SSID_1, object : SearchForSavedNetworkCallbacks { - override fun retrievedSavedNetwork(savedNetwork: WifiConfiguration) { - } - - override fun savedNetworkNotFound() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).searchForSavedNetwork(eq(TEST_SSID_1), any()) - } - - @Test - fun searchForSavedNetworks() { - // When - model.searchForSavedNetworks(TEST_SSID_1, object : SearchForSavedNetworksCallbacks { - override fun retrievedSavedNetworks(savedNetworks: List) { - } - - override fun noSavedNetworksFound() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).searchForSavedNetworks(eq(TEST_SSID_1), any()) - } - - @Test - fun searchForSSID() { - // When - model.searchForSSID(TEST_SSID_1, TEST_TIMEOUT, object : SearchForSSIDCallbacks { - override fun ssidFound(ssid: String) { - } - - override fun ssidNotFound() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).searchForSSID( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT), - any() - ) - } - - @Test - fun searchForSSIDs() { - // When - model.searchForSSIDs(TEST_SSID_1, object : SearchForSSIDsCallbacks { - override fun retrievedSSIDs(ssids: List) { - } - - override fun noSSIDsFound() { - } - - override fun wisefyFailure(wisefyFailureCode: Int) { - } - }) - - // Then - verify(wiseFy, times(1)).searchForSSIDs( - eq(TEST_SSID_1), - any() - ) - } -} diff --git a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/search/SearchPresenterTest.kt b/wisefysample/src/test/java/com/isupatches/wisefysample/ui/search/SearchPresenterTest.kt deleted file mode 100644 index 53e919f7..00000000 --- a/wisefysample/src/test/java/com/isupatches/wisefysample/ui/search/SearchPresenterTest.kt +++ /dev/null @@ -1,407 +0,0 @@ -package com.isupatches.wisefysample.ui.search - -import android.net.wifi.ScanResult -import android.net.wifi.WifiConfiguration -import com.isupatches.wisefy.callbacks.SearchForAccessPointCallbacks -import com.isupatches.wisefy.callbacks.SearchForAccessPointsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDCallbacks -import com.isupatches.wisefy.callbacks.SearchForSSIDsCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworkCallbacks -import com.isupatches.wisefy.callbacks.SearchForSavedNetworksCallbacks -import com.isupatches.wisefy.constants.MISSING_PARAMETER -import com.isupatches.wisefysample.TEST_SSID_1 -import com.isupatches.wisefysample.TEST_TIMEOUT -import com.isupatches.wisefysample.TestRxSchedulersProvider -import com.nhaarman.mockitokotlin2.any -import com.nhaarman.mockitokotlin2.doAnswer -import com.nhaarman.mockitokotlin2.eq -import com.nhaarman.mockitokotlin2.mock -import com.nhaarman.mockitokotlin2.times -import com.nhaarman.mockitokotlin2.verify -import com.nhaarman.mockitokotlin2.whenever -import org.junit.After -import org.junit.Before -import org.junit.Test - -internal class SearchPresenterTest { - - private val view = mock() - private val model = mock() - - private val presenter = SearchPresenter(model, TestRxSchedulersProvider()) - - companion object { - private val SAVED_NETWORK = mock() - private val ACCESS_POINT = mock() - } - - @Before - fun setUp() { - presenter.attachView(view) - } - - @After - fun tearDown() { - presenter.detachView() - } - - @Test - fun searchForAccessPoint_accessPointFound() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[3] as SearchForAccessPointCallbacks - callback.accessPointFound(ACCESS_POINT) - }.whenever(model).searchForAccessPoint(eq(TEST_SSID_1), eq(TEST_TIMEOUT), eq(true), any()) - - // When - searchForAccessPoint() - - // Then - verifySearchedForAccessPoint() - verify(view, times(1)).displayAccessPoint(ACCESS_POINT) - } - - @Test - fun searchForAccessPoint_accessPointNotFound() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[3] as SearchForAccessPointCallbacks - callback.accessPointNotFound() - }.whenever(model).searchForAccessPoint(eq(TEST_SSID_1), eq(TEST_TIMEOUT), eq(true), any()) - - // When - searchForAccessPoint() - - // Then - verifySearchedForAccessPoint() - verify(view, times(1)).displayAccessPointNotFound() - } - - @Test - fun searchForAccessPoint_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[3] as SearchForAccessPointCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).searchForAccessPoint(eq(TEST_SSID_1), eq(TEST_TIMEOUT), eq(true), any()) - - // When - searchForAccessPoint() - - // Then - verifySearchedForAccessPoint() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun searchForAccessPoints_foundAccessPoints() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForAccessPointsCallbacks - callback.foundAccessPoints(listOf(ACCESS_POINT)) - }.whenever(model).searchForAccessPoints(eq(TEST_SSID_1), eq(true), any()) - - // When - searchForAccessPoints() - - // Then - verifySearchedForAccessPoints() - verify(view, times(1)).displayAccessPoints(listOf(ACCESS_POINT)) - } - - @Test - fun searchForAccessPoints_noAccessPointsFound() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForAccessPointsCallbacks - callback.noAccessPointsFound() - }.whenever(model).searchForAccessPoints(eq(TEST_SSID_1), eq(true), any()) - - // When - searchForAccessPoints() - - // Then - verifySearchedForAccessPoints() - verify(view, times(1)).displayNoAccessPointsFound() - } - - @Test - fun searchForAccessPoints_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForAccessPointsCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).searchForAccessPoints(eq(TEST_SSID_1), eq(true), any()) - - // When - searchForAccessPoints() - - // Then - verifySearchedForAccessPoints() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun searchForSavedNetwork_retrievedSavedNetwork() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworkCallbacks - callback.retrievedSavedNetwork(SAVED_NETWORK) - }.whenever(model).searchForSavedNetwork(eq(TEST_SSID_1), any()) - - // When - searchForSavedNetwork() - - // Then - verifySearchedForSavedNetwork() - verify(view, times(1)).displaySavedNetwork(SAVED_NETWORK) - } - - @Test - fun searchForSavedNetwork_savedNetworkNotFound() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworkCallbacks - callback.savedNetworkNotFound() - }.whenever(model).searchForSavedNetwork(eq(TEST_SSID_1), any()) - - // When - searchForSavedNetwork() - - // Then - verifySearchedForSavedNetwork() - verify(view, times(1)).displaySavedNetworkNotFound() - } - - @Test - fun searchForSavedNetwork_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworkCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).searchForSavedNetwork(eq(TEST_SSID_1), any()) - - // When - searchForSavedNetwork() - - // Then - verifySearchedForSavedNetwork() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun searchForSavedNetworks_retrievedSavedNetworks() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworksCallbacks - callback.retrievedSavedNetworks(listOf(SAVED_NETWORK)) - }.whenever(model).searchForSavedNetworks(eq(TEST_SSID_1), any()) - - // When - searchForSavedNetworks() - - // Then - verifySearchedForSavedNetworks() - verify(view, times(1)).displaySavedNetworks(listOf(SAVED_NETWORK)) - } - - @Test - fun searchForSavedNetworks_noSavedNetworksFound() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworksCallbacks - callback.noSavedNetworksFound() - }.whenever(model).searchForSavedNetworks(eq(TEST_SSID_1), any()) - - // When - searchForSavedNetworks() - - // Then - verifySearchedForSavedNetworks() - verify(view, times(1)).displayNoSavedNetworksFound() - } - - @Test - fun searchForSavedNetworks_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSavedNetworksCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).searchForSavedNetworks(eq(TEST_SSID_1), any()) - - // When - searchForSavedNetworks() - - // Then - verifySearchedForSavedNetworks() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun searchForSSID_ssidFound() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForSSIDCallbacks - callback.ssidFound(TEST_SSID_1) - }.whenever(model).searchForSSID(eq(TEST_SSID_1), eq(TEST_TIMEOUT), any()) - - // When - searchForSSID() - - // Then - verifySearchedForSSID() - verify(view, times(1)).displaySSID(TEST_SSID_1) - } - - @Test - fun searchForSSID_ssidNotFound() { - // Then - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForSSIDCallbacks - callback.ssidNotFound() - }.whenever(model).searchForSSID(eq(TEST_SSID_1), eq(TEST_TIMEOUT), any()) - - // When - searchForSSID() - - // Then - verifySearchedForSSID() - verify(view, times(1)).displaySSIDNotFound() - } - - @Test - fun searchForSSID_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[2] as SearchForSSIDCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).searchForSSID(eq(TEST_SSID_1), eq(TEST_TIMEOUT), any()) - - // When - searchForSSID() - - // Then - verifySearchedForSSID() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - @Test - fun searchForSSIDs_retrievedSSIDs() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSSIDsCallbacks - callback.retrievedSSIDs(listOf(TEST_SSID_1)) - }.whenever(model).searchForSSIDs(eq(TEST_SSID_1), any()) - - // When - searchForSSIDs() - - // Then - verifySearchedForSSIDs() - verify(view, times(1)).displaySSIDs(listOf(TEST_SSID_1)) - } - - @Test - fun searchForSSIDs_noSSIDsFound() { - // Then - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSSIDsCallbacks - callback.noSSIDsFound() - }.whenever(model).searchForSSIDs(eq(TEST_SSID_1), any()) - - // When - searchForSSIDs() - - // Then - verifySearchedForSSIDs() - verify(view, times(1)).displayNoSSIDsFound() - } - - @Test - fun searchForSSIDs_wisefyFailure() { - // Given - doAnswer { invocationOnMock -> - val callback = invocationOnMock.arguments[1] as SearchForSSIDsCallbacks - callback.wisefyFailure(MISSING_PARAMETER) - }.whenever(model).searchForSSIDs(eq(TEST_SSID_1), any()) - - // When - searchForSSIDs() - - // Then - verifySearchedForSSIDs() - verify(view, times(1)).displayWiseFyFailure(MISSING_PARAMETER) - } - - /* - * Call Helpers - */ - - private fun searchForAccessPoint() { - presenter.searchForAccessPoint(TEST_SSID_1, TEST_TIMEOUT, true) - } - - private fun searchForAccessPoints() { - presenter.searchForAccessPoints(TEST_SSID_1, true) - } - - private fun searchForSavedNetwork() { - presenter.searchForSavedNetwork(TEST_SSID_1) - } - - private fun searchForSavedNetworks() { - presenter.searchForSavedNetworks(TEST_SSID_1) - } - - private fun searchForSSID() { - presenter.searchForSSID(TEST_SSID_1, TEST_TIMEOUT) - } - - private fun searchForSSIDs() { - presenter.searchForSSIDs(TEST_SSID_1) - } - - /* - * Verification Helpers - */ - - private fun verifySearchedForAccessPoint() { - verify(model, times(1)).searchForAccessPoint( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT), - eq(true), - any() - ) - } - - private fun verifySearchedForAccessPoints() { - verify(model, times(1)).searchForAccessPoints( - eq(TEST_SSID_1), - eq(true), - any() - ) - } - - private fun verifySearchedForSavedNetwork() { - verify(model, times(1)).searchForSavedNetwork(eq(TEST_SSID_1), any()) - } - - private fun verifySearchedForSavedNetworks() { - verify(model, times(1)).searchForSavedNetworks(eq(TEST_SSID_1), any()) - } - - private fun verifySearchedForSSID() { - verify(model, times(1)).searchForSSID( - eq(TEST_SSID_1), - eq(TEST_TIMEOUT), - any() - ) - } - - private fun verifySearchedForSSIDs() { - verify(model, times(1)).searchForSSIDs( - eq(TEST_SSID_1), - any() - ) - } -}