Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1550

Add event to `{App, SyncUser}::subscribe()` callback

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Describe your problem or use case

      When a callback is fired due to a change in App or SyncUser, it could be useful if the event is part of the callback. It will help the app develoer to know how to react to the change.

      Describe the solution you'd like

      user.subscribe([=](const realm::SyncUserChangeEvent event, const realm::SyncUser& user) { /* ... */ });
      app.subscribe([=](const realm::AppChangeEvent event, const realm::app::App& app) { /* ... */ });
      

      Additional context

            Assignee:
            Unassigned Unassigned
            Reporter:
            kenneth.geisshirt@mongodb.com Kenneth Geisshirt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: