前往主控台

IosApp

public class IosApp extends Object

An instance of this class is a reference to an iOS App within a Firebase Project; it can be used to query detailed information about the App, modify the display name of the App, or download the configuration file for the App.

Note: the methods in this class make RPCs.

Public Method Summary

String
getConfig()
Retrieves the configuration artifact associated with this iOS App.
ApiFuture<String>
getConfigAsync()
Asynchronously retrieves the configuration artifact associated with this iOS App.
IosAppMetadata
getMetadata()
Retrieves detailed information about this iOS App.
ApiFuture<IosAppMetadata>
getMetadataAsync()
Asynchronously retrieves information about this iOS App.
void
setDisplayName(String newDisplayName)
Updates the Display Name attribute of this iOS App to the one given.
ApiFuture<Void>
setDisplayNameAsync(String newDisplayName)
Asynchronously updates the Display Name attribute of this iOS App to the one given.
String

Inherited Method Summary

Public Methods

public String getConfig ()

Retrieves the configuration artifact associated with this iOS App.

Returns
  • a modified UTF-8 encoded String containing the contents of the artifact
Throws
FirebaseProjectManagementException if there was an error during the RPC

public ApiFuture<String> getConfigAsync ()

Asynchronously retrieves the configuration artifact associated with this iOS App.

Returns
  • an ApiFuture of a UTF-8 encoded String containing the contents of the artifact

public IosAppMetadata getMetadata ()

Retrieves detailed information about this iOS App.

Returns
Throws
FirebaseProjectManagementException if there was an error during the RPC

public ApiFuture<IosAppMetadata> getMetadataAsync ()

Asynchronously retrieves information about this iOS App.

Returns
  • an ApiFuture containing an IosAppMetadata instance describing this App

public void setDisplayName (String newDisplayName)

Updates the Display Name attribute of this iOS App to the one given.

Throws
FirebaseProjectManagementException if there was an error during the RPC

public ApiFuture<Void> setDisplayNameAsync (String newDisplayName)

Asynchronously updates the Display Name attribute of this iOS App to the one given.

public String toString ()