PlayerIO

The fastest way to build online games without breaking a sweat.

Android Client Reference

Android  class documentationClass GameFS

Namespace: com.playerio
Language: Java

The Player.IO GameFS service.

Methods

 
public static String
getUrl (String gameId, String path)

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

public static String
getUrl (String gameId, String path, boolean secure)

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

public String
getUrl (String path)

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

public String
getUrl (String path, boolean secure)

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

GameFS.getUrl

public static String
getUrl (String gameId, String path)

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

Arguments

String gameId
The game id of the game you wish to access the GameFS of. This value can be found in the admin panel.
String path
The path of the file in the GameFS, including the initial slash. Examples: '/mygame.swf' or '/characters/bob.jpg'

Throws

PlayerIOError

GameFS.getUrl

public static String
getUrl (String gameId, String path, boolean secure)

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

Arguments

String gameId
The game id of the game you wish to access the GameFS of. This value can be found in the admin panel.
String path
The path of the file in the GameFS, including the initial slash. Examples: '/mygame.swf' or '/characters/bob.jpg'
boolean secure
If true, this method returns a secure (https) url.

Throws

PlayerIOError

GameFS.getUrl

public String
getUrl (String path)

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

Arguments

String path
The path of the file in the GameFS, including the initial slash. Examples: '/mygame.swf' or '/characters/bob.jpg'

Throws

PlayerIOError

GameFS.getUrl

public String
getUrl (String path, boolean secure)

Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.

Arguments

String path
The path of the file in the GameFS, including the initial slash. Examples: '/mygame.swf' or '/characters/bob.jpg'
boolean secure
If true, this method returns a secure (https) url.

Throws

PlayerIOError