您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

1 行
4.3 KiB

  1. {"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/fueling\/notificationmanager\/successfulnotification()"]}],"identifier":{"url":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NotificationManager\/successfulNotification()","interfaceLanguage":"swift"},"metadata":{"modules":[{"name":"Fueling"}],"title":"successfulNotification()","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"successfulNotification"},{"kind":"text","text":"()"}],"symbolKind":"method","roleHeading":"Instance Method","externalID":"s:7Fueling19NotificationManagerC010successfulB0yyF","role":"symbol"},"abstract":[{"text":"Schedules a notification to indicate successful fueling data transmission.","type":"text"}],"schemaVersion":{"minor":3,"major":0,"patch":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"successfulNotification","kind":"identifier"},{"kind":"text","text":"()"}],"platforms":["iOS"],"languages":["swift"]}]},{"content":[{"text":"Discussion","level":2,"type":"heading","anchor":"discussion"},{"inlineContent":[{"text":"This method schedules a notification with the title “Fueling Update” and the body “Your fueling data has been successfully transmitted to the server.”","type":"text"}],"type":"paragraph"},{"type":"codeListing","code":["func successfulNotification() {"," let content = UNMutableNotificationContent()"," content.title = \"Fueling Update\""," content.body = \"Your fueling data has been successfully transmitted to the server.\""," content.badge = 0"," content.sound = .default"," "," let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 1.0, repeats: false)"," "," let request = UNNotificationRequest("," identifier: UUID().uuidString,"," content: content,"," trigger: trigger)"," "," UNUserNotificationCenter.current().add(request) { error in"," if let error = error {"," print(\"Error scheduling notification: \\(error.localizedDescription)\")"," } else {"," print(\"Notification scheduled\")"," }"," }","}"],"syntax":"swift"}],"kind":"content"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NotificationManager"]]},"kind":"symbol","references":{"doc://rpm.com.production.Scanner/documentation/Fueling/NotificationManager/successfulNotification()":{"kind":"symbol","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NotificationManager\/successfulNotification()","title":"successfulNotification()","abstract":[{"type":"text","text":"Schedules a notification to indicate successful fueling data transmission."}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"successfulNotification","kind":"identifier"},{"kind":"text","text":"()"}],"type":"topic","role":"symbol","url":"\/documentation\/fueling\/notificationmanager\/successfulnotification()"},"doc://rpm.com.production.Scanner/documentation/Fueling/NotificationManager":{"url":"\/documentation\/fueling\/notificationmanager","role":"symbol","type":"topic","title":"NotificationManager","kind":"symbol","abstract":[{"type":"text","text":"A class that manages notifications for the application."}],"fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"text":"NotificationManager","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"NotificationManager"}],"identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/NotificationManager"},"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"}}}