/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
namespace Tizen.Network.Nsd
{
///
/// This interface is used for managing the network service discovery using DNS-SD/SSDP.
///
/// 4
public interface INsdBrowser
{
///
/// Starts browsing the DNS-SD/SSDP remote service.
///
///
/// If there are any services available, the ServiceFound event will be invoked.
/// The application will keep browsing for the available or unavailable services until it calls StopDiscovery().
///
/// 4
/// http://tizen.org/privilege/internet
/// http://tizen.org/feature/network.service_discovery.dnssd
/// http://tizen.org/feature/network.service_discovery.ssdp
/// Thrown when any other error occured.
/// Thrown when DNS-SD/SSDP is not supported.
/// Thrown when the permission is denied.
void StartDiscovery();
///
/// Stops browsing the DNS-SD/SSDP remote service.
///
/// 4
/// http://tizen.org/feature/network.service_discovery.dnssd
/// http://tizen.org/feature/network.service_discovery.ssdp
/// Thrown when any other error occured.
/// Thrown when DNS-SD/SSDP is not supported.
void StopDiscovery();
}
}