UrlChangedEventArgs.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright (c) 2024 Vuplex Inc. All rights reserved.
  2. //
  3. // Licensed under the Vuplex Commercial Software Library License, you may
  4. // not use this file except in compliance with the License. You may obtain
  5. // a copy of the License at
  6. //
  7. // https://vuplex.com/commercial-library-license
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. using System;
  15. namespace Vuplex.WebView {
  16. /// <summary>
  17. /// Event args for IWebView.UrlChanged.
  18. /// </summary>
  19. public class UrlChangedEventArgs : EventArgs {
  20. public UrlChangedEventArgs(string url, string type) {
  21. Url = url;
  22. Type = type;
  23. }
  24. /// <summary>
  25. /// The new webpage URL.
  26. /// </summary>
  27. public string Url;
  28. /// <summary>
  29. /// One of the string constants in <see cref="UrlActionType"/>.
  30. /// </summary>
  31. public string Type;
  32. // Added in v1.0, removed in v3.13.
  33. [Obsolete("UrlChangedEventArgs.Title has been removed. Please use IWebView.Title or IWebView.TitleChanged instead: https://developer.vuplex.com/webview/IWebView#Title", true)]
  34. public string Title;
  35. }
  36. }