FirebaseDataConnect
The entry point of Firebase Data Connect: creates QueryRefs and MutationRefs for the operations of the connector config of app. Obtained with FirebaseDataConnect.Companion.getInstance; one instance exists per app and connector until it is closed.
Every operation takes the value to send followed by the serialization strategies to encode it and decode the result with (the Android SDK's pattern, with no reflection-based fallback), and an optional trailing builder for the remaining options.
Types
The options of a MutationRef beyond the required ones, set in the trailing lambda of mutation.
Properties
Functions
Releases this instance; a later getInstance for the same app and connector creates a new one.
Creates a reference to the mutation operationName with the given variables.
FirebaseDataConnect.mutation with the serializers of Data and Variables looked up by the compiler.
Creates a reference to the query operationName with the given variables.
FirebaseDataConnect.query with the serializers of Data and Variables looked up by the compiler.
close, waiting for the release to complete.
Connects to the Data Connect emulator instead of the production service; must be called before any operation is executed. The default host is the one the Android emulator reaches its host machine with; the other platforms' tests use localhost.