Class ConnectionProfileManager
Definition
- Namespace:
- Tizen.Network.Connection
- Assembly:
- Tizen.Network.Connection.dll
- API Level:
- 3
This is the ConnectionProfileManager class. It provides functions to add, get, connect, or modify the connection profile.
C#Copypublic static class ConnectionProfileManager : object
- Inheritance
-
ConnectionProfileManager
Methods
Declaration
C#Copypublic static void AddCellularProfile(CellularProfile profile)
Parameters
Type | Name | Description |
---|---|---|
CellularProfile | profile | The cellular profile object. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/network.profilehttp://tizen.org/privilege/network.get
Feature: http://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.wifihttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.ethernet
Declaration
C#Copypublic static Task ConnectProfileAsync(ConnectionProfile profile)
Parameters
Type | Name | Description |
---|---|---|
ConnectionProfile | profile | The connection profile object. |
Returns
Type | Description |
---|---|
Task | A task indicates whether the ConnectProfileAsync method is done successfully or not. |
Remarks
This method must be called from MainThread.
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/network.gethttp://tizen.org/privilege/network.set
Feature: http://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.wifihttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.ethernet
Declaration
C#Copypublic static Task DisconnectProfileAsync(ConnectionProfile profile)
Parameters
Type | Name | Description |
---|---|---|
ConnectionProfile | profile | The connection profile object. |
Returns
Type | Description |
---|---|
Task | A task indicates whether the DisconnectProfileAsync method is done successfully or not. |
Remarks
This method must be called from MainThread.
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/network.gethttp://tizen.org/privilege/network.set
Feature: http://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.wifihttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.ethernet
Declaration
C#Copypublic static ConnectionProfile GetCurrentProfile()
Returns
Type | Description |
---|---|
ConnectionProfile | Connection profile object. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/network.get
Feature: http://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.wifihttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.ethernet
GetDefaultCellularProfile(CellularServiceType)
Gets the default profile, which provides the given cellular service.
Declaration
C#Copypublic static ConnectionProfile GetDefaultCellularProfile(CellularServiceType type)
Parameters
Type | Name | Description |
---|---|---|
CellularServiceType | type | The cellular service type. |
Returns
Type | Description |
---|---|
ConnectionProfile | Connection profile object. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/network.get
Feature: http://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.wifihttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.ethernet
GetProfileListAsync(ProfileListType)
Gets the list of the profile with the profile list type.
Declaration
C#Copypublic static Task<IEnumerable<ConnectionProfile>> GetProfileListAsync(ProfileListType type)
Parameters
Type | Name | Description |
---|---|---|
ProfileListType | type | The type of profile. |
Returns
Type | Description |
---|---|
Task<IEnumerable<ConnectionProfile>> | List of connection profile objects. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/network.get
Feature: http://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.wifihttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.ethernet
Declaration
C#Copypublic static void RemoveProfile(ConnectionProfile profile)
Parameters
Type | Name | Description |
---|---|---|
ConnectionProfile | profile | The connection profile object. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/network.gethttp://tizen.org/privilege/network.profile
Feature: http://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.wifihttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.ethernet
SetDefaultCellularProfile(CellularServiceType, ConnectionProfile)
Sets the default profile, which provides the given cellular service.
Declaration
C#Copypublic static Task SetDefaultCellularProfile(CellularServiceType type, ConnectionProfile profile)
Parameters
Type | Name | Description |
---|---|---|
CellularServiceType | type | The cellular service type. |
ConnectionProfile | profile | The connection profile object. |
Returns
Type | Description |
---|---|
Task | A task indicates whether the SetDefaultCellularProfile method is done successfully or not. |
Remarks
This method must be called from MainThread.
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/network.gethttp://tizen.org/privilege/network.profile
Feature: http://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.wifihttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.ethernet
UpdateProfile(ConnectionProfile)
Updates an existing profile. When a profile is changed, these changes will be not applied to the ConnectionProfileManager immediately. When you call this function, your changes affect the ConnectionProfileManager and the existing profile is updated.
Declaration
C#Copypublic static void UpdateProfile(ConnectionProfile profile)
Parameters
Type | Name | Description |
---|---|---|
ConnectionProfile | profile | The connection profile object. |