* This documentation is still work-in-progress and only gives a hint of what is possible. Please use PHONK's built-in examples for more accurate results.

app

  • notification

  • settings

  • alarmManager()

  • close()

  • eval()

  • executeShellCommand()

  • fullPath()

  • getSharedData()

  • listenEvent()

  • liveCodingOverlay()

  • load()

  • onCreate()

  • onDestroy()

  • onPause()

  • onResume()

  • openFileWithApp()

  • path()

  • removeEvent()

  • runOnUiThread()

  • sendEvent()

  • shareImage()

  • shareText()

  • startActivity()

console

    • clear()

    • error()

    • log()

    • logImage()

    • show()

    sensors

    • accelerometer

    • ambientTemperature

    • barometer

    • gravity

    • gyroscope

    • humidity

    • light

    • linearAcceleration

    • location

    • magneticField

    • orientation

    • proximity

    • rotationVector

    • stepDetector

      util

        • anim()

        • base64StringToBitmap()

        • delay()

        • detectFaces()

        • dpToPixels()

        • loop()

        • mmToPixels()

        • parseColor()

        • pixelsToDp()

        • pixelsToMm()

        ui

        • toolbar

        • add()

        • addButton()

        • addCameraView()

        • addCanvas()

        • addChoiceBox()

        • addGrid()

        • addImage()

        • addImageButton()

        • addInput()

        • addKnob()

        • addLinearLayout()

        • addList()

        • addLoader()

        • addMap()

        • addMatrix()

        • addNumberPicker()

        • addPager()

        • addPlot()

        • addProcessingCanvas()

        • addRadioButtonGroup()

        • addSlider()

        • addSubtitle()

        • addText()

        • addTextArea()

        • addTitle()

        • addToggle()

        • addTouchPad()

        • addWebView()

        • allowScroll()

        • background()

        • clipAndShadow()

        • movable()

        • newArea()

        • newCameraView()

        • onTouches()

        • popup()

        • positionMode()

        • removeAllViews()

        • removeMovable()

        • removeView()

        • resize()

        • showWeb()

        • takeViewScreenshot()

        • toast()

        boards

          • connectIOIO()

          • createSerial()

          fileio

            • appendTextToFile()

            • appendTextToFileAsync()

            • copy()

            • createFile()

            • createFileObserver()

            • createFolder()

            • delete()

            • list()

            • loadBitmap()

            • loadFont()

            • loadTextFromFile()

            • move()

            • openSqlLite()

            • rename()

            • saveTextToFile()

            • type()

            • unzip()

            • zip()

            media

              • audioOnSpeakers()

              • createRecorder()

              • createSoundPlayer()

              • createTextToSpeech()

              • createVideoPlayer()

              • enableSoundEffects()

              • initLibPd()

              • startMidi()

              • startVoiceRecognition()

              • volume()

              device

                • battery()

                • brightness()

                • call()

                • copyToClipboard()

                • getFromClipboard()

                • globalBrightness()

                • ignoreBackKey()

                • ignoreVolumeKeys()

                • info()

                • isAirplaneMode()

                • isScreenOn()

                • launchIntent()

                • listInstalledApps()

                • onKeyDown()

                • onKeyEvent()

                • onKeyUp()

                • onNewNotification()

                • onSmsReceived()

                • openDial()

                • openEmailApp()

                • openMapApp()

                • openWebApp()

                • openWebSearch()

                • orientation()

                • screenAlwaysOn()

                • screenTimeout()

                • smsSend()

                • vibrate()

                • wakeLock()

                dashboard

                  • addButton()

                  • addHtml()

                  • addText()

                  • show()

                  network

                    • connectOSC()

                    • connectSocketIO()

                    • connectWebsocket()

                    • connectWifi()

                    • createFtpConnection()

                    • createFtpServer()

                    • createMQTTClient()

                    • createOSCServer()

                    • createSimpleHttpServer()

                    • createWebsocketServer()

                    • download()

                    • downloadWithSystemManager()

                    • enableWifi()

                    • getNetworkType()

                    • httpGet()

                    • httpPost()

                    • isNetworkAvailable()

                    • isWifiEnabled()

                    • multicast()

                    • networkInfo()

                    • ping()

                    • sendEmail()

                    • wifiAP()

                    • wifiInfo()

                    CustomSensorManager

                      • info()

                      • isAvailable()

                      • max()

                      • power()

                      • resolution()

                      • sensorSpeed()

                      • start()

                      • stop()

                      • units()

                      AudioPlayer

                        • duration()

                        • finish()

                        • isLooping()

                        • isPlaying()

                        • loop()

                        • onFinish()

                        • pause()

                        • position()

                        • seekTo()

                        • volume()

                        Nfc

                          • onDataWritten()

                          • onNewData()

                          • write()

                          MagneticField

                            • onChange()

                            • start()

                            Image

                              • load()

                              Delay

                                • stop()

                                Input

                                  • hint()

                                  • textColor()

                                  Button

                                    • background()

                                    • boxsize()

                                    • html()

                                    • onClick()

                                    • pos()

                                    • textColor()

                                    • textFont()

                                    • textSize()

                                    Accelerometer

                                      • info()

                                      • isAvailable()

                                      • max()

                                      • onChange()

                                      • power()

                                      • resolution()

                                      • sensorSpeed()

                                      • start()

                                      • stop()

                                      • units()

                                      Camera

                                        • focus()

                                        • isFlashAvailable()

                                        • onNewFrame()

                                        • onNewFrameBase64()

                                        • onNewFrameBitmap()

                                        • recordVideo()

                                        • setColorEffect()

                                        • setPictureResolution()

                                        • setPreviewSize()

                                        • startLearning()

                                        • stopRecordingVideo()

                                        • takePicture()

                                        • turnOnFlash()

                                        LinearAcceleration

                                          • onChange()

                                          Toolbar

                                            • background()

                                            • icon()

                                            • show()

                                            • subtitle()

                                            • title()

                                            Canvas

                                            • height

                                            • width

                                            • antiAlias()

                                            • arc()

                                            • background()

                                            • clear()

                                            • cornerMode()

                                            • ellipse()

                                            • fill()

                                            • image()

                                            • linearShader()

                                            • loadImage()

                                            • noFill()

                                            • noStroke()

                                            • point()

                                            • pop()

                                            • push()

                                            • rect()

                                            • rotate()

                                            • scale()

                                            • setShader()

                                            • shadow()

                                            • shadowStroke()

                                            • skew()

                                            • stroke()

                                            • strokeCap()

                                            • strokeWidth()

                                            • text()

                                            • textSize()

                                            • translate()

                                            LightIntensity

                                              • onChange()

                                              • start()

                                              Orientation

                                                • onChange()

                                                • start()

                                                BluetoothLEClient

                                                  • connectGatt()

                                                  • disconnectGatt()

                                                  • isConnected()

                                                  • readCharacteristic()

                                                  • writeCharacteristic()

                                                  PureData

                                                    • getArray()

                                                    • sendArray()

                                                    • sendBang()

                                                    • sendFloat()

                                                    • sendMessage()

                                                    • sendMidiByte()

                                                    • sendNoteOn()

                                                    • sendSymbol()

                                                    Card

                                                      • addRow()

                                                      • addView()

                                                      • setHorizontal()

                                                      • setTitle()

                                                      • setTitleColor()

                                                      • setVertical()

                                                      BluetoothClient

                                                        • connectSerial()

                                                        • connectSerialByName()

                                                        • connectSerialUsingMenu()

                                                        • disconnect()

                                                        • isConnected()

                                                        • send()

                                                        • sendBytes()

                                                        SqLite

                                                          • close()

                                                          • delete()

                                                          • execSql()

                                                          • insert()

                                                          • open()

                                                          • query()

                                                          Switch

                                                            • background()

                                                            • color()

                                                            • text()

                                                            CheckBox

                                                              • textColor()

                                                              Video

                                                                • duration()

                                                                • finish()

                                                                • getClipAspectRatio()

                                                                • getClipSize()

                                                                • isLooping()

                                                                • isPlaying()

                                                                • loop()

                                                                • onFinish()

                                                                • pause()

                                                                • position()

                                                                • seekTo()

                                                                • volume()

                                                                Gyroscope

                                                                  • onChange()

                                                                  Barometer

                                                                    • onChange()

                                                                    Map

                                                                      • addMarker()

                                                                      • center()

                                                                      • clearCache()

                                                                      • createPath()

                                                                      • geoToPixels()

                                                                      • mapBoxTileSource()

                                                                      • moveTo()

                                                                      • multitouch()

                                                                      • pixelsToGeo()

                                                                      • removePath()

                                                                      • showControls()

                                                                      • tileSource()

                                                                      • zoom()

                                                                      • zoomLimits()

                                                                      Bluetooth

                                                                        • createClient()

                                                                        • createServer()

                                                                        • disable()

                                                                        • enable()

                                                                        • getBondedDevices()

                                                                        • scanNetworks()

                                                                        • start()

                                                                        Spinner

                                                                          • textColor()

                                                                          Grid

                                                                            • addRow()

                                                                            • build()

                                                                            • columns()

                                                                            • inPlace()

                                                                            • using()

                                                                            ViewsArea

                                                                            • toolbar

                                                                            • add()

                                                                            • addButton()

                                                                            • addCameraView()

                                                                            • addCanvas()

                                                                            • addChoiceBox()

                                                                            • addGrid()

                                                                            • addImage()

                                                                            • addImageButton()

                                                                            • addInput()

                                                                            • addKnob()

                                                                            • addLinearLayout()

                                                                            • addList()

                                                                            • addLoader()

                                                                            • addMap()

                                                                            • addMatrix()

                                                                            • addNumberPicker()

                                                                            • addPager()

                                                                            • addPlot()

                                                                            • addProcessingCanvas()

                                                                            • addRadioButtonGroup()

                                                                            • addSlider()

                                                                            • addText()

                                                                            • addTextArea()

                                                                            • addToggle()

                                                                            • addTouchPad()

                                                                            • addWebView()

                                                                            • allowScroll()

                                                                            • background()

                                                                            • newCameraView()

                                                                            • positionMode()

                                                                            • removeAllViews()

                                                                            • removeView()

                                                                            AmbientTemperature

                                                                              • onChange()

                                                                              Step

                                                                                • onChange()

                                                                                • start()

                                                                                SimpleHttpServer

                                                                                  • response()

                                                                                  • serve()

                                                                                  • stop()

                                                                                  Toggle

                                                                                    • textColor()

                                                                                    Humidity

                                                                                      • onChange()

                                                                                      • start()

                                                                                      AudioRecorder

                                                                                        • record()

                                                                                        • stop()

                                                                                        FtpClient

                                                                                          • changeDir()

                                                                                          • connect()

                                                                                          • deleteFile()

                                                                                          • disconnect()

                                                                                          • download()

                                                                                          • getCurrentDir()

                                                                                          • getFileList()

                                                                                          • upload()

                                                                                          Gravity

                                                                                            • onChange()

                                                                                            Proximity

                                                                                              • onChange()

                                                                                              • start()

                                                                                              RotationVector

                                                                                                • onChange()

                                                                                                Text

                                                                                                  • append()

                                                                                                  • autoFitText()

                                                                                                  • background()

                                                                                                  • boxsize()

                                                                                                  • center()

                                                                                                  • clear()

                                                                                                  • color()

                                                                                                  • html()

                                                                                                  • pos()

                                                                                                  • scrollable()

                                                                                                  • shadow()

                                                                                                  • text()

                                                                                                  • textColor()

                                                                                                  • textFont()

                                                                                                  • textSize()

                                                                                                  IOIO

                                                                                                    • isStarted()

                                                                                                    • openAnalogInput()

                                                                                                    • openDigitalInput()

                                                                                                    • openDigitalOutput()

                                                                                                    • openPWMOutput()

                                                                                                    • start()

                                                                                                    • stop()

                                                                                                    Looper

                                                                                                      • speed()

                                                                                                      • start()

                                                                                                      • stop()

                                                                                                      Serial

                                                                                                        • start()

                                                                                                        • stop()

                                                                                                        • write()

                                                                                                        Location

                                                                                                          • distance()

                                                                                                          • getLastKnownLocation()

                                                                                                          • getLocationName()

                                                                                                          • onChange()

                                                                                                          • start()