startLiveActivity method
Implementation
@override
Future<String?> startLiveActivity({
required String title,
required String content,
double? progress,
}) async {
final result = await methodChannel.invokeMethod<String>('startLiveActivity', {
'title': title,
'content': content,
if (progress != null) 'progress': progress,
});
return result; // Returns the activity ID string, or null on failure
}