session-android/src/org/thoughtcrime/securesms/jobmanager/Constraint.java
2019-04-15 10:56:26 -04:00

20 lines
408 B
Java

package org.thoughtcrime.securesms.jobmanager;
import android.app.job.JobInfo;
import android.support.annotation.NonNull;
import android.support.annotation.RequiresApi;
public interface Constraint {
boolean isMet();
@NonNull String getFactoryKey();
@RequiresApi(26)
void applyToJobInfo(@NonNull JobInfo.Builder jobInfoBuilder);
interface Factory<T extends Constraint> {
T create();
}
}