Companion

actual object Companion(source)
expect object Companion(source)
actual object Companion(source)

Properties

Link copied to clipboard

The FirebaseAI instance for the default FirebaseApp using the Google AI Backend.

expect val instance: FirebaseAI

The FirebaseAI instance for the default FirebaseApp using the Google AI Backend.

actual val instance: FirebaseAI

The FirebaseAI instance for the default FirebaseApp using the Google AI Backend.

Functions

Link copied to clipboard

The FirebaseAI instance for the provided FirebaseApp using the Google AI Backend.

actual fun getInstance(app: FirebaseApp, backend: GenerativeBackend, useLimitedUseAppCheckTokens: Boolean): FirebaseAI

Returns the FirebaseAI instance for the provided FirebaseApp and backend.

The FirebaseAI instance for the provided FirebaseApp using the Google AI Backend.

expect fun getInstance(app: FirebaseApp = Firebase.app, backend: GenerativeBackend): FirebaseAI
expect fun getInstance(app: FirebaseApp = Firebase.app, backend: GenerativeBackend, useLimitedUseAppCheckTokens: Boolean): FirebaseAI

Returns the FirebaseAI instance for the provided FirebaseApp and backend.

The FirebaseAI instance for the provided FirebaseApp using the Google AI Backend.

actual fun getInstance(app: FirebaseApp, backend: GenerativeBackend, useLimitedUseAppCheckTokens: Boolean): FirebaseAI

Returns the FirebaseAI instance for the provided FirebaseApp and backend.