using System.Threading.Tasks;
using System.Runtime.InteropServices;
-/// <summary>
-/// The Connection API provides functions and enumerations to get the status of network and current profile and manages profiles.
-/// </summary>
namespace Tizen.Network.Connection
{
/// <summary>
/// This class manages the connection handle resources.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class SafeConnectionHandle : SafeHandle
{
/// Checks whether the handle value is valid or not.
/// </summary>
/// <value>True if the handle is invalid, otherwise false.</value>
+ /// <since_tizen> 3 </since_tizen>
public override bool IsInvalid
{
get
/// <summary>
/// Adds a route to the routing table.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
/// <param name="family">The address family.</param>
/// <param name="interfaceName">The name of the network interface.</param>
/// <param name="hostAddress">The IP address of the host.</param>
/// <param name="gateway">The gateway address.</param>
/// <privilege>http://tizen.org/privilege/network.get</privilege>
- /// <privilege>http://tizen.org/privilege/network.set</privilege>
+ /// <privilege>http://tizen.org/privilege/network.route</privilege>
/// <feature>http://tizen.org/feature/network.telephony</feature>
/// <feature>http://tizen.org/feature/network.wifi</feature>
/// <feature>http://tizen.org/feature/network.tethering.bluetooth</feature>
/// <feature>http://tizen.org/feature/network.ethernet</feature>
+ /// <feature>http://tizen.org/feature/network.route</feature>
/// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
/// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
/// <exception cref="System.ArgumentException">Thrown when a value is an invalid parameter.</exception>
/// <summary>
/// Removes a route from the routing table.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
/// <param name="family">The address family.</param>
/// <param name="interfaceName">The name of network interface.</param>
/// <param name="hostAddress">The IP address of the host.</param>
/// <param name="gateway">The gateway address.</param>
/// <privilege>http://tizen.org/privilege/network.get</privilege>
- /// <privilege>http://tizen.org/privilege/network.set</privilege>
+ /// <privilege>http://tizen.org/privilege/network.route</privilege>
/// <feature>http://tizen.org/feature/network.telephony</feature>
/// <feature>http://tizen.org/feature/network.wifi</feature>
/// <feature>http://tizen.org/feature/network.tethering.bluetooth</feature>
/// <feature>http://tizen.org/feature/network.ethernet</feature>
+ /// <feature>http://tizen.org/feature/network.route</feature>
/// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
/// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
/// <exception cref="System.ArgumentException">Thrown when a value is an invalid parameter.</exception>
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <value>Cellular network state.</value>
- /// <privilege>http://tizen.org/privilege/network.get</privilege>
+ /// <feature>http://tizen.org/feature/network.telephony</feature>
+ /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
public static CellularState CellularState
{
get
/// <since_tizen> 3 </since_tizen>
/// <value>WiFi connection state.</value>
/// <privilege>http://tizen.org/privilege/network.get</privilege>
+ /// <feature>http://tizen.org/feature/network.wifi</feature>
+ /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+ /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
public static ConnectionState WiFiState
{
get
/// <since_tizen> 3 </since_tizen>
/// <value>Bluetooth connection state.</value>
/// <privilege>http://tizen.org/privilege/network.get</privilege>
+ /// <feature>http://tizen.org/feature/network.tethering.bluetooth</feature>
+ /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+ /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
public static ConnectionState BluetoothState
{
get
/// <since_tizen> 3 </since_tizen>
/// <value>Ethernet connection state.</value>
/// <privilege>http://tizen.org/privilege/network.get</privilege>
+ /// <feature>http://tizen.org/feature/network.ethernet</feature>
+ /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+ /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
public static ConnectionState EthernetState
{
get
/// <since_tizen> 3 </since_tizen>
/// <value>Ethernet cable state.</value>
/// <privilege>http://tizen.org/privilege/network.get</privilege>
+ /// <feature>http://tizen.org/feature/network.ethernet</feature>
+ /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+ /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
public static EthernetCableState EthernetCableState
{
get
/// <since_tizen> 3 </since_tizen>
/// <value>Data connection current profile.</value>
/// <privilege>http://tizen.org/privilege/network.get</privilege>
+ /// <feature>http://tizen.org/feature/network.ethernet</feature>
+ /// <feature>http://tizen.org/feature/network.telephony</feature>
+ /// <feature>http://tizen.org/feature/network.tethering.bluetooth</feature>
+ /// <feature>http://tizen.org/feature/network.wifi</feature>
+ /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+ /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
public ConnectionType Type
{
get
/// <since_tizen> 3 </since_tizen>
/// <value>Connection state of the current connection type.</value>
/// <privilege>http://tizen.org/privilege/network.get</privilege>
+ /// <feature>http://tizen.org/feature/network.ethernet</feature>
+ /// <feature>http://tizen.org/feature/network.telephony</feature>
+ /// <feature>http://tizen.org/feature/network.tethering.bluetooth</feature>
+ /// <feature>http://tizen.org/feature/network.wifi</feature>
+ /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+ /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
public ConnectionState State
{
get