NearbyAndroidDevice class final

A device on a P2P network obtained from the Android platform.

Inheritance

Constructors

NearbyAndroidDevice({required String deviceName, required String deviceAddress, bool isGroupOwner = false, bool isServiceDiscoveryCapable = false, String primaryDeviceType = kNearbyUnknown, bool wpsKeypadSupported = false, bool wpsPbcSupported = false, bool wpsDisplaySupported = false, String? secondaryDeviceType, NearbyDeviceStatus status = NearbyDeviceStatus.unavailable})
The class representing the Android class WifiP2pDevice.
NearbyAndroidDevice.fromJson(Map<String, dynamic>? json)
Gets NearbyAndroidDevice from Map
factory

Properties

deviceAddress String
The device MAC address uniquely identifies a Wi-Fi p2p device. Source WifiP2pDevice documentation
final
hashCode int
The hash code for this object.
no setteroverride
info NearbyDeviceInfo
The minimum information about the device required to display it in the list and connect to it.
finalinherited
isGroupOwner bool
True if the device is a group owner. Source WifiP2pDevice documentation
final
isServiceDiscoveryCapable bool
True if the device is capable of service discovery. Source WifiP2pDevice documentation
final
primaryDeviceType String
Primary device type identifies the type of device. Source WifiP2pDevice documentation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryDeviceType String?
Secondary device type is an optional attribute. that can be provided by a device in addition to the primary device type. Source WifiP2pDevice documentation
final
status NearbyDeviceStatus
The connection status of the device.
finalinherited
wpsDisplaySupported bool
True if WPS display configuration is supported. Source WifiP2pDevice documentation
final
wpsKeypadSupported bool
True if WPS keypad configuration is supported. Source WifiP2pDevice documentation
final
wpsPbcSupported bool
True if WPS push button configuration is supported. Source WifiP2pDevice documentation
final

Methods

byPlatform<T>({T onAny(NearbyDevice)?, T onAndroid(NearbyAndroidDevice)?, T onIOS(NearbyIOSDevice)?}) → T?
If you want to get different data depending on the platform, use byPlatform.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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