MethodChannelWifiDirectPlugin class

Inheritance

Properties

connectionStream Stream<WifiDirectConnectionInfo>
Stream of connection status
no setteroverride
dataStream Stream<Uint8List>
Stream of received data
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
peersStream Stream<List<WifiP2pDevice>>
Stream of discovered peers
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect(String deviceAddress) Future<bool>
Connect to a peer
override
disconnect() Future<bool>
Disconnect from current connection
override
getConnectedDeviceInfo() Future<Map<String, dynamic>?>
Get connected device information
override
getFullConnectionStatus() Future<Map<String, dynamic>>
Get full connection status
override
getPeerDisplayInfo() Future<String>
Get peer display info
override
getPeerIpAddress() Future<String?>
Get peer IP address
override
initialize() Future<bool>
Initialize the plugin
override
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
override
sendFile(String filePath) Future<bool>
Send file
override
sendImage(String imagePath) Future<bool>
Send image
override
sendText(String text) Future<bool>
Send text message
override
startAsClient({String? deviceName}) Future<bool>
Start as client with optional device name
override
startAsServer([String? deviceName]) Future<bool>
Start as server (Group Owner) with optional device name
override
startDiscovery() Future<bool>
Start peer discovery
override
stopDiscovery() Future<bool>
Stop peer discovery
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

dispose() → void