MRefreshAction class

Reloads the widget in place, without naming a callback.

iOS reloads the timeline via a MosaicRefreshIntent (iOS 17+, falling back to a hwrefresh:// link below that). Android refetches every refresh: source in mosaic.yaml that supplies a key this widget binds, then redraws. Both run in the widget process, so the button works with the app closed.

Use MActionCallback instead when you want one named source, or to hand the tap to Dart. While the fetch is in flight mosaic_refreshing is true, so an MActivityIndicator bound to it shows a spinner.

Inheritance

Constructors

MRefreshAction()
Creates a refresh action.
const

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
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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