No Description

WebBridge.h 479B

123456789101112131415161718192021
  1. #pragma once
  2. using namespace Windows::Foundation;
  3. namespace WebViewBridge
  4. {
  5. public delegate void MessagePosted(Platform::String^ message);
  6. [Windows::Foundation::Metadata::AllowForWebAttribute]
  7. public ref class WebBridge sealed
  8. {
  9. public:
  10. WebBridge(int64 tag);
  11. void PostMessage(Platform::String^ message);
  12. event MessagePosted^ MessagePostedEvent;
  13. private:
  14. Windows::UI::Core::CoreDispatcher^ m_dispatcher;
  15. int64 m_tag;
  16. };
  17. }