|
Non-visible component that can detect shaking and measure acceleration approximately in three dimensions using SI units (m/s<sup>2</sup>). The components are: <ul><li> <strong>xAccel</strong>: 0 when the phone is at rest on a flat surface, positive when the phone is tilted to the right (i.e., its left side is raised), and negative when the phone is tilted to the left (i.e., its right size is raised).</li> <li> <strong>yAccel</strong>: 0 when the phone is at rest on a flat surface, positive when its bottom is raised, and negative when its top is raised. </li> <li> <strong>zAccel</strong>: Equal to -9.8 (earth''s gravity in meters per second per second when the device is at rest parallel to the ground with the display facing up, 0 when perpendicular to the ground, and +9.8 when facing down. The value can also be affected by accelerating it with or against gravity. </li></ul>
|
AccelerometerSensorHelpStringComponentPallette
|
|
|
|
|
A component that can launch an activity using the <code>StartActivity</code> method. <p>Activities that can be launched include:<ul> <li> Starting another App Inventor for Android app. To do so, first find out the <em>class</em> of the other application by downloading the source code and using a file explorer or unzip utility to find a file named "youngandroidproject/project.properties". The first line of the file will start with "main=" and be followed by the class name; for example, <code>main=com.gmail.Bitdiddle.Ben.HelloPurr.Screen1</code>. (The first components indicate that it was created by Ben.Bitdiddle
|
ActivityStarterHelpStringComponentPallette
|
|
|
|
|
A component that contains anomaly detection models
|
AnomalyDetectionHelpStringComponentPallette
|
|
|
|
|
<p>A round ''sprite'' that can be placed on a <code>Canvas</code>, where it can react to touches and drags, interact with other sprites (<code>ImageSprite</code>s and other <code>Ball</code>s) and the edge of the Canvas, and move according to its property values.</p><p>For example, to have a <code>Ball</code> move 4 pixels toward the top of a <code>Canvas</code> every 500 milliseconds (half second), you would set the <code>Speed</code> property to 4 [pixels], the <code>Interval</code> property to 500 [milliseconds], the <code>Heading</code> property to 90 [degrees], and the <code>Enabled</code> property to <code>True</code>.</p><p>The difference between a <code>Ball</code> and an <code>ImageSprite</code> is that the latter can get its appearance from an image file, while a <code>Ball</code>''s appearance can be changed only by varying its <code>PaintColor</code> and <code>Radius</code> properties.</p>
|
BallHelpStringComponentPallette
|
|
|
|
|
Component for using the Barcode Scanner to read a barcode
|
BarcodeScannerHelpStringComponentPallette
|
|
|
|
|
A sensor component that can measure the ambient air pressure.
|
BarometerHelpStringComponentPallette
|
|
|
|
|
Bluetooth client component
|
BluetoothClientHelpStringComponentPallette
|
|
|
|
|
Bluetooth server component
|
BluetoothServerHelpStringComponentPallette
|
|
|
|
|
Button with the ability to detect clicks. Many aspects of its appearance can be changed, as well as whether it is clickable (<code>Enabled</code>), can be changed in the Designer or in the Blocks Editor.
|
ButtonHelpStringComponentPallette
|
|
|
|
|
A component to record a video using the device''s camcorder.After the video is recorded, the name of the file on the phone containing the clip is available as an argument to the AfterRecording event. The file name can be used, for example, to set the source property of a VideoPlayer component.
|
CamcorderHelpStringComponentPallette
|
|
|
|
|
A component to take a picture using the device''s camera. After the picture is taken, the name of the file on the phone containing the picture is available as an argument to the AfterPicture event. The file name can be used, for example, to set the Picture property of an Image component.
|
CameraHelpStringComponentPallette
|
|
|
|
|
<p>A two-dimensional touch-sensitive rectangular panel on which drawing can be done and sprites can be moved.</p> <p>The <code>BackgroundColor</code>, <code>PaintColor</code>, <code>BackgroundImage</code>, <code>Width</code>, and <code>Height</code> of the Canvas can be set in either the Designer or in the Blocks Editor. The <code>Width</code> and <code>Height</code> are measured in pixels and must be positive.</p><p>Any location on the Canvas can be specified as a pair of (X, Y) values, where <ul> <li>X is the number of pixels away from the left edge of the Canvas</li><li>Y is the number of pixels away from the top edge of the Canvas</li></ul>.</p> <p>There are events to tell when and where a Canvas has been touched or a <code>Sprite</code> (<code>ImageSprite</code> or <code>Ball</code>) has been dragged. There are also methods for drawing points, lines, and circles.</p>
|
CanvasHelpStringComponentPallette
|
|
|
|
|
A component that holds (x, y)-coordinate based data
|
ChartData2DHelpStringComponentPallette
|
|
|
|
|
A component that allows visualizing data
|
ChartHelpStringComponentPallette
|
|
|
|
|
A Non-visible component for communicating with an AI chat bot. This component currently communicates with a proxy run by MIT which in turn uses OpenAI''s ChatGPT API. This component is considered experimental.
|
ChatBotHelpStringComponentPallette
|
|
|
|
|
Checkbox that raises an event when the user clicks on it. There are many properties affecting its appearance that can be set in the Designer or Blocks Editor.
|
CheckBoxHelpStringComponentPallette
|
|
|
|
|
|
CircleHelpStringComponentPallette
|
|
|
|
|
A visible component that indicates the progress of an operation using an animated loop.
|
CircularProgressHelpStringComponentPallette
|
|
|
|
|
<p>Non-visible component that provides the instant in time using the internal clock on the phone. It can fire a timer at regularly set intervals and perform time calculations, manipulations, and conversions.</p> <p>Methods to convert an instant to text are also available. Acceptable patterns are empty string, MM/DD/YYYY HH:mm:ss a, or MMM d, yyyyHH:mm. The empty string will provide the default format, which is "MMM d, yyyy HH:mm:ss a" for FormatDateTime "MMM d, yyyy" for FormatDate. To see all possible format, please see <a href="https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html" _target="_blank">here</a>. </p>
|
ClockHelpStringComponentPallette
|
|
|
|
|
Non-visible component allowing you to store data on a Internet connected database server (using Redis software). This allows the users of your App to share data with each other. By default data will be stored in a server maintained by MIT, however you can setup and run your own server. Set the "RedisServer" property and "RedisPort" Property to access your own server.
|
CloudDBHelpStringComponentPallette
|
|
|
|
|
A button that, when clicked on, displays a list of the contacts to choose among. After the user has made a selection, the following properties will be set to information about the chosen contact: <ul><li> <code>ContactName</code>: the contact''s name </li> <li> <code>EmailAddress</code>: the contact''s primary email address </li> <li> <code>ContactUri</code>: the contact''s URI on the device </li><li> <code>EmailAddressList</code>: a list of the contact''s email addresses </li> <li> <code>PhoneNumber</code>: the contact''s primary phone number (on Later Android Verisons)</li> <li> <code>PhoneNumberList</code>: a list of the contact''s phone numbers (on Later Android Versions)</li> <li> <code>Picture</code>: the name of the file containing the contact''s image, which can be used as a <code>Picture</code> property value for the <code>Image</code> or <code>ImageSprite</code> component.</li></ul></p><p>Other properties affect the appearance of the button (<code>TextAlignment</code>, <code>BackgroundColor</code>, etc.) and whether it can be clicked on (<code>Enabled</code>).</p><p>The ContactPicker component might not work on all phones. For example, on Android systems before system 3.0, it cannot pick phone numbers, and the list of email addresses will contain only one email.
|
ContactPickerHelpStringComponentPallette
|
|
|
|
|
Component that allows reading CSV and JSON data. The DataFile contains functionality relevant to accessing CSV or JSON parsed data in the form of rows or columns. Can be used together with the ChartData2D component to import data directly from a file to the Chart. The component may also be dragged and dropped on a Chart after a file has been selected and parsed successfully to create ChartData components automatically from the file onto the Chart.
|
DataFileHelpStringComponentPallette
|
|
|
|
|
<p>A button that, when clicked on, launches a popup dialog to allow the user to select a date.</p>
|
DatePickerHelpStringComponentPallette
|
|
|
|
|
An EmailPicker is a kind of text box. If the user begins entering the name or email address of a contact, the phone will show a dropdown menu of choices that complete the entry. If there are many contacts, the dropdown can take several seconds to appear, and can show intermediate results while the matches are being computed. <p>The initial contents of the text box and the contents< after user entry is in the <code>Text</code> property. If the <code>Text</code> property is initially empty, the contents of the <code>Hint</code> property will be faintly shown in the text box as a hint to the user.</p> <p>Other properties affect the appearance of the text box (<code>TextAlignment</code>, <code>BackgroundColor</code>, etc.) and whether it can be used (<code>Enabled</code>).</p><p>Text boxes like this are usually used with <code>Button</code> components, with the user clicking on the button when text entry is complete.
|
EmailPickerHelpStringComponentPallette
|
|
|
|
|
A component that provides a high-level interface to a color sensor on a LEGO MINDSTORMS EV3 robot.
|
Ev3ColorSensorHelpStringComponentPallette
|
|
|
|
|
A component that provides a low-level interface to a LEGO MINDSTORMS EV3 robot, with functions to send system or direct commands to EV3 robots.
|
Ev3CommandsHelpStringComponentPallette
|
|
|
|
|
A component that provides a high-level interface to a gyro sensor on a LEGO MINDSTORMS EV3 robot.
|
Ev3GyroSensorHelpStringComponentPallette
|
|
|
|
|
A component that provides both high- and low-level interfaces to a LEGO MINDSTORMS EV3 robot, with functions that can control the motors.
|
Ev3MotorsHelpStringComponentPallette
|
|
|
|
|
A component that provides a high-level interface to sound functionalities on LEGO MINDSTORMS EV3 robot.
|
Ev3SoundHelpStringComponentPallette
|
|
|
|
|
A component that provides a high-level interface to a touch sensor on a LEGO MINDSTORMS EV3 robot.
|
Ev3TouchSensorHelpStringComponentPallette
|
|
|
|
|
A component that provides a high-level interface to a LEGO MINDSTORMS EV3 robot, with functions to draw graphs on EV3 screen.
|
Ev3UIHelpStringComponentPallette
|
|
|
|
|
A component that provides a high-level interface to an ultrasonic sensor on a LEGO MINDSTORMS EV3 robot.
|
Ev3UltrasonicSensorHelpStringComponentPallette
|
|
|
|
|
A FeatureCollection contains one or more map features as a group. Any events fired on a feature in the collection will also trigger the corresponding event on the collection object. FeatureCollections can be loaded from external resources as a means of populating a Map with content.
|
FeatureCollectionHelpStringComponentPallette
|
|
|
|
|
Non-visible component for storing and retrieving files. Use this component to write or read files on your device. The default behaviour is to write files to the private data directory associated with your App. The Companion is special cased to write files to a public directory for debugging. Use the More information link to read more about how the File component uses paths and scopes to manage access to files.
|
FileHelpStringComponentPallette
|
|
|
|
|
The <code>FilePicker</code> component is a button-like component that when clicked by the user will prompt them to select a file from the system. The picker can also be programmatically opened by calling its <a href="/reference/components/media.html#FilePicker.Open" target="_blank">Open</a> method. Using the FilePicker requires Android 4.4 or higher or iOS 11 or higher.
|
FilePickerHelpStringComponentPallette
|
|
|
|
|
Non-visible component that communicates with Firebase to store and retrieve information.
|
FirebaseDBHelpStringComponentPallette
|
|
|
|
|
<p>A non-visible component that communicates with Google Fusion Tables. Fusion Tables let you store, share, query and visualize data tables; this component lets you query, create, and modify these tables.</p> <p><font color=red><b>NOTE:</b> Google shutdown the Fusion Tables service on December 3, 2019. This component no longer functions.</font></p> <p>This component uses the <a href="https://developers.google.com/fusiontables/docs/v2/getting_started" target="_blank">Fusion Tables API V2.0</a>. <p>Applications using Fusion Tables must authentication to Google''s servers. There are two ways this can be done. The first way uses an API Key which you the developer obtain (see below). With this approach end-users must also login to access a Fusion Table. The second approach is to use a Service Account. With this approach you create credentials and a special "Service Account Email Address" which you obtain from the <a href="https://code.google.com/apis/console/" target="_blank">Google APIs Console</a>. You then tell the Fusion Table Control the name of the Service Account Email address and upload the secret key as an asset to your application and set the KeyFile property to point at this file. Finally you check the "UseServiceAuthentication" checkbox in the designer. When using a Service Account, end-users do not need to login to use Fusion Tables, your service account authenticates all access.</p> <p>To get an API key, follow these instructions.</p> <ol><li>Go to your <a href="https://code.google.com/apis/console/" target="_blank">Google APIs Console</a> and login if necessary.</li><li>Select the <i>Services</i> item from the menu on the left.</li><li>Choose the <i>Fusiontables</i> service from the list provided and turn it on.</li><li>Go back to the main menu and select the <i>API Access</i> item. </li></ol><p>Your API Key will be near the bottom of that pane in the section called "Simple API Access".You will have to provide that key as the value for the <i>ApiKey</i> property in your Fusiontables app.</p><p>Once you have an API key, set the value of the <i>Query</i> property to a valid Fusiontables SQL query and call <i>SendQuery</i> to execute the query. App Inventor will send the query to the Fusion Tables server and the <i>GotResult</i> block will fire when a result is returned from the server.Query results will be returned in CSV format, and can be converted to list format using the "list from csv table" or "list from csv row" blocks.</p><p>Note that you do not need to worry about UTF-encoding the query. But you do need to make sure the query follows the syntax described in <a href="https://developers.google.com/fusiontables/docs/v2/getting_started" target="_blank">the reference manual</a>, which means that things like capitalization for names of columns matters, and that single quotes must be used around column names if there are spaces in them.</p>
|
FusiontablesControlHelpStringComponentPallette
|
|
|
|
|
Provides a way for applications to communicate with online game servers
|
GameClientHelpStringComponentPallette
|
|
|
|
|
<p>Non-visible component that can measure angular velocity in three dimensions in units of degrees per second.</p><p>In order to function, the component must have its <code>Enabled</code> property set to True, and the device must have a gyroscope sensor.</p>
|
GyroscopeSensorHelpStringComponentPallette
|
|
|
|
|
<p>A formatting element in which to place components that should be displayed from left to right. If you wish to have components displayed one over another, use <code>VerticalArrangement</code> instead.</p>
|
HorizontalArrangementHelpStringComponentPallette
|
|
|
|
|
<p>A formatting element in which to place components that should be displayed from left to right. If you wish to have components displayed one over another, use <code>VerticalArrangement</code> instead.</p><p>This version is scrollable.
|
HorizontalScrollArrangementHelpStringComponentPallette
|
|
|
|
|
A sensor component that can measure the relative ambient air humidity. Most Android devices do not have this sensor.
|
HygrometerHelpStringComponentPallette
|
|
|
|
|
The ImageBot is a non-visible component that uses DALL-E 2 to create and edit images. You must supply your own OpenAI API key for this component by setting its ApiKey property in the blocks.
|
ImageBotHelpStringComponentPallette
|
|
|
|
|
Component for displaying images. The picture to display, and other aspects of the Image''s appearance, can be specified in the Designer or in the Blocks Editor.
|
ImageHelpStringComponentPallette
|
|
|
|
|
A special-purpose button. When the user taps an image picker, the device''s image gallery appears, and the user can choose an image. After an image is picked, it is saved, and the <code>Selected</code> property will be the name of the file where the image is stored. In order to not fill up storage, a maximum of 10 images will be stored. Picking more images will delete previous images, in order from oldest to newest.
|
ImagePickerHelpStringComponentPallette
|
|
|
|
|
<p>A ''sprite'' that can be placed on a <code>Canvas</code>, where it can react to touches and drags, interact with other sprites (<code>Ball</code>s and other <code>ImageSprite</code>s) and the edge of the Canvas, and move according to its property values. Its appearance is that of the image specified in its <code>Picture</code> property (unless its <code>Visible</code> property is <code>False</code>).</p> <p>To have an <code>ImageSprite</code> move 10 pixels to the left every 1000 milliseconds (one second), for example, you would set the <code>Speed</code> property to 10 [pixels], the <code>Interval</code> property to 1000 [milliseconds], the <code>Heading</code> property to 180 [degrees], and the <code>Enabled</code> property to <code>True</code>. A sprite whose <code>Rotates</code> property is <code>True</code> will rotate its image as the sprite''s <code>Heading</code> changes. Checking for collisions with a rotated sprite currently checks the sprite''s unrotated position so that collision checking will be inaccurate for tall narrow or short wide sprites that are rotated. Any of the sprite properties can be changed at any time under program control.</p>
|
ImageSpriteHelpStringComponentPallette
|
|
|
|
|
A Label displays a piece of text, which is specified through the <code>Text</code> property. Other properties, all of which can be set in the Designer or Blocks Editor, control the appearance and placement of the text.
|
LabelHelpStringComponentPallette
|
|
|
|
|
A sensor component that can measure the light level.
|
LightSensorHelpStringComponentPallette
|
|
|
|
|
LineString is a component for drawing an open, continuous sequence of lines on a Map. To add new points to a LineString in the designer, drag the midpoint of any segment away from the line to introduce a new vertex. Move a vertex by clicking and dragging the vertex to a new location. Clicking on a vertex will delete the vertex, unless only two remain.
|
LineStringHelpStringComponentPallette
|
|
|
|
|
A visible component that indicates the progress of an operation using an animated linear bar.
|
LinearProgressHelpStringComponentPallette
|
|
|
|