mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-18 06:28:27 +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();
|
||
|
}
|
||
|
}
|