RealtimeNetworkPlatform class abstract
Platform interface for RealtimeNetwork.
This defines the contract that all platform implementations (Android, iOS, Web, etc.) must follow.
- Inheritance
-
- Object
- PlatformInterface
- RealtimeNetworkPlatform
- Implementers
Constructors
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
-
listenConnectivity(
) → Stream< bool> - Listen for real-time connectivity changes (online/offline).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runTest(
) → Future< NetworkStats> - Run a one-time speed test.
-
startListening(
{int intervalSeconds = 10}) → Stream< NetworkStats> - Listen for real-time network speed updates.
-
stopConnectivityListening(
) → Future< void> - Stop listening for connectivity changes.
-
stopListening(
) → Future< void> - Stop listening for updates.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ RealtimeNetworkPlatform
-
The default instance of RealtimeNetworkPlatform to use.
getter/setter pair