本文整理汇总了Java中com.facebook.stetho.inspector.database.DatabaseFilesProvider类的典型用法代码示例。如果您正苦于以下问题:Java DatabaseFilesProvider类的具体用法?Java DatabaseFilesProvider怎么用?Java DatabaseFilesProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DatabaseFilesProvider类属于com.facebook.stetho.inspector.database包,在下文中一共展示了DatabaseFilesProvider类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: get
import com.facebook.stetho.inspector.database.DatabaseFilesProvider; //导入依赖的package包/类
@Override
public Iterable<ChromeDevtoolsDomain> get() {
return new Stetho.DefaultInspectorModulesBuilder(context)
.provideDatabaseDriver(new SqliteDatabaseDriver(context,
new DatabaseFilesProvider() {
@Override
public List<File> getDatabaseFiles() {
List<File> list = new ArrayList<>();
list.add(new File(historian.dbPath()));
return list;
}
}, new DatabaseConnectionProvider() {
@Override
public SQLiteDatabase openDatabase(File file) throws SQLiteException {
return historian.getDatabase();
}
}))
.finish();
}
开发者ID:yshrsmz,项目名称:historian,代码行数:20,代码来源:HistorianInspectorModulesProvider.java
示例2: RongDatabaseDriver
import com.facebook.stetho.inspector.database.DatabaseFilesProvider; //导入依赖的package包/类
/**
* @param context the context
* @param databaseFilesProvider a database file name provider
* @param databaseConnectionProvider a database connection provider
*/
public RongDatabaseDriver(
Context context,
DatabaseFilesProvider databaseFilesProvider,
DatabaseConnectionProvider databaseConnectionProvider) {
super(context);
mDatabaseFilesProvider = databaseFilesProvider;
mDatabaseConnectionProvider = databaseConnectionProvider;
}
开发者ID:LanguidSheep,项目名称:sealtalk-android-master,代码行数:14,代码来源:RongDatabaseDriver.java
示例3: RongDbFilesDumperPlugin
import com.facebook.stetho.inspector.database.DatabaseFilesProvider; //导入依赖的package包/类
public RongDbFilesDumperPlugin(Context context, DatabaseFilesProvider databaseFilesProvider) {
mContext = context;
mDatabaseFilesProvider = databaseFilesProvider;
}
开发者ID:LanguidSheep,项目名称:sealtalk-android-master,代码行数:5,代码来源:RongDbFilesDumperPlugin.java
示例4: RongDatabaseDriver
import com.facebook.stetho.inspector.database.DatabaseFilesProvider; //导入依赖的package包/类
public RongDatabaseDriver(Context context, DatabaseFilesProvider databaseFilesProvider, DatabaseConnectionProvider databaseConnectionProvider) {
super(context, databaseFilesProvider, databaseConnectionProvider);
}
开发者ID:LanguidSheep,项目名称:sealtalk-android-master,代码行数:4,代码来源:RongDatabaseDriver.java
示例5: databaseFiles
import com.facebook.stetho.inspector.database.DatabaseFilesProvider; //导入依赖的package包/类
/**
* Customize the location of database files that Stetho will propogate in the UI. Android's
* {@link Context#getDatabasePath} method will be used by default if not overridden here.
*
* <p>This method is deprecated and instead it is recommended that you explicitly
* configure the {@link SqliteDatabaseDriver} as with:</p>
* <pre>
* provideDatabaseDriver(
* new SqliteDatabaseDriver(
* context,
* new MyDatabaseFilesProvider(...),
* new DefaultDatabaseConnectionProvider(...)))
* </pre>
*
* @deprecated Use {@link #provideDatabaseDriver(DatabaseDriver2)} with
* {@link SqliteDatabaseDriver} explicitly.
*/
@Deprecated
public DefaultInspectorModulesBuilder databaseFiles(DatabaseFilesProvider provider) {
mDatabaseFilesProvider = provider;
return this;
}
开发者ID:facebook,项目名称:stetho,代码行数:23,代码来源:Stetho.java
注:本文中的com.facebook.stetho.inspector.database.DatabaseFilesProvider类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论