Gets the Eventarc service for the default app or a given app.getEventarc() can be called with no arguments to access the default app's Eventarc service or as getEventarc(app) to access the Eventarc service associated with specific app.
Gets the Eventarc service for the default app or a given app.
getEventarc() can be called with no arguments to access the default app's Eventarc service or as getEventarc(app) to access the Eventarc service associated with specific app.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-16 UTC."],[],[],null,["# firebase-admin.eventarc package\n\nFirebase Eventarc.\n\nFunctions\n---------\n\n| Function | Description |\n|----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getEventarc(app)](./firebase-admin.eventarc.md#geteventarc_8a40afc) | Gets the [Eventarc](./firebase-admin.eventarc.eventarc.md#eventarc_class) service for the default app or a given app.`getEventarc()` can be called with no arguments to access the default app's `Eventarc` service or as `getEventarc(app)` to access the `Eventarc` service associated with specific app. |\n\nClasses\n-------\n\n| Class | Description |\n|------------------------------------------------------------------|---------------------------------------------|\n| [Channel](./firebase-admin.eventarc.channel.md#channel_class) | Eventarc Channel. |\n| [Eventarc](./firebase-admin.eventarc.eventarc.md#eventarc_class) | Eventarc service bound to the provided app. |\n\nInterfaces\n----------\n\n| Interface | Description |\n|----------------------------------------------------------------------------------------|------------------------------------|\n| [ChannelOptions](./firebase-admin.eventarc.channeloptions.md#channeloptions_interface) | Channel options interface. |\n| [CloudEvent](./firebase-admin.eventarc.cloudevent.md#cloudevent_interface) | A CloudEvent describes event data. |\n\nType Aliases\n------------\n\n| Type Alias | Description |\n|---------------------------------------------------------------------|-----------------------|\n| [CloudEventVersion](./firebase-admin.eventarc.md#cloudeventversion) | A CloudEvent version. |\n\ngetEventarc(app)\n----------------\n\nGets the [Eventarc](./firebase-admin.eventarc.eventarc.md#eventarc_class) service for the default app or a given app.\n\n`getEventarc()` can be called with no arguments to access the default app's `Eventarc` service or as `getEventarc(app)` to access the `Eventarc` service associated with specific app.\n\n**Signature:** \n\n export declare function getEventarc(app?: App): Eventarc;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------|---------------------------------------------------------------------------------------------------------------------------|\n| app | App | Optional app whose `Eventarc` service will be returned. If not provided, the default `Eventarc` service will be returned. |\n\n**Returns:**\n\n[Eventarc](./firebase-admin.eventarc.eventarc.md#eventarc_class)\n\nThe default `Eventarc` service if no app is provided or the `Eventarc` service associated with the provided app.\n\n### Example 1\n\n // Get the Eventarc service for the default app\n const defaultEventarc = getEventarc();\n\n### Example 2\n\n // Get the Eventarc service for a given app\n const otherEventarc = getEventarc(otherApp);\n\nCloudEventVersion\n-----------------\n\nA CloudEvent version.\n\n**Signature:** \n\n export type CloudEventVersion = '1.0';"]]