Files
nearby/presence/presence_client.cc
T
Janusz Sobczak 408900e702 Define StartBroadcast API.
Changed StartBroadcast() API to be more generic - the client app can use the
same call to start presence, fast pair or eddystone advertisement.

PiperOrigin-RevId: 470066137
2022-08-25 13:16:17 -07:00

48 lines
1.6 KiB
C++

// Copyright 2020 Google LLC
//
// 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
//
// https://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.
#include "presence/presence_client.h"
#include <memory>
#include <vector>
#include "presence/presence_device.h"
#include "presence/status.h"
namespace nearby {
namespace presence {
void PresenceClient::StartDiscovery(const DiscoveryFilter& filter,
const DiscoveryOptions& options,
ResultCallback callback) {}
void PresenceClient::UpdateDiscoveryFilter(const DiscoveryFilter& filter,
ResultCallback callback) {}
void PresenceClient::StopDiscovery(ResultCallback callback) {}
std::vector<PresenceDevice> PresenceClient::GetCachedDevices(
const DiscoveryFilter& filter) {
return std::vector<PresenceDevice>{};
}
std::unique_ptr<BroadcastSession> PresenceClient::StartBroadcast(
const BroadcastRequest& request, const ResultCallback& callback) {
callback.result_cb({Status::Value::kError});
return std::make_unique<BroadcastSession>();
}
} // namespace presence
} // namespace nearby