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)

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
displayName a nickname for this Android App
Throws
FirebaseProjectManagementException if there was an error during the RPC
See Also

public 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.

Parameters
packageName the package name of the Android App to be created
See Also

public 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.

Parameters
packageName the package name of the Android App to be created
displayName a nickname for this Android App
See Also

public IosApp createIosApp (String bundleId, String displayName)

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

Parameters
bundleId the bundle ID of the iOS App to be created
displayName a nickname for this iOS App
Throws
FirebaseProjectManagementException if there was an error during the RPC
See Also

public IosApp createIosApp (String bundleId)

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

Parameters
bundleId the bundle ID of the iOS App to be created
Throws
FirebaseProjectManagementException if there was an error during the RPC
See Also

public 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.

Parameters
bundleId the bundle ID of the iOS App to be created
displayName a nickname for this iOS App
See Also

public 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.

Parameters
bundleId the bundle ID of the iOS App to be created
See Also

public AndroidApp getAndroidApp (String appId)

Obtains an AndroidApp reference to an Android App in the associated Firebase project.

Parameters
appId the App ID that identifies this Android App.
See Also

public static FirebaseProjectManagement getInstance ()

Gets the FirebaseProjectManagement instance for the default FirebaseApp.

Returns

public static FirebaseProjectManagement getInstance (FirebaseApp app)

Gets the FirebaseProjectManagement instance for the specified FirebaseApp.

Returns

public IosApp getIosApp (String appId)

Obtains an IosApp reference to an iOS App in the associated Firebase project.

Parameters
appId the App ID that identifies this iOS App.
See Also

public List<AndroidApp> listAndroidApps ()

Lists all Android Apps in the associated Firebase project, returning a list of AndroidApp references to each. This returned list is read-only and cannot be modified.

Throws
FirebaseProjectManagementException if there was an error during the RPC
See Also

public 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. This returned list is read-only and cannot be modified.

See Also

public List<IosApp> listIosApps ()

Lists all iOS Apps in the associated Firebase project, returning a list of IosApp references to each. This returned list is read-only and cannot be modified.

Throws
FirebaseProjectManagementException if there was an error during the RPC
See Also

public 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. This returned list is read-only and cannot be modified.

See Also