File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ module Data =
137
137
138
138
let add_soundname str t = add_raw_string " soundname" str t
139
139
140
+ let add_notification_channel_id id t =
141
+ (" android_channel_id" , `String id) :: t
142
+
140
143
let add_notification_id id t =
141
144
(" notId" , `Int id) :: t
142
145
Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ module Data :
177
177
(* * The type representing a data payload. *)
178
178
type t
179
179
180
+ val to_json : t -> Yojson.Safe .json
181
+
180
182
(* * [to_list data] returns the representation of the data as a list of
181
183
tuples [(data_key, json_value)]. *)
182
184
val to_list : t -> (string * Yojson.Safe .json ) list
@@ -222,9 +224,11 @@ module Data :
222
224
notification area instead of one. If a new notification has the same
223
225
ID as an older one, the new one will replace it. It is useful for
224
226
chats for example.
225
- *)
227
+ *)
226
228
val add_notification_id : int -> t -> t
227
229
230
+ val add_notification_channel_id : string -> t -> t
231
+
228
232
module Style :
229
233
sig
230
234
type t = Inbox | Picture
You can’t perform that action at this time.
0 commit comments