getOpenHelper
Returns the DBOpenHelper instance associated with this user account.
Return
DBOpenHelper instance.
Parameters
encryptionKey
Password for database.
ctx
Context.
account
User account.
open fun getOpenHelper(encryptionKey: String, ctx: Context, account: UserAccount, communityId: String): DBOpenHelper
Returns the DBOpenHelper instance associated with this user and community.
Return
DBOpenHelper instance.
Parameters
encryptionKey
Password for database.
ctx
Context.
account
User account.
communityId
Community ID.
open fun getOpenHelper(encryptionKey: String, ctx: Context, dbNamePrefix: String, account: UserAccount, communityId: String): DBOpenHelper
Returns the DBOpenHelper instance for the given database name.
Return
DBOpenHelper instance.
Parameters
encryptionKey
password for database.
ctx
Context.
dbNamePrefix
The database name. This must be a valid file name without afilename extension such as ".db".
account
User account. If this method is called before authentication,we will simply return the smart store DB, which is not associatedwith any user account. Otherwise, we will return a uniquedatabase at the community level.
communityId
Community ID.