firebase

Namespace that encompasses all Firebase APIs.

Summary

Enumerations

FutureStatus{
  kFutureStatusComplete,
  kFutureStatusPending,
  kFutureStatusInvalid
}
enum
Asynchronous call status.
InitResult{
  kInitResultSuccess = 0,
  kInitResultFailedMissingDependency
}
enum
Reports whether a Firebase module initialized successfully.
LogLevel{
  kLogLevelVerbose = 0,
  kLogLevelDebug,
  kLogLevelInfo,
  kLogLevelWarning,
  kLogLevelError,
  kLogLevelAssert
}
enum
Levels used when logging messages.

Typedefs

FutureHandleIdtypedef
uintptr_t
Handle that the API uses to identify an asynchronous call.

Functions

GetLogLevel()
Gets the logging verbosity.
SetLogLevel(LogLevel level)
void
Sets the logging verbosity.
operator!=(constTimestamp & lhs, constTimestamp & rhs)
bool
Checkslhs andrhs for inequality.
operator<(constTimestamp & lhs, constTimestamp & rhs)
bool
Checks whetherlhs andrhs are in ascending order.
operator<=(constTimestamp & lhs, constTimestamp & rhs)
bool
Checks whetherlhs andrhs are in non-descending order.
operator==(constTimestamp & lhs, constTimestamp & rhs)
bool
Checkslhs andrhs for equality.
operator>(constTimestamp & lhs, constTimestamp & rhs)
bool
Checks whetherlhs andrhs are in descending order.
operator>=(constTimestamp & lhs, constTimestamp & rhs)
bool
Checks whetherlhs andrhs are in non-ascending order.

Classes

firebase::App

Firebase application object.

firebase::AppOptions

Options that control the creation of a FirebaseApp.

firebase::Future

Type-specific version ofFutureBase.

firebase::FutureBase

Type-independent return type of asynchronous calls.

firebase::FutureHandle

Class that provides more context to FutureHandleId, which allows the underlying API to track handles, perform reference counting, etc.

firebase::ModuleInitializer

Utility class to help with initializing Firebase modules.

firebase::Timestamp

ATimestamp represents a point in time independent of any time zone or calendar, represented as seconds and fractions of seconds at nanosecond resolution in UTC Epoch time.

firebase::Variant

Variant data type used by Firebase libraries.

Namespaces

firebase::analytics

Firebase Analytics API.

firebase::app_check
firebase::auth

Firebase Authentication API.

firebase::database

Namespace for the Firebase RealtimeDatabase C++ SDK.

firebase::firestore

CloudFirestore API.

firebase::functions

Namespace for the Firebase C++ SDK for CloudFunctions.

firebase::installations
firebase::messaging

Firebase Cloud Messaging API.

firebase::remote_config

Firebase Remote Config API.

firebase::storage

Namespace for the Firebase C++ SDK for CloudStorage.

firebase::ump

API for User Messaging Platform.

Enumerations

FutureStatus

FutureStatus

Asynchronous call status.

Properties
kFutureStatusComplete

Results are ready.

kFutureStatusInvalid

No result is pending.

FutureBase::Release() or move operator was called.

kFutureStatusPending

Result is still being processed.

InitResult

InitResult

Reports whether a Firebase module initialized successfully.

Properties
kInitResultFailedMissingDependency

The given library failed to initialize due to a missing dependency.

On Android, this typically means that Google Play services is not available and the library requires it. Usegoogle_play_services::CheckAvailability() andgoogle_play_services::MakeAvailable() to resolve this issue.

Also, on Android, this value can be returned if the Java dependencies of a Firebase component are not included in the application, causing initialization to fail. This means that the application's build environment is not configured correctly. To resolve the problem, see the SDK setup documentation for the set of Java dependencies (AARs) required for the component that failed to initialize.

kInitResultSuccess

The given library was successfully initialized.

LogLevel

LogLevel

Levels used when logging messages.

Properties
kLogLevelAssert

Assert Log Level.

kLogLevelDebug

Debug Log Level.

kLogLevelError

Error Log Level.

kLogLevelInfo

Info Log Level.

kLogLevelVerbose

Verbose Log Level.

kLogLevelWarning

Warning Log Level.

Typedefs

FutureHandleId

uintptr_tFutureHandleId

Handle that the API uses to identify an asynchronous call.

The exact interpretation of the handle is up to the API.

Functions

GetLogLevel

LogLevelGetLogLevel()

Gets the logging verbosity.

Details
Returns
Get the currently configured logging verbosity.

SetLogLevel

voidSetLogLevel(LogLevellevel)

Sets the logging verbosity.

All log messages at or above the specific log level.

Details
Parameters
level
Log level to display, by default this is set to kLogLevelInfo.

operator!=

booloperator!=(constTimestamp&lhs,constTimestamp&rhs)

Checkslhs andrhs for inequality.

operator<

booloperator<(constTimestamp&lhs,constTimestamp&rhs)

Checks whetherlhs andrhs are in ascending order.

operator<=

booloperator<=(constTimestamp&lhs,constTimestamp&rhs)

Checks whetherlhs andrhs are in non-descending order.

operator==

booloperator==(constTimestamp&lhs,constTimestamp&rhs)

Checkslhs andrhs for equality.

operator>

booloperator>(constTimestamp&lhs,constTimestamp&rhs)

Checks whetherlhs andrhs are in descending order.

operator>=

booloperator>=(constTimestamp&lhs,constTimestamp&rhs)

Checks whetherlhs andrhs are in non-ascending order.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-23 UTC.