本文整理匯總了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);
}
}
});
}
示例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);
}
示例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);
}
}
});
}
示例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();
}
}
}
示例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();
}
}
示例6: onMobiSageProductPlacementClick
import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementClick(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例7: onMobiSageProductPlacementHide
import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementHide(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例8: onMobiSageProductPlacementHideWindow
import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementHideWindow(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例9: onMobiSageProductPlacementPopupWindow
import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementPopupWindow(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例10: onMobiSageProductPlacementClose
import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementClose(
MobiSageAdProductPlacement arg0) {
// TODO Auto-generated method stub
}
示例11: onMobiSageProductPlacementError
import com.mobisage.android.MobiSageAdProductPlacement; //導入依賴的package包/類
@Override
public void onMobiSageProductPlacementError(
MobiSageAdProductPlacement arg0) {
disposeAdLoss(URLContainer.AD_LOSS_STEP4);
}