IOSBridge class

iOS bridge singleton for native communication.

Provides methods for:

  • Widget data updates
  • Widget refresh
  • App Group container access
  • Widget click event handling

Constructors

IOSBridge()
Gets the singleton instance.
factory

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

getClickEvents() Stream<Map<String, dynamic>>
Gets the stream of widget click events.
initialize({required String appGroupId}) Future<void>
Initializes the bridge with app group ID.
loadConfig() Future<Map<String, dynamic>?>
Loads widget configuration from App Group container.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshAllWidgets() Future<void>
Refreshes all widgets.
refreshWidget({required String widgetSize}) Future<void>
Refreshes a specific widget.
saveConfig(Map<String, dynamic> config) Future<void>
Saves widget configuration to App Group container.
toString() String
A string representation of this object.
inherited
updateWidgetData({required WidgetData data, required String widgetSize}) Future<void>
Updates widget data.

Operators

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