SystemAlertWindow class
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
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