|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SDKServiceProvider
Provides access to the various StackMob services.
| Method Summary | |
|---|---|
DataService |
getDataService()
Get the DataService required to access the datastore for the current application. |
DatastoreService |
getDatastoreService()
Deprecated. |
FacebookService |
getFacebookService()
Get the FacebookService required to communicate with Facebook for the current application. |
HttpService |
getHttpService()
get the HttpService required to talk generically to HTTP servers from the current application. |
LoggerService |
getLoggerService(Class clazz)
Get a LoggerService named corresponding to the given class. |
LoggerService |
getLoggerService(String name)
Get a LoggerService named using the given name. |
PushService |
getPushService()
Get the PushService required to send push notifications for the current application. |
TwitterService |
getTwitterService()
Get the TwitterService required to communicate with Twitter for the current application. |
String |
getVersion()
StackMob internally assigns a globally unique version string to every custom code JAR. |
boolean |
isSandbox()
Determine whether this custom code instance is currently running in sandbox. |
| Method Detail |
|---|
LoggerService getLoggerService(Class clazz)
LoggerService named corresponding to the given class. Use this for logging within custom code.
clazz - the logger service will be named after clazz
LoggerService getLoggerService(String name)
LoggerService named using the given name. Use this for logging within custom code.
name - the name of the logger service
@Deprecated DatastoreService getDatastoreService()
DatastoreService required to access the datastore for the current application.
DataService getDataService()
DataService required to access the datastore for the current application.
PushService getPushService()
throws ServiceNotActivatedException
PushService required to send push notifications for the current application.
ServiceNotActivatedException - if the push service has not yet been set up for the current application
TwitterService getTwitterService()
throws ServiceNotActivatedException
TwitterService required to communicate with Twitter for the current application.
ServiceNotActivatedException - if the Twitter service has not yet been set up for the current application
FacebookService getFacebookService()
throws ServiceNotActivatedException
FacebookService required to communicate with Facebook for the current application.
ServiceNotActivatedException - if the Facebook service has not yet been set up for the current application
HttpService getHttpService()
throws ServiceNotActivatedException
HttpService required to talk generically to HTTP servers from the current application.
ServiceNotActivatedException - if the Http service has not yet been set up for the current applicationboolean isSandbox()
String getVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||