-
Notifications
You must be signed in to change notification settings - Fork 669
Expand file tree
/
Copy pathapi.txt
More file actions
233 lines (209 loc) · 15.6 KB
/
api.txt
File metadata and controls
233 lines (209 loc) · 15.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
// Signature format: 2.0
package com.google.firebase.database {
public interface ChildEventListener {
method public void onCancelled(@NonNull com.google.firebase.database.DatabaseError);
method public void onChildAdded(@NonNull com.google.firebase.database.DataSnapshot, @Nullable String);
method public void onChildChanged(@NonNull com.google.firebase.database.DataSnapshot, @Nullable String);
method public void onChildMoved(@NonNull com.google.firebase.database.DataSnapshot, @Nullable String);
method public void onChildRemoved(@NonNull com.google.firebase.database.DataSnapshot);
}
public class DataSnapshot {
method @NonNull public com.google.firebase.database.DataSnapshot child(@NonNull String);
method public boolean exists();
method @NonNull public Iterable<com.google.firebase.database.DataSnapshot> getChildren();
method public long getChildrenCount();
method @Nullable public String getKey();
method @Nullable public Object getPriority();
method @NonNull public com.google.firebase.database.DatabaseReference getRef();
method @Nullable public Object getValue();
method @Nullable public Object getValue(boolean);
method @Nullable public <T> T getValue(@NonNull Class<T>);
method @Nullable public <T> T getValue(@NonNull com.google.firebase.database.GenericTypeIndicator<T>);
method public boolean hasChild(@NonNull String);
method public boolean hasChildren();
}
public class DatabaseError {
method @NonNull public static com.google.firebase.database.DatabaseError fromException(@NonNull Throwable);
method public int getCode();
method @NonNull public String getDetails();
method @NonNull public String getMessage();
method @NonNull public com.google.firebase.database.DatabaseException toException();
field public static final int DATA_STALE = -1; // 0xffffffff
field public static final int DISCONNECTED = -4; // 0xfffffffc
field public static final int EXPIRED_TOKEN = -6; // 0xfffffffa
field public static final int INVALID_TOKEN = -7; // 0xfffffff9
field public static final int MAX_RETRIES = -8; // 0xfffffff8
field public static final int NETWORK_ERROR = -24; // 0xffffffe8
field public static final int OPERATION_FAILED = -2; // 0xfffffffe
field public static final int OVERRIDDEN_BY_SET = -9; // 0xfffffff7
field public static final int PERMISSION_DENIED = -3; // 0xfffffffd
field public static final int UNAVAILABLE = -10; // 0xfffffff6
field public static final int UNKNOWN_ERROR = -999; // 0xfffffc19
field public static final int USER_CODE_EXCEPTION = -11; // 0xfffffff5
field public static final int WRITE_CANCELED = -25; // 0xffffffe7
}
public class DatabaseException extends java.lang.RuntimeException {
}
public class DatabaseReference extends com.google.firebase.database.Query {
method @NonNull public com.google.firebase.database.DatabaseReference child(@NonNull String);
method @NonNull public com.google.firebase.database.FirebaseDatabase getDatabase();
method @Nullable public String getKey();
method @Nullable public com.google.firebase.database.DatabaseReference getParent();
method @NonNull public com.google.firebase.database.DatabaseReference getRoot();
method public static void goOffline();
method public static void goOnline();
method @NonNull public com.google.firebase.database.OnDisconnect onDisconnect();
method @NonNull public com.google.firebase.database.DatabaseReference push();
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> removeValue();
method public void removeValue(@Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
method public void runTransaction(@NonNull com.google.firebase.database.Transaction.Handler);
method public void runTransaction(@NonNull com.google.firebase.database.Transaction.Handler, boolean);
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> setPriority(@Nullable Object);
method public void setPriority(@Nullable Object, @Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> setValue(@Nullable Object);
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> setValue(@Nullable Object, @Nullable Object);
method public void setValue(@Nullable Object, @Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
method public void setValue(@Nullable Object, @Nullable Object, @Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> updateChildren(@NonNull java.util.Map<java.lang.String,java.lang.Object>);
method public void updateChildren(@NonNull java.util.Map<java.lang.String,java.lang.Object>, @Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
}
public static interface DatabaseReference.CompletionListener {
method public void onComplete(@Nullable com.google.firebase.database.DatabaseError, @NonNull com.google.firebase.database.DatabaseReference);
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.FIELD}) public @interface Exclude {
}
public class FirebaseDatabase {
method @NonNull public com.google.firebase.FirebaseApp getApp();
method @NonNull public static com.google.firebase.database.FirebaseDatabase getInstance();
method @NonNull public static com.google.firebase.database.FirebaseDatabase getInstance(@NonNull String);
method @NonNull public static com.google.firebase.database.FirebaseDatabase getInstance(@NonNull com.google.firebase.FirebaseApp);
method @NonNull public static com.google.firebase.database.FirebaseDatabase getInstance(@NonNull com.google.firebase.FirebaseApp, @NonNull String);
method @NonNull public com.google.firebase.database.DatabaseReference getReference();
method @NonNull public com.google.firebase.database.DatabaseReference getReference(@NonNull String);
method @NonNull public com.google.firebase.database.DatabaseReference getReferenceFromUrl(@NonNull String);
method @NonNull public static String getSdkVersion();
method public void goOffline();
method public void goOnline();
method public void purgeOutstandingWrites();
method public void setLogLevel(@NonNull com.google.firebase.database.Logger.Level);
method public void setPersistenceCacheSizeBytes(long);
method public void setPersistenceEnabled(boolean);
method public void useEmulator(@NonNull String, int);
}
public abstract class GenericTypeIndicator<T> {
ctor public GenericTypeIndicator();
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) public @interface IgnoreExtraProperties {
}
public interface Logger {
}
public enum Logger.Level {
enum_constant public static final com.google.firebase.database.Logger.Level DEBUG;
enum_constant public static final com.google.firebase.database.Logger.Level ERROR;
enum_constant public static final com.google.firebase.database.Logger.Level INFO;
enum_constant public static final com.google.firebase.database.Logger.Level NONE;
enum_constant public static final com.google.firebase.database.Logger.Level WARN;
}
public class MutableData {
method @NonNull public com.google.firebase.database.MutableData child(@NonNull String);
method @NonNull public Iterable<com.google.firebase.database.MutableData> getChildren();
method public long getChildrenCount();
method @Nullable public String getKey();
method @Nullable public Object getPriority();
method @Nullable public Object getValue();
method @Nullable public <T> T getValue(@NonNull Class<T>);
method @Nullable public <T> T getValue(@NonNull com.google.firebase.database.GenericTypeIndicator<T>);
method public boolean hasChild(@NonNull String);
method public boolean hasChildren();
method public void setPriority(@Nullable Object);
method public void setValue(@Nullable Object) throws com.google.firebase.database.DatabaseException;
}
public class OnDisconnect {
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> cancel();
method public void cancel(@NonNull com.google.firebase.database.DatabaseReference.CompletionListener);
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> removeValue();
method public void removeValue(@Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> setValue(@Nullable Object);
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> setValue(@Nullable Object, @Nullable String);
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> setValue(@Nullable Object, double);
method public void setValue(@Nullable Object, @Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
method public void setValue(@Nullable Object, @Nullable String, @Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
method public void setValue(@Nullable Object, double, @Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
method public void setValue(@Nullable Object, @Nullable java.util.Map, @Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> updateChildren(@NonNull java.util.Map<java.lang.String,java.lang.Object>);
method public void updateChildren(@NonNull java.util.Map<java.lang.String,java.lang.Object>, @Nullable com.google.firebase.database.DatabaseReference.CompletionListener);
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.FIELD}) public @interface PropertyName {
method public abstract String value();
}
public class Query {
method @NonNull public com.google.firebase.database.ChildEventListener addChildEventListener(@NonNull com.google.firebase.database.ChildEventListener);
method public void addListenerForSingleValueEvent(@NonNull com.google.firebase.database.ValueEventListener);
method @NonNull public com.google.firebase.database.ValueEventListener addValueEventListener(@NonNull com.google.firebase.database.ValueEventListener);
method @NonNull public com.google.firebase.database.Query endAt(@Nullable String);
method @NonNull public com.google.firebase.database.Query endAt(double);
method @NonNull public com.google.firebase.database.Query endAt(boolean);
method @NonNull public com.google.firebase.database.Query endAt(@Nullable String, @Nullable String);
method @NonNull public com.google.firebase.database.Query endAt(double, @Nullable String);
method @NonNull public com.google.firebase.database.Query endAt(boolean, @Nullable String);
method @NonNull public com.google.firebase.database.Query endBefore(@Nullable String);
method @NonNull public com.google.firebase.database.Query endBefore(double);
method @NonNull public com.google.firebase.database.Query endBefore(boolean);
method @NonNull public com.google.firebase.database.Query endBefore(@Nullable String, @Nullable String);
method @NonNull public com.google.firebase.database.Query endBefore(double, @Nullable String);
method @NonNull public com.google.firebase.database.Query endBefore(boolean, @Nullable String);
method @NonNull public com.google.firebase.database.Query equalTo(@Nullable String);
method @NonNull public com.google.firebase.database.Query equalTo(double);
method @NonNull public com.google.firebase.database.Query equalTo(boolean);
method @NonNull public com.google.firebase.database.Query equalTo(@Nullable String, @Nullable String);
method @NonNull public com.google.firebase.database.Query equalTo(double, @Nullable String);
method @NonNull public com.google.firebase.database.Query equalTo(boolean, @Nullable String);
method @NonNull public com.google.android.gms.tasks.Task<com.google.firebase.database.DataSnapshot> get();
method @NonNull public com.google.firebase.database.DatabaseReference getRef();
method public void keepSynced(boolean);
method @NonNull public com.google.firebase.database.Query limitToFirst(int);
method @NonNull public com.google.firebase.database.Query limitToLast(int);
method @NonNull public com.google.firebase.database.Query orderByChild(@NonNull String);
method @NonNull public com.google.firebase.database.Query orderByKey();
method @NonNull public com.google.firebase.database.Query orderByPriority();
method @NonNull public com.google.firebase.database.Query orderByValue();
method public void removeEventListener(@NonNull com.google.firebase.database.ValueEventListener);
method public void removeEventListener(@NonNull com.google.firebase.database.ChildEventListener);
method @NonNull public com.google.firebase.database.Query startAfter(@Nullable String);
method @NonNull public com.google.firebase.database.Query startAfter(double);
method @NonNull public com.google.firebase.database.Query startAfter(boolean);
method @NonNull public com.google.firebase.database.Query startAfter(@Nullable String, @Nullable String);
method @NonNull public com.google.firebase.database.Query startAfter(double, @Nullable String);
method @NonNull public com.google.firebase.database.Query startAfter(boolean, @Nullable String);
method @NonNull public com.google.firebase.database.Query startAt(@Nullable String);
method @NonNull public com.google.firebase.database.Query startAt(double);
method @NonNull public com.google.firebase.database.Query startAt(boolean);
method @NonNull public com.google.firebase.database.Query startAt(@Nullable String, @Nullable String);
method @NonNull public com.google.firebase.database.Query startAt(double, @Nullable String);
method @NonNull public com.google.firebase.database.Query startAt(boolean, @Nullable String);
}
public class ServerValue {
ctor public ServerValue();
method @NonNull public static final Object increment(long);
method @NonNull public static final Object increment(double);
field @NonNull public static final java.util.Map<java.lang.String,java.lang.String> TIMESTAMP;
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) public @interface ThrowOnExtraProperties {
}
public class Transaction {
ctor public Transaction();
method @NonNull public static com.google.firebase.database.Transaction.Result abort();
method @NonNull public static com.google.firebase.database.Transaction.Result success(@NonNull com.google.firebase.database.MutableData);
}
public static interface Transaction.Handler {
method @NonNull public com.google.firebase.database.Transaction.Result doTransaction(@NonNull com.google.firebase.database.MutableData);
method public void onComplete(@Nullable com.google.firebase.database.DatabaseError, boolean, @Nullable com.google.firebase.database.DataSnapshot);
}
public static class Transaction.Result {
method public boolean isSuccess();
}
public interface ValueEventListener {
method public void onCancelled(@NonNull com.google.firebase.database.DatabaseError);
method public void onDataChange(@NonNull com.google.firebase.database.DataSnapshot);
}
}