Revert "[TFM] Update TizenFX TFM to net6.0 (#5360)" (#5436)
[platform/core/csapi/tizenfx.git] / src / Tizen.Network.Nsd / Tizen.Network.Nsd / INsdBrowser.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18
19 namespace Tizen.Network.Nsd
20 {
21     /// <summary>
22     /// This interface is used for managing the network service discovery using DNS-SD/SSDP.
23     /// </summary>
24     /// <since_tizen> 4 </since_tizen>
25     public interface INsdBrowser
26     {
27         /// <summary>
28         /// Starts browsing the DNS-SD/SSDP remote service.
29         /// </summary>
30         /// <remarks>
31         /// If there are any services available, the ServiceFound event will be invoked.
32         /// The application will keep browsing for the available or unavailable services until it calls StopDiscovery().
33         /// </remarks>
34         /// <since_tizen> 4 </since_tizen>
35         /// <privilege>http://tizen.org/privilege/internet</privilege>
36         /// <feature>http://tizen.org/feature/network.service_discovery.dnssd</feature>
37         /// <feature>http://tizen.org/feature/network.service_discovery.ssdp</feature>
38         /// <exception cref="InvalidOperationException">Thrown when any other error occured.</exception>
39         /// <exception cref="NotSupportedException">Thrown when DNS-SD/SSDP is not supported.</exception>
40         /// <exception cref="UnauthorizedAccessException">Thrown when the permission is denied.</exception>
41         void StartDiscovery();
42
43         /// <summary>
44         /// Stops browsing the DNS-SD/SSDP remote service.
45         /// </summary>
46         /// <since_tizen> 4 </since_tizen>
47         /// <feature>http://tizen.org/feature/network.service_discovery.dnssd</feature>
48         /// <feature>http://tizen.org/feature/network.service_discovery.ssdp</feature>
49         /// <exception cref="InvalidOperationException">Thrown when any other error occured.</exception>
50         /// <exception cref="NotSupportedException">Thrown when DNS-SD/SSDP is not supported.</exception>
51         void StopDiscovery();
52     }
53 }