FileDocCategorySizeDatePackage
IActivityRecognitionHardware.javaAPI DocAndroid 5.1 API10441Sat Mar 14 05:48:02 GMT 2015android.hardware.location

IActivityRecognitionHardware

public interface IActivityRecognitionHardware implements android.os.IInterface
Activity Recognition Hardware provider interface. This interface can be used to implement hardware based activity recognition.
hide

Fields Summary
Constructors Summary
Methods Summary
public booleandisableActivityEvent(java.lang.String activityType, int eventType)
Disables tracking of a given activity/eventy type.

public booleanenableActivityEvent(java.lang.String activityType, int eventType, long reportLatencyNs)
Enables tracking of a given activity/event type, if the activity is supported.

public booleanflush()
Requests hardware for all the activity events detected up to the given point in time.

public java.lang.String[]getSupportedActivities()
Gets an array of supported activities by hardware.

public booleanisActivitySupported(java.lang.String activityType)
Returns true if the given activity is supported, false otherwise.

public booleanregisterSink(android.hardware.location.IActivityRecognitionHardwareSink sink)
Registers a sink with Hardware Activity-Recognition.

public booleanunregisterSink(android.hardware.location.IActivityRecognitionHardwareSink sink)
Unregisters a sink with Hardware Activity-Recognition.