Interface SupabaseRealtime.ChangeListener

Enclosing class:
SupabaseRealtime

public static interface SupabaseRealtime.ChangeListener
Receives database changes.
  • Method Details

    • onChange

      void onChange(String type, Map<String,Object> record, Map<String,Object> oldRecord)

      Called on the EDT for each change.

      Parameters
      • type: INSERT, UPDATE or DELETE

      • record: the new row, empty for a delete

      • oldRecord: the old row's key columns (all columns with replica identity full), empty for an insert