RNViewShotModule.cs 839B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Newtonsoft.Json.Linq;
  2. using ReactNative.Bridge;
  3. using System;
  4. using System.Collections.Generic;
  5. using Windows.ApplicationModel.Core;
  6. using Windows.UI.Core;
  7. namespace Com.Reactlibrary.RNViewShot
  8. {
  9. /// <summary>
  10. /// A module that allows JS to share data.
  11. /// </summary>
  12. class RNViewShotModule : NativeModuleBase
  13. {
  14. /// <summary>
  15. /// Instantiates the <see cref="RNViewShotModule"/>.
  16. /// </summary>
  17. internal RNViewShotModule()
  18. {
  19. }
  20. /// <summary>
  21. /// The name of the native module.
  22. /// </summary>
  23. public override string Name
  24. {
  25. get
  26. {
  27. return "RNViewShot";
  28. }
  29. }
  30. [ReactMethod]
  31. public void takeSnapshot(int tag, JObject options, IPromise promise) {}
  32. }
  33. }