Stay organized with collections
Save and categorize content based on your preferences.
LogInjector
interface LogInjector<ArgT>
Summary
Public methods
|
abstract Unit |
inject(log: Builder, arg: ArgT)
|
Public methods
inject
abstract fun inject(
log: Builder,
arg: ArgT
): Unit
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 2024-10-31 UTC.
[[["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-10-31 UTC."],[[["`LogInjector` is an interface in Kotlin that facilitates injecting information into a log."],["It employs a method named `inject` which accepts a log builder (`Builder`) and an argument of a generic type (`ArgT`) to add specific content to the log."],["`AnalyticsLogger.LogInjector` is an example implementation."]]],["The `LogInjector` interface defines a mechanism for injecting data into a log. It has a single abstract method, `inject`, which takes a `Builder` object and an argument of type `ArgT`. The `inject` method is responsible for modifying the provided `Builder` with information from `arg`, and returns `Unit`, indicating that no specific value is returned. This interface is part of the `com.google.android.gms.dtdi.analytics.AnalyticsLogger`.\n"]]