Here are the examples of the java api @android.support.annotation.RequiresPermission(com.google.android.gms.permission.ACTIVITY_RECOGNITION) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
7 Examples
19
Source : RxActivityRecognitionClient.java
with Apache License 2.0
from niqo01
with Apache License 2.0
from niqo01
@NonNull
@RequiresPermission("com.google.android.gms.permission.ACTIVITY_RECOGNITION")
public Completable removeActivityUpdates(PendingIntent callbackIntent) {
return CompletableTask.create(() -> client.removeActivityUpdates(callbackIntent));
}
19
Source : RxActivityRecognitionClient.java
with Apache License 2.0
from niqo01
with Apache License 2.0
from niqo01
@NonNull
@RequiresPermission("com.google.android.gms.permission.ACTIVITY_RECOGNITION")
public Completable requestActivityUpdates(Long detectionIntervalMillis, PendingIntent callbackIntent) {
return CompletableTask.create(() -> client.requestActivityUpdates(detectionIntervalMillis, callbackIntent));
}
19
Source : ActivityRecognition.java
with Apache License 2.0
from florent37
with Apache License 2.0
from florent37
// Request Updates
@RequiresPermission("com.google.android.gms.permission.ACTIVITY_RECOGNITION")
public Single<Status> requestUpdates(long detectionIntervalMillis, @NonNull PendingIntent pendingIntent) {
return requestUpdatesInternal(detectionIntervalMillis, pendingIntent, null, null);
}
19
Source : ActivityRecognition.java
with Apache License 2.0
from florent37
with Apache License 2.0
from florent37
// Remove Updates
@RequiresPermission("com.google.android.gms.permission.ACTIVITY_RECOGNITION")
public Single<Status> removeUpdates(@NonNull PendingIntent pendingIntent) {
return removeUpdatesInternal(pendingIntent, null, null);
}
19
Source : ActivityRecognition.java
with Apache License 2.0
from florent37
with Apache License 2.0
from florent37
@RequiresPermission("com.google.android.gms.permission.ACTIVITY_RECOGNITION")
public Single<Status> requestUpdates(long detectionIntervalMillis, @NonNull PendingIntent pendingIntent, long timeoutTime, @NonNull TimeUnit timeoutUnit) {
return requestUpdatesInternal(detectionIntervalMillis, pendingIntent, timeoutTime, timeoutUnit);
}
19
Source : ActivityRecognition.java
with Apache License 2.0
from florent37
with Apache License 2.0
from florent37
@RequiresPermission("com.google.android.gms.permission.ACTIVITY_RECOGNITION")
public Single<Status> removeUpdates(@NonNull PendingIntent pendingIntent, long timeoutTime, @NonNull TimeUnit timeoutUnit) {
return removeUpdatesInternal(pendingIntent, timeoutTime, timeoutUnit);
}
19
Source : StorableActivityFence.java
with MIT License
from djavan-bertrand
with MIT License
from djavan-bertrand
@RequiresPermission("com.google.android.gms.permission.ACTIVITY_RECOGNITION")
@Override
AwarenessFence getAwarenessFence(Context ctx) {
switch(mTransitionType) {
case DURING_TYPE:
return DetectedActivityFence.during(mActivityTypes);
case START_TYPE:
return DetectedActivityFence.starting(mActivityTypes);
case STOP_TYPE:
return DetectedActivityFence.stopping(mActivityTypes);
}
return null;
}