These components are experimental; the documentation is either missing or preliminary. Feel free to explore with them, but don't be surprised if they change in the near future.
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.
This component uses the Fusion Tables API V1.0.
In order to develop apps that use Fusiontables, you must obtain an API Key.
To get an API key, follow these instructions.
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 ApiKey property in your Fusiontables app.
Once you have an API key, set the value of the Query property to a valid Fusiontables SQL query and call SendQuery to execute the query. App Inventor will send the query to the Fusion Tables server and the GotResult 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.
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 the reference manual, 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.
ApiKey
Query : text (read-only)
For legal query formats and examples, see the Fusion Tables API v1.0 reference manual.
Note that you do not need to worry about UTF-encoding the query. But you do need to make sure it follows the syntax described in the reference manual, which means that things like capitalization for names of columns matters, and that single quotes need to be used around column names if there are spaces in them.
GotResult(text result)
DoQuery()
ForgetLogin()
SendQuery()
GameClient communicates with online game servers to support the implementation of multiplayer games. For information on the clients and servers and examples of games, see the MIT Master's Thesis by Bill Magnuson, Building Blocks for Mobile Games available at http://dspace.mit.edu/handle/1721.1/61253 . There is an experimental game server running at appinvgameserver.appspot.com, but this may be up only intermittently. For serious work, you will probably want to deploy your own game server on Google Appengine. The implementation is described in the thesis, and the code is available at http://code.google.com/p/app-inventor-for-android/source/browse/#svn/trunk/app_inv_game_server
GameId
InstanceId : text (read-only)
InvitedInstances : list (read-only)
JoinedInstances : list (read-only)
Leader : text (read-only)
Players : list (read-only)
PublicInstances : list (read-only)
ServiceUrl : text (read-only)
UserEmailAddress : text (read-write)
FunctionCompleted(text functionName)
GotMessage(text type, text sender, list contents)
Info(text message)
InstanceIdChanged(text instanceId)
Invited(text instanceId)
NewInstanceMade(text instanceId)
NewLeader(text playerId)
PlayerJoined(text playerId)
PlayerLeft(text playerId)
ServerCommandFailure(text command, list arguments)
ServerCommandSuccess(text command, list response)
UserEmailAddressSet(text emailAddress)
WebServiceError(text functionName, text message)
GetInstanceLists ()
GetMessages (text type, number count)
Invite (text playerEmail)
LeaveInstance ()
MakeNewInstance (text instanceId, boolean makePublic)
SendMessage (text type, list recipients, list contents)
ServerCommand (text command, list arguments)
SetInstance (text instanceId)
SetLeader (text playerEmail)
Multimedia component that records audio.
none
AfterSoundRecorded(text sound)
StartedRecording()
StoppedRecording()
Start ()
Stop ()
The Voting component communicates with a Web service to retrieve a ballot and send back users' votes.
The application should call the method RequestBallot
, usually in the Initialize
event handler, in order to get the ballot question and options from the Web service (specified by the ServiceURL
property). Depending on the response from the Web service, the system will raise one of the following three events:
GotBallot
, indicating that the ballot question and options were retrieved and the properties BallotQuestion
and BallotOptions
have been set.NoOpenPoll
, indicating that no ballot question is available.WebServiceError
, indicating that the service did not provide a legal response and providing an error messages.After getting the ballot, the application should allow the user to make a choice from among BallotOptions
and set the property UserChoice
to that choice. The application should also set UserId
to specify which user is voting. Often, this will be set to the property UserEmailAddress
, which specifies the email address associated with the phone.
Once the application has set UserChoice
and UserId
, the application can call SendBallot
to send this information to the Web service. If the service successfully receives the vote, the event GotBallotConfirmation
will be raised. Otherwise, the event WebServiceError
will be raised with the appropriate error message.
BallotOptions
BallotQuestion
ServiceURL
UserChoice
SendBallot
is called. This must be one of BallotOptions
.UserEmailAddress
UserId
SendBallot
is called.GotBallot()
BallotQuestion
and BallotOptions
have been set. This is always preceded by a call to the method RequestBallot
.GotBallotConfirmation()
NoOpenPoll()
WebServiceError(text message)
RequestBallot()
ServiceURL
. When the completes, one of the following events will be raised: GotBallot
, NoOpenPoll
, or WebServiceError
.SendBallot()
UserId
and UserChoice
have been set by the application.Component for viewing Web pages. The Home URL can be specified in the Designer or in the Blocks Editor. The view can be set to follow links when they are tapped, and users can fill in Web forms. Warning: This is not a full browser. For example, pressing the phone's hardware Back key will exit the app, rather than move back in the browser history.
CurrentPageTitle
CurrentUrl
FollowLinks
Height
HomeUrl
Visible
Width
none
boolean CanGoBack()
boolean CanGoForward()
GoBack()
GoForward()
GoHome()
GoToUrl(text url)