Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.2 KB

functions.md

File metadata and controls

62 lines (46 loc) · 1.2 KB

Cloud Functions Kotlin Extensions

Getting Started

To use the Cloud Functions Android SDK with Kotlin Extensions, add the following to your app's build.gradle file:

// See maven.google.com for the latest versions
// This library transitively includes the firebase-functions library
implementation 'com.google.firebase:firebase-functions-ktx:$VERSION'

Features

Get the FirebaseFunctions instance of the default app

Kotlin

val functions = FirebaseFunctions.getInstance()

Kotlin + KTX

val functions = Firebase.functions

Get the FirebaseFunctions of a given region

Kotlin

val functions = FirebaseFunctions.getInstance(region)

Kotlin + KTX

val functions = Firebase.functions(region)

Get the FirebaseFunctions of a given FirebaseApp

Kotlin

val functions = FirebaseFunctions.getInstance(app)

Kotlin + KTX

val functions = Firebase.functions(app)

Get the FirebaseFunctions of a given region and FirebaseApp

Kotlin

val functions = FirebaseFunctions.getInstance(app, region)

Kotlin + KTX

val functions = Firebase.functions(app, region)