public class HKServices
extends NanoHTTPD
Constructor and Description |
---|
HKServices(android.content.Context c,
java.lang.String validate_key)
HKServices constructor
|
HKServices(android.content.Context c,
java.lang.String validate_key,
java.lang.String secret)
HKServices constructor
|
Modifier and Type | Method and Description |
---|---|
void |
getModules() |
java.lang.Boolean |
moduleDownloaded(java.lang.String uri)
moduleDownloaded
|
Response |
serve(IHTTPSession session) |
void |
setInterface(HKServicesInterface servicesInterface)
required - set the interface to authenticate the SDK
|
void |
setLanguage(HKLanguage language)
setLanguage - set the current language
|
public java.util.ArrayList<HKModule> modules
public HKServices(android.content.Context c, java.lang.String validate_key)
c
- application context (required)validate_key
- your API key (required)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 servicesInterface)
servicesInterface
- the HKServicesInterfacepublic void getModules()
public Response serve(IHTTPSession session)
public java.lang.Boolean moduleDownloaded(java.lang.String uri)
uri
- check the local device to see if a module has been savedpublic void setLanguage(HKLanguage language)
language
- an HKLanguage object to translate available text in the 3D scenes