Skip to content

Commit

Permalink
Merge pull request #302 from Elabar/add-missing-listener-method-windows
Browse files Browse the repository at this point in the history
add missing listener methods for windows
  • Loading branch information
RonRadtke authored Oct 20, 2023
2 parents adf87d4 + 36dec7f commit 42f4cc9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions windows/ReactNativeBlobUtil/ReactNativeBlobUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,14 @@ void ReactNativeBlobUtil::splitPath(const std::wstring& fullPath, winrt::hstring
fileName = path.has_filename() ? winrt::to_hstring(path.filename().c_str()) : L"";
}

void ReactNativeBlobUtil::addListener(std::string eventName) noexcept
{
}

void ReactNativeBlobUtil::removeListeners(double count) noexcept
{
}

winrt::Windows::Foundation::IAsyncAction ReactNativeBlobUtil::ProcessRequestAsync(
const std::string& taskId,
const winrt::Windows::Web::Http::Filters::HttpBaseProtocolFilter& filter,
Expand Down
13 changes: 13 additions & 0 deletions windows/ReactNativeBlobUtil/ReactNativeBlobUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,19 @@ struct ReactNativeBlobUtil : std::enable_shared_from_this<ReactNativeBlobUtil>
std::string streamId,
std::function<void(std::string)> callback) noexcept;

// addListener
REACT_METHOD(addListener);
void addListener(
std::string eventName
) noexcept;

// removeListeners
REACT_METHOD(removeListeners);
void removeListeners(
double count
) noexcept;


// Helper methods
private:

Expand Down

0 comments on commit 42f4cc9

Please sign in to comment.