MethodChannelScreenLaunchByNotfication class
An implementation of ScreenLaunchByNotficationPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- ScreenLaunchByNotficationPlatform
- MethodChannelScreenLaunchByNotfication
Constructors
Properties
- eventChannel → EventChannel
-
The event channel used to receive notification tap events when app is running.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getNotificationStream(
) → Stream< Map< String, dynamic> > - Stream of notification tap events when app is already running. Emits a Map with 'isFromNotification' (bool) and 'payload' (String) keys.
-
getPlatformVersion(
) → Future< String?> -
override
-
isFromNotification(
) → Future< Map< String, dynamic> > -
Checks if the app was launched from a notification tap.
Returns a Map with 'isFromNotification' (bool) and 'payload' (String) keys.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
storeNotificationPayload(
String payload) → Future< bool> -
Stores notification payload in native storage for later retrieval.
This is useful when sending notifications before the app is closed.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited