Code example for RelativeLayout

Methods: removeAllViews

0
	@Override 
	public void dispose() { 
		//clean up 
		if(_adHolder != null)
		{ 
			_adHolder.removeAllViews();
		} 
		_adHolder = null;
		_adView = null;
	} 
 
	@Override 
	public Map<String, FREFunction> getFunctions() {
		_inRealMode = false;
		Log.d(TAG, "NativeAdsExtension compose function map.");
		 
		Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
		functionMap.put("initAd", new NativeAdsInitAdFunction());
		functionMap.put("setAdMode", new NativeAdsSetAdModeFunction());
		functionMap.put("setUnitId", new NativeAdsSetUnitIdFunction());
		functionMap.put("showAd", new NativeAdsShowAdFunction());