Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

1 linha
4.9 KiB

  1. {"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"Handles information frames received from the WebSocket."}],"kind":"symbol","sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/WebSocketViewModel\/handleInformationFrame(payload:)"},"hierarchy":{"paths":[["doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/WebSocketViewModel"]]},"metadata":{"symbolKind":"method","modules":[{"name":"Fueling"}],"roleHeading":"Instance Method","role":"symbol","title":"handleInformationFrame(payload:)","externalID":"s:7Fueling18WebSocketViewModelC22handleInformationFrame7payloadySaySsG_tF","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"handleInformationFrame"},{"text":"(","kind":"text"},{"text":"payload","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Sa","text":"Array","kind":"typeIdentifier"},{"kind":"text","text":"<"},{"text":"Substring","kind":"typeIdentifier","preciseIdentifier":"s:Ss"},{"kind":"text","text":">)"}]},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"handleInformationFrame"},{"text":"(","kind":"text"},{"text":"payload","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Sa","text":"Array","kind":"typeIdentifier"},{"kind":"text","text":"<"},{"text":"Substring","kind":"typeIdentifier","preciseIdentifier":"s:Ss"},{"text":">)","kind":"text"}],"platforms":["iOS"],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"name":"payload","content":[{"type":"paragraph","inlineContent":[{"text":"The payload received from the WebSocket.","type":"text"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","text":"Discussion","level":2,"anchor":"discussion"},{"type":"paragraph","inlineContent":[{"type":"text","text":"This method processes information frames and updates the "},{"code":"informationMessage","type":"codeVoice"},{"text":" property.","type":"text"}]},{"syntax":"swift","code":["func handleInformationFrame(payload: Array<Substring>) {"," guard payload.count >= 9 else {"," print(\"Invalid payload received: \\(payload)\")"," return"," }"," \/\/ Process the payload and update informationMessage","}"],"type":"codeListing"}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/fueling\/websocketviewmodel\/handleinformationframe(payload:)"]}],"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/WebSocketViewModel/handleInformationFrame(payload:)":{"url":"\/documentation\/fueling\/websocketviewmodel\/handleinformationframe(payload:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"handleInformationFrame","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"payload"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Sa","kind":"typeIdentifier","text":"Array"},{"kind":"text","text":"<"},{"text":"Substring","kind":"typeIdentifier","preciseIdentifier":"s:Ss"},{"text":">)","kind":"text"}],"type":"topic","role":"symbol","kind":"symbol","title":"handleInformationFrame(payload:)","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/WebSocketViewModel\/handleInformationFrame(payload:)","abstract":[{"text":"Handles information frames received from the WebSocket.","type":"text"}]},"doc://rpm.com.production.Scanner/documentation/Fueling/WebSocketViewModel":{"kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"WebSocketViewModel"}],"navigatorTitle":[{"kind":"identifier","text":"WebSocketViewModel"}],"abstract":[{"text":"The ","type":"text"},{"type":"codeVoice","code":"WebSocketViewModel"},{"type":"text","text":" class is responsible for managing WebSocket connections, handling messages, and updating application state based on WebSocket events."}],"url":"\/documentation\/fueling\/websocketviewmodel","type":"topic","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/WebSocketViewModel","title":"WebSocketViewModel"}}}