Guest User

Untitled

a guest
May 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. class AWSNotesDataSourceFactory(private val context: Context, private val identityService: IdentityService) : DataSource.Factory<String, Note>() {
  2. var dataSource: AWSNotesDataSource? = null
  3.  
  4. override fun create(): DataSource<String, Note> {
  5. dataSource = AWSNotesDataSource(context, identityService)
  6. return dataSource as DataSource<String, Note>
  7. }
  8. }
Add Comment
Please, Sign In to add comment