flutter_overlay_window icon indicating copy to clipboard operation
flutter_overlay_window copied to clipboard

How to create 2 overlay service at the same time?

Open lkc33 opened this issue 1 year ago • 2 comments

Hi, Hi, i m new to flutter and overlay service? How to create 2 overlay services at the same time? can we add this to manifest <service android:name="flutter.overlay.window.flutter_overlay_window.OverlayService" android:foregroundServiceType="specialUse"> <service android:name="flutter.overlay.window.flutter_overlay_window.OverlayService2" android:foregroundServiceType="specialUse">

    and any way to add this ?
    Future<void> startOverlay1() async {

await PlatformChannels.platform.invokeMethod('startService', 'com.example.flutter_overlay_window_example.OverlayService'); }

Future startOverlay2() async { await PlatformChannels.platform.invokeMethod('startService', 'com.example.flutter_overlay_window_example.OverlayService2'); }

thanks

lkc33 avatar Aug 14 '24 23:08 lkc33