IWithNativeOnScreenKeyboard.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. namespace Vuplex.WebView {
  15. /// <summary>
  16. /// An interface implemented by a webview if it supports using a native
  17. /// on-screen keyboard.
  18. /// </summary>
  19. /// <seealso href="CanvasWebViewPrefab.NativeOnScreenKeyboardEnabled"/>
  20. public interface IWithNativeOnScreenKeyboard {
  21. /// <summary>
  22. /// Enables or disables the native on-screen keyboard.
  23. /// </summary>
  24. /// <remarks>
  25. /// The native on-screen keyboard is only supported for the following packages:
  26. /// <list type="bullet">
  27. /// <item>3D WebView for Android (non-Gecko)</item>
  28. /// <item>3D WebView for iOS</item>
  29. /// </list>
  30. /// </remarks>
  31. /// <remarks>
  32. /// On iOS, disabling the keyboard for one webview disables it for all webviews.
  33. /// </remarks>
  34. void SetNativeOnScreenKeyboardEnabled(bool enabled);
  35. }
  36. }