예제 #1
0
        async void GetProfileListAsync()
        {
            var list = await ConnectionProfileManager.GetProfileListAsync(ProfileListType.Connected);

            profiles.Clear();
            foreach (var result in list)
            {
                switch (result.Type)
                {
                case ConnectionProfileType.Bt:
                    profiles.Add(ConnectionProfile.Bluetooth);
                    break;

                case ConnectionProfileType.Cellular:
                    profiles.Add(ConnectionProfile.Cellular);
                    break;

                case ConnectionProfileType.Ethernet:
                    profiles.Add(ConnectionProfile.Ethernet);
                    break;

                case ConnectionProfileType.WiFi:
                    profiles.Add(ConnectionProfile.WiFi);
                    break;
                }
            }
            OnConnectivityChanged();
        }
        public static async void SetUpMaxSpeed()
        {
            var list = await ConnectionProfileManager.GetProfileListAsync(ProfileListType.Registered);

            foreach (var item in list)
            {
                _connectionProfile = item;
                break;
            }
            _wiFiProfile = (WiFiProfile)_connectionProfile;
        }
 /// <summary>
 /// Calls ConnectionProfileManager.GetProfileListAsync() to get profile list
 /// and create a list that contains Connection Profile information
 /// </summary>
 /// <returns>ProfileInfo list</returns>
 private async void GetProfileListAsync()
 {
     profileInfoList = await ConnectionProfileManager.GetProfileListAsync(ProfileListType.Registered);
 }
 /// <summary>
 /// Gets the list of the profile
 /// </summary>
 private async void GetProfileList()
 {
     // Call Tizen C# API
     profileList = await ConnectionProfileManager.GetProfileListAsync(ProfileListType.Registered);
 }