|
1 |
| - |
2 | 1 | public struct FCMAndroidNotification: Codable, Equatable {
|
3 |
| - |
4 | 2 | /// The notification's title.
|
5 | 3 | /// If present, it will override FCMNotification.title.
|
6 | 4 | public var title: String?
|
@@ -48,48 +46,83 @@ public struct FCMAndroidNotification: Codable, Equatable {
|
48 | 46 | /// See Formatting and Styling for more information.
|
49 | 47 | public var title_loc_args: [String]?
|
50 | 48 |
|
51 |
| - /// The notification's channel id (new in Android O). The app must create a channel with this channel ID before any notification with this channel ID is received. If you don't send this channel ID in the request, or if the channel ID provided has not yet been created by the app, FCM uses the channel ID specified in the app manifest. |
| 49 | + /// The notification's channel id (new in Android O). |
| 50 | + /// The app must create a channel with this channel ID before any notification with this channel ID is received. |
| 51 | + /// If you don't send this channel ID in the request, or if the channel ID provided has not yet been created by the app, |
| 52 | + /// FCM uses the channel ID specified in the app manifest. |
52 | 53 | public var channel_id: String?
|
53 | 54 |
|
54 |
| - /// Sets the "ticker" text, which is sent to accessibility services. Prior to API level 21 (Lollipop), sets the text that is displayed in the status bar when the notification first arrives. |
| 55 | + /// Sets the "ticker" text, which is sent to accessibility services. |
| 56 | + /// Prior to API level 21 (Lollipop), sets the text that is displayed in the status bar when the notification first arrives. |
55 | 57 | public var ticker: String?
|
56 | 58 |
|
57 |
| - /// When set to false or unset, the notification is automatically dismissed when the user clicks it in the panel. When set to true, the notification persists even when the user clicks it. |
| 59 | + /// When set to false or unset, the notification is automatically dismissed when the user clicks it in the panel. |
| 60 | + /// When set to true, the notification persists even when the user clicks it. |
58 | 61 | public var sticky: Bool?
|
59 | 62 |
|
60 |
| - /// Set the time that the event in the notification occurred. Notifications in the panel are sorted by this time. A point in time is represented using protobuf.Timestamp. |
61 |
| - /// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". |
| 63 | + /// Set the time that the event in the notification occurred. Notifications in the panel are sorted by this time. |
| 64 | + /// A point in time is represented using protobuf.Timestamp. |
| 65 | + /// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. |
| 66 | + /// Example: "2014-10-02T15:01:23.045123456Z". |
62 | 67 | public var event_time: String?
|
63 | 68 |
|
64 |
| - /// Set whether or not this notification is relevant only to the current device. Some notifications can be bridged to other devices for remote display, such as a Wear OS watch. This hint can be set to recommend this notification not be bridged. See Wear OS guides |
| 69 | + /// Set whether or not this notification is relevant only to the current device. |
| 70 | + /// Some notifications can be bridged to other devices for remote display, such as a Wear OS watch. |
| 71 | + /// This hint can be set to recommend this notification not be bridged. See Wear OS guides |
65 | 72 | public var local_only: Bool?
|
66 | 73 |
|
67 |
| - /// Set the relative priority for this notification. Priority is an indication of how much of the user's attention should be consumed by this notification. Low-priority notifications may be hidden from the user in certain situations, while the user might be interrupted for a higher-priority notification. The effect of setting the same priorities may differ slightly on different platforms. Note this priority differs from AndroidMessagePriority. This priority is processed by the client after the message has been delivered, whereas AndroidMessagePriority is an FCM concept that controls when the message is delivered. |
| 74 | + /// Set the relative priority for this notification. |
| 75 | + /// Priority is an indication of how much of the user's attention should be consumed by this notification. |
| 76 | + /// Low-priority notifications may be hidden from the user in certain situations, while the user might be interrupted for a higher-priority notification. |
| 77 | + /// The effect of setting the same priorities may differ slightly on different platforms. |
| 78 | + /// Note this priority differs from AndroidMessagePriority. |
| 79 | + /// This priority is processed by the client after the message has been delivered, |
| 80 | + /// whereas AndroidMessagePriority is an FCM concept that controls when the message is delivered. |
68 | 81 | public var notification_priority: FCMAndroidNotificationPriority?
|
69 | 82 |
|
70 |
| - /// If set to true, use the Android framework's default sound for the notification. Default values are specified in config.xml. |
| 83 | + /// If set to true, use the Android framework's default sound for the notification. |
| 84 | + /// Default values are specified in config.xml. |
71 | 85 | public var default_sound: Bool?
|
72 | 86 |
|
73 |
| - /// If set to true, use the Android framework's default vibrate pattern for the notification. Default values are specified in config.xml. If default_vibrate_timings is set to true and vibrate_timings is also set, the default value is used instead of the user-specified vibrate_timings. |
| 87 | + /// If set to true, use the Android framework's default vibrate pattern for the notification. |
| 88 | + /// Default values are specified in config.xml. |
| 89 | + /// If default_vibrate_timings is set to true and vibrate_timings is also set, |
| 90 | + /// the default value is used instead of the user-specified vibrate_timings. |
74 | 91 | public var default_vibrate_timings: Bool?
|
75 | 92 |
|
76 |
| - /// If set to true, use the Android framework's default LED light settings for the notification. Default values are specified in config.xml. If default_light_settings is set to true and light_settings is also set, the user-specified light_settings is used instead of the default value. |
| 93 | + /// If set to true, use the Android framework's default LED light settings for the notification. |
| 94 | + /// Default values are specified in config.xml. |
| 95 | + /// If default_light_settings is set to true and light_settings is also set, |
| 96 | + /// the user-specified light_settings is used instead of the default value. |
77 | 97 | public var default_light_settings: Bool?
|
78 | 98 |
|
79 |
| - /// Set the vibration pattern to use. Pass in an array of protobuf.Duration to turn on or off the vibrator. The first value indicates the Duration to wait before turning the vibrator on. The next value indicates the Duration to keep the vibrator on. Subsequent values alternate between Duration to turn the vibrator off and to turn the vibrator on. If vibrate_timings is set and default_vibrate_timings is set to true, the default value is used instead of the user-specified vibrate_timings. |
| 99 | + /// Set the vibration pattern to use. |
| 100 | + /// Pass in an array of protobuf.Duration to turn on or off the vibrator. |
| 101 | + /// The first value indicates the Duration to wait before turning the vibrator on. |
| 102 | + /// The next value indicates the Duration to keep the vibrator on. |
| 103 | + /// Subsequent values alternate between Duration to turn the vibrator off and to turn the vibrator on. |
| 104 | + /// If vibrate_timings is set and default_vibrate_timings is set to true, |
| 105 | + /// the default value is used instead of the user-specified vibrate_timings. |
80 | 106 | /// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
|
81 | 107 | public var vibrate_timings: [String]?
|
82 | 108 |
|
83 | 109 | /// Set the Notification.visibility of the notification.
|
84 | 110 | public var visibility: FCMAndroidNotificationVisibility?
|
85 | 111 |
|
86 |
| - /// Sets the number of items this notification represents. May be displayed as a badge count for launchers that support badging.See Notification Badge. For example, this might be useful if you're using just one notification to represent multiple new messages but you want the count here to represent the number of total new messages. If zero or unspecified, systems that support badging use the default, which is to increment a number displayed on the long-press menu each time a new notification arrives. |
| 112 | + /// Sets the number of items this notification represents. |
| 113 | + /// May be displayed as a badge count for launchers that support badging.See Notification Badge. |
| 114 | + /// For example, this might be useful if you're using just one notification to represent multiple new messages |
| 115 | + /// but you want the count here to represent the number of total new messages. |
| 116 | + /// If zero or unspecified, systems that support badging use the default, |
| 117 | + /// which is to increment a number displayed on the long-press menu each time a new notification arrives. |
87 | 118 | public var notification_count: Int?
|
88 | 119 |
|
89 |
| - /// Settings to control the notification's LED blinking rate and color if LED is available on the device. The total blinking time is controlled by the OS. |
| 120 | + /// Settings to control the notification's LED blinking rate and color if LED is available on the device. |
| 121 | + /// The total blinking time is controlled by the OS. |
90 | 122 | public var light_settings: FCMAndroidNotificationLightSettings?
|
91 | 123 |
|
92 |
| - /// Contains the URL of an image that is going to be displayed in a notification. If present, it will override google.firebase.fcm.v1.Notification.image. |
| 124 | + /// Contains the URL of an image that is going to be displayed in a notification. |
| 125 | + /// If present, it will override google.firebase.fcm.v1.Notification.image. |
93 | 126 | public var image: String?
|
94 | 127 |
|
95 | 128 | /// Public Initializer
|
|
0 commit comments