@@ -13,7 +13,7 @@ import io.flutter.plugin.common.StandardMethodCodec
13
13
import io.flutter.plugin.common.StandardMessageCodec
14
14
import java.io.ByteArrayOutputStream
15
15
import java.nio.ByteBuffer
16
- private object NotificationsPigeonUtils {
16
+ private object AndroidNotificationsPigeonUtils {
17
17
18
18
fun wrapResult (result : Any? ): List <Any ?> {
19
19
return listOf (result)
@@ -128,7 +128,7 @@ data class NotificationChannel (
128
128
if (this == = other) {
129
129
return true
130
130
}
131
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
131
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
132
132
133
133
override fun hashCode (): Int = toList().hashCode()
134
134
}
@@ -171,7 +171,7 @@ data class AndroidIntent (
171
171
if (this == = other) {
172
172
return true
173
173
}
174
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
174
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
175
175
176
176
override fun hashCode (): Int = toList().hashCode()
177
177
}
@@ -215,7 +215,7 @@ data class PendingIntent (
215
215
if (this == = other) {
216
216
return true
217
217
}
218
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
218
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
219
219
220
220
override fun hashCode (): Int = toList().hashCode()
221
221
}
@@ -249,7 +249,7 @@ data class InboxStyle (
249
249
if (this == = other) {
250
250
return true
251
251
}
252
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
252
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
253
253
254
254
override fun hashCode (): Int = toList().hashCode()
255
255
}
@@ -299,7 +299,7 @@ data class Person (
299
299
if (this == = other) {
300
300
return true
301
301
}
302
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
302
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
303
303
304
304
override fun hashCode (): Int = toList().hashCode()
305
305
}
@@ -339,7 +339,7 @@ data class MessagingStyleMessage (
339
339
if (this == = other) {
340
340
return true
341
341
}
342
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
342
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
343
343
344
344
override fun hashCode (): Int = toList().hashCode()
345
345
}
@@ -382,7 +382,7 @@ data class MessagingStyle (
382
382
if (this == = other) {
383
383
return true
384
384
}
385
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
385
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
386
386
387
387
override fun hashCode (): Int = toList().hashCode()
388
388
}
@@ -419,7 +419,7 @@ data class Notification (
419
419
if (this == = other) {
420
420
return true
421
421
}
422
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
422
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
423
423
424
424
override fun hashCode (): Int = toList().hashCode()
425
425
}
@@ -459,7 +459,7 @@ data class StatusBarNotification (
459
459
if (this == = other) {
460
460
return true
461
461
}
462
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
462
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
463
463
464
464
override fun hashCode (): Int = toList().hashCode()
465
465
}
@@ -509,11 +509,11 @@ data class StoredNotificationSound (
509
509
if (this == = other) {
510
510
return true
511
511
}
512
- return NotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
512
+ return AndroidNotificationsPigeonUtils .deepEquals(toList(), other.toList()) }
513
513
514
514
override fun hashCode (): Int = toList().hashCode()
515
515
}
516
- private open class NotificationsPigeonCodec : StandardMessageCodec () {
516
+ private open class AndroidNotificationsPigeonCodec : StandardMessageCodec () {
517
517
override fun readValueOfType (type : Byte , buffer : ByteBuffer ): Any? {
518
518
return when (type) {
519
519
129 .toByte() -> {
@@ -721,7 +721,7 @@ interface AndroidNotificationHostApi {
721
721
companion object {
722
722
/* * The codec used by AndroidNotificationHostApi. */
723
723
val codec: MessageCodec <Any ?> by lazy {
724
- NotificationsPigeonCodec ()
724
+ AndroidNotificationsPigeonCodec ()
725
725
}
726
726
/* * Sets up an instance of `AndroidNotificationHostApi` to handle messages through the `binaryMessenger`. */
727
727
@JvmOverloads
@@ -737,7 +737,7 @@ interface AndroidNotificationHostApi {
737
737
api.createNotificationChannel(channelArg)
738
738
listOf (null )
739
739
} catch (exception: Throwable ) {
740
- NotificationsPigeonUtils .wrapError(exception)
740
+ AndroidNotificationsPigeonUtils .wrapError(exception)
741
741
}
742
742
reply.reply(wrapped)
743
743
}
@@ -752,7 +752,7 @@ interface AndroidNotificationHostApi {
752
752
val wrapped: List <Any ?> = try {
753
753
listOf (api.getNotificationChannels())
754
754
} catch (exception: Throwable ) {
755
- NotificationsPigeonUtils .wrapError(exception)
755
+ AndroidNotificationsPigeonUtils .wrapError(exception)
756
756
}
757
757
reply.reply(wrapped)
758
758
}
@@ -770,7 +770,7 @@ interface AndroidNotificationHostApi {
770
770
api.deleteNotificationChannel(channelIdArg)
771
771
listOf (null )
772
772
} catch (exception: Throwable ) {
773
- NotificationsPigeonUtils .wrapError(exception)
773
+ AndroidNotificationsPigeonUtils .wrapError(exception)
774
774
}
775
775
reply.reply(wrapped)
776
776
}
@@ -785,7 +785,7 @@ interface AndroidNotificationHostApi {
785
785
val wrapped: List <Any ?> = try {
786
786
listOf (api.listStoredSoundsInNotificationsDirectory())
787
787
} catch (exception: Throwable ) {
788
- NotificationsPigeonUtils .wrapError(exception)
788
+ AndroidNotificationsPigeonUtils .wrapError(exception)
789
789
}
790
790
reply.reply(wrapped)
791
791
}
@@ -803,7 +803,7 @@ interface AndroidNotificationHostApi {
803
803
val wrapped: List <Any ?> = try {
804
804
listOf (api.copySoundResourceToMediaStore(targetFileDisplayNameArg, sourceResourceNameArg))
805
805
} catch (exception: Throwable ) {
806
- NotificationsPigeonUtils .wrapError(exception)
806
+ AndroidNotificationsPigeonUtils .wrapError(exception)
807
807
}
808
808
reply.reply(wrapped)
809
809
}
@@ -835,7 +835,7 @@ interface AndroidNotificationHostApi {
835
835
api.notify(tagArg, idArg, autoCancelArg, channelIdArg, colorArg, contentIntentArg, contentTextArg, contentTitleArg, extrasArg, groupKeyArg, inboxStyleArg, isGroupSummaryArg, messagingStyleArg, numberArg, smallIconResourceNameArg)
836
836
listOf (null )
837
837
} catch (exception: Throwable ) {
838
- NotificationsPigeonUtils .wrapError(exception)
838
+ AndroidNotificationsPigeonUtils .wrapError(exception)
839
839
}
840
840
reply.reply(wrapped)
841
841
}
@@ -852,7 +852,7 @@ interface AndroidNotificationHostApi {
852
852
val wrapped: List <Any ?> = try {
853
853
listOf (api.getActiveNotificationMessagingStyleByTag(tagArg))
854
854
} catch (exception: Throwable ) {
855
- NotificationsPigeonUtils .wrapError(exception)
855
+ AndroidNotificationsPigeonUtils .wrapError(exception)
856
856
}
857
857
reply.reply(wrapped)
858
858
}
@@ -869,7 +869,7 @@ interface AndroidNotificationHostApi {
869
869
val wrapped: List <Any ?> = try {
870
870
listOf (api.getActiveNotifications(desiredExtrasArg))
871
871
} catch (exception: Throwable ) {
872
- NotificationsPigeonUtils .wrapError(exception)
872
+ AndroidNotificationsPigeonUtils .wrapError(exception)
873
873
}
874
874
reply.reply(wrapped)
875
875
}
@@ -888,7 +888,7 @@ interface AndroidNotificationHostApi {
888
888
api.cancel(tagArg, idArg)
889
889
listOf (null )
890
890
} catch (exception: Throwable ) {
891
- NotificationsPigeonUtils .wrapError(exception)
891
+ AndroidNotificationsPigeonUtils .wrapError(exception)
892
892
}
893
893
reply.reply(wrapped)
894
894
}
0 commit comments