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

Feature: PropertyObserver #3

Merged
merged 4 commits into from May 14, 2021
Merged

Feature: PropertyObserver #3

merged 4 commits into from May 14, 2021

Conversation

skydoves
Copy link
Owner

GuideLine

Observe the property's values changes using the PropertyObserver annotation on the method.

@ExampleScope
class MainClass {

  @ShareProperty(key = "name")
  val name = ChamberProperty("skydoves")

  // ... //

  @PropertyObserver(key = "name")
  fun observeNameProperty(name: String) {
     // observe the `name` value changes.
  }
}

@skydoves skydoves self-assigned this May 14, 2021
@skydoves skydoves merged commit 58345f9 into master May 14, 2021
@skydoves skydoves deleted the feature/observer branch May 14, 2021 16:39
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.

None yet

1 participant