當前位置: 首頁>>代碼示例>>Java>>正文


Java MobiSageAdProductPlacement類代碼示例

本文整理匯總了Java中com.mobisage.android.MobiSageAdProductPlacement的典型用法代碼示例。如果您正苦於以下問題:Java MobiSageAdProductPlacement類的具體用法?Java MobiSageAdProductPlacement怎麽用?Java MobiSageAdProductPlacement使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MobiSageAdProductPlacement類屬於com.mobisage.android包,在下文中一共展示了MobiSageAdProductPlacement類的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onMobiSageProductPlacementShow

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementShow(
		MobiSageAdProductPlacement arg0) {
	mActivity.runOnUiThread(new Runnable() {

		@Override
		public void run() {
			if (mIsStartToShow && mediaPlayerDelegate != null
					&& mAdType == AdVender.ADSAGE) {
				setVisible(true);
				setVisibility(View.VISIBLE);
				mActivity.isImageADShowing = true;
				isGetFeedBack = true;
				Track.onImageAdStart();
			} else {
				disposeAdLoss(URLContainer.AD_LOSS_STEP3);
			}
		}
	});

}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:22,代碼來源:PluginImageAD.java

示例2: startMobisageAd

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
private void startMobisageAd() {
	setAdType(AdVender.ADSAGE);
	removeAllAd();
	if (!PluginImageAD.isMobiSageSDKInit) {
		MobiSageManager.getInstance().setPublisherID(mActivity,
				AdVender.MobiSage_ID);
		PluginImageAD.isMobiSageSDKInit = true;
	}
	DisplayMetrics displayMetrics = new DisplayMetrics();
	mActivity.getWindowManager().getDefaultDisplay()
			.getMetrics(displayMetrics);
	mMobisageAd = new MobiSageAdProductPlacement(mActivity, true);

	if (mMobisageListener == null) {
		mMobisageListener = new AdMobisageListener();
	}
	mMobisageAd.setMobiSageAdProductPlacementListener(mMobisageListener);
	if (mParams == null) {
		mParams = new LayoutParams((int) displayMetrics.density * 300,
				(int) displayMetrics.density * 250);

	}
	mMobisageContainer.addView(mMobisageAd, mParams);
	AdvInfo advInfo = getAdvInfo();
	DisposableStatsUtils.disposePausedSUS(advInfo);
}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:27,代碼來源:PluginFullScreenPauseAD.java

示例3: onMobiSageProductPlacementShow

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementShow(
		MobiSageAdProductPlacement arg0) {
	mActivity.runOnUiThread(new Runnable() {

		@Override
		public void run() {
			if (mediaPlayerDelegate != null
					&& mediaPlayerDelegate.isFullScreen
					&& mAdType == AdVender.ADSAGE && !pauseADcanceled) {
				setVisible(true);
				setVisibility(View.VISIBLE);
			} else {
				disposeAdLoss(URLContainer.AD_LOSS_STEP3);
			}
		}
	});

}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:20,代碼來源:PluginFullScreenPauseAD.java

示例4: onMobiSageProductPlacementClose

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementClose(
		MobiSageAdProductPlacement arg0) {
	if (mActivity.isImageADShowing) {
		mActivity.isImageADShowing = false;
		mIsStartToShow = false;
		isGetFeedBack = true;
		Track.onImageAdEnd();
		if (mediaPlayerDelegate != null) {
			mediaPlayerDelegate.startPlayAfterImageAD();
		}
	}

}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:15,代碼來源:PluginImageAD.java

示例5: onMobiSageProductPlacementError

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementError(
		MobiSageAdProductPlacement arg0) {
	mActivity.isImageADShowing = false;
	mIsStartToShow = false;
	isGetFeedBack = true;
	disposeAdLoss(URLContainer.AD_LOSS_STEP4);
	if (mediaPlayerDelegate != null) {
		mediaPlayerDelegate.startPlayAfterImageAD();
	}
}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:12,代碼來源:PluginImageAD.java

示例6: onMobiSageProductPlacementClick

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementClick(
		MobiSageAdProductPlacement arg0) {
	// TODO Auto-generated method stub

}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:7,代碼來源:PluginImageAD.java

示例7: onMobiSageProductPlacementHide

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementHide(
		MobiSageAdProductPlacement arg0) {
	// TODO Auto-generated method stub

}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:7,代碼來源:PluginImageAD.java

示例8: onMobiSageProductPlacementHideWindow

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementHideWindow(
		MobiSageAdProductPlacement arg0) {
	// TODO Auto-generated method stub

}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:7,代碼來源:PluginImageAD.java

示例9: onMobiSageProductPlacementPopupWindow

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementPopupWindow(
		MobiSageAdProductPlacement arg0) {
	// TODO Auto-generated method stub

}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:7,代碼來源:PluginImageAD.java

示例10: onMobiSageProductPlacementClose

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementClose(
		MobiSageAdProductPlacement arg0) {
	// TODO Auto-generated method stub

}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:7,代碼來源:PluginFullScreenPauseAD.java

示例11: onMobiSageProductPlacementError

import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementError(
		MobiSageAdProductPlacement arg0) {
	disposeAdLoss(URLContainer.AD_LOSS_STEP4);
}
 
開發者ID:Dreamer206602,項目名稱:SimplifyReader2,代碼行數:6,代碼來源:PluginFullScreenPauseAD.java


注:本文中的com.mobisage.android.MobiSageAdProductPlacement類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。