Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AWSNotesDataSourceFactory(private val context: Context, private val identityService: IdentityService) : DataSource.Factory<String, Note>() {
- var dataSource: AWSNotesDataSource? = null
- override fun create(): DataSource<String, Note> {
- dataSource = AWSNotesDataSource(context, identityService)
- return dataSource as DataSource<String, Note>
- }
- }
Add Comment
Please, Sign In to add comment