public class HKServices
extends NanoHTTPD
| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList<HKModel> |
models
Models returned from calling getModels from the Content API
|
| Constructor and Description |
|---|
HKServices(android.content.Context c,
java.lang.String validate_key,
java.lang.String secret)
HKServices constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
getModels()
Get Models from the Content API - requires API Key and Secret
|
java.lang.Boolean |
modelDownloaded(java.lang.String uri)
Check if a model has already been downloaded
|
Response |
serve(IHTTPSession session)
internal method for handling web requests
|
void |
setInterface(HKServicesInterface delegate)
Set the HKServicesInterface to receive callbacks
|
void |
setLanguage(HKLanguage language)
setLanguage - set the current language
|
public java.util.ArrayList<HKModel> models
public HKServices(android.content.Context c,
java.lang.String validate_key,
java.lang.String secret)
c - application context (required)validate_key - your API key (required)secret - your API secret can be passed in to get content saved to your account, or pass an empty stringpublic void setInterface(HKServicesInterface delegate)
delegate - the callback objectpublic void getModels()
public Response serve(IHTTPSession session)
session - http sessionpublic java.lang.Boolean modelDownloaded(java.lang.String uri)
uri - the model idpublic void setLanguage(HKLanguage language)
language - an HKLanguage object to translate available text in the 3D scenes