Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sdk] rework event API #18

Closed
wants to merge 1 commit into from
Closed

[sdk] rework event API #18

wants to merge 1 commit into from

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Jan 20, 2021

<changelog>Rework event API to use untyped core system.</changelog>

This PR moves away from the existing typed event API and to the un-typed equivalent. The typed API will be removed upstream shortly. While in beta, we will revisit the event that are emitted.

@tobrun tobrun self-assigned this Jan 20, 2021
@tobrun tobrun force-pushed the tvn-event-api branch 2 times, most recently from 4263239 to 1cea22f Compare January 22, 2021 14:13
@tobrun tobrun marked this pull request as ready for review January 25, 2021 13:16
@tobrun tobrun requested a review from a team January 25, 2021 13:16
MapEvents.STYLE_LOADING_FINISHED -> {
onStyleLoaded?.let {
val style = it.onLoad()
pluginRegistry.onStyleChanged(style)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we have onDidFinishLoadingStyleListeners here? I guess users may request for this event.

data["render-mode"]!!.contents.toString().toUpperCase(Locale.getDefault())
),
data["needs-repaint"]!!.contents.toString() == "true",
data["placement-changed"]!!.contents.toString() == "true"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why need to hard code these properties here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants