|
- {"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/fueling\/networkmonitor\/getcurrentssid()"]}],"metadata":{"title":"getCurrentSSID()","roleHeading":"Instance Method","symbolKind":"method","role":"symbol","externalID":"s:7Fueling14NetworkMonitorC14getCurrentSSIDSSSgyF","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"getCurrentSSID","kind":"identifier"},{"kind":"text","text":"() -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":"?"}],"modules":[{"name":"Fueling"}]},"schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NetworkMonitor\/getCurrentSSID()"},"kind":"symbol","abstract":[{"type":"text","text":"Gets the current SSID of the WiFi network."}],"hierarchy":{"paths":[["doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NetworkMonitor"]]},"sections":[],"primaryContentSections":[{"declarations":[{"platforms":["iOS"],"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"getCurrentSSID"},{"kind":"text","text":"() -> "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":"?"}]}],"kind":"declarations"},{"content":[{"level":2,"anchor":"return-value","type":"heading","text":"Return Value"},{"inlineContent":[{"text":"The SSID of the current WiFi network or ","type":"text"},{"code":"nil","type":"codeVoice"},{"text":" if not connected.","type":"text"}],"type":"paragraph"}],"kind":"content"},{"content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"syntax":"swift","type":"codeListing","code":["func getCurrentSSID() -> String? {"," if let interfaces = CNCopySupportedInterfaces() as NSArray? {"," for interface in interfaces {"," if let interfaceInfo = CNCopyCurrentNetworkInfo(interface as! CFString) as NSDictionary? {"," if let ssid = interfaceInfo[kCNNetworkInfoKeySSID as String] as? String {"," print(\"current SSID is: \\(ssid)\")"," return ssid"," }"," }"," }"," }"," return nil","}"]}],"kind":"content"}],"references":{"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."}]},"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/getCurrentSSID()":{"url":"\/documentation\/fueling\/networkmonitor\/getcurrentssid()","role":"symbol","abstract":[{"type":"text","text":"Gets the current SSID of the WiFi network."}],"kind":"symbol","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NetworkMonitor\/getCurrentSSID()","type":"topic","title":"getCurrentSSID()","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"getCurrentSSID"},{"kind":"text","text":"() -> "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":"?","kind":"text"}]}}}
|