public class HKServices
extends NanoHTTPD
| Modifier and Type | Field and Description | 
|---|---|
| java.util.ArrayList<HKModel> | modelsModels returned from calling getModels from the  Content API | 
| Modifier and Type | Method and Description | 
|---|---|
| long | deleteLocalContent()Removes all BioDigital Human content from the device | 
| void | download(java.util.ArrayList<java.lang.String> modelIds)Download a set of models | 
| void | download(java.lang.String modelId)Download a model | 
| static HKServices | getInstance()The Singleton instance of the HKServices class | 
| 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 | setLanguage(HKLanguage language)Set the current language | 
| void | setup(android.content.Context c,
     HKServicesInterface delegate)Initialize BioDigital Services and authenticate the SDK | 
public java.util.ArrayList<HKModel> models
public static HKServices getInstance()
public void setup(android.content.Context c,
                  HKServicesInterface delegate)
c - your Application contextdelegate - the HKServicesInterface for callback messagespublic void getModels()
public Response serve(IHTTPSession session)
session - http sessionpublic void download(java.lang.String modelId)
modelId - String model Idpublic void download(java.util.ArrayList<java.lang.String> modelIds)
modelIds - an array of model IDspublic 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 scenespublic long deleteLocalContent()