MethodChannelNexus class
Method-channel implementation of NexusPlatform (Android/iOS/macOS/…).
- Inheritance
-
- Object
- PlatformInterface
- NexusPlatform
- MethodChannelNexus
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
configureCrashReporting(
bool enabled) → Future< void> -
Install (or remove) the native uncaught-exception / signal handlers that
persist crashes for forwarding on the next launch. No-op where unsupported.
override
-
deviceInfo(
) → Future< Map< String, Object?> > -
Device + OS + app context (osType, osVersion, deviceModel, appVersion, …).
override
-
endLiveActivity(
int id) → Future< void> -
Remove an Android live ongoing notification (end of a live activity).
override
-
getPlatformVersion(
) → Future< String?> -
override
-
liveActivityEnd(
{required String activityId, Map< String, dynamic> ? finalContentState}) → Future<void> -
End a running iOS Live Activity.
override
-
liveActivityObservePushToStart(
String activityType) → Future< void> -
Observe push-to-start tokens (iOS 17.2+) for an activity type; tokens are
delivered via onLiveActivityToken.
override
-
liveActivityStart(
{required String activityId, required String activityType, required Map< String, dynamic> contentState, Map<String, dynamic> ? attributes}) → Future<void> -
Start an iOS Live Activity (ActivityKit) with the turn-key default
attributes. The native side registers its update token via onLiveActivityToken.
override
-
liveActivityUpdate(
{required String activityId, required Map< String, dynamic> contentState}) → Future<void> -
Update a running iOS Live Activity's content state.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLiveActivityToken(
void sink(Map< String, dynamic> info)) → void -
Register a sink for ActivityKit tokens.
infocarries{ kind: 'pushToStart'|'update', activityType?, activityId?, token }.override -
onNotificationTap(
void sink(Map< String, dynamic> info)) → void -
Register a sink for taps on notifications posted via showNotification.
Receives the decoded
payloadmap so the caller can attribute the open.override -
onReplayBatch(
void sink(String, List< Object?> )) → void -
Register a sink for batches of replay events pushed up from native.
override
-
showLiveActivity(
{required int id, required String channelId, required String channelName, String? title, String? body, String? subText, int? progress, bool indeterminate = false, bool ongoing = true, String? payload}) → Future< bool> -
Post or update an Android live ongoing notification (the Android equivalent
of an iOS Live Activity). Uses a promoted Live Update (ProgressStyle) on
Android 16+, a normal ongoing notification with a progress bar otherwise.
Returns
trueif shown.override -
showNotification(
{required int id, String? title, String? body, required String channelId, required String channelName, String? payload, String? largeIcon, String? bigPicture, String? smallIcon, String? visibility, String? accentColor, List< Map< ? buttons}) → Future<String, String?> >bool> -
Post a notification from native code (used to render foreground pushes on
Android, since FCM does not draw one while the app is open). Returns
trueif it was shown. No-op /falsewhere unsupported.payloadis stashed on the tap intent and delivered back via onNotificationTap.override -
startReplay(
String recordingId) → Future< void> -
Begin native session-replay capture for
recordingId. No-op where the native SDK isn't present (web/desktop today).override -
stopReplay(
) → Future< void> -
Stop native session-replay capture.
override
-
takePendingCrashes(
) → Future< List< Map< >String, Object?> > -
Return and clear native crashes persisted since the last launch. Each map:
{ type, message, stack (frames or string), platform, timestamp }.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited