NAOqi Core - Overview | API
Namespace : AL
Has the following methods:
Web view
Video Player
Image
Dialog
Wifi
System
Deprecated
Tactile screen
Other
Web view
Hide the webview on the tablet, the idle screen appears instead.
Returns: | True if successful, false otherwise. |
---|
Start new application on tablet.
Parameters: |
|
---|---|
Returns: | True if successful, false if the application is not found or unreachable. |
Load an URL in the browser of the tablet. Warning: you need to call ALTabletService::showWebview() to display the browser.
Parameters: |
|
---|---|
Returns: | True if successful, false if the URL is not found or unreachable. |
Display the webview on the tablet.
Returns: | True if successful, false otherwise. |
---|
Video Player
Get the time elapsed since the beginning of the video in milliseconds.
Returns: | -1 if no video is played, a positive number otherwise. |
---|
Pause the video playing but do not close the video player. Can be resumed by ALTabletService::resumeVideo().
Returns: | True if video is playing, false otherwise. |
---|
Open a video player on tablet and play video from given url. Supported formats is: mp4 or mov. Can be stopped by ALTabletService::stopVideo().
Parameters: |
|
---|---|
Returns: | True if video is playing, false otherwise. |
Resume the video paused by ALTabletService::pauseVideo().
Returns: | True if video is playing, false otherwise. |
---|
Close the video player.
Returns: | True if video player is open, false otherwise. |
---|
Image
Pre-load an image. Use the same URL for showImage.
Parameters: |
|
---|---|
Returns: | True if pre-load succeed, false if it cannot ping the URL or if it is not a image. |
Resume current gif displayed.
Returns: | True if gif is playing, false otherwise. |
---|
Set image background color.
Parameters: |
|
---|
Show an image, using the cache. Download the image before displaying it, unless the picture is already in the cache, because it has been preloaded or already displayed.
Parameters: |
|
---|---|
Returns: | true if show succeed, false if it can’t ping the URL or if it’s not a image. |
Dialog
Show an alert view.
Parameters: |
|
---|
Show a native input text dialog.
Parameters: |
|
---|
Show a native input text dialog.
Parameters: |
|
---|
Wifi
Configure the WiFi.
Parameters: |
|
---|
Forget a wifi network.
Parameters: |
|
---|---|
Returns: | true if it find the network and succeed to forget it. |
Check WiFi status on the tablet.
Returns: | IDLE, SCANNING, DISCONNECTED, or CONNECTED. |
---|
System
Get the name of the current life activity running.
Returns: | the name of the current life activity running or “” if there isn’t. |
---|
Returns: | Current robot IP. |
---|
Set tablet brightness.
Parameters: |
|
---|---|
Returns: | True if successful, false otherwise. |
Set the tablet language.
Parameters: |
|
---|
Configure the media volume of the tablet.
Parameters: |
|
---|---|
Returns: | true if it’s work false otherwise, if the volume isn’t in the proper range. |
Return the tablet browser version.
Deprecated
Deprecated since version 2.0.2: Deprecated and removed. Do not use anymore.
Forward given signal to current web application.
Deprecated since version 2.0.1: use ALTabletService/error() instead.
Tactile screen
Triggered : | When someone When someone touches the tablet screen. |
---|---|
Parameters: |
|
Triggered : | When someone moves its finger on the tablet screen. |
---|---|
Parameters: |
|
Triggered : | When someone removes its finger from the tablet screen. |
---|---|
Parameters: |
|
Deprecated since version 2.0.2: use more specific events instead.
Parameters: |
|
---|
Other
Purpose : | View JavaScript console message written by web applications loaded on tablet. Tip: in command line, use: qicli watch ALTabletService.onConsoleMessage. |
---|---|
Parameters: |
|
Triggered : | By web applications. |
Triggered : | When an image is pre-loaded. |
---|
Triggered : | When ALTabletService::showInputDialog() or ALTabletService::showInputTextDialog() returns a text. |
---|---|
Parameters: |
|
Triggered : | When page upload is finished. |
---|
Triggered : | When page upload is started. |
---|
Purpose : | Warn NAOqi modules that displayed video is finished. |
---|---|
Triggered : | When video started by ALTabletService::playVideo() is finished. |
Purpose : | Warn NAOqi modules that displayed video is started. |
---|---|
Triggered : | When video started by ALTabletService::playVideo() is started. |
Raised when an error occurs.
Raised when message occurs.
Raised when text input occurs.