zcash-android-wallet-sdk / cash.z.wallet.sdk.transaction / PagedTransactionRepository / <init>

<init>

PagedTransactionRepository(context: Context, pageSize: Int = 10, dataDbName: String = ZcashSdk.DB_DATA_NAME)

Constructor that creates the database.

PagedTransactionRepository(derivedDataDb: DerivedDataDb, pageSize: Int = 10)

Example of a repository that leverages the Room paging library to return a PagedList of transactions. Consumers can register as a page listener and receive an interface that allows for efficiently paging data.

Parameters

pageSize - transactions per page. This influences pre-fetch and memory configuration.