SystemAlertWindow class

Constructors

SystemAlertWindow()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

getLogFile Future<String?>
Fetches the generated log file
no setter
overlayListener Stream
no setter
platformVersion Future<String?>
Fetches the current platform version
no setter

Static Methods

checkPermissions({SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT}) Future<bool?>
Check if system window permission is granted
closeSystemWindow({SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT}) Future<bool?>
Closes the system window
disposeOverlayListener() → void
enableLogs(bool flag) Future<void>
Method to enable the logs. By default, logs are disabled
removeOnClickListener() Future<bool>
requestPermissions({SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT}) Future<bool?>
Request the corresponding system window permission
sendMessageToOverlay(dynamic data) Future
Broadcast data to and from overlay app
showSystemWindow({SystemWindowGravity gravity = SystemWindowGravity.CENTER, int? width, int? height, String notificationTitle = "Title", String notificationBody = "Body", SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT, bool isDisableClicks = false}) Future<bool?>
Show System Window
updateSystemWindow({SystemWindowGravity gravity = SystemWindowGravity.CENTER, int? width, int? height, String notificationTitle = "Title", String notificationBody = "Body", SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT, bool isDisableClicks = false}) Future<bool?>
Update System Window