reportIntentProgress method
Reports progress for a running long-running intent execution (#130).
executionId names the perform() call that is waiting; completed and
total are unit counts fed to the intent's Progress.
Implementation
@override
Future<void> reportIntentProgress(
String executionId,
int completed,
int total,
) async {
try {
await methodChannel.invokeMethod('reportIntentProgress', {
'executionId': executionId,
'completed': completed,
'total': total,
});
} on MissingPluginException {
// No-op on platforms that don't implement this (e.g., Android).
// LongRunningIntent progress is iOS-specific.
}
}