Sdílet prostřednictvím


GeolocationPermissions.Allow(String) Method

Definition

Allows the specified origin to use the Geolocation API.

[Android.Runtime.Register("allow", "(Ljava/lang/String;)V", "GetAllow_Ljava_lang_String_Handler")]
public virtual void Allow (string? origin);
[<Android.Runtime.Register("allow", "(Ljava/lang/String;)V", "GetAllow_Ljava_lang_String_Handler")>]
abstract member Allow : string -> unit
override this.Allow : string -> unit

Parameters

origin
String

the origin for which Geolocation API use is allowed

Attributes

Remarks

Allows the specified origin to use the Geolocation API.

Java documentation for android.webkit.GeolocationPermissions.allow(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to