Vai alla console

FirebaseProjectManagement

public class FirebaseProjectManagement extends Object

This class is the entry point for all Firebase Project Management actions.

You can get an instance of FirebaseProjectManagement via getInstance(FirebaseApp), and then use it to modify or retrieve information about your Firebase project, as well as create, modify, or retrieve information about the Android or iOS Apps in your Firebase project.

Public Method Summary

AndroidApp
createAndroidApp(String packageName)
Creates a new Android App in the associated Firebase project and returns an AndroidApp reference to it.
AndroidApp
createAndroidApp(String packageName, String displayName)
Creates a new Android App in the associated Firebase project and returns an AndroidApp reference to it.
ApiFuture<AndroidApp>
createAndroidAppAsync(String packageName)
Asynchronously creates a new Android App in the associated Firebase project and returns an ApiFuture that will eventually contain the AndroidApp reference to it.
ApiFuture<AndroidApp>
createAndroidAppAsync(String packageName, String displayName)
Asynchronously creates a new Android App in the associated Firebase project and returns an ApiFuture that will eventually contain the AndroidApp reference to it.
IosApp
createIosApp(String bundleId, String displayName)
Creates a new iOS App in the associated Firebase project and returns an IosApp reference to it.
IosApp
createIosApp(String bundleId)
Creates a new iOS App in the associated Firebase project and returns an IosApp reference to it.
ApiFuture<IosApp>
createIosAppAsync(String bundleId, String displayName)
Asynchronously creates a new iOS App in the associated Firebase project and returns an ApiFuture that will eventually contain the IosApp reference to it.
ApiFuture<IosApp>
createIosAppAsync(String bundleId)
Asynchronously creates a new iOS App in the associated Firebase project and returns an ApiFuture that will eventually contain the IosApp reference to it.
AndroidApp
getAndroidApp(String appId)
Obtains an AndroidApp reference to an Android App in the associated Firebase project.
static FirebaseProjectManagement
getInstance()
Gets the FirebaseProjectManagement instance for the default FirebaseApp.
static FirebaseProjectManagement
getInstance(FirebaseApp app)
Gets the FirebaseProjectManagement instance for the specified FirebaseApp.
IosApp
getIosApp(String appId)
Obtains an IosApp reference to an iOS App in the associated Firebase project.
List<AndroidApp>
listAndroidApps()
Lists all Android Apps in the associated Firebase project, returning a list of AndroidApp references to each.
ApiFuture<List<AndroidApp>>
listAndroidAppsAsync()
Asynchronously lists all Android Apps in the associated Firebase project, returning an ApiFuture of a list of AndroidApp references to each.
List<IosApp>
listIosApps()
Lists all iOS Apps in the associated Firebase project, returning a list of IosApp references to each.
ApiFuture<List<IosApp>>
listIosAppsAsync()
Asynchronously lists all iOS Apps in the associated Firebase project, returning an ApiFuture of a list of IosApp references to each.

Inherited Method Summary

Public Methods

public AndroidApp createAndroidApp (String packageName)

Creates a new Android App in the associated Firebase project and returns an AndroidApp reference to it.

Parameters
packageName the package name of the Android App to be created
Throws
FirebaseProjectManagementException if there was an error during the RPC
See Also

public AndroidApp createAndroidApp (String packageName, String displayName)