Type String
Return value none
Revision Release 2024.3703
Keywords Google Play Games Services, game network, gpgs
See also gpgs.*


Loads an image from Google's server using a special Google Play Services URI and writes it to a specified file as a PNG image.


params (required)

Table. Contains parameters — see the next section for details.

Parameter Reference

uri (required)

String. Image resource URI, it must be something that was retrieved from another call to Google Play services.

filename (required)

String. Path for the to be saved PNG image file.

baseDir (optional)

Constant. Constant corresponding to the base directory where the file will be located. Default value is system.CachesDirectory if the parameter is not provided.

listener (optional)

Listener. Receives loadImage event.