AirflexNotifications 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
-
addOpenMessageListener(OpenMessageListener listener)
→ void
-
-
getInboxNotifications(String userId, {int? limit, String? cursor, String? topicCode, bool unreadOnly = false})
→ Future<InboxNotificationPageData?>
-
One page of the user's inbox, newest first. Returns null on error.
-
getInboxUnreadCount(String userId)
→ Future<int?>
-
Unread count for the badge, capped at 100 by the server (show
99+). Returns null on error.
-
getUserTopics(String userId)
→ Future<List<GroupTopicData>?>
-
-
markAllInboxNotificationsRead(String userId, {String? topicCode})
→ Future<bool>
-
Marks all notifications as read, or only those of
topicCode.
-
markInboxNotificationsRead(String userId, List<String> ids)
→ Future<int?>
-
Marks 1 to 100 notifications as read, returns the number that changed to read or null on error.
Ids already read or not owned by the user are ignored.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onMessage()
→ Stream<Map<String, dynamic>>
-
-
registerAirflexNotification({required String userId})
→ Future<void>
-
-
removeOpenMessageListener(OpenMessageListener listener)
→ void
-
-
setForegroundNotification({IOSNotificationForegroundSetting iOSsetting = const IOSNotificationForegroundSetting(), required AndroidNotificationForegroundSetting androidSetting})
→ Future<void>
-
-
setTopicSubcribeStatus(String userId, String topicCode, bool isSubcribe)
→ Future<bool>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
unregisterAirflexNotification(String userId)
→ Future<void>
-