Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface SupabaseRealtime.ChangeListener

Receives database changes.

Methods

public abstract void onChange(String type, Map<String, Object> record, Map<String, Object> oldRecord)Called on the EDT for each change.

Method details

onChange

public abstract void onChange(String type, Map<String, Object> record, Map<String, Object> oldRecord)
Called on the EDT for each change.

Parameters

type String
INSERT, UPDATE or DELETE
record Map<String, Object>
the new row, empty for a delete
oldRecord Map<String, Object>
the old row’s key columns (all columns with replica identity full), empty for an insert