MethodChannelFloatingWindowAndroid class

An implementation of FloatingWindowAndroidPlatform that uses method channels.

Inheritance

Properties

eventChannel EventChannel
Event channel for listening to floating window events
final
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
overlayListener Stream
Get floating window event listener
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cleanupPreloadedEngine() Future<bool>
Clean up preloaded Flutter engine
override
closeOverlay() Future<bool>
Close floating window
override
getOverlayPosition() Future<Map<String, dynamic>>
Get current floating window position
override
getPlatformVersion() Future<String?>
Get platform version
override
isFlutterEnginePreloaded() Future<bool>
Check if Flutter engine is preloaded
override
isMainAppRunning() Future<bool>
Check if main app is running in foreground
override
isPermissionGranted() Future<bool>
Check floating window permission
override
isShowing() Future<bool>
Check if floating window is currently showing
override
moveOverlay(Map<String, dynamic> position) Future<bool>
Move floating window position
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openMainApp([Map<String, dynamic>? params]) Future<bool>
Open main app from floating window
override
preloadFlutterEngine(String dartEntryPoint) Future<bool>
Preload Flutter engine for faster overlay startup
override
requestPermission() Future<bool>
Request floating window permission
override
resizeOverlay(int width, int height) Future<bool>
Resize floating window
override
shareData(dynamic data) Future<bool>
Share data between floating window and main app
override
showOverlay({int? height, int? width, String? alignment, String? notificationVisibility, String? flag, String? overlayTitle, String? overlayContent, bool? enableDrag, String? positionGravity, Map<String, dynamic>? startPosition}) Future<bool>
Show floating window
override
toString() String
A string representation of this object.
inherited
updateFlag(String flag) Future<bool>
Update floating window flag
override

Operators

operator ==(Object other) bool
The equality operator.
inherited