browserapi
A wrapper tool for next generation browser apis like vibration, fullscreen, and etc.
Supported APIs
- Geolocation
- fetch
- Fullscreen API
- Battery
- ServiceWorker
- DeviceOrientation
- Vibrate
- AudioContext
Geolocation
browserapi { geolocation; //options while getting geolocation data};
fetch
browserapi { ;};
Fullscreen API
browserapidocument { consoledirfullScreen;};
Note : This method invocation prints "Failed to execute 'requestFullScreen' on 'Element': API can only be initiated by a user gesture.". Since the security concerns, it only can be triggered by a user event like click or etc.
Battery
browserapi { consoledirbattery;};
ServiceWorker
browserapi { consoledirinstance;};
localStorage
browserapi { localStorage; consoledirlocalStorage;};
deviceOrientation
browserapi { consoledirdeviceOrientation;};
vibrate
browserapi { navigator'vibrate'1000;};
audioContext
browserapi { consolediraudioContext;};