mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Implemented StartAdvertising() API for Dart Wrappers.
PiperOrigin-RevId: 404088232
This commit is contained in:
committed by
Copybara-Service
parent
fae05d0e86
commit
4c13dea8eb
@@ -162,7 +162,6 @@ void StartAdvertisingDart(Core* pCore,
|
||||
"Posting message to port failed.");
|
||||
}
|
||||
};
|
||||
|
||||
ResultCallback callback;
|
||||
callback.result_cb = [result_cb](Status status) {
|
||||
NEARBY_LOG(INFO, "Result callback called. %d.", status.value);
|
||||
|
||||
@@ -65,7 +65,6 @@ DLL_API void __stdcall StartAdvertisingDart(Core* pCore,
|
||||
Dart_Port disconnected_cb,
|
||||
Dart_Port bandwidth_changed_cb,
|
||||
Dart_Port result_cb);
|
||||
|
||||
// Stops advertising a local endpoint. Should be called after calling
|
||||
// StartAdvertising, as soon as the application no longer needs to advertise
|
||||
// itself or goes inactive. Payloads can still be sent to connected
|
||||
|
||||
Reference in New Issue
Block a user