[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/ai/InferenceSource [Back]  [Original]

InferenceSource  |  Firebase SDKs for Android Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

InferenceSource

@PublicPreviewAPI
class InferenceSource


Indicates the source of the model inference.

Summary

Public companion properties

InferenceSource

Inference was performed in the cloud.

InferenceSource

Inference was performed on the device.

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public companion properties

IN_CLOUD

val IN_CLOUDInferenceSource

Inference was performed in the cloud.

ON_DEVICE

val ON_DEVICEInferenceSource

Inference was performed on the device.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String
Send feedback

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

Last updated 2026-04-09 UTC.

Need to tell us more? [[["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 2026-04-09 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page