PopupRequestedEventArgs.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Copyright (c) 2021 Vuplex Inc. All rights reserved.
  3. *
  4. * Licensed under the Vuplex Commercial Software Library License, you may
  5. * not use this file except in compliance with the License. You may obtain
  6. * a copy of the License at
  7. *
  8. * https://vuplex.com/commercial-library-license
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. using System;
  17. namespace Vuplex.WebView {
  18. /// <summary>
  19. /// Event args for `PopupRequested`.
  20. /// </summary>
  21. public class PopupRequestedEventArgs : EventArgs {
  22. public PopupRequestedEventArgs(string url, IWebView webView) {
  23. Url = url;
  24. WebView = webView;
  25. }
  26. /// <summary>
  27. /// The URL for the popup.
  28. /// </summary>
  29. /// <summary>
  30. /// Note that with 3D WebView for Android, the `Url` field may be empty in some
  31. /// cases when using `PopupMode.LoadInNewWebView`.
  32. /// </summary>
  33. public readonly string Url;
  34. /// <summary>
  35. /// The new webview that was created for the popup if the webview's popup
  36. //// mode is set to `PopupMode.LoadInNewWebView`, or null if the popup mode
  37. /// is set to `PopupMode.NotifyWithoutLoading`.
  38. /// </summary>
  39. public readonly IWebView WebView;
  40. }
  41. }