FileDocCategorySizeDatePackage
ActivityRecognitionProviderWatcher.javaAPI DocAndroid 5.1 API2970Thu Mar 12 22:22:30 GMT 2015com.android.location.provider

ActivityRecognitionProviderWatcher

public class ActivityRecognitionProviderWatcher extends Object
A watcher class for Activity-Recognition instances.

Fields Summary
private static final String
TAG
private static ActivityRecognitionProviderWatcher
sWatcher
private static final Object
sWatcherLock
private ActivityRecognitionProvider
mActivityRecognitionProvider
private IActivityRecognitionHardwareWatcher.Stub
mWatcherStub
Constructors Summary
private ActivityRecognitionProviderWatcher()


      
Methods Summary
public ActivityRecognitionProvidergetActivityRecognitionProvider()
Gets an object that supports the functionality of {@link ActivityRecognitionProvider}.

return
Non-null value if the functionality is supported by the platform, false otherwise.

        return mActivityRecognitionProvider;
    
public android.os.IBindergetBinder()
Gets the binder needed to interact with proxy provider in the platform.


                     
    
       
        return mWatcherStub;
    
public static com.android.location.provider.ActivityRecognitionProviderWatchergetInstance()

        synchronized (sWatcherLock) {
            if (sWatcher == null) {
                sWatcher = new ActivityRecognitionProviderWatcher();
            }
            return sWatcher;
        }