You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val separatedMessageChannelSuffix =if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix"else""
378
+
run {
379
+
val channel =BasicMessageChannel<Any?>(binaryMessenger, "dev.flutter.pigeon.zulip.AndroidNotificationHostApi.createNotificationChannel$separatedMessageChannelSuffix", codec)
380
+
if (api !=null) {
381
+
channel.setMessageHandler { message, reply ->
382
+
val args = message asList<Any?>
383
+
val channelArg = args[0] asNotificationChannel
384
+
val wrapped:List<Any?> =try {
385
+
api.createNotificationChannel(channelArg)
386
+
listOf(null)
387
+
} catch (exception:Throwable) {
388
+
wrapError(exception)
389
+
}
390
+
reply.reply(wrapped)
391
+
}
392
+
} else {
393
+
channel.setMessageHandler(null)
394
+
}
395
+
}
320
396
run {
321
397
val channel =BasicMessageChannel<Any?>(binaryMessenger, "dev.flutter.pigeon.zulip.AndroidNotificationHostApi.notify$separatedMessageChannelSuffix", codec)
/// Corresponds to [`NotificationChannelCompat.Builder`](https://developer.android.com/reference/androidx/core/app/NotificationChannelCompat.Builder#Builder(java.lang.String,int))
102
+
NotificationChannel({
103
+
requiredthis.id,
104
+
requiredthis.importance,
105
+
this.name,
106
+
this.lightsEnabled,
107
+
this.vibrationPattern,
108
+
});
109
+
110
+
finalString id;
111
+
112
+
/// Specifies the importance level of notifications
113
+
/// to be posted on this channel.
114
+
///
115
+
/// Must be a valid constant from [NotificationImportance].
116
+
finalint importance;
117
+
118
+
finalString? name;
119
+
finalbool? lightsEnabled;
120
+
finalInt64List? vibrationPattern;
121
+
}
122
+
97
123
@HostApi()
98
124
abstractclassAndroidNotificationHostApi {
125
+
/// Corresponds to `androidx.core.app.NotificationManagerCompat.createNotificationChannel`.
0 commit comments