Skip navigation links
A B C D E F G H I L M N O P Q R S T U V W 

A

addCoordinates(double, double) - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
addDataPlugin(DataPlugin) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
 
addDays(Date, int) - Static method in class fi.moprim.tmd.sdk.utilities.DateUtils
 
addMinutes(Date, int) - Static method in class fi.moprim.tmd.sdk.utilities.DateUtils
 
annotate(Context, long, long, String, String) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Label an interval of time with a mode and metadata This information will be forwarded to the cloud even if no corresponding data is available locally
annotateActivity(Context, TmdActivity, String) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Annotate the activity with new metadata
appExecutors - Variable in class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
AppExecutors - Class in fi.moprim.tmd.sdk.utilities
 
AppExecutors() - Constructor for class fi.moprim.tmd.sdk.utilities.AppExecutors
 
attachInfo(Context, ProviderInfo) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
This function is used to initialise the URI matcher
attachInfo(Context, ProviderInfo) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
This function is used to initialise the URI matcher

B

build() - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
 
build() - Method in class fi.moprim.tmd.sdk.trips.plugin.TripPlugin.Builder
 
Builder(Context) - Constructor for class fi.moprim.tmd.sdk.TmdConfig.Builder
 
Builder() - Constructor for class fi.moprim.tmd.sdk.trips.plugin.TripPlugin.Builder
 

C

ceilingDate(Date, int) - Static method in class fi.moprim.tmd.sdk.utilities.DateUtils
 
ContentObserverNetworkBoundResource<T> - Class in fi.moprim.tmd.sdk.data
 
ContentObserverNetworkBoundResource(AppExecutors, ContentProviderLiveData<T>, long) - Constructor for class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
 
ContentProviderLiveData<T> - Class in fi.moprim.tmd.sdk.data
 
ContentProviderLiveData(Context, Uri) - Constructor for class fi.moprim.tmd.sdk.data.ContentProviderLiveData
 
ContentProviderLiveData(ContentResolver, Uri) - Constructor for class fi.moprim.tmd.sdk.data.ContentProviderLiveData
 
copyInto(Resource<?>, T) - Static method in class fi.moprim.tmd.sdk.data.Resource
 
correctActivity(Context, TmdActivity, String) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Correct the label of activity
createNetworkRequest() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
CREATOR - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
CREATOR - Static variable in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
 

D

data - Variable in class fi.moprim.tmd.sdk.data.Resource
 
DataPlugin - Interface in fi.moprim.tmd.sdk.plugin
 
dataWasUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Check if some data (TMD or Location) was uploaded
DateUtils - Class in fi.moprim.tmd.sdk.utilities
 
DateUtils() - Constructor for class fi.moprim.tmd.sdk.utilities.DateUtils
 
dbSource - Variable in class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
decode(String) - Static method in class fi.moprim.tmd.sdk.utilities.PolylineUtils
decode a polyline to a GeoJSON coordinates array Code for encoded and decoded paths is adapted from https://github.com/googlemaps/google-maps-services-java/blob/master/src/main/java/com/google/maps/internal/PolylineEncoding.java
DEFAULT_ALLOW_MOBILE_DATA - Static variable in class fi.moprim.tmd.sdk.TmdCloudApi
 
delete(Uri, String, String[]) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
 
delete(Uri, String, String[]) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
 
describeContents() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
describeContents() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
 
diskIO() - Method in class fi.moprim.tmd.sdk.utilities.AppExecutors
 
doSaveRequestResult(T) - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
 

E

EMPTY - Static variable in interface fi.moprim.tmd.sdk.trips.model.Trip
 
encode(JSONArray) - Static method in class fi.moprim.tmd.sdk.utilities.PolylineUtils
encode a GeoJSON coordinates array to a polyline Code for encoded and decoded paths is adapted from https://github.com/googlemaps/google-maps-services-java/blob/master/src/main/java/com/google/maps/internal/PolylineEncoding.java
error(TmdError, String, T) - Static method in class fi.moprim.tmd.sdk.data.Resource
 
extractResult(Intent) - Static method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Extract the result embedded in the intent

F

fetchData(Context, Date) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Fetch TMD activity data from the Moprim Cloud for the defined date
fetchData(Context, Date, int) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Fetch TMD activity data from the Moprim Cloud for the defined date
fetchData(Context, Date, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Fetch TMD activity data from the Moprim Cloud for the defined date
fetchData(Context, Date, int, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Fetch TMD activity data from the Moprim Cloud for the defined date
fetchData(Context, long, long) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Fetching data from the Moprim cloud
fetchData(Context, long, long, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Fetching data from the Moprim cloud
fetchMetadata(Context) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Fetch the metadata from the Cloud.
fetchMetadata(Context, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Fetch the metadata from the Cloud.
fetchStats(Context, int) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Fetching stats from the Moprim cloud
fi.moprim.tmd.sdk - package fi.moprim.tmd.sdk
This package includes classes, interfaces, and enumerations related to the TMD for our Android SDK.
fi.moprim.tmd.sdk.data - package fi.moprim.tmd.sdk.data
 
fi.moprim.tmd.sdk.model - package fi.moprim.tmd.sdk.model
This package includes model classes, interfaces, and enumerations of the TMD for our Android SDK.
fi.moprim.tmd.sdk.plugin - package fi.moprim.tmd.sdk.plugin
 
fi.moprim.tmd.sdk.trips - package fi.moprim.tmd.sdk.trips
 
fi.moprim.tmd.sdk.trips.data - package fi.moprim.tmd.sdk.trips.data
 
fi.moprim.tmd.sdk.trips.model - package fi.moprim.tmd.sdk.trips.model
 
fi.moprim.tmd.sdk.trips.plugin - package fi.moprim.tmd.sdk.trips.plugin
 
fi.moprim.tmd.sdk.utilities - package fi.moprim.tmd.sdk.utilities
 
forceUpload(Context) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
Force the upload of TMD data to the Moprim Cloud.
forceUpload(Context) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
Force the upload of TMD data to the Moprim Cloud.
fromValue(int) - Static method in enum fi.moprim.tmd.sdk.model.TmdStatus.Category
 

G

generate(List<TmdActivity>) - Static method in class fi.moprim.tmd.sdk.trips.model.MapData
 
getActivity() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
getApiEndpoint() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
getApiEndpointRegions() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
getAuthority(Context) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
Returns the authority string for this content provider
getAuthority(Context) - Static method in class fi.moprim.tmd.sdk.trips.TripContentProvider
Returns the authority string for this content provider
getBounds() - Method in class fi.moprim.tmd.sdk.trips.model.MapData
 
getBoundsOfActivity(TmdActivity) - Static method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getCallbackIntent() - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
 
getCategory() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
 
getCleaningIntervalDays() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
getCo2() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
getCo2() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
getCo2() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
The co2 produced during this trip
getContentProviderValue() - Method in class fi.moprim.tmd.sdk.data.ContentProviderLiveData
 
getDataPlugins() - Method in class fi.moprim.tmd.sdk.TmdConfig
Unmodified list of data plugins
getDate() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
getDestination() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
getDestination() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
The destination of the trip
getDistance() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
getDistance() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
getDistance() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
The distance of the trip in meters
getDuration() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
getDuration() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
getDuration() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
 
getDuration() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
getDuration(double) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
 
getDuration(double, boolean) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
 
getError() - Method in class fi.moprim.tmd.sdk.model.Result
 
getError() - Method in exception fi.moprim.tmd.sdk.model.TmdException
 
getFirstLatitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getFirstLongitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getFirstTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
getGeojson() - Method in class fi.moprim.tmd.sdk.trips.model.MapData
 
getIdentityPlugin() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
getIdentityPoolId() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
getInstallationId() - Method in class fi.moprim.tmd.sdk.TMD
Retrieve the unique application installation id of application using the SDK
getInstance() - Static method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
Getting an instance of the repository with default executors
getInstance() - Static method in class fi.moprim.tmd.sdk.data.TmdStatsRepository
 
getInstance() - Static method in class fi.moprim.tmd.sdk.TMD
 
getInstance() - Static method in class fi.moprim.tmd.sdk.trips.data.TripRepository
 
getLabel() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
 
getLastActivityTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
getLastLatitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getLastLocationTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
getLastLongitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getLastModified() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
getLastTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
getLastTimestampOfLocationUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Get the timestamp of the last location point that was just uploaded
getLastTimestampOfTmdActivityUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Get the end timestamp of last activity that was just uploaded
getLastTmdActivity(Context) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
 
getLastTmdTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
getLastTrip(Context) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
Loads the last Trip data from the cloud
getLastTrips(Context, int) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
Loads the last Trip data from the cloud or the cache
getLastUpdate() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
getLastUploadedLocationTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
getLastUploadedTmdTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
getLeg(int) - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
getLegs() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
getLegs() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
Get the list of legs for this trip
getLocationPollingInterval() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
getLocationRequiredAccuracy() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
getMainMode() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
getMapData() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
getMaxLatitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getMaxLongitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getMessage() - Method in class fi.moprim.tmd.sdk.model.Result
 
getMetadata() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
The metadata annotated to the TMD activity
getMetadata() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
The metadata for the trip
getMinLatitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getMinLongitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getMode() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
getNbLocationsUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Get the number of location data points that were uploaded
getNbTmdActivitiesUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Get the number of tmd activities that were just uploaded
getOrigin() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
getOrigin() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
The name of the origin for the trip
getPolyline() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
To decode the polyline, check PolylineUtils.decode(String)
getReason() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
The reason for the trip
getResult() - Method in class fi.moprim.tmd.sdk.model.Result
 
getSdkInfo() - Static method in class fi.moprim.tmd.sdk.model.SdkInfo
 
getSize() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
getSize() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
 
getSpeed() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
getStartCallbackIntent() - Method in class fi.moprim.tmd.sdk.TMD
 
getTimestampEnd() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
getTimestampEnd() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
 
getTimestampEnd() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
getTimestampStart() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
getTimestampStart() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
 
getTimestampStart() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
getTmdActivities(Context, long, long) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
Loads TmdActivity data from the cloud or the cache between the selected timestamps
getTmdActivities(Context, int) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
 
getTmdActivityUri(Context) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
Returns the URI to retrieve TMD activity data from the provider
getTmdActivityUri(Context, long) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
Returns the URI to retrieve TMD activity data from the provider
getTmdCredentialsProvider() - Method in interface fi.moprim.tmd.sdk.plugin.IdentityPlugin
 
getTmdStats(Context, int) - Method in class fi.moprim.tmd.sdk.data.TmdStatsRepository
 
getTmdStatsUri(Context) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
Returns the URI to retrieve TMD Stats data from the provider
getTmdStatsUri(Context, long) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
Returns the URI to retrieve TMD Stats data from the provider
getTmdStatusUri(Context) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
Returns the URI to retrieve TMD Status data from the provider
getTmdStatusUri(Context, long) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
Returns the URI to retrieve TMD Status data from the provider
getTrips(Context, long, long) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
Loads Trip data from the cloud or the cache between the selected timestamps
getTripUri(Context) - Static method in class fi.moprim.tmd.sdk.trips.TripContentProvider
Returns the URI to retrieve TMD Trip data from the provider
getTripUri(Context, long) - Static method in class fi.moprim.tmd.sdk.trips.TripContentProvider
Returns the URI to retrieve TMD Trip data from the provider
getType(Uri) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
Returns the MIME type for a specific URI TODO add the other URIs
getType(Uri) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
Returns the MIME type for a specific URI TODO add the other URIs
getUploadIntervalMinutes() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
getUploadTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Get the upload timestamp of the last upload
getUUID(Context) - Method in class fi.moprim.tmd.sdk.TMD
 
getValue() - Method in enum fi.moprim.tmd.sdk.model.TmdStatus.Category
 
getVersionCode() - Method in class fi.moprim.tmd.sdk.model.SdkInfo
 
getVersionName() - Method in class fi.moprim.tmd.sdk.model.SdkInfo
 

H

hasData() - Method in class fi.moprim.tmd.sdk.trips.model.MapData
 
hasError() - Method in class fi.moprim.tmd.sdk.model.Result
Return if the result contains an error
hasLegs() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
Check whether the trip has legs
hasMessage() - Method in class fi.moprim.tmd.sdk.model.Result
Return if the result contains a message
hasResult() - Method in class fi.moprim.tmd.sdk.model.Result
Return if the result contains an output
hasResult(Intent) - Static method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Check from an intent if it includes TMD_UPLOAD_METADATA

I

IdentityPlugin - Interface in fi.moprim.tmd.sdk.plugin
 
init(Context, TmdConfig) - Method in class fi.moprim.tmd.sdk.TMD
Initialize Moprim TMD for a given Application.
initialize(Context) - Method in interface fi.moprim.tmd.sdk.plugin.DataPlugin
 
initialize(Context) - Method in class fi.moprim.tmd.sdk.trips.plugin.TripPlugin
 
insert(Uri, ContentValues) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
 
insert(Uri, ContentValues) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
 
isAggregatedUserStats() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
 
isCheckedByUser() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
isCompleted() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
This fields tells if the trip is completed and thus, may be not be modified without the user's input
isConfigured(Context) - Method in class fi.moprim.tmd.sdk.TMD
Returns true if the TMD was able to receive the configuration from the Cloud
isDefaultMobileDataAllowed() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
isInitialized() - Method in class fi.moprim.tmd.sdk.TMD
 
isMobileDataAllowed(Context) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
 
isNotEmpty(String) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
 
isTmdRunning(Context) - Static method in class fi.moprim.tmd.sdk.TMD
 
isValidated() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
This field is important for reporting

L

LABEL_APPLICATION_NOT_RUNNING - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
 
LABEL_IDLE - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
 
LABEL_RECORDING - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
 
LABEL_RUNNING - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
 
LABEL_TMD_NOT_RUNNING - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
 
LABEL_TMD_STOPPED_INSUFFICIENT_PERMISSIONS - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
 
LAST_TIMESTAMP_ACTIVITY - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
LAST_TIMESTAMP_LOCATION - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
LAST_TIMESTAMP_TMD - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
LAST_TIMESTAMP_UPLOADED_LOCATION - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
LAST_TIMESTAMP_UPLOADED_TMD - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
load() - Method in class fi.moprim.tmd.sdk.data.ContentProviderLiveData
 
loadFromDb() - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
 
loadFromDb() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
loading(T) - Static method in class fi.moprim.tmd.sdk.data.Resource
 

M

mainThread() - Method in class fi.moprim.tmd.sdk.utilities.AppExecutors
 
MapBounds - Class in fi.moprim.tmd.sdk.trips.model
 
MapBounds() - Constructor for class fi.moprim.tmd.sdk.trips.model.MapBounds
 
MapData - Class in fi.moprim.tmd.sdk.trips.model
 
marshall(Trip) - Static method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
marshall(Parcelable) - Static method in class fi.moprim.tmd.sdk.utilities.ParcelableUtils
 
message - Variable in class fi.moprim.tmd.sdk.data.Resource
 

N

NetworkBoundResource<T> - Class in fi.moprim.tmd.sdk.data
 
NetworkBoundResource(AppExecutors, LiveData<T>) - Constructor for class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
NetworkBoundResource(AppExecutors) - Constructor for class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
networkIO() - Method in class fi.moprim.tmd.sdk.utilities.AppExecutors
 

O

onActive() - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
 
onActive() - Method in class fi.moprim.tmd.sdk.data.ContentProviderLiveData
 
onCreate() - Method in class fi.moprim.tmd.sdk.TmdContentProvider
 
onCreate() - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
 
onError(Exception) - Method in interface fi.moprim.tmd.sdk.model.TmdCallback
 
onFailure(TmdError) - Method in interface fi.moprim.tmd.sdk.model.OnSetUUIDListener
This function is called when the change of UUID was unsuccessful
onFetchFailed() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
onInactive() - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
 
onInactive() - Method in class fi.moprim.tmd.sdk.data.ContentProviderLiveData
 
onResult(R) - Method in interface fi.moprim.tmd.sdk.model.TmdCallback
 
OnSetUUIDListener - Interface in fi.moprim.tmd.sdk.model
An interface to listen to the operation of the initialisation of the TMD.
onSuccess(String) - Method in interface fi.moprim.tmd.sdk.model.OnSetUUIDListener
This function is called when the change was successful.

P

ParcelableUtils - Class in fi.moprim.tmd.sdk.utilities
How to use - Make a simple object (POJO) - Create a parcelable in ONE CLICK! http://devk.it/proj/parcelabler/ - Convert to POJO to and from byte[] Example MyParcelable happy = new MyParcelable(); byte[] toByte = ParcelableUtil.marshall(happy); // Save to DB? Send via socket? // ...
ParcelableUtils() - Constructor for class fi.moprim.tmd.sdk.utilities.ParcelableUtils
 
PolylineUtils - Class in fi.moprim.tmd.sdk.utilities
 
PolylineUtils() - Constructor for class fi.moprim.tmd.sdk.utilities.PolylineUtils
 

Q

query(Uri, String[], String, String[], String) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
 
query(Uri, String[], String, String[], String) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
 

R

refresh(RefreshMode) - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
refresh() - Method in class fi.moprim.tmd.sdk.data.RefreshLiveData
 
refresh(RefreshMode) - Method in class fi.moprim.tmd.sdk.data.RefreshLiveData
 
RefreshLiveData<T> - Class in fi.moprim.tmd.sdk.data
A class to provide LiveData with a possibility to refresh the data
RefreshLiveData() - Constructor for class fi.moprim.tmd.sdk.data.RefreshLiveData
 
RefreshMode - Enum in fi.moprim.tmd.sdk.data
 
Resource<T> - Class in fi.moprim.tmd.sdk.data
A generic class that holds a value with its loading status.
Result<T> - Class in fi.moprim.tmd.sdk.model
A class that takes encapsulate the returned values from the SDK APIs
Result(T, TmdError, String) - Constructor for class fi.moprim.tmd.sdk.model.Result
Default constructor
Result(T) - Constructor for class fi.moprim.tmd.sdk.model.Result
Basic result with no error and no message
Result(T, String) - Constructor for class fi.moprim.tmd.sdk.model.Result
Basic result with message
Result(TmdError, String) - Constructor for class fi.moprim.tmd.sdk.model.Result
Basic error, comes always with a message

S

same(String, String) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
 
sameTmdActivities(TmdActivity, TmdActivity) - Static method in interface fi.moprim.tmd.sdk.model.TmdActivity
 
sameTrip(Trip, Trip) - Static method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
sameTrips(List<Trip>, List<Trip>) - Static method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
saveRequestResult(T) - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
 
saveRequestResult(T) - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
scheduleDownload(Context, int, long) - Method in interface fi.moprim.tmd.sdk.plugin.DataPlugin
 
scheduleDownload(Context, int, long) - Method in class fi.moprim.tmd.sdk.trips.plugin.TripPlugin
 
SdkInfo - Class in fi.moprim.tmd.sdk.model
A small container to access the version name and code of the SDK
SdkInfo(String, int) - Constructor for class fi.moprim.tmd.sdk.model.SdkInfo
 
setCallbackIntent(PendingIntent) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Sets an callback intent for the background operation with the cloud.
setCleaningIntervalDays(int) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
 
setDefaultMobileDataAllowed(Context, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
This method should be called in the Application class to initialize the default use of mobile data for background data upload.
setDefaultMobileDataAllowed(boolean) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
 
setEndpoint(String) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
 
setIdentityPlugin(IdentityPlugin) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
 
setKey(String) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
 
setMinimumIntervalBetweenNetworkRequests(long) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
 
setMinimumIntervalBetweenNetworkRequests(long) - Method in class fi.moprim.tmd.sdk.data.TmdStatsRepository
 
setMinimumIntervalBetweenNetworkRequests(long) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
 
setMobileDataAllowed(Context, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
 
setStartCallbackIntent(PendingIntent) - Method in class fi.moprim.tmd.sdk.TMD
Sets an callback intent for the background start of the TMD.
setUploadIntervalMinutes(int) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
 
setUUID(Context, String, OnSetUUIDListener) - Method in class fi.moprim.tmd.sdk.TMD
Set an unique user id to gather data from multiple installations.
setValue(Resource<T>) - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
shouldFetch() - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
 
shouldFetch() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
 
shutdown() - Method in class fi.moprim.tmd.sdk.TmdContentProvider
 
shutdown() - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
 
size() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
The size of the trip
startForeground(Context, int, Notification) - Static method in class fi.moprim.tmd.sdk.TMD
Starts the TMD service for the given context
status - Variable in class fi.moprim.tmd.sdk.data.Resource
 
Status - Enum in fi.moprim.tmd.sdk.data
Status of a resource that is provided to the UI.
stop(Context) - Static method in class fi.moprim.tmd.sdk.TMD
Stops the TMD service
StringUtils - Class in fi.moprim.tmd.sdk.utilities
 
StringUtils() - Constructor for class fi.moprim.tmd.sdk.utilities.StringUtils
 
success(T) - Static method in class fi.moprim.tmd.sdk.data.Resource
 

T

testInit(Context, TmdConfig) - Method in class fi.moprim.tmd.sdk.TMD
 
TMD - Class in fi.moprim.tmd.sdk
Use this class to initialize the TMD TMD.init(Context, TmdConfig) as soon as possible in your Application subclass Application.onCreate() method.
TMD_ACTIVITY_ITEM_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
MIME type for tmd activity item
TMD_ACTIVITY_LIST_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
MIME type for tmd activity list
TMD_STATS_ITEM_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
MIME type for tmd stats item
TMD_STATS_LIST_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
MIME type for tmd stats list
TMD_TRIP_ITEM_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.trips.TripContentProvider
MIME type for tmd stats item
TMD_TRIP_LIST_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.trips.TripContentProvider
MIME type for tmd stats list
TmdActivity - Interface in fi.moprim.tmd.sdk.model
 
TmdActivityRepository - Class in fi.moprim.tmd.sdk.data
Repository singleton module for handling TmdActivity data operations.
TmdBackgroundOperation - Enum in fi.moprim.tmd.sdk.model
 
TmdCallback<R> - Interface in fi.moprim.tmd.sdk.model
TmdCallback async operations.
TmdCloudApi - Class in fi.moprim.tmd.sdk
This class offers static functions to interact with the Moprim Cloud.
TmdCloudApi() - Constructor for class fi.moprim.tmd.sdk.TmdCloudApi
 
TmdCloudMetadata - Class in fi.moprim.tmd.sdk.model
 
TmdCloudMetadata(long, long, long, long, long, long, long) - Constructor for class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
TmdCloudMetadata(Parcel) - Constructor for class fi.moprim.tmd.sdk.model.TmdCloudMetadata
Parcel constructor
TmdConfig - Class in fi.moprim.tmd.sdk
This class embodies the core variable that are needed to initiate any TMD processes
TmdConfig.Builder - Class in fi.moprim.tmd.sdk
 
TmdContentProvider - Class in fi.moprim.tmd.sdk
The TmdContentProvider should enable access to - TmdActivity data - TmdStats data - TmdStatus data (idle, etc..)
TmdContentProvider() - Constructor for class fi.moprim.tmd.sdk.TmdContentProvider
 
tmdError - Variable in class fi.moprim.tmd.sdk.data.Resource
 
TmdError - Enum in fi.moprim.tmd.sdk.model
Enum of the possible error
TmdException - Exception in fi.moprim.tmd.sdk.model
 
TmdException(TmdError, String, Object...) - Constructor for exception fi.moprim.tmd.sdk.model.TmdException
 
TmdStartReturnCode - Enum in fi.moprim.tmd.sdk.model
 
TmdStats - Interface in fi.moprim.tmd.sdk.model
 
TmdStatsRepository - Class in fi.moprim.tmd.sdk.data
 
TmdStatus - Interface in fi.moprim.tmd.sdk.model
"0_tmd_not_running": At Tmd init, before the services start "1_idle": TMD is active and monitoring motion "1_recording": TMD is recording "1_running": TMD is running locally "1_location_permission_change_location_available" "1_location_permission_change_location_unavailable" "0_tmd_stopped_insufficient_permissions": TMD has stopped because location permission changed "0_tmd_stopped_manually": TMD has been stopped manually via TMD#stop() "0_tmd_start_failed_cause_insufficient_motion_fitness_services": TMD could not start because of a problem with Motion & Fitness service availability/permissions "0_tmd_start_failed_cause_insufficient_location_services": TMD could not start because of a problem with Location service availability/permissions "0_application_killed": Application was killed "0_application_not_running": Application was not running and the reason for that is unkown "2_unknown_event": Unknown event
TmdStatus.Category - Enum in fi.moprim.tmd.sdk.model
 
TmdUploadMetadata - Class in fi.moprim.tmd.sdk.model
A class that summarizes the results of an upload
TmdUploadMetadata(long, int, long, int, long) - Constructor for class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Default constructor
TmdUploadMetadata() - Constructor for class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Default constructor when nothing was set
TmdUploadMetadata(Parcel) - Constructor for class fi.moprim.tmd.sdk.model.TmdUploadMetadata
Parcel constructor
toString() - Method in class fi.moprim.tmd.sdk.data.Resource
 
toString() - Method in class fi.moprim.tmd.sdk.model.Result
 
toString() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
toString() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
 
toString() - Method in class fi.moprim.tmd.sdk.TmdConfig
 
Trip - Interface in fi.moprim.tmd.sdk.trips.model
This interface to represent Trip.
TripContentProvider - Class in fi.moprim.tmd.sdk.trips
The TmdTripContentProvider should enable access to - Trip data
TripContentProvider() - Constructor for class fi.moprim.tmd.sdk.trips.TripContentProvider
 
TripPlugin - Class in fi.moprim.tmd.sdk.trips.plugin
 
TripPlugin.Builder - Class in fi.moprim.tmd.sdk.trips.plugin
 
TripRepository - Class in fi.moprim.tmd.sdk.trips.data
 
truncateDate(Date, int) - Static method in class fi.moprim.tmd.sdk.utilities.DateUtils
 

U

unmarshall(String) - Static method in interface fi.moprim.tmd.sdk.trips.model.Trip
 
unmarshall(byte[], Parcelable.Creator<T>) - Static method in class fi.moprim.tmd.sdk.utilities.ParcelableUtils
 
unmarshall(byte[]) - Static method in class fi.moprim.tmd.sdk.utilities.ParcelableUtils
 
update(Uri, ContentValues, String, String[]) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
 
update(Uri, ContentValues, String, String[]) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
 
updateActivity(Context, TmdActivity, String, String) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Update the activity with new metadata and a corrected label
uploadData(Context) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
Upload the collected data to the cloud pro-actively

V

valueOf(String) - Static method in enum fi.moprim.tmd.sdk.data.RefreshMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fi.moprim.tmd.sdk.data.Status
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.TmdBackgroundOperation
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.TmdError
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.TmdStartReturnCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.TmdStatus.Category
Returns the enum constant of this type with the specified name.
values() - Static method in enum fi.moprim.tmd.sdk.data.RefreshMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fi.moprim.tmd.sdk.data.Status
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fi.moprim.tmd.sdk.model.TmdBackgroundOperation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fi.moprim.tmd.sdk.model.TmdError
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fi.moprim.tmd.sdk.model.TmdStartReturnCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fi.moprim.tmd.sdk.model.TmdStatus.Category
Returns an array containing the constants of this enum type, in the order they are declared.

W

wasTmdStarted(Context) - Static method in class fi.moprim.tmd.sdk.TMD
 
writeToParcel(Parcel, int) - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
 
writeToParcel(Parcel, int) - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
 
A B C D E F G H I L M N O P Q R S T U V W 
Skip navigation links