2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 namespace Tizen.Network.Nsd
22 /// This interface is used for managing the network service discovery using DNS-SD/SSDP.
24 /// <since_tizen> 4 </since_tizen>
25 public interface INsdBrowser
28 /// Starts browsing the DNS-SD/SSDP remote service.
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().
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();
44 /// Stops browsing the DNS-SD/SSDP remote service.
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>