AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.AssetFetcher Class Reference

Static Public Member Functions

static void fetchAssets (final String cookieValue, final String projectId, final String uri, final String asset)
 
static void upgradeCompanion (final String cookieValue, final String inputUri)
 
static void loadExtensions (String jsonString)
 

Detailed Description

AssetFetcher: This module is used by the MIT AI2 Companion to fetch assets directly from the App Inventor Server. Prior to the use of this module, the App Inventor client would fetch assets from the server and then send them to the MIT AI2 Companion. Instead we now use this module. It is passed a list of assets to fetch (which includes extension components). We are also handed the authentication cookie for the user. We then fetch the assets from the server and place them in the appropriate directory in external storage. Finally when finished we signal the Companion that we have all of the needed assets

This code is part of the implementation of webRTC communication between the Companion and the App Inventor client.

Definition at line 50 of file AssetFetcher.java.

Member Function Documentation

◆ fetchAssets()

static void com.google.appinventor.components.runtime.util.AssetFetcher.fetchAssets ( final String  cookieValue,
final String  projectId,
final String  uri,
final String  asset 
)
static

Definition at line 64 of file AssetFetcher.java.

◆ loadExtensions()

static void com.google.appinventor.components.runtime.util.AssetFetcher.loadExtensions ( String  jsonString)
static

Definition at line 104 of file AssetFetcher.java.

◆ upgradeCompanion()

static void com.google.appinventor.components.runtime.util.AssetFetcher.upgradeCompanion ( final String  cookieValue,
final String  inputUri 
)
static

Definition at line 77 of file AssetFetcher.java.


The documentation for this class was generated from the following file: