Giter VIP home page Giter VIP logo

node-fullykiosk's Introduction

node fullykiosk

MINIFIED SIZE COVERAGE LANGUAGES DEPENDENCIRES NPM

Typescript Friendly React Hooks for the Fully Kiosk Browser App

This library exposes multiple react hooks that you can use to interface with your Fully Kiosk Browser App. By default the fully kiosk API is globally injected into the window object, so you could use it directly. However, this library provides a more typescript friendly interface.

How it works

Installation

Using npm:

npm install fullykiosk

or if you prefer to use the yarn package manager:

yarn add fullykiosk

Usage

Progress

Fully Kiosk API functions implemented

  • getCurrentLocale()

  • getIp4Address()

  • getIp6Address()

  • getHostname()

  • getHostname6()

  • getMacAddress()

  • getMacAddressForInterface(interface)

  • getWifiSsid()

  • getWifiBssid()

  • getWifiSignalLevel()

  • getSerialNumber()

  • getSerialNumberDeviceOwner()

  • getAndroidId()

  • getDeviceId()

  • getDeviceName()

  • getImei()

  • getSimSerialNumber()

  • getBatteryLevel()

  • getScreenBrightness()

  • getScreenOrientation()

  • getDisplayWidth()

  • getDisplayHeight()

  • getScreenOn()

  • isPlugged()

  • isKeyboardVisible()

  • isWifiEnabled()

  • isWifiConnected()

  • isNetworkConnected()

  • isBluetoothEnabled()

  • isScreenRotationLocked()

  • getFullyVersion()

  • getFullyVersionCode()

  • getWebviewVersion()

  • getAndroidVersion()

  • getAndroidSdk()

  • getDeviceModel()

  • getInternalStorageTotalSpace()

  • getInternalStorageFreeSpace()

  • getExternalStorageTotalSpace()

  • getExternalStorageFreeSpace()

  • getSensorInfo()

  • getSensorValue(int type)

  • getSensorValues(int type)

  • getAllRxBytesMobile()

  • getAllTxBytesMobile()

  • getAllRxBytesWifi()

  • getAllTxBytesWifi()

  • turnScreenOn()

  • turnScreenOff()

  • turnScreenOff(boolean keepAlive)

  • forceSleep()

  • showToast(String text)

  • setScreenBrightness(float level)

  • enableWifi() // In Android 10+ only with provisioned devices

  • disableWifi() // In Android 10+ only with provisioned devices

  • enableBluetooth()

  • disableBluetooth()

  • showKeyboard()

  • hideKeyboard()

  • openWifiSettings()

  • openBluetoothSettings()

  • vibrate(int millis)

  • sendHexDataToTcpPort(String hexData, String host, int port)

  • showNotification(String title, String text, String url, boolean highPriority) // ver. 1.33+

  • log(int type, String tag, String message) // ver. 1.41+

  • copyTextToClipboard(String text)

  • getClipboardText()

  • getClipboardHtmlText()

  • deleteFile(String path)

  • deleteFolder(String path) // recursive!

  • emptyFolder(String path) // recursive, ver. 1.30+

  • createFolder(String path) // ver. 1.42+

  • getFileList(String folder) // get JSON array, ver. 1.31+

  • downloadFile(String url, String dirName)

  • unzipFile(String fileName) // ver. 1.40.2+

  • downloadAndUnzipFile(String url, String dirName)

  • bind('onDownloadSuccess','todo("$url","$dir","$code","$fileLength","$lastModified","$mimetype");')

  • bind('onDownloadFailure','todo("$url","$dir","$code");')

  • bind('onUnzipSuccess','todo("$url","$dir");')

  • bind('onUnzipFailure','todo("$url","$dir","$message");')

  • textToSpeech(String text)

  • textToSpeech(String text, String locale)

  • textToSpeech(String text, String locale, String engine)

  • textToSpeech(String text, String locale, String engine, boolean queue)

  • stopTextToSpeech()

  • playVideo(String url, boolean loop, boolean showControls, boolean exitOnTouch, boolean exitOnCompletion)

  • stopVideo()

  • setAudioVolume(int level, int stream)

  • playSound(String url, boolean loop)

  • playSound(String url, boolean loop, int stream)

  • stopSound()

  • showPdf(String url)

  • getAudioVolume(int stream)

  • isWiredHeadsetOn()

  • isMusicActive()

  • loadStartUrl()

  • setActionBarTitle(String text)

  • startScreensaver()

  • stopScreensaver()

  • startDaydream()

  • stopDaydream()

  • addToHomeScreen()

  • print()

  • exit()

  • restartApp()

  • getScreenshotPngBase64()

  • loadStatsCSV()

  • clearCache()

  • clearFormData()

  • clearHistory()

  • clearCookies()

  • clearCookiesForUrl(String url)

  • clearWebstorage()

  • focusNextTab()

  • focusPrevTab()

  • focusTabByIndex(int index)

  • getCurrentTabIndex()

  • shareUrl()

  • closeTabByIndex(int index)

  • closeThisTab()

  • getTabList()

  • loadUrlInTabByIndex(int index, String url)

  • loadUrlInNewTab(String url, boolean focus)

  • getThisTabIndex()

  • getCurrentTabIndex()

  • focusThisTab()

  • focusTabByIndex(int index)

  • scanQrCode(String prompt, String resultUrl)

  • scanQrCode(String prompt, String resultUrl, int cameraId, int timeout, boolean beepEnabled, boolean showCancelButton)

  • scanQrCode(String prompt, String resultUrl, int cameraId, int timeout, boolean beepEnabled, boolean showCancelButton, boolean useFlashlight)

  • bind('onQrScanSuccess','todo('$code');')

  • bind('onQrScanCancelled','todo();')

  • btOpenByMac(String mac)

  • btOpenByUuid(String uuid)

  • btOpenByName(String name)

  • fully.btIsConnected()

  • fully.btGetDeviceInfoJson()

  • fully.btClose()

  • btSendStringData(String stringData)

  • btSendHexData(String hexData)

  • btSendByteData(byte[] data)

  • bind('onBtConnectSuccess','todo("$device");');

  • bind('onBtConnectFailure','todo();');

  • bind('onBtDataRead','todo("$data");');

  • nfcScanStart();

  • nfcScanStart(int flags, int debounceMs);

  • nfcScanStop();

  • bind('onNdefDiscovered','todo("$serial", "$message", "$data");');

  • bind('onNfcTagDiscovered','todo("$serial", "$type", "$message", "$data");');

  • bind('onNfcTagRemoved','todo("$serial");');

  • bind('screenOn','todo();')

  • bind('screenOff','todo();')

  • bind('showKeyboard','todo();')

  • bind('hideKeyboard','todo();')

  • bind('networkDisconnect','todo();')

  • bind('networkReconnect','todo();')

  • bind('internetDisconnect','todo();')

  • bind('internetReconnect','todo();')

  • bind('unplugged','todo();')

  • bind('pluggedAC','todo();')

  • bind('pluggedUSB','todo();')

  • bind('pluggedWireless','todo();')

  • bind('onScreensaverStart','todo();')

  • bind('onScreensaverStop','todo();')

  • bind('onDaydreamStart','todo();')

  • bind('onDaydreamStop','todo();')

  • bind('onBatteryLevelChanged','todo();')

  • bind('volumeUp','todo();')

  • bind('volumeDown','todo();')

  • bind('onMotion','todo();')

  • bind('facesDetected','todo($number);')

  • bind('onDarkness','todo();')

  • bind('onMovement','todo();')

  • bind('onIBeacon','todo("$id1","$id2","$id3",$distance);')

  • bind('broadcastReceived','todo("$action","$extras");');

  • bind('onQrScanSuccess','todo("$code","$extras");');

  • startApplication(String packageName)

  • startApplication(String packageName, String action, String url)

  • startIntent(String url)

  • broadcastIntent(String url)

  • isInForeground()

  • bringToForeground()

  • bringToForeground(long millis)

  • bringToBackground()

  • installApkFile(String url)

  • enableMaintenanceMode()

  • disableMaintenanceMode()

  • setMessageOverlay(String text)

  • registerBroadcastReceiver(String action)

  • unregisterBroadcastReceiver(String action)

  • fully.startMotionDetection()

  • stopMotionDetection()

  • isMotionDetectionRunning()

  • getCamshotJpgBase64()

  • getFaceNumber()

  • triggerMotion()

  • bind('onMotion','todo();')

  • fully.getStartUrl()

  • fully.setStartUrl(String url)

  • fully.getBooleanSetting(String key)

  • fully.getStringSetting(String key)

  • fully.setBooleanSetting(String key, boolean value)

  • fully.setStringSetting(String key, String value)

  • fully.importSettingsFile(String url)

Contributors

LICENSE

This package is licensed under the GNU Lesser General Public License.

node-fullykiosk's People

Contributors

lucemans avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

orriclinic

node-fullykiosk's Issues

usage demo?

Looks like a handy repo.

Would be cool if you could add a usage example in your readme

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.