nearby_service library

Classes

NearbyAndroidCommunicationChannelData
Android-specific connection data.
NearbyAndroidDevice
A device on a P2P network obtained from the Android platform.
NearbyAndroidMapper
Implementation of NearbyDeviceMapper for Android.
NearbyAndroidService
Android implementation for NearbyService.
NearbyCommunicationChannelData
A class for creating a communication channel.
NearbyConnectionAndroidInfo
The class representing the connection information of a Wi-Fi p2p group connection for Android.
NearbyConnectionInfoMapper
Mapper from JSON to NearbyConnectionAndroidInfo
NearbyDevice
The model of the device found in the P2P network.
NearbyDeviceInfo
Minimal information about the device.
NearbyDeviceMapper
Converter for devices from JSON to models.
NearbyFileInfo
A representation of a file that can be got from the Nearby Service's communication channel.
NearbyInitializeData
Data for plugin initialization.
NearbyIOSDevice
A device on a P2P network obtained from the IOS platform.
NearbyIOSMapper
Implementation of NearbyDeviceMapper for IOS.
NearbyIOSService
IOS implementation for NearbyService.
NearbyMessage<C extends NearbyMessageContent>
Basic Message Abstraction.
NearbyMessageContent
Abstraction for the message content. The NearbyMessageContentType is used to determine, what type of content is it.
NearbyMessageFilesRequest
Nearby message File Request. Used for files sending requests. Contains info about the files.
NearbyMessageFilesResponse
Nearby message File Response. Used for file sending responses.
NearbyMessageTextRequest
Nearby message Text content.
NearbyMessageTextResponse
NearbyOutgoingInterface
NearbyReceivedInterface
NearbyService
The main tool for working with a P2P network. Implementations:
NearbyServiceAndroidPlatform
NearbyServiceFilesListener
Stream Subscription Listener.
NearbyServiceIOSPlatform
NearbyServiceMessagesListener
Stream Subscription Listener.
NearbyServiceSocketListener<T>
Stream Subscription Listener.
OutgoingNearbyMessage<C extends NearbyMessageContent>
The message that will be sent from the current device.
ReceivedNearbyFilesPack
Used to provide result files that was got from sender.
ReceivedNearbyMessage<C extends NearbyMessageContent>
Message received by the current device.

Enums

CommunicationChannelState
The status of the communication channel for data exchange. Use it to determine if you can send data over the communication channel or not.
NearbyDeviceStatus
Status of device connection.
NearbyMessageContentType
Type of the message.
NearbyServiceLogLevel
Determines what level of logging the plugin will use.

Exceptions / Errors

NearbyServiceBusyException
The Wi-Fi P2P framework is currently busy. Please wait for the current operation to complete before initiating another.
NearbyServiceException
Nearby Service Plugin Exception.
NearbyServiceGenericErrorException
A generic error occurred. This could be due to various reasons such as hardware issues, Wi-Fi being turned off, or temporary issues with the Wi-Fi P2P framework.
NearbyServiceInvalidMessageException
An attempt to send an invalid message on the sender's side. Add content validation to your messages
NearbyServiceNoServiceRequestsException
No service discovery requests have been made. Ensure that you have initiated a service discovery request before attempting to connect.
NearbyServiceP2PUnsupportedException
Wi-Fi P2P is not supported on this device
NearbyServiceUnknownException
An unknown error occurred. Please check the device's Wi-Fi P2P settings and ensure the device supports Wi-Fi P2P.
NearbyServiceUnsupportedDecodingException
Error decoding messages from native platform to Dart (open an issue if this happens!)
NearbyServiceUnsupportedPlatformException
Usage of the plugin on an unsupported platform