コンソールへ移動

Callable

  • storage(app?: App): Storage
  • Gets the Storage service for the default app or a given app.

    firebase.storage() can be called with no arguments to access the default app's Storage service or as firebase.storage(app) to access the Storage service associated with a specific app.

    example
    // Get the Storage service for the default app
    var defaultStorage = firebase.storage();
    example
    // Get the Storage service for a given app
    var otherStorage = firebase.storage(otherApp);

    Parameters

    • Optional app: App

      The app to create a storage service for. If not passed, uses the default app.

    Returns Storage

Index