class com.google.ads.studio.layouts.ProxyLayouts
The Proxy Layouts class is required in all child files that make Layout API calls. This class proxies all APIs to the concrete parent Layout.
ProxyLayouts needs to be imported before a Layout API call is made. In practical use, the Proxy Layout will appear to dispatch the same events as the parent Layout.
Please refer to Layouts reference for the full list of methods.
The following code illustrates how to invoke a Layouts API command from
within a child file:
import com.google.ads.studio.layouts.ProxyLayouts; ProxyLayouts.getInstance().register("Image", this, "ads.Image");
Static Methods
ProxyLayouts.getInstance()
:
ProxyLayouts
Gets the singleton instance of the real Layouts.