MCPcopy Create free account
hub / github.com/NativeScript/firebase / getAll

Method getAll

packages/firebase-remote-config/index.ios.ts:218–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 });
217 }
218 getAll() {
219 const ks = NSMutableSet.new<string>();
220 ks.addObjectsFromArray(this.native.allKeysFromSource(FIRRemoteConfigSource.Static));
221 ks.addObjectsFromArray(this.native.allKeysFromSource(FIRRemoteConfigSource.Default));
222 ks.addObjectsFromArray(this.native.allKeysFromSource(FIRRemoteConfigSource.Remote));
223 const objects = ks.allObjects;
224 const count = objects.count;
225 const all = {};
226 for (let i = 0; i < count; i++) {
227 const key = objects.objectAtIndex(i);
228 all[key] = ConfigValue.fromNative(this.native.configValueForKey(key));
229 }
230 return all;
231 }
232 getBoolean(key: string): boolean {
233 return this.getValue(key)?.asBoolean?.();
234 }

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected