mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
20 lines
408 B
Java
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();
|
|
}
|
|
}
|