/// <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 }
public void AddPermissionTrustDomain(string domain) { UniWebViewInterface.AddPermissionTrustDomain(this.listener.Name, domain); }