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

Method list

packages/firebase-storage/index.ios.ts:435–455  ·  view source on GitHub ↗
(options?: ListOptions)

Source from the content-addressed store, hash-verified

433 }
434
435 list(options?: ListOptions): Promise<ListResult> {
436 return new Promise((resolve, reject) => {
437 if (options?.pageToken) {
438 this.native.listWithMaxResultsPageTokenCompletion(options?.maxResults ?? 1000, options.pageToken, (result, error) => {
439 if (error) {
440 reject(FirebaseError.fromNative(error));
441 } else {
442 resolve(ListResult.fromNative(result));
443 }
444 });
445 } else {
446 this.native.listWithMaxResultsCompletion(options?.maxResults ?? 1000, (result, error) => {
447 if (error) {
448 reject(FirebaseError.fromNative(error));
449 } else {
450 resolve(ListResult.fromNative(result));
451 }
452 });
453 }
454 });
455 }
456
457 listAll(): Promise<ListResult> {
458 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected