JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host.geo

Class Geolocation

    • Constructor Detail

      • Geolocation

        public Geolocation()
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        Creates an instance.
      • watchPosition

        public int watchPosition(org.htmlunit.corejs.javascript.Function successCallback,
         Object errorCallback,
         Object options)
        Notifies the callbacks whenever the position changes, till clearWatch() is called.
        Parameters:
        successCallback - success callback
        errorCallback - optional error callback
        options - optional options
        Returns:
        the watch id
      • clearWatch

        public void clearWatch(int watchId)
        Clears the specified watch ID.
        Parameters:
        watchId - the watch id
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /