Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

fetchnetworkinfo().json 3.4 KiB

1 год назад
1
  1. {"variants":[{"paths":["\/documentation\/fueling\/networkmonitor\/fetchnetworkinfo()"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"fetchNetworkInfo","kind":"identifier"},{"kind":"text","text":"()"}],"platforms":["iOS"]}]},{"kind":"content","content":[{"type":"heading","level":2,"anchor":"discussion","text":"Discussion"},{"type":"codeListing","syntax":"swift","code":["func fetchNetworkInfo() {"," if let ssid = getCurrentSSID() {"," self.isConnectedWiFi = true"," self.isControllerConnectedWiFi = (ssid == controllerSSID)"," } else {"," self.isControllerConnectedWiFi = false"," }","}"]}]}],"abstract":[{"text":"Fetches the current network information, including the SSID.","type":"text"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NetworkMonitor"]]},"metadata":{"role":"symbol","symbolKind":"method","modules":[{"name":"Fueling"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"fetchNetworkInfo"},{"kind":"text","text":"()"}],"externalID":"s:7Fueling14NetworkMonitorC05fetchB4InfoyyF","title":"fetchNetworkInfo()","roleHeading":"Instance Method"},"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NetworkMonitor\/fetchNetworkInfo()"},"references":{"doc://rpm.com.production.Scanner/documentation/Fueling":{"kind":"symbol","url":"\/documentation\/fueling","title":"Fueling","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","abstract":[{"type":"text","text":"The Scanner app is designed to facilitate secure and efficient fuel management operations, primarily focusing on user authentication, fuel data collection, and network communication. The app includes several key features to ensure seamless and reliable interactions between users and the backend systems, leveraging technologies like WebSockets, Core Data, and biometric authentication."}],"type":"topic","role":"collection"},"doc://rpm.com.production.Scanner/documentation/Fueling/NetworkMonitor/fetchNetworkInfo()":{"identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NetworkMonitor\/fetchNetworkInfo()","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"fetchNetworkInfo"},{"text":"()","kind":"text"}],"title":"fetchNetworkInfo()","abstract":[{"type":"text","text":"Fetches the current network information, including the SSID."}],"kind":"symbol","role":"symbol","url":"\/documentation\/fueling\/networkmonitor\/fetchnetworkinfo()","type":"topic"},"doc://rpm.com.production.Scanner/documentation/Fueling/NetworkMonitor":{"navigatorTitle":[{"text":"NetworkMonitor","kind":"identifier"}],"url":"\/documentation\/fueling\/networkmonitor","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NetworkMonitor","kind":"symbol","title":"NetworkMonitor","role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"NetworkMonitor"}],"type":"topic","abstract":[{"type":"text","text":"A class that monitors network connectivity, particularly WiFi."}]}}}