Definition
- Namespace:
- Tizen.Network.WiFiDirect
- Assembly:
- Tizen.Network.WiFiDirect.dll
- API Level:
- 3
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/wifidirect
The WiFiDirectPeer class is used to handle the connection with remote devices using Wi-Fi Direct.
public class WiFiDirectPeer
- Inheritance
-
Properties
View Source
Channel
The listening channel of the peer device.
Declaration
public int Channel { get; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
Display
The Wi-Fi display device type of the peer device.
Declaration
public WiFiDirectDisplayType Display { get; }
Property Value
API Level: 3
View Source
DisplayAvailability
The Wi-Fi display session availability of the peer device.
Declaration
public bool DisplayAvailability { get; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
View Source
Hdcp
The HDCP information of the peer device.
Declaration
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
InterfaceAddress
The Interface address of the peer device.
Declaration
public string InterfaceAddress { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
View Source
IpAddress
The IP address of the peer device.
Declaration
public string IpAddress { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
View Source
IsConnected
The connected state of the peer device.
Declaration
public bool IsConnected { get; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
View Source
IsGroupOwner
The P2P group state of the peer device.
Declaration
public bool IsGroupOwner { get; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
View Source
IsMiracastDevice
Checks if the peer device is a Wi-Fi display device.
Declaration
public bool IsMiracastDevice { get; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
View Source
IsP2PInvitationSupported
The P2P invitation state of the peer device.
Declaration
public bool IsP2PInvitationSupported { get; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
View Source
MacAddress
The MAC address of the peer device.
Declaration
public string MacAddress { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
View Source
P2PSupport
The P2P state of the peer device.
Declaration
public bool P2PSupport { get; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
View Source
Port
The port of the connected peer device.
Declaration
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
PrimaryType
The primary catagory of the peer device.
Declaration
public WiFiDirectPrimaryDeviceType PrimaryType { get; }
Property Value
API Level: 3
Declaration
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
SecondaryType
The sub category of the peer device.
Declaration
public WiFiDirectSecondaryDeviceType SecondaryType { get; }
Property Value
API Level: 3
View Source
ServiceCount
The number of registered services of the peer device.
Declaration
public uint ServiceCount { get; }
Property Value
Type |
Description |
System.UInt32 |
|
API Level: 3
View Source
ServiceList
The list of registered services of the peer device.
Declaration
public IEnumerable<string> ServiceList { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
API Level: 3
View Source
Throughput
The Wi-Fi display maximum throughput of the peer device.
Declaration
public int Throughput { get; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
WpsTypes
The list of the supported WPS type of the peer device.
Declaration
public int WpsTypes { get; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
Methods
View Source
CancelConnection()
Cancels the connection now in progress.
Declaration
public void CancelConnection()
Exceptions
Type |
Condition |
System.NotSupportedException |
Thrown when the Wi-Fi Direct is not supported.
|
API Level: 3
View Source
CancelServiceDiscovery(WiFiDirectServiceType)
Stops the Wi-Fi Direct service discovery.
Declaration
public void CancelServiceDiscovery(WiFiDirectServiceType type)
Parameters
Exceptions
Type |
Condition |
System.NotSupportedException |
Thrown during one of the following cases:
- When the Wi-Fi Direct is not supported.
- When the Wi-Fi Direct service discovery is not supported.
|
API Level: 3
View Source
Connect()
Connects to a specified remote device.
Declaration
Exceptions
Type |
Condition |
System.NotSupportedException |
Thrown when the Wi-Fi Direct is not supported
|
API Level: 3
View Source
Disconnect()
Disconnects the specified remote device.
Declaration
Exceptions
Type |
Condition |
System.NotSupportedException |
Thrown when the Wi-Fi Direct is not supported.
|
API Level: 3
View Source
SetAutoConnect()
Allows a device to connect automatically.
Declaration
public void SetAutoConnect()
Exceptions
Type |
Condition |
System.NotSupportedException |
Thrown when the Wi-Fi Direct is not supported.
|
API Level: 3
View Source
StartServiceDiscovery(WiFiDirectServiceType)
Starts the Wi-Fi Direct service discovery.
Declaration
public void StartServiceDiscovery(WiFiDirectServiceType type)
Parameters
Exceptions
Type |
Condition |
System.NotSupportedException |
Thrown during one of the following cases:
- When the Wi-Fi Direct is not supported.
- When the Wi-Fi Direct service discovery is not supported.
|
API Level: 3
Events
View Source
ConnectionStateChanged
The ConnectionStateChanged event is raised when the connection state of the peer device changes.
Declaration
public event EventHandler<ConnectionStateChangedEventArgs> ConnectionStateChanged
Event Type
API Level: 3
View Source
IpAddressAssigned
The IpAddressAssigned event is raised when the IP address of the peer device is assigned.
Declaration
public event EventHandler<IpAddressAssignedEventArgs> IpAddressAssigned
Event Type
API Level: 3
View Source
ServiceStateChanged
The ServiceStateChanged event is raised when the state of service discovery is changed.
Declaration
public event EventHandler<ServiceStateChangedEventArgs> ServiceStateChanged
Event Type
API Level: 3