class com.google.ads.studio.ProxyEnabler
The Proxy Enabler class is required in all child files that make Enabler API calls. This class proxies all APIs to the concrete parent Enabler.
Unlike the parent Enabler, the child Enabler does not require initialization. It simply needs to be imported before an Enabler API call is made. In practical use, the Proxy Enabler will appear to dispatch the same events as the parent Enabler.
Please refer to the HtmlEnabler reference for the full list of methods.
The following code illustrates how to invoke an Enabler API
command from within a child file:
import com.google.ads.studio.ProxyEnabler; ProxyEnabler.getInstance().counter("counter from child file");
Static Methods
ProxyEnabler.getInstance()
:
ProxyEnabler
Gets the singleton instance of the real Enabler.