Example #1
0
        /// <summary>
        /// Request a one-time geolocation update. This function bypasses any user
        /// permission checks so should only be used by code that is allowed to access
        /// location information.
        /// </summary>
        public static bool GetGeolocation(CefGetGeolocationCallback callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException("callback");
            }

            return(libcef.get_geolocation(callback.ToNative()) != 0);
        }
Example #2
0
        /// <summary>
        /// Request a one-time geolocation update. This function bypasses any user
        /// permission checks so should only be used by code that is allowed to access
        /// location information.
        /// </summary>
        public static bool GetGeolocation(CefGetGeolocationCallback callback)
        {
            if (callback == null) throw new ArgumentNullException("callback");

            return libcef.get_geolocation(callback.ToNative()) != 0;
        }