PushHandler class
Notification handling.
Constructors
- PushHandler(PushHandleStrategyFactory _strategyFactory, NotificationController _notificationController, BaseMessagingService _messagingService, {PlatformWrapper? platform})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
messageSubject
→ PublishSubject<
Map< String, dynamic> > -
The ability to directly subscribe to receive messages.
final
- platform → PlatformWrapper
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectNotificationSubject
→ BehaviorSubject<
PushHandleStrategy< NotificationPayload> > -
final
Methods
-
handleMessage(
Map< String, dynamic> message, MessageHandlerType handlerType, {bool localNotification = false}) → void - Display local notification. MessagingService calls this method to display the notification that came from message service.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermissions(
{bool? soundPemission, bool? alertPermission}) → Future< bool?> -
Request permission for show notification.
soundPemission
- is play sound.alertPermission
- is show alert. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited