第二个 Android 11 开发者预览版现已推出,快来测试并分享您的反馈吧

Factory

interface Factory
androidx.sqlite.db.SupportSQLiteOpenHelper.Factory

Factory class to create instances of SupportSQLiteOpenHelper using Configuration.

Summary

Public methods

abstract SupportSQLiteOpenHelper

Creates an instance of SupportSQLiteOpenHelper using the given configuration.

Public methods

create

@NonNull abstract fun create(@NonNull configuration: SupportSQLiteOpenHelper.Configuration): SupportSQLiteOpenHelper

Creates an instance of SupportSQLiteOpenHelper using the given configuration.

Parameters
configuration SupportSQLiteOpenHelper.Configuration: The configuration to use while creating the open helper.
Return
SupportSQLiteOpenHelper A SupportSQLiteOpenHelper which can be used to open a database.