| // Signature format: 4.0 |
| package androidx.room { |
| |
| public class DatabaseConfiguration { |
| method public boolean isMigrationRequired(int fromVersion, int toVersion); |
| method @Deprecated public boolean isMigrationRequiredFrom(int version); |
| property public final boolean allowDestructiveMigrationForAllTables; |
| property public final boolean allowDestructiveMigrationOnDowngrade; |
| property public final boolean allowMainThreadQueries; |
| property public final java.util.List<? extends androidx.room.migration.AutoMigrationSpec> autoMigrationSpecs; |
| property public final java.util.List<? extends androidx.room.RoomDatabase.Callback>? callbacks; |
| property public final android.content.Context context; |
| property public final String? copyFromAssetPath; |
| property public final java.io.File? copyFromFile; |
| property public final java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream; |
| property public final androidx.room.RoomDatabase.JournalMode journalMode; |
| property public final androidx.room.RoomDatabase.MigrationContainer migrationContainer; |
| property public final boolean multiInstanceInvalidation; |
| property public final android.content.Intent? multiInstanceInvalidationServiceIntent; |
| property public final String? name; |
| property public final androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback; |
| property public final kotlin.coroutines.CoroutineContext? queryCoroutineContext; |
| property public final java.util.concurrent.Executor queryExecutor; |
| property public final boolean requireMigration; |
| property public final androidx.sqlite.SQLiteDriver? sqliteDriver; |
| property public final androidx.sqlite.db.SupportSQLiteOpenHelper.Factory? sqliteOpenHelperFactory; |
| property public final java.util.concurrent.Executor transactionExecutor; |
| property public final java.util.List<?> typeConverters; |
| field public final boolean allowDestructiveMigrationForAllTables; |
| field public final boolean allowDestructiveMigrationOnDowngrade; |
| field public final boolean allowMainThreadQueries; |
| field public final java.util.List<androidx.room.migration.AutoMigrationSpec> autoMigrationSpecs; |
| field public final java.util.List<androidx.room.RoomDatabase.Callback>? callbacks; |
| field public final android.content.Context context; |
| field public final String? copyFromAssetPath; |
| field public final java.io.File? copyFromFile; |
| field public final java.util.concurrent.Callable<java.io.InputStream>? copyFromInputStream; |
| field public final androidx.room.RoomDatabase.JournalMode journalMode; |
| field public final androidx.room.RoomDatabase.MigrationContainer migrationContainer; |
| field public final boolean multiInstanceInvalidation; |
| field public final String? name; |
| field public final androidx.room.RoomDatabase.PrepackagedDatabaseCallback? prepackagedDatabaseCallback; |
| field public final kotlin.coroutines.CoroutineContext? queryCoroutineContext; |
| field public final java.util.concurrent.Executor queryExecutor; |
| field public final boolean requireMigration; |
| field public final androidx.sqlite.SQLiteDriver? sqliteDriver; |
| field public final androidx.sqlite.db.SupportSQLiteOpenHelper.Factory? sqliteOpenHelperFactory; |
| field public final java.util.concurrent.Executor transactionExecutor; |
| field public final java.util.List<java.lang.Object> typeConverters; |
| } |
| |
| @SuppressCompatibility @kotlin.RequiresOptIn @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION}) public @interface ExperimentalRoomApi { |
| } |
| |
| public class InvalidationTracker { |
| method @WorkerThread public void addObserver(androidx.room.InvalidationTracker.Observer observer); |
| method public final kotlinx.coroutines.flow.Flow<java.util.Set<java.lang.String>> createFlow(String[] tables, optional boolean emitInitialState); |
| method public final void refreshAsync(); |
| method public void refreshVersionsAsync(); |
| method @WorkerThread public void removeObserver(androidx.room.InvalidationTracker.Observer observer); |
| field public static final androidx.room.InvalidationTracker.Companion Companion; |
| } |
| |
| public static final class InvalidationTracker.Companion { |
| } |
| |
| public abstract static class InvalidationTracker.Observer { |
| ctor protected InvalidationTracker.Observer(String firstTable, java.lang.String... rest); |
| ctor public InvalidationTracker.Observer(String[] tables); |
| method public abstract void onInvalidated(java.util.Set<java.lang.String> tables); |
| } |
| |
| @SuppressCompatibility @androidx.room.ExperimentalRoomApi public final class MultiInstanceInvalidationService extends android.app.Service { |
| ctor public MultiInstanceInvalidationService(); |
| method public android.os.IBinder onBind(android.content.Intent intent); |
| } |
| |
| public interface PooledConnection { |
| method public suspend <R> Object? usePrepared(String sql, kotlin.jvm.functions.Function1<? super androidx.sqlite.SQLiteStatement,? extends R> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| public final class Room { |
| method public static <T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> databaseBuilder(android.content.Context context, Class<T> klass, String? name); |
| method public inline <reified T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> databaseBuilder(android.content.Context context, String name, optional kotlin.jvm.functions.Function0<? extends T> factory); |
| method public static <T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> inMemoryDatabaseBuilder(android.content.Context context, Class<T> klass); |
| method public inline <reified T extends androidx.room.RoomDatabase> androidx.room.RoomDatabase.Builder<T> inMemoryDatabaseBuilder(android.content.Context context, optional kotlin.jvm.functions.Function0<? extends T> factory); |
| property public static final String MASTER_TABLE_NAME; |
| field public static final androidx.room.Room INSTANCE; |
| field public static final String MASTER_TABLE_NAME = "room_master_table"; |
| } |
| |
| public abstract class RoomDatabase { |
| ctor public RoomDatabase(); |
| method @Deprecated public void beginTransaction(); |
| method @WorkerThread public abstract void clearAllTables(); |
| method public void close(); |
| method public androidx.sqlite.db.SupportSQLiteStatement compileStatement(String sql); |
| method protected abstract androidx.room.InvalidationTracker createInvalidationTracker(); |
| method @Deprecated protected androidx.sqlite.db.SupportSQLiteOpenHelper createOpenHelper(androidx.room.DatabaseConfiguration config); |
| method @Deprecated public void endTransaction(); |
| method public androidx.room.InvalidationTracker getInvalidationTracker(); |
| method @Deprecated @kotlin.jvm.Volatile protected androidx.sqlite.db.SupportSQLiteDatabase? getMDatabase(); |
| method public androidx.sqlite.db.SupportSQLiteOpenHelper getOpenHelper(); |
| method public java.util.concurrent.Executor getQueryExecutor(); |
| method public java.util.concurrent.Executor getTransactionExecutor(); |
| method @Deprecated public <T> T? getTypeConverter(Class<T> klass); |
| method public boolean inTransaction(); |
| method @CallSuper public void init(androidx.room.DatabaseConfiguration configuration); |
| method @Deprecated protected void internalInitInvalidationTracker(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public boolean isOpen(); |
| method public android.database.Cursor query(androidx.sqlite.db.SupportSQLiteQuery query); |
| method public android.database.Cursor query(androidx.sqlite.db.SupportSQLiteQuery query, optional android.os.CancellationSignal? signal); |
| method public android.database.Cursor query(String query, Object?[]? args); |
| method public void runInTransaction(Runnable body); |
| method public <V> V runInTransaction(java.util.concurrent.Callable<V> body); |
| method @Deprecated @kotlin.jvm.Volatile protected void setMDatabase(androidx.sqlite.db.SupportSQLiteDatabase?); |
| method @Deprecated public void setTransactionSuccessful(); |
| property public androidx.room.InvalidationTracker invalidationTracker; |
| property public boolean isOpen; |
| property @Deprecated @kotlin.jvm.Volatile protected androidx.sqlite.db.SupportSQLiteDatabase? mDatabase; |
| property public androidx.sqlite.db.SupportSQLiteOpenHelper openHelper; |
| property public java.util.concurrent.Executor queryExecutor; |
| property public java.util.concurrent.Executor transactionExecutor; |
| field public static final androidx.room.RoomDatabase.Companion Companion; |
| field @Deprecated @kotlin.jvm.Volatile protected volatile androidx.sqlite.db.SupportSQLiteDatabase? mDatabase; |
| } |
| |
| public static class RoomDatabase.Builder<T extends androidx.room.RoomDatabase> { |
| method public androidx.room.RoomDatabase.Builder<T> addAutoMigrationSpec(androidx.room.migration.AutoMigrationSpec autoMigrationSpec); |
| method public androidx.room.RoomDatabase.Builder<T> addCallback(androidx.room.RoomDatabase.Callback callback); |
| method public androidx.room.RoomDatabase.Builder<T> addMigrations(androidx.room.migration.Migration... migrations); |
| method public androidx.room.RoomDatabase.Builder<T> addTypeConverter(Object typeConverter); |
| method public androidx.room.RoomDatabase.Builder<T> allowMainThreadQueries(); |
| method public T build(); |
| method public androidx.room.RoomDatabase.Builder<T> createFromAsset(String databaseFilePath); |
| method public androidx.room.RoomDatabase.Builder<T> createFromAsset(String databaseFilePath, androidx.room.RoomDatabase.PrepackagedDatabaseCallback callback); |
| method public androidx.room.RoomDatabase.Builder<T> createFromFile(java.io.File databaseFile); |
| method public androidx.room.RoomDatabase.Builder<T> createFromFile(java.io.File databaseFile, androidx.room.RoomDatabase.PrepackagedDatabaseCallback callback); |
| method public androidx.room.RoomDatabase.Builder<T> createFromInputStream(java.util.concurrent.Callable<java.io.InputStream> inputStreamCallable); |
| method public androidx.room.RoomDatabase.Builder<T> createFromInputStream(java.util.concurrent.Callable<java.io.InputStream> inputStreamCallable, androidx.room.RoomDatabase.PrepackagedDatabaseCallback callback); |
| method public androidx.room.RoomDatabase.Builder<T> enableMultiInstanceInvalidation(); |
| method @Deprecated public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigration(); |
| method public final androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigration(boolean dropAllTables); |
| method public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationFrom(boolean dropAllTables, int... startVersions); |
| method @Deprecated public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationFrom(int... startVersions); |
| method @Deprecated public androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationOnDowngrade(); |
| method public final androidx.room.RoomDatabase.Builder<T> fallbackToDestructiveMigrationOnDowngrade(boolean dropAllTables); |
| method public androidx.room.RoomDatabase.Builder<T> openHelperFactory(androidx.sqlite.db.SupportSQLiteOpenHelper.Factory? factory); |
| method @SuppressCompatibility @androidx.room.ExperimentalRoomApi public androidx.room.RoomDatabase.Builder<T> setAutoCloseTimeout(@IntRange(from=0L) long autoCloseTimeout, java.util.concurrent.TimeUnit autoCloseTimeUnit); |
| method public final androidx.room.RoomDatabase.Builder<T> setDriver(androidx.sqlite.SQLiteDriver driver); |
| method @SuppressCompatibility @androidx.room.ExperimentalRoomApi public final androidx.room.RoomDatabase.Builder<T> setInMemoryTrackingMode(boolean inMemory); |
| method public androidx.room.RoomDatabase.Builder<T> setJournalMode(androidx.room.RoomDatabase.JournalMode journalMode); |
| method @SuppressCompatibility @androidx.room.ExperimentalRoomApi public androidx.room.RoomDatabase.Builder<T> setMultiInstanceInvalidationServiceIntent(android.content.Intent invalidationServiceIntent); |
| method public androidx.room.RoomDatabase.Builder<T> setQueryCallback(androidx.room.RoomDatabase.QueryCallback queryCallback, java.util.concurrent.Executor executor); |
| method public final androidx.room.RoomDatabase.Builder<T> setQueryCallback(kotlin.coroutines.CoroutineContext context, androidx.room.RoomDatabase.QueryCallback queryCallback); |
| method public final androidx.room.RoomDatabase.Builder<T> setQueryCoroutineContext(kotlin.coroutines.CoroutineContext context); |
| method public androidx.room.RoomDatabase.Builder<T> setQueryExecutor(java.util.concurrent.Executor executor); |
| method public androidx.room.RoomDatabase.Builder<T> setTransactionExecutor(java.util.concurrent.Executor executor); |
| } |
| |
| public abstract static class RoomDatabase.Callback { |
| ctor public RoomDatabase.Callback(); |
| method public void onCreate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public void onCreate(androidx.sqlite.SQLiteConnection connection); |
| method public void onDestructiveMigration(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public void onDestructiveMigration(androidx.sqlite.SQLiteConnection connection); |
| method public void onOpen(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public void onOpen(androidx.sqlite.SQLiteConnection connection); |
| } |
| |
| public static final class RoomDatabase.Companion { |
| } |
| |
| public enum RoomDatabase.JournalMode { |
| enum_constant public static final androidx.room.RoomDatabase.JournalMode AUTOMATIC; |
| enum_constant public static final androidx.room.RoomDatabase.JournalMode TRUNCATE; |
| enum_constant public static final androidx.room.RoomDatabase.JournalMode WRITE_AHEAD_LOGGING; |
| } |
| |
| public static class RoomDatabase.MigrationContainer { |
| ctor public RoomDatabase.MigrationContainer(); |
| method public void addMigrations(androidx.room.migration.Migration... migrations); |
| method public void addMigrations(java.util.List<? extends androidx.room.migration.Migration> migrations); |
| method public final boolean contains(int startVersion, int endVersion); |
| method public java.util.List<androidx.room.migration.Migration>? findMigrationPath(int start, int end); |
| method public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,androidx.room.migration.Migration>> getMigrations(); |
| } |
| |
| public abstract static class RoomDatabase.PrepackagedDatabaseCallback { |
| ctor public RoomDatabase.PrepackagedDatabaseCallback(); |
| method public void onOpenPrepackagedDatabase(androidx.sqlite.db.SupportSQLiteDatabase db); |
| } |
| |
| public static fun interface RoomDatabase.QueryCallback { |
| method public void onQuery(String sqlQuery, java.util.List<? extends java.lang.Object?> bindArgs); |
| } |
| |
| public interface RoomDatabaseConstructor<T extends androidx.room.RoomDatabase> { |
| method public T initialize(); |
| } |
| |
| public final class RoomDatabaseKt { |
| method @Deprecated public static kotlinx.coroutines.flow.Flow<java.util.Set<java.lang.String>> invalidationTrackerFlow(androidx.room.RoomDatabase, String[] tables, optional boolean emitInitialState); |
| method public static suspend <R> Object? useReaderConnection(androidx.room.RoomDatabase, kotlin.jvm.functions.Function2<? super androidx.room.Transactor,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| method public static suspend <R> Object? useWriterConnection(androidx.room.RoomDatabase, kotlin.jvm.functions.Function2<? super androidx.room.Transactor,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| method public static suspend <R> Object? withTransaction(androidx.room.RoomDatabase, kotlin.jvm.functions.Function1<? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| public interface RoomOpenDelegateMarker { |
| } |
| |
| public final class RoomRawQuery { |
| ctor public RoomRawQuery(String sql); |
| ctor public RoomRawQuery(String sql, optional kotlin.jvm.functions.Function1<? super androidx.sqlite.SQLiteStatement,kotlin.Unit> onBindStatement); |
| method public kotlin.jvm.functions.Function1<androidx.sqlite.SQLiteStatement,kotlin.Unit> getBindingFunction(); |
| method public String getSql(); |
| property public final String sql; |
| } |
| |
| public interface TransactionScope<T> extends androidx.room.PooledConnection { |
| method public suspend Object? rollback(T result, kotlin.coroutines.Continuation<? extends java.lang.Object?>); |
| method public suspend <R> Object? withNestedTransaction(kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| public interface Transactor extends androidx.room.PooledConnection { |
| method public suspend Object? inTransaction(kotlin.coroutines.Continuation<? super java.lang.Boolean>); |
| method public suspend <R> Object? withTransaction(androidx.room.Transactor.SQLiteTransactionType type, kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| public enum Transactor.SQLiteTransactionType { |
| enum_constant public static final androidx.room.Transactor.SQLiteTransactionType DEFERRED; |
| enum_constant public static final androidx.room.Transactor.SQLiteTransactionType EXCLUSIVE; |
| enum_constant public static final androidx.room.Transactor.SQLiteTransactionType IMMEDIATE; |
| } |
| |
| public final class TransactorKt { |
| method public static suspend <R> Object? deferredTransaction(androidx.room.Transactor, kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| method public static suspend <R> Object? exclusiveTransaction(androidx.room.Transactor, kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| method public static suspend Object? execSQL(androidx.room.PooledConnection, String sql, kotlin.coroutines.Continuation<? super kotlin.Unit>); |
| method public static suspend <R> Object? immediateTransaction(androidx.room.Transactor, kotlin.jvm.functions.Function2<? super androidx.room.TransactionScope<R>,? super kotlin.coroutines.Continuation<? super R>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super R>); |
| } |
| |
| } |
| |
| package androidx.room.migration { |
| |
| public interface AutoMigrationSpec { |
| method public default void onPostMigrate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public default void onPostMigrate(androidx.sqlite.SQLiteConnection connection); |
| } |
| |
| public abstract class Migration { |
| ctor public Migration(int startVersion, int endVersion); |
| method public void migrate(androidx.sqlite.db.SupportSQLiteDatabase db); |
| method public void migrate(androidx.sqlite.SQLiteConnection connection); |
| property public final int endVersion; |
| property public final int startVersion; |
| field public final int endVersion; |
| field public final int startVersion; |
| } |
| |
| public final class MigrationKt { |
| method public static androidx.room.migration.Migration Migration(int startVersion, int endVersion, kotlin.jvm.functions.Function1<? super androidx.sqlite.db.SupportSQLiteDatabase,kotlin.Unit> migrate); |
| } |
| |
| } |
| |