Interface IContextService
-
public interface IContextService
Provides access to the application Context specific objects and Android Resources such as files and preferences.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Boolean>
dispatchEvent(IJadexAndroidEvent event)
Dispatches an Event to the Android UI / Activity.IFuture<java.io.File>
getFile(java.lang.String name)
Returns a FileIFuture<java.util.List<java.net.InetAddress>>
getNetworkIps()
Get the network ips.IFuture<IPreferences>
getSharedPreferences(java.lang.String preferenceFileName)
Gets an Android Shared Preference Container.IFuture<java.lang.Void>
openFile(java.lang.String path)
Opens a File with the default application.
-
-
-
Method Detail
-
getFile
IFuture<java.io.File> getFile(java.lang.String name)
Returns a File- Parameters:
name
- File name- Returns:
File
-
openFile
IFuture<java.lang.Void> openFile(java.lang.String path) throws java.io.IOException
Opens a File with the default application.- Parameters:
path
-- Throws:
java.io.IOException
-
getSharedPreferences
IFuture<IPreferences> getSharedPreferences(java.lang.String preferenceFileName)
Gets an Android Shared Preference Container. Returns null on Desktop Systems.- Parameters:
preferenceFileName
-
-
dispatchEvent
IFuture<java.lang.Boolean> dispatchEvent(IJadexAndroidEvent event)
Dispatches an Event to the Android UI / Activity. Does nothing on Desktop Systems.- Parameters:
event
-IJadexAndroidEvent
- Returns:
- true, if at least one receiver was registered for this event and delivery was successful, else false.
-
getNetworkIps
IFuture<java.util.List<java.net.InetAddress>> getNetworkIps()
Get the network ips.
-
-