Пример #1
0
 /// <summary>
 /// Adds a trusted domain to white list and allow permission requests from the domain.
 ///
 /// You only need this on Android devices with system before 6.0 when a site needs the location or camera
 /// permission. It will allow the permission gets approved so you could access the corresponding devices.
 /// From Android 6.0, the permission requests method is changed and this is not needed anymore.
 /// </summary>
 /// <param name="domain">The domain to add to the white list.</param>
 public void AddPermissionTrustDomain(string domain)
 {
     #if UNITY_ANDROID && !UNITY_EDITOR
     UniWebViewInterface.AddPermissionTrustDomain(listener.Name, domain);
     #endif
 }
Пример #2
0
 public void AddPermissionTrustDomain(string domain)
 {
     UniWebViewInterface.AddPermissionTrustDomain(this.listener.Name, domain);
 }