Skip to content

Commit

Permalink
ziplineCreated event also
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Jan 19, 2024
1 parent ec08981 commit d0e06ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ public open class EventListener {
*/
public open fun codeLoadStart(): Any? = null

/**
* Invoked when a Zipline is created, after [codeLoadStart] and before any application code is
* loaded.
*/
public open fun ziplineCreated(
zipline: Zipline,
) {
}

/**
* Invoked when code is successfully downloaded and initialized.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ internal class RealEventPublisher(
return listener.codeLoadStart()
}

override fun ziplineCreated(
zipline: Zipline,
) {
listener.ziplineCreated(zipline)
}

override fun applicationLoadSuccess(
applicationName: String,
manifestUrl: String?,
Expand Down

0 comments on commit d0e06ba

Please sign in to comment.