Skip to content

Commit 36dec7f

Browse files
authored
add missing listener methods for windows
1 parent 2531333 commit 36dec7f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

windows/ReactNativeBlobUtil/ReactNativeBlobUtil.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,6 +1526,14 @@ void ReactNativeBlobUtil::splitPath(const std::wstring& fullPath, winrt::hstring
15261526
fileName = path.has_filename() ? winrt::to_hstring(path.filename().c_str()) : L"";
15271527
}
15281528

1529+
void ReactNativeBlobUtil::addListener(std::string eventName) noexcept
1530+
{
1531+
}
1532+
1533+
void ReactNativeBlobUtil::removeListeners(double count) noexcept
1534+
{
1535+
}
1536+
15291537
winrt::Windows::Foundation::IAsyncAction ReactNativeBlobUtil::ProcessRequestAsync(
15301538
const std::string& taskId,
15311539
const winrt::Windows::Web::Http::Filters::HttpBaseProtocolFilter& filter,

windows/ReactNativeBlobUtil/ReactNativeBlobUtil.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,19 @@ struct ReactNativeBlobUtil : std::enable_shared_from_this<ReactNativeBlobUtil>
320320
std::string streamId,
321321
std::function<void(std::string)> callback) noexcept;
322322

323+
// addListener
324+
REACT_METHOD(addListener);
325+
void addListener(
326+
std::string eventName
327+
) noexcept;
328+
329+
// removeListeners
330+
REACT_METHOD(removeListeners);
331+
void removeListeners(
332+
double count
333+
) noexcept;
334+
335+
323336
// Helper methods
324337
private:
325338

0 commit comments

Comments
 (0)