[go: nahoru, domu]

blob: b11eac45c6c04f8841a302170525e409a695b4ae [file] [log] [blame]
// Signature format: 3.0
package androidx.work {
public final class ArrayCreatingInputMerger extends androidx.work.InputMerger {
ctor public ArrayCreatingInputMerger();
method public androidx.work.Data merge(java.util.List<androidx.work.Data!>);
}
public enum BackoffPolicy {
enum_constant public static final androidx.work.BackoffPolicy EXPONENTIAL;
enum_constant public static final androidx.work.BackoffPolicy LINEAR;
}
public final class Configuration {
method public java.util.concurrent.Executor getExecutor();
method public androidx.work.InputMergerFactory getInputMergerFactory();
method public int getMaxJobSchedulerId();
method public int getMinJobSchedulerId();
method public java.util.concurrent.Executor getTaskExecutor();
method public androidx.work.WorkerFactory getWorkerFactory();
field public static final int MIN_SCHEDULER_LIMIT = 20; // 0x14
}
public static final class Configuration.Builder {
ctor public Configuration.Builder();
method public androidx.work.Configuration build();
method public androidx.work.Configuration.Builder setExecutor(java.util.concurrent.Executor);
method public androidx.work.Configuration.Builder setInputMergerFactory(androidx.work.InputMergerFactory);
method public androidx.work.Configuration.Builder setJobSchedulerJobIdRange(int, int);
method public androidx.work.Configuration.Builder setMaxSchedulerLimit(int);
method public androidx.work.Configuration.Builder setMinimumLoggingLevel(int);
method public androidx.work.Configuration.Builder setTaskExecutor(java.util.concurrent.Executor);
method public androidx.work.Configuration.Builder setWorkerFactory(androidx.work.WorkerFactory);
}
public static interface Configuration.Provider {
method public androidx.work.Configuration getWorkManagerConfiguration();
}
public final class Constraints {
ctor public Constraints(androidx.work.Constraints);
method public androidx.work.NetworkType getRequiredNetworkType();
method public boolean requiresBatteryNotLow();
method public boolean requiresCharging();
method @RequiresApi(23) public boolean requiresDeviceIdle();
method public boolean requiresStorageNotLow();
field public static final androidx.work.Constraints! NONE;
}
public static final class Constraints.Builder {
ctor public Constraints.Builder();
method @RequiresApi(24) public androidx.work.Constraints.Builder addContentUriTrigger(android.net.Uri, boolean);
method public androidx.work.Constraints build();
method public androidx.work.Constraints.Builder setRequiredNetworkType(androidx.work.NetworkType);
method public androidx.work.Constraints.Builder setRequiresBatteryNotLow(boolean);
method public androidx.work.Constraints.Builder setRequiresCharging(boolean);
method @RequiresApi(23) public androidx.work.Constraints.Builder setRequiresDeviceIdle(boolean);
method public androidx.work.Constraints.Builder setRequiresStorageNotLow(boolean);
method @RequiresApi(24) public androidx.work.Constraints.Builder setTriggerContentMaxDelay(long, java.util.concurrent.TimeUnit);
method @RequiresApi(26) public androidx.work.Constraints.Builder setTriggerContentMaxDelay(java.time.Duration!);
method @RequiresApi(24) public androidx.work.Constraints.Builder setTriggerContentUpdateDelay(long, java.util.concurrent.TimeUnit);
method @RequiresApi(26) public androidx.work.Constraints.Builder setTriggerContentUpdateDelay(java.time.Duration!);
}
public final class Data {
ctor public Data(androidx.work.Data);
method @androidx.room.TypeConverter public static androidx.work.Data fromByteArray(byte[]);
method public boolean getBoolean(String, boolean);
method public boolean[]? getBooleanArray(String);
method public byte getByte(String, byte);
method public byte[]? getByteArray(String);
method public double getDouble(String, double);
method public double[]? getDoubleArray(String);
method public float getFloat(String, float);
method public float[]? getFloatArray(String);
method public int getInt(String, int);
method public int[]? getIntArray(String);
method public java.util.Map<java.lang.String!,java.lang.Object!> getKeyValueMap();
method public long getLong(String, long);
method public long[]? getLongArray(String);
method public String? getString(String);
method public String![]? getStringArray(String);
method public <T> boolean hasKeyWithValueOfType(String, Class<T!>);
method public byte[] toByteArray();
field public static final androidx.work.Data! EMPTY;
field public static final int MAX_DATA_BYTES = 10240; // 0x2800
}
public static final class Data.Builder {
ctor public Data.Builder();
method public androidx.work.Data build();
method public androidx.work.Data.Builder putAll(androidx.work.Data);
method public androidx.work.Data.Builder putAll(java.util.Map<java.lang.String!,java.lang.Object!>);
method public androidx.work.Data.Builder putBoolean(String, boolean);
method public androidx.work.Data.Builder putBooleanArray(String, boolean[]);
method public androidx.work.Data.Builder putByte(String, byte);
method public androidx.work.Data.Builder putByteArray(String, byte[]);
method public androidx.work.Data.Builder putDouble(String, double);
method public androidx.work.Data.Builder putDoubleArray(String, double[]);
method public androidx.work.Data.Builder putFloat(String, float);
method public androidx.work.Data.Builder putFloatArray(String, float[]);
method public androidx.work.Data.Builder putInt(String, int);
method public androidx.work.Data.Builder putIntArray(String, int[]);
method public androidx.work.Data.Builder putLong(String, long);
method public androidx.work.Data.Builder putLongArray(String, long[]);
method public androidx.work.Data.Builder putString(String, String?);
method public androidx.work.Data.Builder putStringArray(String, String![]);
}
public class DelegatingWorkerFactory extends androidx.work.WorkerFactory {
ctor public DelegatingWorkerFactory();
method public final void addFactory(androidx.work.WorkerFactory);
method public final androidx.work.ListenableWorker? createWorker(android.content.Context, String, androidx.work.WorkerParameters);
}
public enum ExistingPeriodicWorkPolicy {
enum_constant public static final androidx.work.ExistingPeriodicWorkPolicy KEEP;
enum_constant public static final androidx.work.ExistingPeriodicWorkPolicy REPLACE;
}
public enum ExistingWorkPolicy {
enum_constant public static final androidx.work.ExistingWorkPolicy APPEND;
enum_constant public static final androidx.work.ExistingWorkPolicy KEEP;
enum_constant public static final androidx.work.ExistingWorkPolicy REPLACE;
}
public final class ForegroundInfo {
ctor public ForegroundInfo(int, android.app.Notification);
ctor public ForegroundInfo(int, android.app.Notification, int);
method public int getForegroundServiceType();
method public android.app.Notification getNotification();
method public int getNotificationId();
}
public interface ForegroundUpdater {
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> setForegroundAsync(android.content.Context, java.util.UUID, androidx.work.ForegroundInfo);
}
public abstract class InputMerger {
ctor public InputMerger();
method public abstract androidx.work.Data merge(java.util.List<androidx.work.Data!>);
}
public abstract class InputMergerFactory {
ctor public InputMergerFactory();
method public abstract androidx.work.InputMerger? createInputMerger(String);
}
public abstract class ListenableWorker {
ctor @Keep public ListenableWorker(android.content.Context, androidx.work.WorkerParameters);
method public final android.content.Context getApplicationContext();
method public final java.util.UUID getId();
method public final androidx.work.Data getInputData();
method @RequiresApi(28) public final android.net.Network? getNetwork();
method @IntRange(from=0) public final int getRunAttemptCount();
method public final java.util.Set<java.lang.String!> getTags();
method @RequiresApi(24) public final java.util.List<java.lang.String!> getTriggeredContentAuthorities();
method @RequiresApi(24) public final java.util.List<android.net.Uri!> getTriggeredContentUris();
method public final boolean isStopped();
method public void onStopped();
method public final com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> setForegroundAsync(androidx.work.ForegroundInfo);
method public final com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> setProgressAsync(androidx.work.Data);
method @MainThread public abstract com.google.common.util.concurrent.ListenableFuture<androidx.work.ListenableWorker.Result!> startWork();
}
public abstract static class ListenableWorker.Result {
method public static androidx.work.ListenableWorker.Result failure();
method public static androidx.work.ListenableWorker.Result failure(androidx.work.Data);
method public static androidx.work.ListenableWorker.Result retry();
method public static androidx.work.ListenableWorker.Result success();
method public static androidx.work.ListenableWorker.Result success(androidx.work.Data);
}
public enum NetworkType {
enum_constant public static final androidx.work.NetworkType CONNECTED;
enum_constant public static final androidx.work.NetworkType METERED;
enum_constant public static final androidx.work.NetworkType NOT_REQUIRED;
enum_constant public static final androidx.work.NetworkType NOT_ROAMING;
enum_constant public static final androidx.work.NetworkType UNMETERED;
}
public final class OneTimeWorkRequest extends androidx.work.WorkRequest {
method public static androidx.work.OneTimeWorkRequest from(Class<? extends androidx.work.ListenableWorker>);
method public static java.util.List<androidx.work.OneTimeWorkRequest!> from(java.util.List<java.lang.Class<? extends androidx.work.ListenableWorker>!>);
}
public static final class OneTimeWorkRequest.Builder extends androidx.work.WorkRequest.Builder<androidx.work.OneTimeWorkRequest.Builder,androidx.work.OneTimeWorkRequest> {
ctor public OneTimeWorkRequest.Builder(Class<? extends androidx.work.ListenableWorker>);
method public androidx.work.OneTimeWorkRequest.Builder setInputMerger(Class<? extends androidx.work.InputMerger>);
}
public interface Operation {
method public com.google.common.util.concurrent.ListenableFuture<androidx.work.Operation.State.SUCCESS!> getResult();
method public androidx.lifecycle.LiveData<androidx.work.Operation.State!> getState();
}
public abstract static class Operation.State {
}
public static final class Operation.State.FAILURE extends androidx.work.Operation.State {
ctor public Operation.State.FAILURE(Throwable);
method public Throwable getThrowable();
}
public static final class Operation.State.IN_PROGRESS extends androidx.work.Operation.State {
}
public static final class Operation.State.SUCCESS extends androidx.work.Operation.State {
}
public final class OverwritingInputMerger extends androidx.work.InputMerger {
ctor public OverwritingInputMerger();
method public androidx.work.Data merge(java.util.List<androidx.work.Data!>);
}
public final class PeriodicWorkRequest extends androidx.work.WorkRequest {
field public static final long MIN_PERIODIC_FLEX_MILLIS = 300000L; // 0x493e0L
field public static final long MIN_PERIODIC_INTERVAL_MILLIS = 900000L; // 0xdbba0L
}
public static final class PeriodicWorkRequest.Builder extends androidx.work.WorkRequest.Builder<androidx.work.PeriodicWorkRequest.Builder,androidx.work.PeriodicWorkRequest> {
ctor public PeriodicWorkRequest.Builder(Class<? extends androidx.work.ListenableWorker>, long, java.util.concurrent.TimeUnit);
ctor @RequiresApi(26) public PeriodicWorkRequest.Builder(Class<? extends androidx.work.ListenableWorker>, java.time.Duration);
ctor public PeriodicWorkRequest.Builder(Class<? extends androidx.work.ListenableWorker>, long, java.util.concurrent.TimeUnit, long, java.util.concurrent.TimeUnit);
ctor @RequiresApi(26) public PeriodicWorkRequest.Builder(Class<? extends androidx.work.ListenableWorker>, java.time.Duration, java.time.Duration);
}
public interface ProgressUpdater {
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> updateProgress(android.content.Context, java.util.UUID, androidx.work.Data);
}
public abstract class WorkContinuation {
ctor public WorkContinuation();
method public static androidx.work.WorkContinuation combine(java.util.List<androidx.work.WorkContinuation!>);
method public abstract androidx.work.Operation enqueue();
method public abstract com.google.common.util.concurrent.ListenableFuture<java.util.List<androidx.work.WorkInfo!>!> getWorkInfos();
method public abstract androidx.lifecycle.LiveData<java.util.List<androidx.work.WorkInfo!>!> getWorkInfosLiveData();
method public final androidx.work.WorkContinuation then(androidx.work.OneTimeWorkRequest);
method public abstract androidx.work.WorkContinuation then(java.util.List<androidx.work.OneTimeWorkRequest!>);
}
public final class WorkInfo {
method public java.util.UUID getId();
method public androidx.work.Data getOutputData();
method public androidx.work.Data getProgress();
method @IntRange(from=0) public int getRunAttemptCount();
method public androidx.work.WorkInfo.State getState();
method public java.util.Set<java.lang.String!> getTags();
}
public enum WorkInfo.State {
method public boolean isFinished();
enum_constant public static final androidx.work.WorkInfo.State BLOCKED;
enum_constant public static final androidx.work.WorkInfo.State CANCELLED;
enum_constant public static final androidx.work.WorkInfo.State ENQUEUED;
enum_constant public static final androidx.work.WorkInfo.State FAILED;
enum_constant public static final androidx.work.WorkInfo.State RUNNING;
enum_constant public static final androidx.work.WorkInfo.State SUCCEEDED;
}
public abstract class WorkManager {
method public final androidx.work.WorkContinuation beginUniqueWork(String, androidx.work.ExistingWorkPolicy, androidx.work.OneTimeWorkRequest);
method public abstract androidx.work.WorkContinuation beginUniqueWork(String, androidx.work.ExistingWorkPolicy, java.util.List<androidx.work.OneTimeWorkRequest!>);
method public final androidx.work.WorkContinuation beginWith(androidx.work.OneTimeWorkRequest);
method public abstract androidx.work.WorkContinuation beginWith(java.util.List<androidx.work.OneTimeWorkRequest!>);
method public abstract androidx.work.Operation cancelAllWork();
method public abstract androidx.work.Operation cancelAllWorkByTag(String);
method public abstract androidx.work.Operation cancelUniqueWork(String);
method public abstract androidx.work.Operation cancelWorkById(java.util.UUID);
method public abstract android.app.PendingIntent createCancelPendingIntent(java.util.UUID);
method public final androidx.work.Operation enqueue(androidx.work.WorkRequest);
method public abstract androidx.work.Operation enqueue(java.util.List<? extends androidx.work.WorkRequest>);
method public abstract androidx.work.Operation enqueueUniquePeriodicWork(String, androidx.work.ExistingPeriodicWorkPolicy, androidx.work.PeriodicWorkRequest);
method public androidx.work.Operation enqueueUniqueWork(String, androidx.work.ExistingWorkPolicy, androidx.work.OneTimeWorkRequest);
method public abstract androidx.work.Operation enqueueUniqueWork(String, androidx.work.ExistingWorkPolicy, java.util.List<androidx.work.OneTimeWorkRequest!>);
method @Deprecated public static androidx.work.WorkManager getInstance();
method public static androidx.work.WorkManager getInstance(android.content.Context);
method public abstract com.google.common.util.concurrent.ListenableFuture<java.lang.Long!> getLastCancelAllTimeMillis();
method public abstract androidx.lifecycle.LiveData<java.lang.Long!> getLastCancelAllTimeMillisLiveData();
method public abstract com.google.common.util.concurrent.ListenableFuture<androidx.work.WorkInfo!> getWorkInfoById(java.util.UUID);
method public abstract androidx.lifecycle.LiveData<androidx.work.WorkInfo!> getWorkInfoByIdLiveData(java.util.UUID);
method public abstract com.google.common.util.concurrent.ListenableFuture<java.util.List<androidx.work.WorkInfo!>!> getWorkInfosByTag(String);
method public abstract androidx.lifecycle.LiveData<java.util.List<androidx.work.WorkInfo!>!> getWorkInfosByTagLiveData(String);
method public abstract com.google.common.util.concurrent.ListenableFuture<java.util.List<androidx.work.WorkInfo!>!> getWorkInfosForUniqueWork(String);
method public abstract androidx.lifecycle.LiveData<java.util.List<androidx.work.WorkInfo!>!> getWorkInfosForUniqueWorkLiveData(String);
method public static void initialize(android.content.Context, androidx.work.Configuration);
method public abstract androidx.work.Operation pruneWork();
}
public abstract class WorkRequest {
method public java.util.UUID getId();
field public static final long DEFAULT_BACKOFF_DELAY_MILLIS = 30000L; // 0x7530L
field public static final long MAX_BACKOFF_MILLIS = 18000000L; // 0x112a880L
field public static final long MIN_BACKOFF_MILLIS = 10000L; // 0x2710L
}
public abstract static class WorkRequest.Builder<B extends androidx.work.WorkRequest.Builder<?, ?>, W extends androidx.work.WorkRequest> {
method public final B addTag(String);
method public final W build();
method public final B keepResultsForAtLeast(long, java.util.concurrent.TimeUnit);
method @RequiresApi(26) public final B keepResultsForAtLeast(java.time.Duration);
method public final B setBackoffCriteria(androidx.work.BackoffPolicy, long, java.util.concurrent.TimeUnit);
method @RequiresApi(26) public final B setBackoffCriteria(androidx.work.BackoffPolicy, java.time.Duration);
method public final B setConstraints(androidx.work.Constraints);
method public B setInitialDelay(long, java.util.concurrent.TimeUnit);
method @RequiresApi(26) public B setInitialDelay(java.time.Duration);
method public final B setInputData(androidx.work.Data);
}
public abstract class Worker extends androidx.work.ListenableWorker {
ctor @Keep public Worker(android.content.Context, androidx.work.WorkerParameters);
method @WorkerThread public abstract androidx.work.ListenableWorker.Result doWork();
method public final com.google.common.util.concurrent.ListenableFuture<androidx.work.ListenableWorker.Result!> startWork();
}
public abstract class WorkerFactory {
ctor public WorkerFactory();
method public abstract androidx.work.ListenableWorker? createWorker(android.content.Context, String, androidx.work.WorkerParameters);
}
public final class WorkerParameters {
method public java.util.UUID getId();
method public androidx.work.Data getInputData();
method @RequiresApi(28) public android.net.Network? getNetwork();
method @IntRange(from=0) public int getRunAttemptCount();
method public java.util.Set<java.lang.String!> getTags();
method @RequiresApi(24) public java.util.List<java.lang.String!> getTriggeredContentAuthorities();
method @RequiresApi(24) public java.util.List<android.net.Uri!> getTriggeredContentUris();
}
}