ContainerHolder.ContainerAvailableListener
Stay organized with collections
Save and categorize content based on your preferences.
Listener object that is called when a new container is available.
Public Methods
public abstract void onContainerAvailable (ContainerHolder
containerHolder, String
containerVersion)
Called to signify that a new container is available in the container holder. This
container is not yet active; in order to actually begin using the container, call
ContainerHolder.getContainer()
.
Parameters
containerHolder |
|
containerVersion |
the version of the container that is now available |
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."],[[["`ContainerHolder.ContainerAvailableListener` is an interface used for receiving notifications when a new container is available."],["The `onContainerAvailable` method is called when a new container is ready, providing access to the `ContainerHolder` and the container version."],["To use the new container, you need to explicitly call `getContainer()` on the provided `ContainerHolder` instance."]]],["The `ContainerAvailableListener` interface notifies when a new container is ready. The key action is the `onContainerAvailable` method, which is invoked when a new container is available in the `ContainerHolder`. This method provides the `ContainerHolder` object and the `containerVersion` as parameters. To activate and use the new container, you need to call `ContainerHolder.getContainer()`. This method is essential for retrieving and utilizing the updated container data.\n"]]