public class ContextService
extends jadex.bridge.service.BasicService
implements jadex.bridge.service.types.context.IContextService
IContextService
Constructor and Description |
---|
ContextService(jadex.bridge.IComponentIdentifier provider)
Create a new ContextService.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Boolean> |
dispatchEvent(jadex.bridge.service.types.context.IJadexAndroidEvent event)
Dispatches an Event to the Android UI / Activity.
|
jadex.commons.future.IFuture<java.io.File> |
getFile(java.lang.String name)
Returns a File
|
jadex.commons.future.IFuture<java.util.List<java.net.InetAddress>> |
getNetworkIps()
Get the network ips.
|
jadex.commons.future.IFuture<jadex.bridge.service.types.context.IPreferences> |
getSharedPreferences(java.lang.String preferenceFileName)
Gets a Shared Preference Container.
|
jadex.commons.future.IFuture<java.lang.Void> |
openFile(java.lang.String path)
Opens a File with the default application.
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdownService() |
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInterfaceType, getInternalAccess, getMethodTimeout, getPropertyMap, getProviderId, getServiceIdentifier, hashCode, initNFProperties, isValid, setComponentAccess, setPropertyMap, startService, toString
public ContextService(jadex.bridge.IComponentIdentifier provider)
public jadex.commons.future.IFuture<java.io.File> getFile(java.lang.String name)
getFile
in interface jadex.bridge.service.types.context.IContextService
name
- File nameFile
public jadex.commons.future.IFuture<jadex.bridge.service.types.context.IPreferences> getSharedPreferences(java.lang.String preferenceFileName)
getSharedPreferences
in interface jadex.bridge.service.types.context.IContextService
preferenceFileName
- public jadex.commons.future.IFuture<java.lang.Boolean> dispatchEvent(jadex.bridge.service.types.context.IJadexAndroidEvent event)
dispatchEvent
in interface jadex.bridge.service.types.context.IContextService
public jadex.commons.future.IFuture<java.util.List<java.net.InetAddress>> getNetworkIps()
getNetworkIps
in interface jadex.bridge.service.types.context.IContextService
public jadex.commons.future.IFuture<java.lang.Void> openFile(java.lang.String path) throws java.io.IOException
openFile
in interface jadex.bridge.service.types.context.IContextService
path
- java.io.IOException
public jadex.commons.future.IFuture<java.lang.Void> shutdownService()
shutdownService
in interface jadex.bridge.service.IInternalService
shutdownService
in class jadex.bridge.service.BasicService