java.lang.Object | |
↳ | com.google.android.gms.tagmanager.Container |
An object that provides access to container values. Container objects must be created via
one of the TagManager
loadContainer
calls.
Once a container is created, it can be queried for key values which may depend on rules
established for the container.
Nested Classes | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Container.FunctionCallMacroCallback | Callback that is provided by the application to calculate the value of a custom macro. | ||||||||||||||||||||||||||||||||
Container.FunctionCallTagCallback | Callback that is provided by the application to execute a custom tag. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a boolean representing the configuration value for the given key.
| |||||||||||
Returns the container id.
| |||||||||||
Returns a double representing the configuration value for the given key.
| |||||||||||
Returns the last time (in milliseconds since midnight, January 1, 1970 UTC) that this
container was refreshed from the network.
| |||||||||||
Returns a long representing the configuration value for the given key.
| |||||||||||
Returns a string representing the configuration value for the given key.
| |||||||||||
Returns whether this is a default container, or one refreshed from the server.
| |||||||||||
Registers the given macro callback to handle a given function call macro.
| |||||||||||
Registers the tag callback to handle a given function call tag.
| |||||||||||
Unregisters any macro callback for the given macro.
| |||||||||||
Unregisters any tag callback for the given tag.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns a boolean representing the configuration value for the given key. If the container has no value for this key, false will be returned.
Returns the container id.
Returns a double representing the configuration value for the given key. If the container has no value for this key, 0 will be returned.
Returns the last time (in milliseconds since midnight, January 1, 1970 UTC) that this container was refreshed from the network.
Returns a long representing the configuration value for the given key. If the container has no value for this key, 0 will be returned.
Returns a string representing the configuration value for the given key. If the container has no value for this key, an empty string will be returned.
Returns whether this is a default container, or one refreshed from the server.
Registers the given macro callback to handle a given function call macro.
customMacroName | the name of the macro which is being registered |
---|---|
customMacroCallback | the callback to register |
Registers the tag callback to handle a given function call tag.
customTagName | the name of the tag which is being registered |
---|---|
customTagCallback | the callback to register |
Unregisters any macro callback for the given macro.
customMacroName | the name of the macro which is being unregistered |
---|
Unregisters any tag callback for the given tag.
customTagName | the name of the tag which is being unregistered |
---|