NotificationBuilder class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
buildCallNotificationChannel()
→ AndroidNotificationChannel
-
-
buildNotificationChannel(String chatChannelId, String? chatChannelName, bool isSummaryNotification)
→ AndroidNotificationChannel
-
- Build notification channel with given notification ID.
- @parameter notificationId Unique notification id of the conversation
- @return AndroidNotificationChannel
-
cancelNotification(int id)
→ dynamic
-
id
indicates notification id
in Android
chat jid hashcode as Notification id (Code line 34)
-
cancelNotifications()
→ dynamic
-
-
clearConversationOnNotification(String jid)
→ Future<void>
-
-
createCallNotification(String title, String messageContent)
→ dynamic
-
-
createNotification(ChatMessageModel message, {dynamic autoCancel = true})
→ dynamic
-
- Create notification when new chat message received
- @parameter message Instance of ChatMessage in NotificationMessageModel
-
displayMessageNotification(int notificationId, int messageId, ProfileDetails profileDetails, String lastMessageContent, int lastMessageTime, String senderChatJID, bool autoCancel, String topicId)
→ dynamic
-
- Create Notification and display chat message notification
- @parameter notificationId Unique notification id of the conversation
- @parameter profileDetails ProfileDetails of the conversation
- @parameter messagingStyle Unique MessagingStyle of the conversation
- @parameter lastMessageContent Last message of the conversation
- @parameter lastMessageTime Time of the last message
-
getCallNotificationChannelId()
→ String
-
-
getDefaultVibrate()
→ Int64List
-
-
getNotificationChannelId(bool isSummaryNotification, String chatChannelId)
→ String
-
-
getTotalUnReadCount()
→ Future<int>
-