WifiDirectPluginPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- WifiDirectPluginPlatform
- Implementers
Constructors
Properties
-
connectionStream
→ Stream<
WifiDirectConnectionInfo> -
Stream of connection status
no setter
-
dataStream
→ Stream<
Uint8List> -
Stream of received data
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
peersStream
→ Stream<
List< WifiP2pDevice> > -
Stream of discovered peers
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
String deviceAddress) → Future< bool> - Connect to a peer
-
disconnect(
) → Future< bool> - Disconnect from current connection
-
getConnectedDeviceInfo(
) → Future< Map< String, dynamic> ?> - Get connected device information
-
getFullConnectionStatus(
) → Future< Map< String, dynamic> > - Get full connection status
-
getPeerDisplayInfo(
) → Future< String> - Get peer display info
-
getPeerIpAddress(
) → Future< String?> - Get peer IP address
-
initialize(
) → Future< bool> - Initialize the plugin
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveToDownloads(
String sourcePath, String fileName) → Future< String?> - Save file to downloads directory
-
sendFile(
String filePath) → Future< bool> - Send file
-
sendImage(
String imagePath) → Future< bool> - Send image
-
sendText(
String text) → Future< bool> - Send text message
-
startAsClient(
{String? deviceName}) → Future< bool> - Start as client with optional device name
-
startAsServer(
[String? deviceName]) → Future< bool> - Start as server (Group Owner) with optional device name
-
startDiscovery(
) → Future< bool> - Start peer discovery
-
stopDiscovery(
) → Future< bool> - Stop peer discovery
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ WifiDirectPluginPlatform
-
getter/setter pair