IndexV2StreamReceiver

Functions

Link copied to clipboard
abstract fun onStreamEnded()

Called when the stream has been processed to its end.

Link copied to clipboard
abstract fun receive(packageName: String, p: PackageV2)

Receives one PackageV2 from the index stream. This is called once for each package in the index.

abstract fun receive(repo: RepoV2, version: Long)

Receives the RepoV2 from the index stream. Attention: This might get called after receiving packages.