[英]Any way to Programmatically enable guided access using ionic capacitor/cordova cross platform?
I am using capacitor , ionic and react and was wondering how this would be done?我正在使用电容器、离子和反应,想知道如何做到这一点? Are there any plugins that I can use?
有没有我可以使用的插件? Is there native Ionic functionality anywhere?
任何地方都有本机 Ionic 功能吗?
I believe Capacitor is backwards compatible with Cordova so you could use a Cordova plugin.我相信电容器与 Cordova 向后兼容,因此您可以使用 Cordova 插件。 I haven't tested the plugin but this one seems to do it for iOS: https://github.com/wizpanda/cordova-ios-guided-access You have to be enrolled in some program though, as it states.
我还没有测试过这个插件,但这个插件似乎适用于 iOS: https://github.com/wizpanda/cordova-ios-guided-access不过,正如它所说,你必须注册一些程序。
If you need other platforms, then you could expose those native capabilities/APIs with the core platform language (Koltin/Java for Android, C#/C++ for Windows, etc..) and fork/extend this plugin.如果您需要其他平台,那么您可以使用核心平台语言(Android 的 Koltin/Java,Windows 等的 C#/C++ 等)公开这些本机功能/API,并分叉/扩展此插件。 That way, at least the iOS version is already done (given this works).
这样,至少 iOS 版本已经完成(鉴于此工作)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.